/*! For license information please see formio.custom.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.FormioCustomComponents=t():e.FormioCustomComponents=t()}(self,(()=>(()=>{var __webpack_modules__={119:function(e,t,n){!function(e){"use strict";var t={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};e.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(e){return/بعد از ظهر/.test(e)},meridiem:function(e,t,n){return e<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(e){return e.replace(/[۰-۹]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(95093))},144:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(69354);t.default={form:i.default}},396:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"case",ignore:!0}]},569:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EN_ERRORS=void 0,t.EN_ERRORS={unsavedRowsError:"Please save all rows before proceeding.",invalidRowsError:"Please correct invalid rows before proceeding.",invalidRowError:"Invalid row. Please correct it or delete.",invalidOption:"{{field}} is an invalid value.",invalidDay:"{{field}} is not a valid day.",required:"{{field}} is required",unique:"{{field}} must be unique",array:"{{field}} must be an array",array_nonempty:"{{field}} must be a non-empty array",nonarray:"{{field}} must not be an array",select:"{{field}} contains an invalid selection",pattern:"{{field}} does not match the pattern {{pattern}}",minLength:"{{field}} must have at least {{length}} characters.",maxLength:"{{field}} must have no more than {{length}} characters.",minWords:"{{field}} must have at least {{length}} words.",maxWords:"{{field}} must have no more than {{length}} words.",min:"{{field}} cannot be less than {{min}}.",max:"{{field}} cannot be greater than {{max}}.",maxDate:"{{field}} should not contain date after {{- maxDate}}",minDate:"{{field}} should not contain date before {{- minDate}}",maxYear:"{{field}} should not contain year greater than {{maxYear}}",minSelectedCount:"You must select at least {{minCount}} items",maxSelectedCount:"You may only select up to {{maxCount}} items",minYear:"{{field}} should not contain year less than {{minYear}}",invalid_email:"{{field}} must be a valid email.",invalid_url:"{{field}} must be a valid url.",invalid_regex:"{{field}} does not match the pattern {{regex}}.",invalid_date:"{{field}} is not a valid date.",invalid_day:"{{field}} is not a valid day.",invalidValueProperty:"Invalid Value Property",mask:"{{field}} does not match the mask.",valueIsNotAvailable:"{{ field }} is an invalid value.",time:"{{field}} is not a valid time.",invalidDate:"{{field}} is not a valid date",number:"{{field}} is not a valid number.",requiredDayField:"{{ field }} is required",requiredMonthField:"{{ field }} is required",requiredYearField:"{{ field }} is required"}},577:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Webform=t.EventEmitter=t.Licenses=t.Formio=t.Form=t.Utils=t.Templates=t.Widgets=t.Providers=t.Displays=t.Components=t.FormioCore=t.useModule=t.registerModule=void 0;const r=i(n(2543)),a=n(29857);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return a.Formio}});const s=i(n(27452)),o=i(n(87422));t.Components=o.default;const l=i(n(69628));t.Displays=l.default;const u=i(n(59452));t.Templates=u.default;const d=i(n(77486));t.Providers=d.default;const c=i(n(95357));t.Widgets=c.default;const h=i(n(18633));t.Form=h.default;const p=i(n(30301));t.Utils=p.default;const f=n(10196),m=i(n(53288));t.Licenses=m.default;const g=i(n(98625));t.EventEmitter=g.default;const v=i(n(97567));function y(e,t=null,n={}){if("function"==typeof e)return y(e(a.Formio),t,n);if("object"==typeof e)for(const i of Object.keys(e)){const s=e.framework||a.Formio.Templates.framework||"bootstrap";switch(i){case"options":a.Formio.options=r.default.merge(a.Formio.options,e.options);break;case"templates":for(const t of Object.keys(e.templates))a.Formio.Templates.extendTemplate(t,e.templates[t]);e.templates[s]&&(a.Formio.Templates.current=e.templates[s]);break;case"components":a.Formio.Components.setComponents(e.components);break;case"framework":a.Formio.Templates.framework=e.framework;break;case"fetch":for(const t of Object.keys(e.fetch))a.Formio.registerPlugin(e.fetch[t],t);break;case"providers":for(const t of Object.keys(e.providers))a.Formio.Providers.addProviders(t,e.providers[t]);break;case"displays":a.Formio.Displays.addDisplays(e.displays);break;case"evaluator":a.Formio.Evaluator.registerEvaluator(e.evaluator);break;case"library":n.license?a.Formio.Licenses.addLicense(e.library,n.license):a.Formio.Licenses.removeLicense(e.library);break;default:if(t){t(i,e)||console.warn("Unknown module option",i);break}console.log("Unknown module option",i)}}}function b(e=null){return(t,n={})=>{(t=r.default.isArray(t)?t:[t]).forEach((t=>{Array.isArray(t)?t.forEach((t=>y(t,e,n))):y(t,e,n)}))}}t.Webform=v.default,a.Formio.loadModules=(e=`${a.Formio.getApiUrl()}/externalModules.js`,t="externalModules")=>{a.Formio.requireLibrary(t,t,e,!0).then((e=>{a.Formio.use(e)}))},a.Formio.isRenderer=!0,a.Formio.Components=o.default,a.Formio.Templates=u.default,a.Formio.Utils=p.default,a.Formio.Form=h.default,a.Formio.Displays=l.default,a.Formio.Providers=d.default,a.Formio.Widgets=c.default,a.Formio.Evaluator=f.Evaluator,a.Formio.AllComponents=s.default,a.Formio.Licenses=m.default,a.Formio.Formio=a.Formio,a.Formio.Components.setComponents(s.default),t.registerModule=y,t.useModule=b,a.Formio.use=b();var _=n(29857);Object.defineProperty(t,"FormioCore",{enumerable:!0,get:function(){return _.Formio}})},659:(e,t,n)=>{var i=n(51873),r=Object.prototype,a=r.hasOwnProperty,s=r.toString,o=i?i.toStringTag:void 0;e.exports=function(e){var t=a.call(e,o),n=e[o];try{e[o]=void 0;var i=!0}catch(e){}var r=s.call(e);return i&&(t?e[o]=n:delete e[o]),r}},670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"placeholder",ignore:!0},{type:"hidden",label:"Files Synchronization feature",tooltip:"Enable ability to control files synchronization. Files will be auto synced before submit.",key:"autoSync",input:!0,conditional:{json:{in:[{var:"data.storage"},["s3","azure","googledrive"]]}}}]},715:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchInputMask=t.getInputMask=void 0;const i=n(2543);t.getInputMask=function(e,t){if(e instanceof Array)return e;const n=[];n.numeric=!0;for(let i=0;it.length)return!1;for(let n=0;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(66690),r=n(58613);t.default={form:i.default,html:r.default}},785:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'\n '+(null==(t=e.t("Drag and Drop a form component"))?"":t)+"\n\n"}},995:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),a=i(n(1434)),s=i(n(57674)),o=i(n(13239));t.default=function(...e){return r.default.baseEditForm([{key:"data",components:a.default},{key:"display",components:s.default},{label:"Provider",key:"provider",weight:15,components:o.default}],...e)}},1e3:(e,t)=>{t.A=function(e){var t,n="";return Array.prototype.join,n+='\n \n \n ',e.component.components.forEach((function(e){n+="\n \n "})),n+="\n \n \n \n ",e.instance.rows.forEach((function(e){n+="\n \n ",e.forEach((function(e){n+="\n \n "})),n+="\n \n "})),n+="\n \n
"+(null==(t=e.label||e.key)?"":t)+"
"+(null==(t=e.dataValue)?"":t)+"
"}},1221:function(e,t,n){!function(e){"use strict";var t=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];e.defineLocale("sd",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(95093))},1434:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",customConditional:({data:e})=>!e.enableManualMode},{type:"address",label:"Default Value",key:"defaultValue",weight:5,placeholder:"Default Value",tooltip:"The Default Value will be the value for this field, before user interaction. Having a default value will override the placeholder text.",input:!0,customDefaultValue:({instance:e})=>e.manualModeEnabled?{mode:"autocomplete",address:{}}:{}}]},1537:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{ignore:!0,key:"unique"},{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"number",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"number",tooltip:"The maximum length requirement this field must meet.",input:!0},{type:"checkbox",input:!0,weight:105,key:"rowDrafts",label:"Enable Row Drafts",tooltip:"Allow save rows even if their data is invalid. Errors will occur when try to submit with invalid rows."}]},1625:(e,t,n)=>{"use strict";var i=n(79504);e.exports=i({}.isPrototypeOf)},1632:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1200?"上午":1200===i?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(95093))},1704:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(e,t={}){this.baseUrl=e||n.defaultCDN,this.overrides=t,this.libs={js:"",ace:"1.4.12",bootstrap:"5.3.3",bootstrap4:"4.6.2",bootstrap5:"5.3.3",bootswatch:"5.3.3","bootstrap-icons":"1.11.1",ckeditor:"19.0.0",flatpickr:"4.6.8","flatpickr-formio":"4.6.13-formio.3","font-awesome":"4.7.0",grid:"latest","moment-timezone":"latest",quill:"2.0.0-dev.3","shortcut-buttons-flatpickr":"0.4.0",uswds:"2.4.8",core:""},this.updateUrls()}getVersion(e){return this.libs[e]}setVersion(e,t){this.libs[e]=t,this.updateUrls()}setBaseUrl(e){this.baseUrl=e,this.updateUrls()}setOverrideUrl(e,t){this.overrides[e]=t,this.updateUrls()}removeOverride(e){delete this.overrides[e],this.updateUrls()}removeOverrides(){this.overrides={},this.updateUrls()}buildUrl(e,t,n){let i=e;return t&&(i+=`/${t}`),e.match(/cdn\.(test-)?form.io/)&&n&&"latest"!==n&&(i+=`/${n}`),i}updateUrls(){for(const e in this.libs)if(e in this.overrides)if("string"==typeof this.overrides[e])this[e]=this.buildUrl(this.overrides[e],e,this.libs[e]);else{const t=this.overrides[e];this[e]=this.buildUrl(t.cdn,t.lib||"",t.version||"")}else this[e]=this.buildUrl(this.baseUrl,e,this.libs[e])}}n.defaultCDN="https://cdn.form.io",t.default=n},1835:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(27452)),a=i(n(995)),s=i(n(72289)),o=i(n(52167)),l=i(n(14399)),u=i(n(21445)),d=i(n(47431)),c=i(n(34847)),h=i(n(11879)),p=i(n(34865)),f=i(n(37347)),m=i(n(40503)),g=i(n(29491)),v=i(n(11681)),y=i(n(68991)),b=i(n(95201)),_=i(n(86129)),w=i(n(8957)),M=i(n(52850)),k=i(n(78665)),S=i(n(50983)),x=i(n(10280)),L=i(n(84119)),C=i(n(21419)),T=i(n(44103)),E=i(n(31739)),A=i(n(59287)),D=i(n(22859)),P=i(n(85955)),O=i(n(63357)),j=i(n(67483)),I=i(n(9117)),R=i(n(22307)),F=i(n(47633)),Y=i(n(82647)),V=i(n(74501)),N=i(n(94259)),H=i(n(87815)),z=i(n(20031)),U=i(n(26627)),B=i(n(50493));r.default.address.editForm=a.default,r.default.button.editForm=s.default,r.default.checkbox.editForm=o.default,r.default.columns.editForm=l.default,r.default.component.editForm=u.default,r.default.container.editForm=d.default,r.default.content.editForm=c.default,r.default.currency.editForm=h.default,r.default.datagrid.editForm=p.default,r.default.datamap.editForm=f.default,r.default.datetime.editForm=m.default,r.default.day.editForm=g.default,r.default.editgrid.editForm=v.default,r.default.email.editForm=y.default,r.default.fieldset.editForm=b.default,r.default.file.editForm=_.default,r.default.form.editForm=w.default,r.default.list.editForm=M.default,r.default.hidden.editForm=k.default,r.default.htmlelement.editForm=S.default,r.default.nested.editForm=x.default,r.default.number.editForm=L.default,r.default.panel.editForm=C.default,r.default.password.editForm=T.default,r.default.phoneNumber.editForm=E.default,r.default.radio.editForm=A.default,r.default.recaptcha.editForm=D.default,r.default.select.editForm=O.default,r.default.selectboxes.editForm=P.default,r.default.signature.editForm=j.default,r.default.survey.editForm=I.default,r.default.table.editForm=R.default,r.default.tabs.editForm=F.default,r.default.tags.editForm=Y.default,r.default.textarea.editForm=V.default,r.default.textfield.editForm=N.default,r.default.time.editForm=H.default,r.default.unknown.editForm=z.default,r.default.url.editForm=U.default,r.default.well.editForm=B.default,t.default=r.default},1882:(e,t,n)=>{var i=n(72552),r=n(23805);e.exports=function(e){if(!r(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},2293:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(14728));class a extends r.default{static get operatorKey(){return"isDateEqual"}static get displayedName(){return"Is Equal To"}execute(e){return super.execute(e,"isSame")}}t.default=a},2360:(e,t,n)=>{"use strict";var i,r=n(28551),a=n(96801),s=n(88727),o=n(30421),l=n(20397),u=n(4055),d=n(66119),c="prototype",h="script",p=d("IE_PROTO"),f=function(){},m=function(e){return"<"+h+">"+e+""},g=function(e){e.write(m("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;v="undefined"!=typeof document?document.domain&&i?g(i):(t=u("iframe"),n="java"+h+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(m("document.F=Object")),e.close(),e.F):g(i);for(var r=s.length;r--;)delete v[c][s[r]];return v()};o[p]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f[c]=r(e),n=new f,f[c]=null,n[p]=e):n=v(),void 0===t?n:a.f(n,t)}},2404:(e,t,n)=>{var i=n(60270);e.exports=function(e,t){return i(e,t)}},2523:e=>{e.exports=function(e,t,n,i){for(var r=e.length,a=n+(i?1:-1);i?a--:++a"']/g,q=RegExp(W.source),K=RegExp($.source),G=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,X=/<%=([\s\S]+?)%>/g,Z=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Q=/^\w*$/,ee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,te=/[\\^$.*+?()[\]{}|]/g,ne=RegExp(te.source),ie=/^\s+/,re=/\s/,ae=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,oe=/,? & /,le=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ue=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,he=/\w*$/,pe=/^[-+]0x[0-9a-f]+$/i,fe=/^0b[01]+$/i,me=/^\[object .+?Constructor\]$/,ge=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\d*)$/,ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,be=/($^)/,_e=/['\n\r\u2028\u2029\\]/g,we="\\ud800-\\udfff",Me="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ke="\\u2700-\\u27bf",Se="a-z\\xdf-\\xf6\\xf8-\\xff",xe="A-Z\\xc0-\\xd6\\xd8-\\xde",Le="\\ufe0e\\ufe0f",Ce="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\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",Te="["+we+"]",Ee="["+Ce+"]",Ae="["+Me+"]",De="\\d+",Pe="["+ke+"]",Oe="["+Se+"]",je="[^"+we+Ce+De+ke+Se+xe+"]",Ie="\\ud83c[\\udffb-\\udfff]",Re="[^"+we+"]",Fe="(?:\\ud83c[\\udde6-\\uddff]){2}",Ye="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+xe+"]",Ne="\\u200d",He="(?:"+Oe+"|"+je+")",ze="(?:"+Ve+"|"+je+")",Ue="(?:['’](?:d|ll|m|re|s|t|ve))?",Be="(?:['’](?:D|LL|M|RE|S|T|VE))?",We="(?:"+Ae+"|"+Ie+")?",$e="["+Le+"]?",qe=$e+We+"(?:"+Ne+"(?:"+[Re,Fe,Ye].join("|")+")"+$e+We+")*",Ke="(?:"+[Pe,Fe,Ye].join("|")+")"+qe,Ge="(?:"+[Re+Ae+"?",Ae,Fe,Ye,Te].join("|")+")",Je=RegExp("['’]","g"),Xe=RegExp(Ae,"g"),Ze=RegExp(Ie+"(?="+Ie+")|"+Ge+qe,"g"),Qe=RegExp([Ve+"?"+Oe+"+"+Ue+"(?="+[Ee,Ve,"$"].join("|")+")",ze+"+"+Be+"(?="+[Ee,Ve+He,"$"].join("|")+")",Ve+"?"+He+"+"+Ue,Ve+"+"+Be,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",De,Ke].join("|"),"g"),et=RegExp("["+Ne+we+Me+Le+"]"),tt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,rt={};rt[O]=rt[j]=rt[I]=rt[R]=rt[F]=rt[Y]=rt[V]=rt[N]=rt[H]=!0,rt[m]=rt[g]=rt[D]=rt[v]=rt[P]=rt[y]=rt[b]=rt[_]=rt[M]=rt[k]=rt[S]=rt[L]=rt[C]=rt[T]=rt[A]=!1;var at={};at[m]=at[g]=at[D]=at[P]=at[v]=at[y]=at[O]=at[j]=at[I]=at[R]=at[F]=at[M]=at[k]=at[S]=at[L]=at[C]=at[T]=at[E]=at[Y]=at[V]=at[N]=at[H]=!0,at[b]=at[_]=at[A]=!1;var st={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ot=parseFloat,lt=parseInt,ut="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,dt="object"==typeof self&&self&&self.Object===Object&&self,ct=ut||dt||Function("return this")(),ht=t&&!t.nodeType&&t,pt=ht&&e&&!e.nodeType&&e,ft=pt&&pt.exports===ht,mt=ft&&ut.process,gt=function(){try{return pt&&pt.require&&pt.require("util").types||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),vt=gt&>.isArrayBuffer,yt=gt&>.isDate,bt=gt&>.isMap,_t=gt&>.isRegExp,wt=gt&>.isSet,Mt=gt&>.isTypedArray;function kt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function St(e,t,n,i){for(var r=-1,a=null==e?0:e.length;++r-1}function At(e,t,n){for(var i=-1,r=null==e?0:e.length;++i-1;);return n}function Qt(e,t){for(var n=e.length;n--&&Vt(t,e[n],0)>-1;);return n}var en=Bt({À:"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"}),tn=Bt({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(e){return"\\"+st[e]}function rn(e){return et.test(e)}function an(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function sn(e,t){return function(n){return e(t(n))}}function on(e,t){for(var n=-1,i=e.length,r=0,a=[];++n",""":'"',"'":"'"}),fn=function e(t){var n,i=(t=null==t?ct:fn.defaults(ct.Object(),t,fn.pick(ct,nt))).Array,re=t.Date,we=t.Error,Me=t.Function,ke=t.Math,Se=t.Object,xe=t.RegExp,Le=t.String,Ce=t.TypeError,Te=i.prototype,Ee=Me.prototype,Ae=Se.prototype,De=t["__core-js_shared__"],Pe=Ee.toString,Oe=Ae.hasOwnProperty,je=0,Ie=(n=/[^.]+$/.exec(De&&De.keys&&De.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Re=Ae.toString,Fe=Pe.call(Se),Ye=ct._,Ve=xe("^"+Pe.call(Oe).replace(te,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ne=ft?t.Buffer:r,He=t.Symbol,ze=t.Uint8Array,Ue=Ne?Ne.allocUnsafe:r,Be=sn(Se.getPrototypeOf,Se),We=Se.create,$e=Ae.propertyIsEnumerable,qe=Te.splice,Ke=He?He.isConcatSpreadable:r,Ge=He?He.iterator:r,Ze=He?He.toStringTag:r,et=function(){try{var e=la(Se,"defineProperty");return e({},"",{}),e}catch(e){}}(),st=t.clearTimeout!==ct.clearTimeout&&t.clearTimeout,ut=re&&re.now!==ct.Date.now&&re.now,dt=t.setTimeout!==ct.setTimeout&&t.setTimeout,ht=ke.ceil,pt=ke.floor,mt=Se.getOwnPropertySymbols,gt=Ne?Ne.isBuffer:r,Rt=t.isFinite,Bt=Te.join,mn=sn(Se.keys,Se),gn=ke.max,vn=ke.min,yn=re.now,bn=t.parseInt,_n=ke.random,wn=Te.reverse,Mn=la(t,"DataView"),kn=la(t,"Map"),Sn=la(t,"Promise"),xn=la(t,"Set"),Ln=la(t,"WeakMap"),Cn=la(Se,"create"),Tn=Ln&&new Ln,En={},An=Ra(Mn),Dn=Ra(kn),Pn=Ra(Sn),On=Ra(xn),jn=Ra(Ln),In=He?He.prototype:r,Rn=In?In.valueOf:r,Fn=In?In.toString:r;function Yn(e){if(Qs(e)&&!zs(e)&&!(e instanceof zn)){if(e instanceof Hn)return e;if(Oe.call(e,"__wrapped__"))return Fa(e)}return new Hn(e)}var Vn=function(){function e(){}return function(t){if(!Zs(t))return{};if(We)return We(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function Nn(){}function Hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function zn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=p,this.__views__=[]}function Un(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function si(e,t,n,i,a,s){var o,l=1&t,u=2&t,d=4&t;if(n&&(o=a?n(e,i,a,s):n(e)),o!==r)return o;if(!Zs(e))return e;var c=zs(e);if(c){if(o=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Oe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Lr(e,o)}else{var h=ca(e),p=h==_||h==w;if($s(e))return _r(e,l);if(h==S||h==m||p&&!a){if(o=u||p?{}:pa(e),!l)return u?function(e,t){return Cr(e,da(e),t)}(e,function(e,t){return e&&Cr(t,Do(t),e)}(o,e)):function(e,t){return Cr(e,ua(e),t)}(e,ni(o,e))}else{if(!at[h])return a?e:{};o=function(e,t,n){var i,r=e.constructor;switch(t){case D:return wr(e);case v:case y:return new r(+e);case P:return function(e,t){var n=t?wr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case O:case j:case I:case R:case F:case Y:case V:case N:case H:return Mr(e,n);case M:return new r;case k:case T:return new r(e);case L:return function(e){var t=new e.constructor(e.source,he.exec(e));return t.lastIndex=e.lastIndex,t}(e);case C:return new r;case E:return i=e,Rn?Se(Rn.call(i)):{}}}(e,h,l)}}s||(s=new qn);var f=s.get(e);if(f)return f;s.set(e,o),ro(e)?e.forEach((function(i){o.add(si(i,t,n,i,e,s))})):eo(e)&&e.forEach((function(i,r){o.set(r,si(i,t,n,r,e,s))}));var g=c?r:(d?u?ta:ea:u?Do:Ao)(e);return xt(g||e,(function(i,r){g&&(i=e[r=i]),Qn(o,r,si(i,t,n,r,e,s))})),o}function oi(e,t,n){var i=n.length;if(null==e)return!i;for(e=Se(e);i--;){var a=n[i],s=t[a],o=e[a];if(o===r&&!(a in e)||!s(o))return!1}return!0}function li(e,t,n){if("function"!=typeof e)throw new Ce(a);return Ca((function(){e.apply(r,n)}),t)}function ui(e,t,n,i){var r=-1,a=Et,s=!0,o=e.length,l=[],u=t.length;if(!o)return l;n&&(t=Dt(t,Gt(n))),i?(a=At,s=!1):t.length>=200&&(a=Xt,s=!1,t=new $n(t));e:for(;++r-1},Bn.prototype.set=function(e,t){var n=this.__data__,i=ei(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Wn.prototype.clear=function(){this.size=0,this.__data__={hash:new Un,map:new(kn||Bn),string:new Un}},Wn.prototype.delete=function(e){var t=sa(this,e).delete(e);return this.size-=t?1:0,t},Wn.prototype.get=function(e){return sa(this,e).get(e)},Wn.prototype.has=function(e){return sa(this,e).has(e)},Wn.prototype.set=function(e,t){var n=sa(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},$n.prototype.add=$n.prototype.push=function(e){return this.__data__.set(e,s),this},$n.prototype.has=function(e){return this.__data__.has(e)},qn.prototype.clear=function(){this.__data__=new Bn,this.size=0},qn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},qn.prototype.get=function(e){return this.__data__.get(e)},qn.prototype.has=function(e){return this.__data__.has(e)},qn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Bn){var i=n.__data__;if(!kn||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Wn(i)}return n.set(e,t),this.size=n.size,this};var di=Ar(yi),ci=Ar(bi,!0);function hi(e,t){var n=!0;return di(e,(function(e,i,r){return n=!!t(e,i,r)})),n}function pi(e,t,n){for(var i=-1,a=e.length;++i0&&n(o)?t>1?mi(o,t-1,n,i,r):Pt(r,o):i||(r[r.length]=o)}return r}var gi=Dr(),vi=Dr(!0);function yi(e,t){return e&&gi(e,t,Ao)}function bi(e,t){return e&&vi(e,t,Ao)}function _i(e,t){return Tt(t,(function(t){return Gs(e[t])}))}function wi(e,t){for(var n=0,i=(t=gr(t,e)).length;null!=e&&nt}function xi(e,t){return null!=e&&Oe.call(e,t)}function Li(e,t){return null!=e&&t in Se(e)}function Ci(e,t,n){for(var a=n?At:Et,s=e[0].length,o=e.length,l=o,u=i(o),d=1/0,c=[];l--;){var h=e[l];l&&t&&(h=Dt(h,Gt(t))),d=vn(h.length,d),u[l]=!n&&(t||s>=120&&h.length>=120)?new $n(l&&h):r}h=e[0];var p=-1,f=u[0];e:for(;++p=o?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}));t--;)e[t]=e[t].value;return e}(r)}function zi(e,t,n){for(var i=-1,r=t.length,a={};++i-1;)o!==e&&qe.call(o,l,1),qe.call(e,l,1);return e}function Bi(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==a){var a=r;ma(r)?qe.call(e,r,1):lr(e,r)}}return e}function Wi(e,t){return e+pt(_n()*(t-e+1))}function $i(e,t){var n="";if(!e||t<1||t>c)return n;do{t%2&&(n+=e),(t=pt(t/2))&&(e+=e)}while(t);return n}function qi(e,t){return Ta(ka(e,t,nl),e+"")}function Ki(e){return Gn(Vo(e))}function Gi(e,t){var n=Vo(e);return Da(n,ai(t,0,n.length))}function Ji(e,t,n,i){if(!Zs(e))return e;for(var a=-1,s=(t=gr(t,e)).length,o=s-1,l=e;null!=l&&++aa?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var s=i(a);++r>>1,s=e[a];null!==s&&!so(s)&&(n?s<=t:s=200){var u=t?null:$r(e);if(u)return ln(u);s=!1,r=Xt,l=new $n}else l=t?[]:o;e:for(;++i=i?e:er(e,t,n)}var br=st||function(e){return ct.clearTimeout(e)};function _r(e,t){if(t)return e.slice();var n=e.length,i=Ue?Ue(n):new e.constructor(n);return e.copy(i),i}function wr(e){var t=new e.constructor(e.byteLength);return new ze(t).set(new ze(e)),t}function Mr(e,t){var n=t?wr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function kr(e,t){if(e!==t){var n=e!==r,i=null===e,a=e==e,s=so(e),o=t!==r,l=null===t,u=t==t,d=so(t);if(!l&&!d&&!s&&e>t||s&&o&&u&&!l&&!d||i&&o&&u||!n&&u||!a)return 1;if(!i&&!s&&!d&&e1?n[a-1]:r,o=a>2?n[2]:r;for(s=e.length>3&&"function"==typeof s?(a--,s):r,o&&ga(n[0],n[1],o)&&(s=a<3?r:s,a=1),t=Se(t);++i-1?a[s?t[o]:o]:r}}function Rr(e){return Qr((function(t){var n=t.length,i=n,s=Hn.prototype.thru;for(e&&t.reverse();i--;){var o=t[i];if("function"!=typeof o)throw new Ce(a);if(s&&!l&&"wrapper"==ia(o))var l=new Hn([],!0)}for(i=l?i:n;++i1&&_.reverse(),p&&cl))return!1;var d=s.get(e),c=s.get(t);if(d&&c)return d==t&&c==e;var h=-1,p=!0,f=2&n?new $n:r;for(s.set(e,t),s.set(t,e);++h-1&&e%1==0&&e1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(ae,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return xt(f,(function(n){var i="_."+n[0];t&n[1]&&!Et(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(oe):[]}(i),n)))}function Aa(e){var t=0,n=0;return function(){var i=yn(),a=16-(i-n);if(n=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function Da(e,t){var n=-1,i=e.length,a=i-1;for(t=t===r?i:t;++n1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,is(e,n)}));function ds(e){var t=Yn(e);return t.__chain__=!0,t}function cs(e,t){return t(e)}var hs=Qr((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,a=function(t){return ri(t,e)};return!(t>1||this.__actions__.length)&&i instanceof zn&&ma(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:cs,args:[a],thisArg:r}),new Hn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(r),e}))):this.thru(a)})),ps=Tr((function(e,t,n){Oe.call(e,n)?++e[n]:ii(e,n,1)})),fs=Ir(Ha),ms=Ir(za);function gs(e,t){return(zs(e)?xt:di)(e,aa(t,3))}function vs(e,t){return(zs(e)?Lt:ci)(e,aa(t,3))}var ys=Tr((function(e,t,n){Oe.call(e,n)?e[n].push(t):ii(e,n,[t])})),bs=qi((function(e,t,n){var r=-1,a="function"==typeof t,s=Bs(e)?i(e.length):[];return di(e,(function(e){s[++r]=a?kt(t,e,n):Ti(e,t,n)})),s})),_s=Tr((function(e,t,n){ii(e,n,t)}));function ws(e,t){return(zs(e)?Dt:Ri)(e,aa(t,3))}var Ms=Tr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),ks=qi((function(e,t){if(null==e)return[];var n=t.length;return n>1&&ga(e,t[0],t[1])?t=[]:n>2&&ga(t[0],t[1],t[2])&&(t=[t[0]]),Hi(e,mi(t,1),[])})),Ss=ut||function(){return ct.Date.now()};function xs(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Kr(e,u,r,r,r,r,t)}function Ls(e,t){var n;if("function"!=typeof t)throw new Ce(a);return e=po(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Cs=qi((function(e,t,n){var i=1;if(n.length){var r=on(n,ra(Cs));i|=l}return Kr(e,i,t,n,r)})),Ts=qi((function(e,t,n){var i=3;if(n.length){var r=on(n,ra(Ts));i|=l}return Kr(t,i,e,n,r)}));function Es(e,t,n){var i,s,o,l,u,d,c=0,h=!1,p=!1,f=!0;if("function"!=typeof e)throw new Ce(a);function m(t){var n=i,a=s;return i=s=r,c=t,l=e.apply(a,n)}function g(e){var n=e-d;return d===r||n>=t||n<0||p&&e-c>=o}function v(){var e=Ss();if(g(e))return y(e);u=Ca(v,function(e){var n=t-(e-d);return p?vn(n,o-(e-c)):n}(e))}function y(e){return u=r,f&&i?m(e):(i=s=r,l)}function b(){var e=Ss(),n=g(e);if(i=arguments,s=this,d=e,n){if(u===r)return function(e){return c=e,u=Ca(v,t),h?m(e):l}(d);if(p)return br(u),u=Ca(v,t),m(d)}return u===r&&(u=Ca(v,t)),l}return t=mo(t)||0,Zs(n)&&(h=!!n.leading,o=(p="maxWait"in n)?gn(mo(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),b.cancel=function(){u!==r&&br(u),c=0,i=d=s=u=r},b.flush=function(){return u===r?l:y(Ss())},b}var As=qi((function(e,t){return li(e,1,t)})),Ds=qi((function(e,t,n){return li(e,mo(t)||0,n)}));function Ps(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ce(a);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],a=n.cache;if(a.has(r))return a.get(r);var s=e.apply(this,i);return n.cache=a.set(r,s)||a,s};return n.cache=new(Ps.Cache||Wn),n}function Os(e){if("function"!=typeof e)throw new Ce(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ps.Cache=Wn;var js=vr((function(e,t){var n=(t=1==t.length&&zs(t[0])?Dt(t[0],Gt(aa())):Dt(mi(t,1),Gt(aa()))).length;return qi((function(i){for(var r=-1,a=vn(i.length,n);++r=t})),Hs=Ei(function(){return arguments}())?Ei:function(e){return Qs(e)&&Oe.call(e,"callee")&&!$e.call(e,"callee")},zs=i.isArray,Us=vt?Gt(vt):function(e){return Qs(e)&&ki(e)==D};function Bs(e){return null!=e&&Xs(e.length)&&!Gs(e)}function Ws(e){return Qs(e)&&Bs(e)}var $s=gt||ml,qs=yt?Gt(yt):function(e){return Qs(e)&&ki(e)==y};function Ks(e){if(!Qs(e))return!1;var t=ki(e);return t==b||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!no(e)}function Gs(e){if(!Zs(e))return!1;var t=ki(e);return t==_||t==w||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Js(e){return"number"==typeof e&&e==po(e)}function Xs(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}function Zs(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Qs(e){return null!=e&&"object"==typeof e}var eo=bt?Gt(bt):function(e){return Qs(e)&&ca(e)==M};function to(e){return"number"==typeof e||Qs(e)&&ki(e)==k}function no(e){if(!Qs(e)||ki(e)!=S)return!1;var t=Be(e);if(null===t)return!0;var n=Oe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Pe.call(n)==Fe}var io=_t?Gt(_t):function(e){return Qs(e)&&ki(e)==L},ro=wt?Gt(wt):function(e){return Qs(e)&&ca(e)==C};function ao(e){return"string"==typeof e||!zs(e)&&Qs(e)&&ki(e)==T}function so(e){return"symbol"==typeof e||Qs(e)&&ki(e)==E}var oo=Mt?Gt(Mt):function(e){return Qs(e)&&Xs(e.length)&&!!rt[ki(e)]},lo=Ur(Ii),uo=Ur((function(e,t){return e<=t}));function co(e){if(!e)return[];if(Bs(e))return ao(e)?cn(e):Lr(e);if(Ge&&e[Ge])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ge]());var t=ca(e);return(t==M?an:t==C?ln:Vo)(e)}function ho(e){return e?(e=mo(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function po(e){var t=ho(e),n=t%1;return t==t?n?t-n:t:0}function fo(e){return e?ai(po(e),0,p):0}function mo(e){if("number"==typeof e)return e;if(so(e))return h;if(Zs(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Zs(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var n=fe.test(e);return n||ge.test(e)?lt(e.slice(2),n?2:8):pe.test(e)?h:+e}function go(e){return Cr(e,Do(e))}function vo(e){return null==e?"":sr(e)}var yo=Er((function(e,t){if(_a(t)||Bs(t))Cr(t,Ao(t),e);else for(var n in t)Oe.call(t,n)&&Qn(e,n,t[n])})),bo=Er((function(e,t){Cr(t,Do(t),e)})),_o=Er((function(e,t,n,i){Cr(t,Do(t),e,i)})),wo=Er((function(e,t,n,i){Cr(t,Ao(t),e,i)})),Mo=Qr(ri),ko=qi((function(e,t){e=Se(e);var n=-1,i=t.length,a=i>2?t[2]:r;for(a&&ga(t[0],t[1],a)&&(i=1);++n1),t})),Cr(e,ta(e),n),i&&(n=si(n,7,Xr));for(var r=t.length;r--;)lr(n,t[r]);return n})),Io=Qr((function(e,t){return null==e?{}:function(e,t){return zi(e,t,(function(t,n){return Lo(e,n)}))}(e,t)}));function Ro(e,t){if(null==e)return{};var n=Dt(ta(e),(function(e){return[e]}));return t=aa(t),zi(e,n,(function(e,n){return t(e,n[0])}))}var Fo=qr(Ao),Yo=qr(Do);function Vo(e){return null==e?[]:Jt(e,Ao(e))}var No=Or((function(e,t,n){return t=t.toLowerCase(),e+(n?Ho(t):t)}));function Ho(e){return Go(vo(e).toLowerCase())}function zo(e){return(e=vo(e))&&e.replace(ye,en).replace(Xe,"")}var Uo=Or((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Bo=Or((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Wo=Pr("toLowerCase"),$o=Or((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),qo=Or((function(e,t,n){return e+(n?" ":"")+Go(t)})),Ko=Or((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Go=Pr("toUpperCase");function Jo(e,t,n){return e=vo(e),(t=n?r:t)===r?function(e){return tt.test(e)}(e)?function(e){return e.match(Qe)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Xo=qi((function(e,t){try{return kt(e,r,t)}catch(e){return Ks(e)?e:new we(e)}})),Zo=Qr((function(e,t){return xt(t,(function(t){t=Ia(t),ii(e,t,Cs(e[t],e))})),e}));function Qo(e){return function(){return e}}var el=Rr(),tl=Rr(!0);function nl(e){return e}function il(e){return Oi("function"==typeof e?e:si(e,1))}var rl=qi((function(e,t){return function(n){return Ti(n,e,t)}})),al=qi((function(e,t){return function(n){return Ti(e,n,t)}}));function sl(e,t,n){var i=Ao(t),r=_i(t,i);null!=n||Zs(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=_i(t,Ao(t)));var a=!(Zs(n)&&"chain"in n&&!n.chain),s=Gs(e);return xt(r,(function(n){var i=t[n];e[n]=i,s&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=Lr(this.__actions__)).push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Pt([this.value()],arguments))})})),e}function ol(){}var ll=Nr(Dt),ul=Nr(Ct),dl=Nr(It);function cl(e){return va(e)?Ut(Ia(e)):function(e){return function(t){return wi(t,e)}}(e)}var hl=zr(),pl=zr(!0);function fl(){return[]}function ml(){return!1}var gl,vl=Vr((function(e,t){return e+t}),0),yl=Wr("ceil"),bl=Vr((function(e,t){return e/t}),1),_l=Wr("floor"),wl=Vr((function(e,t){return e*t}),1),Ml=Wr("round"),kl=Vr((function(e,t){return e-t}),0);return Yn.after=function(e,t){if("function"!=typeof t)throw new Ce(a);return e=po(e),function(){if(--e<1)return t.apply(this,arguments)}},Yn.ary=xs,Yn.assign=yo,Yn.assignIn=bo,Yn.assignInWith=_o,Yn.assignWith=wo,Yn.at=Mo,Yn.before=Ls,Yn.bind=Cs,Yn.bindAll=Zo,Yn.bindKey=Ts,Yn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return zs(e)?e:[e]},Yn.chain=ds,Yn.chunk=function(e,t,n){t=(n?ga(e,t,n):t===r)?1:gn(po(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var s=0,o=0,l=i(ht(a/t));sa?0:a+n),(i=i===r||i>a?a:po(i))<0&&(i+=a),i=n>i?0:fo(i);n>>0)?(e=vo(e))&&("string"==typeof t||null!=t&&!io(t))&&!(t=sr(t))&&rn(e)?yr(cn(e),0,n):e.split(t,n):[]},Yn.spread=function(e,t){if("function"!=typeof e)throw new Ce(a);return t=null==t?0:gn(po(t),0),qi((function(n){var i=n[t],r=yr(n,0,t);return i&&Pt(r,i),kt(e,this,r)}))},Yn.tail=function(e){var t=null==e?0:e.length;return t?er(e,1,t):[]},Yn.take=function(e,t,n){return e&&e.length?er(e,0,(t=n||t===r?1:po(t))<0?0:t):[]},Yn.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?er(e,(t=i-(t=n||t===r?1:po(t)))<0?0:t,i):[]},Yn.takeRightWhile=function(e,t){return e&&e.length?dr(e,aa(t,3),!1,!0):[]},Yn.takeWhile=function(e,t){return e&&e.length?dr(e,aa(t,3)):[]},Yn.tap=function(e,t){return t(e),e},Yn.throttle=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new Ce(a);return Zs(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Es(e,t,{leading:i,maxWait:t,trailing:r})},Yn.thru=cs,Yn.toArray=co,Yn.toPairs=Fo,Yn.toPairsIn=Yo,Yn.toPath=function(e){return zs(e)?Dt(e,Ia):so(e)?[e]:Lr(ja(vo(e)))},Yn.toPlainObject=go,Yn.transform=function(e,t,n){var i=zs(e),r=i||$s(e)||oo(e);if(t=aa(t,4),null==n){var a=e&&e.constructor;n=r?i?new a:[]:Zs(e)&&Gs(a)?Vn(Be(e)):{}}return(r?xt:yi)(e,(function(e,i,r){return t(n,e,i,r)})),n},Yn.unary=function(e){return xs(e,1)},Yn.union=Qa,Yn.unionBy=es,Yn.unionWith=ts,Yn.uniq=function(e){return e&&e.length?or(e):[]},Yn.uniqBy=function(e,t){return e&&e.length?or(e,aa(t,2)):[]},Yn.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?or(e,r,t):[]},Yn.unset=function(e,t){return null==e||lr(e,t)},Yn.unzip=ns,Yn.unzipWith=is,Yn.update=function(e,t,n){return null==e?e:ur(e,t,mr(n))},Yn.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:ur(e,t,mr(n),i)},Yn.values=Vo,Yn.valuesIn=function(e){return null==e?[]:Jt(e,Do(e))},Yn.without=rs,Yn.words=Jo,Yn.wrap=function(e,t){return Is(mr(t),e)},Yn.xor=as,Yn.xorBy=ss,Yn.xorWith=os,Yn.zip=ls,Yn.zipObject=function(e,t){return pr(e||[],t||[],Qn)},Yn.zipObjectDeep=function(e,t){return pr(e||[],t||[],Ji)},Yn.zipWith=us,Yn.entries=Fo,Yn.entriesIn=Yo,Yn.extend=bo,Yn.extendWith=_o,sl(Yn,Yn),Yn.add=vl,Yn.attempt=Xo,Yn.camelCase=No,Yn.capitalize=Ho,Yn.ceil=yl,Yn.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=mo(n))==n?n:0),t!==r&&(t=(t=mo(t))==t?t:0),ai(mo(e),t,n)},Yn.clone=function(e){return si(e,4)},Yn.cloneDeep=function(e){return si(e,5)},Yn.cloneDeepWith=function(e,t){return si(e,5,t="function"==typeof t?t:r)},Yn.cloneWith=function(e,t){return si(e,4,t="function"==typeof t?t:r)},Yn.conformsTo=function(e,t){return null==t||oi(e,t,Ao(t))},Yn.deburr=zo,Yn.defaultTo=function(e,t){return null==e||e!=e?t:e},Yn.divide=bl,Yn.endsWith=function(e,t,n){e=vo(e),t=sr(t);var i=e.length,a=n=n===r?i:ai(po(n),0,i);return(n-=t.length)>=0&&e.slice(n,a)==t},Yn.eq=Ys,Yn.escape=function(e){return(e=vo(e))&&K.test(e)?e.replace($,tn):e},Yn.escapeRegExp=function(e){return(e=vo(e))&&ne.test(e)?e.replace(te,"\\$&"):e},Yn.every=function(e,t,n){var i=zs(e)?Ct:hi;return n&&ga(e,t,n)&&(t=r),i(e,aa(t,3))},Yn.find=fs,Yn.findIndex=Ha,Yn.findKey=function(e,t){return Ft(e,aa(t,3),yi)},Yn.findLast=ms,Yn.findLastIndex=za,Yn.findLastKey=function(e,t){return Ft(e,aa(t,3),bi)},Yn.floor=_l,Yn.forEach=gs,Yn.forEachRight=vs,Yn.forIn=function(e,t){return null==e?e:gi(e,aa(t,3),Do)},Yn.forInRight=function(e,t){return null==e?e:vi(e,aa(t,3),Do)},Yn.forOwn=function(e,t){return e&&yi(e,aa(t,3))},Yn.forOwnRight=function(e,t){return e&&bi(e,aa(t,3))},Yn.get=xo,Yn.gt=Vs,Yn.gte=Ns,Yn.has=function(e,t){return null!=e&&ha(e,t,xi)},Yn.hasIn=Lo,Yn.head=Ba,Yn.identity=nl,Yn.includes=function(e,t,n,i){e=Bs(e)?e:Vo(e),n=n&&!i?po(n):0;var r=e.length;return n<0&&(n=gn(r+n,0)),ao(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&Vt(e,t,n)>-1},Yn.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:po(n);return r<0&&(r=gn(i+r,0)),Vt(e,t,r)},Yn.inRange=function(e,t,n){return t=ho(t),n===r?(n=t,t=0):n=ho(n),function(e,t,n){return e>=vn(t,n)&&e=-9007199254740991&&e<=c},Yn.isSet=ro,Yn.isString=ao,Yn.isSymbol=so,Yn.isTypedArray=oo,Yn.isUndefined=function(e){return e===r},Yn.isWeakMap=function(e){return Qs(e)&&ca(e)==A},Yn.isWeakSet=function(e){return Qs(e)&&"[object WeakSet]"==ki(e)},Yn.join=function(e,t){return null==e?"":Bt.call(e,t)},Yn.kebabCase=Uo,Yn.last=Ka,Yn.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=i;return n!==r&&(a=(a=po(n))<0?gn(i+a,0):vn(a,i-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,a):Yt(e,Ht,a,!0)},Yn.lowerCase=Bo,Yn.lowerFirst=Wo,Yn.lt=lo,Yn.lte=uo,Yn.max=function(e){return e&&e.length?pi(e,nl,Si):r},Yn.maxBy=function(e,t){return e&&e.length?pi(e,aa(t,2),Si):r},Yn.mean=function(e){return zt(e,nl)},Yn.meanBy=function(e,t){return zt(e,aa(t,2))},Yn.min=function(e){return e&&e.length?pi(e,nl,Ii):r},Yn.minBy=function(e,t){return e&&e.length?pi(e,aa(t,2),Ii):r},Yn.stubArray=fl,Yn.stubFalse=ml,Yn.stubObject=function(){return{}},Yn.stubString=function(){return""},Yn.stubTrue=function(){return!0},Yn.multiply=wl,Yn.nth=function(e,t){return e&&e.length?Ni(e,po(t)):r},Yn.noConflict=function(){return ct._===this&&(ct._=Ye),this},Yn.noop=ol,Yn.now=Ss,Yn.pad=function(e,t,n){e=vo(e);var i=(t=po(t))?dn(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return Hr(pt(r),n)+e+Hr(ht(r),n)},Yn.padEnd=function(e,t,n){e=vo(e);var i=(t=po(t))?dn(e):0;return t&&it){var i=e;e=t,t=i}if(n||e%1||t%1){var a=_n();return vn(e+a*(t-e+ot("1e-"+((a+"").length-1))),t)}return Wi(e,t)},Yn.reduce=function(e,t,n){var i=zs(e)?Ot:Wt,r=arguments.length<3;return i(e,aa(t,4),n,r,di)},Yn.reduceRight=function(e,t,n){var i=zs(e)?jt:Wt,r=arguments.length<3;return i(e,aa(t,4),n,r,ci)},Yn.repeat=function(e,t,n){return t=(n?ga(e,t,n):t===r)?1:po(t),$i(vo(e),t)},Yn.replace=function(){var e=arguments,t=vo(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Yn.result=function(e,t,n){var i=-1,a=(t=gr(t,e)).length;for(a||(a=1,e=r);++ic)return[];var n=p,i=vn(e,p);t=aa(t),e-=p;for(var r=qt(i,t);++n=s)return e;var l=n-dn(i);if(l<1)return i;var u=o?yr(o,0,l).join(""):e.slice(0,l);if(a===r)return u+i;if(o&&(l+=u.length-l),io(a)){if(e.slice(l).search(a)){var d,c=u;for(a.global||(a=xe(a.source,vo(he.exec(a))+"g")),a.lastIndex=0;d=a.exec(c);)var h=d.index;u=u.slice(0,h===r?l:h)}}else if(e.indexOf(sr(a),l)!=l){var p=u.lastIndexOf(a);p>-1&&(u=u.slice(0,p))}return u+i},Yn.unescape=function(e){return(e=vo(e))&&q.test(e)?e.replace(W,pn):e},Yn.uniqueId=function(e){var t=++je;return vo(e)+t},Yn.upperCase=Ko,Yn.upperFirst=Go,Yn.each=gs,Yn.eachRight=vs,Yn.first=Ba,sl(Yn,(gl={},yi(Yn,(function(e,t){Oe.call(Yn.prototype,t)||(gl[t]=e)})),gl),{chain:!1}),Yn.VERSION="4.17.21",xt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Yn[e].placeholder=Yn})),xt(["drop","take"],(function(e,t){zn.prototype[e]=function(n){n=n===r?1:gn(po(n),0);var i=this.__filtered__&&!t?new zn(this):this.clone();return i.__filtered__?i.__takeCount__=vn(n,i.__takeCount__):i.__views__.push({size:vn(n,p),type:e+(i.__dir__<0?"Right":"")}),i},zn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),xt(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=1==n||3==n;zn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:aa(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),xt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");zn.prototype[e]=function(){return this[n](1).value()[0]}})),xt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");zn.prototype[e]=function(){return this.__filtered__?new zn(this):this[n](1)}})),zn.prototype.compact=function(){return this.filter(nl)},zn.prototype.find=function(e){return this.filter(e).head()},zn.prototype.findLast=function(e){return this.reverse().find(e)},zn.prototype.invokeMap=qi((function(e,t){return"function"==typeof e?new zn(this):this.map((function(n){return Ti(n,e,t)}))})),zn.prototype.reject=function(e){return this.filter(Os(aa(e)))},zn.prototype.slice=function(e,t){e=po(e);var n=this;return n.__filtered__&&(e>0||t<0)?new zn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=po(t))<0?n.dropRight(-t):n.take(t-e)),n)},zn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},zn.prototype.toArray=function(){return this.take(p)},yi(zn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=Yn[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);a&&(Yn.prototype[t]=function(){var t=this.__wrapped__,o=i?[1]:arguments,l=t instanceof zn,u=o[0],d=l||zs(t),c=function(e){var t=a.apply(Yn,Pt([e],o));return i&&h?t[0]:t};d&&n&&"function"==typeof u&&1!=u.length&&(l=d=!1);var h=this.__chain__,p=!!this.__actions__.length,f=s&&!h,m=l&&!p;if(!s&&d){t=m?t:new zn(this);var g=e.apply(t,o);return g.__actions__.push({func:cs,args:[c],thisArg:r}),new Hn(g,h)}return f&&m?e.apply(this,o):(g=this.thru(c),f?i?g.value()[0]:g.value():g)})})),xt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Te[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);Yn.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply(zs(r)?r:[],e)}return this[n]((function(n){return t.apply(zs(n)?n:[],e)}))}})),yi(zn.prototype,(function(e,t){var n=Yn[t];if(n){var i=n.name+"";Oe.call(En,i)||(En[i]=[]),En[i].push({name:t,func:n})}})),En[Fr(r,2).name]=[{name:"wrapper",func:r}],zn.prototype.clone=function(){var e=new zn(this.__wrapped__);return e.__actions__=Lr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Lr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Lr(this.__views__),e},zn.prototype.reverse=function(){if(this.__filtered__){var e=new zn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},zn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=zs(e),i=t<0,r=n?e.length:0,a=function(e,t,n){for(var i=-1,r=n.length;++i=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},Yn.prototype.plant=function(e){for(var t,n=this;n instanceof Nn;){var i=Fa(n);i.__index__=0,i.__values__=r,t?a.__wrapped__=i:t=i;var a=i;n=n.__wrapped__}return a.__wrapped__=e,t},Yn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof zn){var t=e;return this.__actions__.length&&(t=new zn(this)),(t=t.reverse()).__actions__.push({func:cs,args:[Za],thisArg:r}),new Hn(t,this.__chain__)}return this.thru(Za)},Yn.prototype.toJSON=Yn.prototype.valueOf=Yn.prototype.value=function(){return cr(this.__wrapped__,this.__actions__)},Yn.prototype.first=Yn.prototype.head,Ge&&(Yn.prototype[Ge]=function(){return this}),Yn}();ct._=fn,(i=function(){return fn}.call(t,n,t,e))===r||(e.exports=i)}.call(this)},2858:(e,t)=>{"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&(n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)};const i=new Uint8Array(16)},2879:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(7247);t.default={form:i.default}},2899:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(51637)),a=n(34600);t.default={lng:"en",nsSeparator:"::",keySeparator:".|.",pluralSeparator:"._.",contextSeparator:"._.",resources:{en:{translation:(0,a.fastCloneDeep)(r.default)}}}},3029:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(57755)),a=i(n(75499)),s=i(n(20046)),o=i(n(77655)),l=i(n(95764)),u=i(n(64480)),d=i(n(14728)),c=i(n(58739)),h=i(n(27836)),p=i(n(93308)),f=i(n(81937)),m=i(n(11319)),g=i(n(49753)),v=i(n(72856)),y=i(n(38068)),b=i(n(50813)),_=i(n(2293)),w=i(n(71394)),M={[`${r.default.operatorKey}`]:r.default,[`${u.default.operatorKey}`]:u.default,[`${a.default.operatorKey}`]:a.default,[`${s.default.operatorKey}`]:s.default,[`${o.default.operatorKey}`]:o.default,[`${l.default.operatorKey}`]:l.default,[`${d.default.operatorKey}`]:d.default,[`${c.default.operatorKey}`]:c.default,[`${h.default.operatorKey}`]:h.default,[`${p.default.operatorKey}`]:p.default,[`${m.default.operatorKey}`]:m.default,[`${f.default.operatorKey}`]:f.default,[`${g.default.operatorKey}`]:g.default,[`${v.default.operatorKey}`]:v.default,[`${y.default.operatorKey}`]:y.default,[`${b.default.operatorKey}`]:b.default,[`${_.default.operatorKey}`]:_.default,[`${w.default.operatorKey}`]:w.default};t.default=M},3035:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[e+"sekundi",e+"sekundit"],m:["ühe minuti","üks minut"],mm:[e+" minuti",e+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[e+" tunni",e+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[e+" kuu",e+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[e+" aasta",e+" aastat"]};return t?r[n][2]?r[n][2]:r[n][1]:i?r[n][0]:r[n][1]}e.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:"%d päeva",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},3234:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.conditionProcessInfo=t.simpleConditionProcessInfo=t.customConditionProcessInfo=t.conditionProcessSync=t.conditionProcess=t.simpleConditionProcessSync=t.simpleConditionProcess=t.customConditionProcessSync=t.customConditionProcess=t.conditionalProcess=t.isConditionallyHidden=t.isSimpleConditionallyHidden=t.isCustomConditionallyHidden=t.hasConditions=void 0;const r=n(84679),a=n(28953),s=n(96690),o=e=>{const{component:t}=e;return!!t.customConditional},l=e=>{const{component:t}=e,{conditional:n}=t;return!!((0,a.isLegacyConditional)(n)||(0,a.isSimpleConditional)(n)||(0,a.isJSONConditional)(n))};t.hasConditions=e=>l(e)||o(e),t.isCustomConditionallyHidden=e=>{if(!o(e))return!1;const{component:t}=e,{customConditional:n}=t;let i=null;return n&&(i=(0,a.checkCustomConditional)(n,e,"show")),null!==i&&!i},t.isSimpleConditionallyHidden=e=>{if(!l(e))return!1;const{component:t}=e,{conditional:n}=t;let i=null;return(0,a.isJSONConditional)(n)&&(i=(0,a.checkJsonConditional)(n,e)),(0,a.isLegacyConditional)(n)&&(i=(0,a.checkLegacyConditional)(n,e)),(0,a.isSimpleConditional)(n)&&(i=(0,a.checkSimpleConditional)(n,e)),null!=i&&!i},t.isConditionallyHidden=e=>(0,t.isCustomConditionallyHidden)(e)||(0,t.isSimpleConditionallyHidden)(e),t.conditionalProcess=(e,n)=>{const{scope:i,path:a,component:o}=e,l=(0,s.getComponentAbsolutePath)(o)||a;if(!(0,t.hasConditions)(e))return;i.conditionals||(i.conditionals=[]);let u=i.conditionals.find((e=>e.path===l));u||(u={path:l,conditionallyHidden:!1},i.conditionals.push(u)),u.conditionallyHidden=u.conditionallyHidden||!0===n(e),u.conditionallyHidden&&(0,r.registerEphermalState)(e.component,"conditionallyHidden",!0)},t.customConditionProcess=e=>i(void 0,void 0,void 0,(function*(){return(0,t.customConditionProcessSync)(e)})),t.customConditionProcessSync=e=>(0,t.conditionalProcess)(e,t.isCustomConditionallyHidden),t.simpleConditionProcess=e=>i(void 0,void 0,void 0,(function*(){return(0,t.simpleConditionProcessSync)(e)})),t.simpleConditionProcessSync=e=>(0,t.conditionalProcess)(e,t.isSimpleConditionallyHidden),t.conditionProcess=e=>i(void 0,void 0,void 0,(function*(){return(0,t.conditionProcessSync)(e)})),t.conditionProcessSync=e=>(0,t.conditionalProcess)(e,t.isConditionallyHidden),t.customConditionProcessInfo={name:"customConditions",process:t.customConditionProcess,processSync:t.customConditionProcessSync,shouldProcess:o},t.simpleConditionProcessInfo={name:"simpleConditions",process:t.simpleConditionProcess,processSync:t.simpleConditionProcessSync,shouldProcess:l},t.conditionProcessInfo={name:"conditions",process:t.conditionProcess,processSync:t.conditionProcessSync,shouldProcess:l}},3300:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
\n \n \n \n
'+(null==(t=e.content)?"":t)+"
\n
\n"}},3322:function(e,t,n){!function(e){"use strict";var t={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,i,r){var a,s=t.words[i];return 1===i.length?"y"===i&&n?"једна година":r||n?s[0]:s[1]:(a=t.correctGrammaticalCase(e,s),"yy"===i&&n&&"годину"===a?e+" година":e+" "+a)}};e.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},3369:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3502:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3508:function(e,t,n){!function(e){"use strict";e.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},3571:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96877)),a=i(n(2543));class s extends r.default{static schema(...e){return r.default.schema({label:"HTML",type:"htmlelement",tag:"div",attrs:[],content:"",input:!1,persistent:!1},...e)}static get builderInfo(){return{title:"HTML Element",group:"layout",icon:"code",weight:0,documentation:"/userguide/form-building/layout-components#html-element",showPreview:!1,schema:s.schema()}}static savedValueTypes(){return[]}get defaultSchema(){return s.schema()}get content(){if(this.builderMode)return this.component.content;if("select"===this.component.content.replace(/(<(\/?[^>]+)>)/g,"").trim())return` ${this.component.content} `;const e=a.default.get(this.root,"submission",{});return this.component.content?this.interpolate(this.sanitize(this.component.content,this.shouldSanitizeValue),{metadata:e.metadata||{},submission:e,data:this.rootValue,row:this.data}):""}get singleTags(){return["br","img","hr"]}checkRefreshOn(e){super.checkRefreshOn(e),!this.builderMode&&this.component.refreshOnChange&&this.element&&!a.default.isUndefined(e)&&(a.default.isBoolean(e)&&e||!a.default.isEmpty(e))&&this.conditionallyVisible(this.data,this.row)&&this.setContent(this.element,this.renderContent())}renderContent(){const e=a.default.get(this.root,"submission",{});return this.renderTemplate("html",{component:this.component,tag:this.component.tag,attrs:(this.component.attrs||[]).map((t=>({attr:t.attr,value:this.interpolate(t.value,{metadata:e.metadata||{},submission:e,data:this.rootValue,row:this.data})}))),content:this.content,singleTags:this.singleTags})}render(){return super.render(this.renderContent())}get dataReady(){var e;return(null===(e=this.root)||void 0===e?void 0:e.submissionReady)||Promise.resolve()}attach(e){return this.loadRefs(e,{html:"single"}),this.dataReady.then((()=>{this.refs.html&&this.setContent(this.refs.html,this.content)})),super.attach(e)}}t.default=s},3577:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543));t.default=class{static get operatorKey(){return""}static get displayedName(){return""}static get requireValue(){return!0}execute(e){return!0}getResult(e={}){const{value:t}=e;return r.default.isArray(t)?r.default.some(t,(t=>this.execute(Object.assign(Object.assign({},e),{value:t})))):this.execute(e)}}},3607:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.component.components.forEach((function(i,r){n+='\n
\n
\n

'+(null==(t=e.t(i.label,{_userInput:!0}))?"":t)+'

\n
\n \n '+(null==(t=e.tabComponents[r])?"":t)+"\n
\n \n"})),n+="\n"}},3650:(e,t,n)=>{var i=n(74335)(Object.keys,Object);e.exports=i},3656:(e,t,n)=>{e=n.nmd(e);var i=n(9325),r=n(89935),a=t&&!t.nodeType&&t,s=a&&e&&!e.nodeType&&e,o=s&&s.exports===a?i.Buffer:void 0,l=(o?o.isBuffer:void 0)||r;e.exports=l},4055:(e,t,n)=>{"use strict";var i=n(22195),r=n(20034),a=i.document,s=r(a)&&r(a.createElement);e.exports=function(e){return s?a.createElement(e):{}}},4182:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(10196),a=i(n(33844));t.default=[{type:"checkbox",input:!0,key:"enableDate",label:"Enable Date Input",weight:0,tooltip:"Enables date input for this field."},{type:"tags",input:!0,key:"datePicker.disable",label:"Disable specific dates or dates by range",placeholder:"(yyyy-MM-dd) or (yyyy-MM-dd - yyyy-MM-dd)",tooltip:"Add dates that you want to blacklist. For example: \n \n 2025-02-21",validate:{custom:"if (_.isEmpty(input)) {\n return true;\n}\nconst dates = _.isArray(input) ?\ninput : input.split(component.delimeter);\nconst isValid = _.every(dates, (data) => \n !!data.match(/\\d{4}-\\d{2}-\\d{2}/g));\nvalid = isValid || 'Invalid date';"},weight:21},{type:"panel",title:"Custom Disabled Dates",collapsible:!0,collapsed:!0,style:{"margin-bottom":"10px"},key:"panel-disable-function",customConditional:()=>!r.Evaluator.noeval||r.Evaluator.protectedEval,components:[a.default.logicVariablesTable("dateThe date object."),{type:"textarea",input:!0,editor:"ace",key:"datePicker.disableFunction",label:"Disabling dates by a function",description:'For more information check out the Docs',weight:22},{type:"htmlelement",tag:"div",content:"

Example

// Disable all weekends
date.getDay() === 0 || date.getDay() === 6
\n "}]},{type:"checkbox",input:!0,key:"datePicker.disableWeekends",label:"Disable weekends",tooltip:"Check to disable weekends",weight:23},{type:"checkbox",input:!0,key:"datePicker.disableWeekdays",label:"Disable weekdays",tooltip:"Check to disable weekdays",weight:23}]},4212:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=i(n(97567)),s=n(29857),o=n(34600);class l extends a.default{constructor(e=void 0,t=void 0){let n,i;e instanceof HTMLElement||t?(n=e,i=t||{}):i=e||{},i.display="wizard",super(n,i),this.pages=[],this.prefixComps=[],this.suffixComps=[],this.components=[],this.originalComponents=[],this.page=0,this.currentPanel=null,this.currentPanels=null,this.currentNextPage=0,this._seenPages=[0],this.subWizards=[],this.allPages=[],this.lastPromise=Promise.resolve(),this.enabledIndex=0,this.editMode=!1,this.originalOptions=r.default.cloneDeep(this.options)}isLastPage(){const e=this.getNextPage();return r.default.isNumber(e)?-1===e:r.default.isNull(e)}getPages(e={}){const{all:t=!1}=e;return(this.hasExtraPages?this.components:this.pages).filter(t?r.default.identity:(e,t)=>this._seenPages.includes(t))}get hasExtraPages(){return!r.default.isEmpty(this.subWizards)}get data(){return super.data}get localData(){var e,t;return(null===(t=null===(e=this.pages[this.page])||void 0===e?void 0:e.root)||void 0===t?void 0:t.submission.data)||this.submission.data}checkConditions(e,t,n){const i=super.checkConditions(e,t,n);return this.establishPages(e),i}set data(e){this._data=e,r.default.each(this.getPages({all:!0}),(e=>{e.data=this.componentContext(e)}))}getComponents(){return this.submitting?this.getPages({all:this.isLastPage()}):super.getComponents()}resetValue(){this.getPages({all:!0}).forEach((e=>e.resetValue())),this.setPristine(!0)}init(){var e;this.options.buttonSettings=r.default.defaults(this.options.buttonSettings,{showPrevious:!0,showNext:!0,showSubmit:!0,showCancel:!this.options.readOnly}),this.options.breadcrumbSettings=r.default.defaults(this.options.breadcrumbSettings,{clickable:!0}),this.options.allowPrevious=this.options.allowPrevious||!1,this.page=0;const t=super.init();return this.setComponentSchema(),(null===(e=this.pages)||void 0===e?void 0:e[this.page])&&(this.component=this.pages[this.page].component),this.on("subWizardsUpdated",(e=>{const t=this.subWizards.find((t=>{var n;return(null==e?void 0:e.id)&&(null===(n=t.subForm)||void 0===n?void 0:n.id)===(null==e?void 0:e.id)}));this.subWizards.length&&t&&(t.subForm.setValue(e._submission,{},!0),this.establishPages(),this.redraw())})),t}get wizardKey(){return`wizard-${this.id}`}get wizard(){return this.form}set wizard(e){this.setForm(e)}get buttons(){const e={};return[{name:"cancel",method:"cancel"},{name:"previous",method:"prevPage"},{name:"next",method:"nextPage"},{name:"submit",method:"submit"}].forEach((t=>{this.hasButton(t.name)&&(e[t.name]=t)})),e}get buttonOrder(){var e,t,n;return null!==(n=null===(t=null===(e=this.options.properties)||void 0===e?void 0:e.wizardButtonOrder)||void 0===t?void 0:t.toLowerCase().split(", "))&&void 0!==n?n:["cancel","previous","next","submit"]}get renderContext(){var e,t;return{disableWizardSubmit:this.form.disableWizardSubmit,wizardKey:this.wizardKey,isBreadcrumbClickable:this.isBreadcrumbClickable(),isSubForm:!!this.parent&&"wizard"===!(null===(t=null===(e=this.root)||void 0===e?void 0:e.component)||void 0===t?void 0:t.type),panels:this.allPages.length?this.allPages.map((e=>e.component)):this.pages.map((e=>e.component)),buttons:this.buttons,currentPage:this.page,buttonOrder:this.buttonOrder}}prepareNavigationSettings(e){const t=this.currentPanel;return t&&t.buttonSettings&&Object.keys(t.buttonSettings).forEach((()=>{Object.keys(e.buttons).forEach((n=>{(void 0!==t.buttonSettings[n]&&!t.buttonSettings[n]||e.isSubForm)&&(e.buttons[n]=null)}))})),this.renderTemplate("wizardNav",e)}prepareHeaderSettings(e,t){var n;return"none"===(null===(n=this.currentPanel)||void 0===n?void 0:n.breadcrumb)||"none"===r.default.get(this.form,"settings.wizardBreadcrumbsType","")||e.isSubForm?null:this.renderTemplate(t,e)}render(){const e=this.renderContext;this.component.key&&e.panels.map((t=>{t.key===this.component.key&&(this.currentPanel=t,e.wizardPageTooltip=this.getFormattedTooltip(t.tooltip))}));const t=this.prepareNavigationSettings(e),n=`wizardHeader${r.default.get(this.form,"settings.wizardHeaderType","")}`,i=r.default.get(this.form,"settings.wizardHeaderLocation","left"),a=this.prepareHeaderSettings(e,n);return this.renderTemplate("wizard",Object.assign(Object.assign({},e),{className:super.getClassName(),wizardHeader:a,wizardHeaderType:n,wizardHeaderLocation:i,wizardNav:t,components:this.renderComponents([...this.prefixComps,...this.currentPage.components,...this.suffixComps])}),this.builderMode?"builder":"form")}redrawNavigation(){if(this.element){let e=this.element.querySelector(`#${this.wizardKey}-nav`);e&&(this.detachNav(),e.outerHTML=this.renderTemplate("wizardNav",this.renderContext),e=this.element.querySelector(`#${this.wizardKey}-nav`),this.loadRefs(e,{[`${this.wizardKey}-cancel`]:"single",[`${this.wizardKey}-previous`]:"single",[`${this.wizardKey}-next`]:"single",[`${this.wizardKey}-submit`]:"single"}),this.attachNav())}}redrawHeader(){if(this.element){let e=this.element.querySelector(`#${this.wizardKey}-header`);e&&(this.detachHeader(),e.outerHTML=this.renderTemplate(`wizardHeader${r.default.get(this.form,"settings.wizardHeaderType","")}`,this.renderContext),e=this.element.querySelector(`#${this.wizardKey}-header`),this.loadRefs(e,{[`${this.wizardKey}-link`]:"multiple",[`${this.wizardKey}-tooltip`]:"multiple"}),this.attachHeader())}}attach(e){var t;this.setElement(e),this.loadRefs(e,{[this.wizardKey]:"single",[`${this.wizardKey}-header`]:"single",[`${this.wizardKey}-cancel`]:"single",[`${this.wizardKey}-previous`]:"single",[`${this.wizardKey}-next`]:"single",[`${this.wizardKey}-submit`]:"single",[`${this.wizardKey}-link`]:"multiple",[`${this.wizardKey}-tooltip`]:"multiple"}),!this.options.readOnly&&!this.editMode||this.enabledIndex||(this.enabledIndex=(null===(t=this.pages)||void 0===t?void 0:t.length)-1),this.hook("attachWebform",e,this);const n=this.attachComponents(this.refs[this.wizardKey],[...this.prefixComps,...this.currentPage.components,...this.suffixComps]);return this.attachNav(),this.attachHeader(),n.then((()=>{this.emit("render",{component:this.currentPage,page:this.page}),this.component.scrollToTop&&this.scrollPageToTop()}))}scrollPageToTop(){var e;const t=null!==(e=this.refs[`${this.wizardKey}-header`])&&void 0!==e?e:this.refs[this.wizardKey];t&&("scrollIntoView"in t?t.scrollIntoView(!0):this.scrollIntoView(t))}isBreadcrumbClickable(){let e=null;return this.pages.map((t=>{r.default.isEqual(this.currentPage.component,t.component)&&(e=t)})),r.default.has(e,"component.breadcrumbClickable")?r.default.get(e,"component.breadcrumbClickable"):!r.default.has(this.options,"breadcrumbSettings.clickable")||this.options.breadcrumbSettings.clickable}isAllowPrevious(){let e=null;return this.pages.map((t=>{r.default.isEqual(this.currentPage.component,t.component)&&(e=t)})),r.default.get(e.component,"allowPrevious",this.options.allowPrevious)}handleNaviageteOnEnter(e){if(13===e.keyCode){const e=new CustomEvent("click"),t=this.refs[`${this.wizardKey}-${this.buttons.next.name}`];t&&t.dispatchEvent(e)}}handleSaveOnEnter(e){if(13===e.keyCode){const e=new CustomEvent("click"),t=this.refs[`${this.wizardKey}-${this.buttons.submit.name}`];t&&t.dispatchEvent(e)}}attachNav(){this.component.navigateOnEnter&&this.addEventListener(document,"keyup",this.handleNaviageteOnEnter.bind(this)),this.component.saveOnEnter&&this.addEventListener(document,"keyup",this.handleSaveOnEnter.bind(this)),r.default.each(this.buttons,(e=>{const t=this.refs[`${this.wizardKey}-${e.name}`];this.addEventListener(t,"click",(n=>{n.preventDefault(),t.setAttribute("disabled","disabled"),this.setLoading(t,!0),this[e.method]().then((()=>{t.removeAttribute("disabled"),this.setLoading(t,!1)})).catch((()=>{t.removeAttribute("disabled"),this.setLoading(t,!1)}))}))}))}emitWizardPageSelected(e){this.emit("wizardPageSelected",this.pages[e],e)}attachHeader(){var e;const t=this.isAllowPrevious();this.attachTooltips(this.refs[`${this.wizardKey}-tooltip`],this.currentPanel.tooltip),(this.isBreadcrumbClickable()||t)&&(null===(e=this.refs[`${this.wizardKey}-link`])||void 0===e||e.forEach(((e,n)=>{(!t||n<=this.enabledIndex)&&this.addEventListener(e,"click",(e=>(this.emit("wizardNavigationClicked",this.pages[n]),e.preventDefault(),this.setPage(n).then((()=>{this.emitWizardPageSelected(n)})))))})))}detachNav(){this.component.navigateOnEnter&&this.removeEventListener(document,"keyup",this.handleNaviageteOnEnter.bind(this)),this.component.saveOnEnter&&this.removeEventListener(document,"keyup",this.handleSaveOnEnter.bind(this)),r.default.each(this.buttons,(e=>{this.removeEventListener(this.refs[`${this.wizardKey}-${e.name}`],"click")}))}detachHeader(){this.refs[`${this.wizardKey}-link`]&&this.refs[`${this.wizardKey}-link`].forEach((e=>{this.removeEventListener(e,"click")}))}transformPages(){const e=[],t=this.getSortedComponents(this);let n=[];this.allPages=[];const i=(e,t,a=!0)=>{const s=[],l=["datagrid","editgrid","dynamicWizard"],u=(null==e?void 0:e.subForm)?this.getSortedComponents(e.subForm):(null==e?void 0:e.components)||[],d=u.filter((e=>e._visible)).filter((e=>!l.includes(e.component.type)&&("form"!==e.type||e.isNestedWizard))),c=u.filter((e=>{var t;return"wizard"!==(null===(t=e.subForm)||void 0===t?void 0:t._form.display)}));let h=!1;if((0,o.eachComponent)(d,(e=>{if(e&&e.component&&("panel"===e.component.type&&(null==e?void 0:e.parent.wizard)&&!i(e,t,!1)&&(a&&(this.setRootPanelId(e),s.push(e)),h=!0),e.isNestedWizard&&e.subForm)){const t=i(e,s,a);h||(h=t)}}),!0),"panel"===e.component.type&&(!h&&a&&(this.setRootPanelId(e),t.push(e)),h&&c.length)){const t=r.default.clone(e);t.components=c,this.setRootPanelId(t),n.push(t)}return a&&(t.push(...n,...s),n=[]),h};t.forEach((t=>{t.visible&&i(t,e)}),[]),this.localRoot&&this.id===this.localRoot.id&&e.forEach(((e,t)=>{e.eachComponent((e=>{e.page=t}))})),this.allPages=e}getSortedComponents({components:e,originalComponents:t}){const n=[],i=[];return e&&e.length&&e.map((e=>{"panel"===e.component.type&&(i[e.component.key||e.component.title]=e)})),null==t||t.forEach((e=>{e.key||(e.key=e.title),i[e.key]&&n.push(i[e.key])})),n}findRootPanel(e){var t;return(null===(t=e.parent)||void 0===t?void 0:t.parent)?this.findRootPanel(e.parent):e}setRootPanelId(e){var t;if(e.rootPanelId&&e.rootPanelId!==e.id)return;const n=(null===(t=e.parent)||void 0===t?void 0:t.parent)?this.findRootPanel(e.parent):e;e.rootPanelId=n.id}establishPages(e=this.data){this.pages=[],this.prefixComps=[],this.suffixComps=[];const t=[],n={},i=Object.assign(Object.assign({},r.default.clone(this.options)),this.parent?{root:this}:{});return this.components&&this.components.length&&this.components.forEach((e=>{"panel"===e.component.type&&(n[e.component.key||e.component.title]=e)})),this.originalComponents&&this.originalComponents.forEach((r=>{if("panel"===r.type){r.key||(r.key=r.title);let a=n[r.key];const s=this.shouldForceShow(r),l=this.shouldForceHide(r);let u=a?a.visible:(0,o.checkCondition)(r,e,e,this.component,this)&&!r.hidden;s?u=!0:l&&(u=!1),u&&(t.push(r),a&&this.pages.push(a)),!a&&u&&(a=this.createComponent(r,i),a.visible=u,this.pages.push(a),a.eachComponent((e=>{e.page=this.pages.length-1})))}else"button"!==r.type&&(this.pages.length?this.suffixComps.push(this.createComponent(r,i)):this.prefixComps.push(this.createComponent(r,i)))})),this.pages.length&&this.emit("pagesChanged"),this.transformPages(),this.allPages&&this.allPages.length&&this.updatePages(),t}updatePages(){this.pages=this.allPages}addComponents(){this.establishPages()}setPage(e){if(e===this.page)return Promise.resolve();if(e>=0&&e{var n,i;return e.id===(null===(i=null===(n=this.pages)||void 0===n?void 0:n[t])||void 0===i?void 0:i.rootPanelId)})))}return this._seenPages.includes(t)||(this._seenPages=this._seenPages.concat(t)),this.redraw().then((()=>{this.checkData(this.submission.data);const e=this.submitted?this.validate(this.localData,{dirty:!0}):this.validateCurrentPage();this.alert&&this.showErrors(e,!0,!0)})),Promise.resolve()}return this.pages.length?Promise.reject("Page not found"):(this.redraw(),Promise.resolve())}pageFieldLogic(e){var t;(null===(t=this.pages)||void 0===t?void 0:t[e])&&(this.component=this.pages[e].component,this.originalComponent=(0,o.fastCloneDeep)(this.component),this.fieldLogic(this.data),this.disabled=this.shouldDisabled)}get currentPage(){return this.pages&&this.pages.length>=this.page?this.pages[this.page]:{components:[]}}getNextPage(){var e;if(null===(e=this.pages)||void 0===e?void 0:e[this.page]){const e=this.submission.data,t=this.pages[this.page].component;if(t){const n=this.pages.length>this.page+1&&!this.showAllErrors?this.page+1:-1;if(t.nextPage){const i=this.evaluate(t.nextPage,{next:n,data:e,page:n,form:t},"next");if(null===i)return this.currentNextPage=null,null;const r=parseInt(i,10);return!isNaN(parseInt(r,10))&&isFinite(r)?(this.currentNextPage=r,r):(this.currentNextPage=this.getPageIndexByKey(i),this.currentNextPage)}return this.currentNextPage=n,n}this.currentNextPage=null}return null}getPreviousPage(){return this.page-1}beforeSubmit(){const e=this.getPages();return Promise.all(e.map((e=>(e.options.beforeSubmit=!0,e.beforeSubmit()))))}beforePage(e){return new Promise(((t,n)=>{this.hook(e?"beforeNext":"beforePrev",this.currentPage,this.submission,(i=>{i&&(this.showErrors(i,!0),n(i));const r=this.currentPage;r?r.beforePage(e).then(t).catch(n):t()}))}))}emitNextPage(){this.emit("nextPage",{page:this.page,submission:this.submission})}nextPage(){if(this.options.readOnly)return this.beforePage(!0).then((()=>this.setPage(this.getNextPage()).then((()=>{this.emitNextPage()}))));const e=this.validateCurrentPage({dirty:!0}),t=this.submitted?this.validate(this.localData,{dirty:!0}):e;return 0===e.length?(this.checkData(this.submission.data),this.beforePage(!0).then((()=>this.setPage(this.getNextPage()).then((()=>{!this.options.readOnly&&!this.editMode&&this.enabledIndexe.setPristine(!1))),this.scrollIntoView(this.element,!0),Promise.reject(this.showErrors(t,!0)))}validateCurrentPage(e={}){var t,n;const i=null===(t=this.currentPage)||void 0===t?void 0:t.components.map((e=>e.component));return null===(n=this.currentPage)||void 0===n?void 0:n.parent.validateComponents(i,this.currentPage.parent.data,e)}emitPrevPage(){this.emit("prevPage",{page:this.page,submission:this.submission})}prevPage(){return this.beforePage().then((()=>this.setPage(this.getPreviousPage()).then((()=>{this.emitPrevPage()}))))}cancel(e){return this.options.readOnly?Promise.resolve():super.cancel(e)?(this.setPristine(!0),this.setPage(0).then((()=>(this.enabledIndex&&(this.enabledIndex=0),this.onChange({resetValue:!0}),this.redraw(),this.page)))):Promise.resolve()}getPageIndexByKey(e){let t=this.page;return this.pages.forEach(((n,i)=>{if(n.component.key===e)return t=i,!1})),t}get schema(){return this.wizard}setComponentSchema(){const e={};if(this.originalComponents=[],this.component.components.map((t=>{"panel"===t.type&&(t.key=(0,o.uniqueKey)(e,t.key||"panel"),e[t.key]=!0,this.wizard.full?(this.options.show=this.options.show||{},this.options.show[t.key]=!0):Object.prototype.hasOwnProperty.call(this.wizard,"full")&&!r.default.isEqual(this.originalOptions.show,this.options.show)&&(this.options.show=Object.assign({},this.originalOptions.show||{}))),this.originalComponents.push(r.default.clone(t))})),!Object.keys(e).length){const e={type:"panel",title:"Page 1",label:"Page 1",key:"page1",components:this.component.components};this.component.components=[e],this.originalComponents.push(r.default.clone(e))}}setForm(e,t={}){if(e)return super.setForm(e,t)}onSetForm(e,t){this.component.components=(this.parent?t.components:e.components)||[],this.setComponentSchema()}setEditMode(e){this.editMode||!e._id||this.options.readOnly||(this.editMode=!0,this.redraw())}setValue(e,t={},n){const i=this.getPages({all:!0}).reduce(((n,i)=>this.setNestedValue(i,e.data,t,n)||n),!1);return this.mergeData(this.data,e.data),i&&this.pageFieldLogic(this.page),e.data=this.data,this._submission=e,n||this.establishPages(e.data),this.setEditMode(e),i}isClickable(e,t){return this.page!==t&&(0,o.firstNonNil)([r.default.get(e,"breadcrumbClickable"),this.options.breadcrumbSettings.clickable])}hasButton(e,t=this.getNextPage()){const{previous:n=this.options.buttonSettings.showPrevious,cancel:i=this.options.buttonSettings.showCancel,submit:a=this.options.buttonSettings.showSubmit,next:s=this.options.buttonSettings.showNext}=r.default.get(this.currentPage,"component.buttonSettings",{});switch(e){case"previous":return n&&this.getPreviousPage()>-1;case"next":return s&&null!==t&&-1!==t;case"cancel":return i&&!this.options.readOnly;case"submit":return a&&!this.options.readOnly&&(null===t||this.page===this.pages.length-1);default:return!0}}pageId(e){return e.key?`${e.key}-${e.title}`:e.components&&e.components.length>0?this.pageId(e.components[0]):e.title}onChange(e,t,n,i){var a,s;super.onChange(e,t,n,i);const o=this.submitted?this.validate(this.localData,{dirty:!0}):this.validateCurrentPage();let l,u;this.alert&&this.showErrors(o,!0,!0);const d=this.currentNextPage;this.hasExtraPages?(l=this.pages.map((e=>e.component.key)),this.establishPages(),u=this.pages.map((e=>e.component.key))):(l=this.currentPanels||this.pages.map((e=>e.component.key)),u=this.establishPages().map((e=>e.key)),this.currentPanels=u,(null===(a=this.currentPanel)||void 0===a?void 0:a.key)&&(null===(s=this.currentPanels)||void 0===s?void 0:s.length)&&this.setPage(this.currentPanels.findIndex((e=>e===this.currentPanel.key)))),(!r.default.isEqual(u,l)||e&&e.fromSubmission)&&this.redrawHeader(),d!==this.getNextPage()&&this.redrawNavigation(),this.options.readOnly&&(this.prefixComps.length||this.suffixComps.length)&&this.redraw()}redraw(){var e,t;return(null===(t=null===(e=this.parent)||void 0===e?void 0:e.component)||void 0===t?void 0:t.modalEdit)?this.parent.redraw():super.redraw()}rebuild(){const e=this.page;return super.rebuild().then((()=>this.setPage(e)))}checkValidity(e,t,n,i,r=[]){return this.checkCondition(n,e)?(!i||this.isLastPage()?this.getComponents():this.currentPage.components).reduce(((a,s)=>s.checkValidity(e,t,n,i,r)&&a),!0):(this.setCustomValidity(""),!0)}get errors(){return this.isLastPage()||this.submitted?super.errors:this.currentPage.errors}focusOnComponent(e){const t=this.getComponent(e);if(t){let n=t.parent;for(;!(n.parent instanceof l);)n=n.parent;const i=this.pages.findIndex((e=>e.id===n.id));if(i>=0){const t=this.pages[i];if(t&&t!==this.currentPage)return this.setPage(i).then((()=>{this.showErrors(this.validate(this.localData,{dirty:!0})),super.focusOnComponent(e)}))}}return super.focusOnComponent(e)}}t.default=l,l.setBaseUrl=s.Formio.setBaseUrl,l.setApiUrl=s.Formio.setApiUrl,l.setAppUrl=s.Formio.setAppUrl},4490:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"placeholder",ignore:!0},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:405,input:!0,clearOnHide:!1,customConditional:e=>!e.data.enableRowGroups,calculateValue:e=>!!e.data.enableRowGroups||e.data.disableAddingRemovingRows},{weight:406,type:"textarea",input:!0,key:"conditionalAddButton",label:"Conditional Add Button",placeholder:"show = ...",tooltip:"Specify condition when Add Button should be displayed.",editor:"ace",as:"javascript",wysiwyg:{minLines:3}},{type:"checkbox",label:"Allow Reorder",key:"reorder",weight:407,input:!0},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:e=>!e.data.disableAddingRemovingRows},{type:"select",label:"Add Another Position",key:"addAnotherPosition",dataSrc:"values",tooltip:"Position for Add Another button with respect to Data Grid Array.",defaultValue:"bottom",input:!0,data:{values:[{label:"Top",value:"top"},{label:"Bottom",value:"bottom"},{label:"Both",value:"both"}]},weight:411,customConditional:e=>!e.data.disableAddingRemovingRows},{type:"checkbox",label:"Equal column width",key:"layoutFixed",weight:430,input:!0},{key:"enableRowGroups",type:"checkbox",label:"Enable Row Groups",weight:440,input:!0},{label:"Groups",disableAddingRemovingRows:!1,defaultOpen:!1,addAnother:"",addAnotherPosition:"bottom",mask:!1,tableView:!0,alwaysEnabled:!1,type:"datagrid",input:!0,key:"rowGroups",reorder:!0,components:[{label:"Label",allowMultipleMasks:!1,showWordCount:!1,showCharCount:!1,tableView:!0,alwaysEnabled:!1,type:"textfield",input:!0,key:"label",widget:{type:""},row:"0-0"},{label:"Number of Rows",mask:!1,tableView:!0,alwaysEnabled:!1,type:"number",input:!0,key:"numberOfRows",row:"0-1"}],weight:441,conditional:{json:{var:"data.enableRowGroups"}}},{label:"Hide Group on Header Click",type:"checkbox",input:!0,key:"groupToggle",weight:442,conditional:{json:{var:"data.enableRowGroups"}}},{label:"Initialize Empty",type:"checkbox",input:!0,key:"initEmpty",tooltip:"The DataGrid will have no visible rows when initialized.",weight:450}]},4495:(e,t,n)=>{"use strict";var i=n(39519),r=n(79039),a=n(22195).String;e.exports=!!Object.getOwnPropertySymbols&&!r((function(){var e=Symbol("symbol detection");return!a(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},4509:(e,t,n)=>{var i=n(12651);e.exports=function(e){return i(this,e).has(e)}},4582:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0},{key:"spellcheck",ignore:!0},{type:"textfield",input:!0,weight:310,key:"prefix",label:"prefix",tooltip:"Specify the prefix symbol after the component (e.g.: USD, EUR)"},{type:"textfield",input:!0,weight:320,key:"suffix",label:"suffix",tooltip:"Specify the suffix symbol after the component (e.g.: USD, EUR)."}]},4664:(e,t,n)=>{var i=n(79770),r=n(63345),a=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,o=s?function(e){return null==e?[]:(e=Object(e),i(s(e),(function(t){return a.call(e,t)})))}:r;e.exports=o},4769:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n"}},4901:(e,t,n)=>{var i=n(72552),r=n(30294),a=n(40346),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,e.exports=function(e){return a(e)&&r(e.length)&&!!s[i(e)]}},5292:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(64142));t.default=r.default},5426:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponent=void 0;const i=n(96690);t.eachComponent=function e(t,n,r,a="",s){t&&t.forEach((o=>{if(!o)return;const l=(0,i.componentInfo)(o);let u=!1;s&&(Object.defineProperty(o,"parent",{enumerable:!1,writable:!0,value:JSON.parse(JSON.stringify(s))}),Object.defineProperty(o.parent,"parent",{enumerable:!1,writable:!0,value:s.parent}),Object.defineProperty(o.parent,"path",{enumerable:!1,writable:!0,value:s.path}),delete o.parent.components,delete o.parent.componentMap,delete o.parent.columns,delete o.parent.rows);const d=(0,i.componentPath)(o,a);(r||o.tree||!l.layout)&&(u=!!n(o,d,t,s)),u||(l.hasColumns?o.columns.forEach((t=>e(t.components,n,r,a,s?o:null))):l.hasRows?o.rows.forEach((t=>{Array.isArray(t)&&t.forEach((t=>e(t.components,n,r,a,s?o:null)))})):l.hasComps&&e(o.components,n,r,(0,i.componentFormPath)(o,a,d),s?o:null))}))}},5427:(e,t,n)=>{"use strict";var i=n(62130),r=n(99046),a=n(53541),s=document,o=s.documentElement;function l(e,t,i,a){n.g.navigator.pointerEnabled?r[t](e,{mouseup:"pointerup",mousedown:"pointerdown",mousemove:"pointermove"}[i],a):n.g.navigator.msPointerEnabled?r[t](e,{mouseup:"MSPointerUp",mousedown:"MSPointerDown",mousemove:"MSPointerMove"}[i],a):(r[t](e,{mouseup:"touchend",mousedown:"touchstart",mousemove:"touchmove"}[i],a),r[t](e,i,a))}function u(e){if(void 0!==e.touches)return e.touches.length;if(void 0!==e.which&&0!==e.which)return e.which;if(void 0!==e.buttons)return e.buttons;var t=e.button;return void 0!==t?1&t?1:2&t?3:4&t?2:0:void 0}function d(e,t){return void 0!==n.g[t]?n.g[t]:o.clientHeight?o[e]:s.body[e]}function c(e,t,n){var i,r=(e=e||{}).className||"";return e.className+=" gu-hide",i=s.elementFromPoint(t,n),e.className=r,i}function h(){return!1}function p(){return!0}function f(e){return e.width||e.right-e.left}function m(e){return e.height||e.bottom-e.top}function g(e){return e.parentNode===s?null:e.parentNode}function v(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||y(e)}function y(e){return!!e&&"false"!==e.contentEditable&&("true"===e.contentEditable||y(g(e)))}function b(e){return e.nextElementSibling||function(){var t=e;do{t=t.nextSibling}while(t&&1!==t.nodeType);return t}()}function _(e,t){var n=function(e){return e.targetTouches&&e.targetTouches.length?e.targetTouches[0]:e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e}(t),i={pageX:"clientX",pageY:"clientY"};return e in i&&!(e in n)&&i[e]in n&&(e=i[e]),n[e]}e.exports=function(e,t){var n,y,w,M,k,S,x,L,C,T,E;1===arguments.length&&!1===Array.isArray(e)&&(t=e,e=[]);var A,D=null,P=t||{};void 0===P.moves&&(P.moves=p),void 0===P.accepts&&(P.accepts=p),void 0===P.invalid&&(P.invalid=function(){return!1}),void 0===P.containers&&(P.containers=e||[]),void 0===P.isContainer&&(P.isContainer=h),void 0===P.copy&&(P.copy=!1),void 0===P.copySortSource&&(P.copySortSource=!1),void 0===P.revertOnSpill&&(P.revertOnSpill=!1),void 0===P.removeOnSpill&&(P.removeOnSpill=!1),void 0===P.direction&&(P.direction="vertical"),void 0===P.ignoreInputTextSelection&&(P.ignoreInputTextSelection=!0),void 0===P.mirrorContainer&&(P.mirrorContainer=s.body);var O=i({containers:P.containers,start:function(e){var t=H(e);t&&z(t)},end:U,cancel:K,remove:q,destroy:function(){I(!0),W({})},canMove:function(e){return!!H(e)},dragging:!1});return!0===P.removeOnSpill&&O.on("over",(function(e){a.rm(e,"gu-hide")})).on("out",(function(e){O.dragging&&a.add(e,"gu-hide")})),I(),O;function j(e){return-1!==O.containers.indexOf(e)||P.isContainer(e)}function I(e){var t=e?"remove":"add";l(o,t,"mousedown",V),l(o,t,"mouseup",W)}function R(e){l(o,e?"remove":"add","mousemove",N)}function F(e){var t=e?"remove":"add";r[t](o,"selectstart",Y),r[t](o,"click",Y)}function Y(e){A&&e.preventDefault()}function V(e){if(S=e.clientX,x=e.clientY,1===u(e)&&!e.metaKey&&!e.ctrlKey){var t=e.target,n=H(t);n&&(A=n,R(),"mousedown"===e.type&&(v(t)?t.focus():e.preventDefault()))}}function N(e){if(A)if(0!==u(e)){if(!(void 0!==e.clientX&&Math.abs(e.clientX-S)<=(P.slideFactorX||0)&&void 0!==e.clientY&&Math.abs(e.clientY-x)<=(P.slideFactorY||0))){if(P.ignoreInputTextSelection){var t=_("clientX",e)||0,i=_("clientY",e)||0;if(v(s.elementFromPoint(t,i)))return}var r=A;R(!0),F(),U(),z(r);var c,h={left:(c=w.getBoundingClientRect()).left+d("scrollLeft","pageXOffset"),top:c.top+d("scrollTop","pageYOffset")};M=_("pageX",e)-h.left,k=_("pageY",e)-h.top,a.add(T||w,"gu-transit"),function(){if(!n){var e=w.getBoundingClientRect();(n=w.cloneNode(!0)).style.width=f(e)+"px",n.style.height=m(e)+"px",a.rm(n,"gu-transit"),a.add(n,"gu-mirror"),P.mirrorContainer.appendChild(n),l(o,"add","mousemove",Z),a.add(P.mirrorContainer,"gu-unselectable"),O.emit("cloned",n,w,"mirror")}}(),Z(e)}}else W({})}function H(e){if(!(O.dragging&&n||j(e))){for(var t=e;g(e)&&!1===j(g(e));){if(P.invalid(e,t))return;if(!(e=g(e)))return}var i=g(e);if(i&&!P.invalid(e,t)&&P.moves(e,i,t,b(e)))return{item:e,source:i}}}function z(e){var t,n;t=e.item,n=e.source,("boolean"==typeof P.copy?P.copy:P.copy(t,n))&&(T=e.item.cloneNode(!0),O.emit("cloned",T,e.item,"copy")),y=e.source,w=e.item,L=C=b(e.item),O.dragging=!0,O.emit("drag",w,y)}function U(){if(O.dragging){var e=T||w;$(e,g(e))}}function B(){A=!1,R(!0),F(!0)}function W(e){if(B(),O.dragging){var t=T||w,i=_("clientX",e)||0,r=_("clientY",e)||0,a=X(c(n,i,r),i,r);a&&(T&&P.copySortSource||!T||a!==y)?$(t,a):P.removeOnSpill?q():K()}}function $(e,t){var n=g(e);T&&P.copySortSource&&t===y&&n.removeChild(w),J(t)?O.emit("cancel",e,y,y):O.emit("drop",e,t,y,C),G()}function q(){if(O.dragging){var e=T||w,t=g(e);t&&t.removeChild(e),O.emit(T?"cancel":"remove",e,t,y),G()}}function K(e){if(O.dragging){var t=arguments.length>0?e:P.revertOnSpill,n=T||w,i=g(n),r=J(i);!1===r&&t&&(T?i&&i.removeChild(T):y.insertBefore(n,L)),r||t?O.emit("cancel",n,y,y):O.emit("drop",n,i,y,C),G()}}function G(){var e=T||w;B(),n&&(a.rm(P.mirrorContainer,"gu-unselectable"),l(o,"remove","mousemove",Z),g(n).removeChild(n),n=null),e&&a.rm(e,"gu-transit"),E&&clearTimeout(E),O.dragging=!1,D&&O.emit("out",e,D,y),O.emit("dragend",e),y=w=T=L=C=E=D=null}function J(e,t){var i;return i=void 0!==t?t:n?C:b(T||w),e===y&&i===L}function X(e,t,n){for(var i=e;i&&!r();)i=g(i);return i;function r(){if(!1===j(i))return!1;var r=Q(i,e),a=ee(i,r,t,n);return!!J(i,a)||P.accepts(w,i,y,a)}}function Z(e){if(n){e.preventDefault();var t=_("clientX",e)||0,i=_("clientY",e)||0,r=t-M,a=i-k;n.style.left=r+"px",n.style.top=a+"px";var s=T||w,o=c(n,t,i),l=X(o,t,i),u=null!==l&&l!==D;(u||null===l)&&(D&&f("out"),D=l,u&&f("over"));var d=g(s);if(l!==y||!T||P.copySortSource){var h,p=Q(l,o);if(null!==p)h=ee(l,p,t,i);else{if(!0!==P.revertOnSpill||T)return void(T&&d&&d.removeChild(s));h=L,l=y}(null===h&&u||h!==s&&h!==b(s))&&(C=h,l.insertBefore(s,h),O.emit("shadow",s,l,y))}else d&&d.removeChild(s)}function f(e){O.emit(e,s,D,y)}}function Q(e,t){for(var n=t;n!==e&&g(n)!==e;)n=g(n);return n===o?null:n}function ee(e,t,n,i){var r,a="horizontal"===P.direction;return t!==e?(r=t.getBoundingClientRect(),s(a?n>r.left+f(r)/2:i>r.top+m(r)/2)):function(){var t,r,s,o=e.children.length;for(t=0;tn)return r;if(!a&&s.top+s.height/2>i)return r}return null}();function s(e){return e?b(t):t}}}},5497:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(53873);t.default={form:i.default}},5558:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87338)),a=i(n(2543));t.default=[{key:"labelPosition",ignore:!0},{key:"labelWidth",ignore:!0},{key:"labelMargin",ignore:!0},{key:"placeholder",ignore:!0},{type:"select",input:!0,weight:350,label:"Shortcut",key:"shortcut",tooltip:"Shortcut for this component.",dataSrc:"custom",valueProperty:"value",customDefaultValue:()=>"",template:"{{ item.label }}",data:{custom:e=>r.default.getAvailableShortcuts(a.default.get(e,"instance.options.editForm",{}),a.default.get(e,"instance.options.editComponent",{}))}},{type:"select",input:!0,key:"inputType",label:"Input Type",tooltip:"This is the input type used for this checkbox.",dataSrc:"values",weight:410,data:{values:[{label:"Checkbox",value:"checkbox"},{label:"Radio",value:"radio"}]}},{type:"textfield",input:!0,key:"name",label:"Radio Key",tooltip:"The key used to trigger the radio button toggle.",weight:420,conditional:{json:{"===":[{var:"data.inputType"},"radio"]}}},{type:"textfield",input:!0,label:"Radio Value",key:"value",tooltip:"The value used with this radio button.",weight:430,conditional:{json:{"===":[{var:"data.inputType"},"radio"]}}}]},5623:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(22595),t),r(n(48645),t),r(n(3234),t),r(n(85650),t),r(n(77172),t),r(n(53026),t),r(n(98206),t),r(n(67098),t),r(n(46712),t),r(n(54610),t),r(n(64283),t),r(n(14780),t),r(n(54958),t),r(n(65360),t)},5784:function(e,t,n){!function(e){"use strict";var t="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function i(e){return e>1&&e<5}function r(e,t,n,r){var a=e+" ";switch(n){case"s":return t||r?"pár sekúnd":"pár sekundami";case"ss":return t||r?a+(i(e)?"sekundy":"sekúnd"):a+"sekundami";case"m":return t?"minúta":r?"minútu":"minútou";case"mm":return t||r?a+(i(e)?"minúty":"minút"):a+"minútami";case"h":return t?"hodina":r?"hodinu":"hodinou";case"hh":return t||r?a+(i(e)?"hodiny":"hodín"):a+"hodinami";case"d":return t||r?"deň":"dňom";case"dd":return t||r?a+(i(e)?"dni":"dní"):a+"dňami";case"M":return t||r?"mesiac":"mesiacom";case"MM":return t||r?a+(i(e)?"mesiace":"mesiacov"):a+"mesiacmi";case"y":return t||r?"rok":"rokom";case"yy":return t||r?a+(i(e)?"roky":"rokov"):a+"rokmi"}}e.defineLocale("sk",{months:t,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:case 4:case 5:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:r,ss:r,m:r,mm:r,h:r,hh:r,d:r,dd:r,M:r,MM:r,y:r,yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},5861:(e,t,n)=>{var i=n(55580),r=n(68223),a=n(32804),s=n(76545),o=n(28303),l=n(72552),u=n(47473),d="[object Map]",c="[object Promise]",h="[object Set]",p="[object WeakMap]",f="[object DataView]",m=u(i),g=u(r),v=u(a),y=u(s),b=u(o),_=l;(i&&_(new i(new ArrayBuffer(1)))!=f||r&&_(new r)!=d||a&&_(a.resolve())!=c||s&&_(new s)!=h||o&&_(new o)!=p)&&(_=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,i=n?u(n):"";if(i)switch(i){case m:return f;case g:return d;case v:return c;case y:return h;case b:return p}return t}),e.exports=_},5939:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
'+(null==(t=e.children)?"":t)+"
\n"}},6154:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateUniqueInfo=t.validateUnique=t.shouldValidate=void 0;const r=n(44508),a=n(47499),s=n(54008);t.shouldValidate=e=>{const{component:t,value:n}=e;return!!t.unique&&!(!n||(0,a.isEmptyObject)(n))},t.validateUnique=e=>i(void 0,void 0,void 0,(function*(){var n;const{value:i,config:a,component:o}=e;if(!(0,t.shouldValidate)(e))return null;if(!a||!a.database)throw new s.ProcessorError("Can't test for unique value without a database config object",e,"validate:validateUnique");try{const t=yield null===(n=a.database)||void 0===n?void 0:n.isUnique(e,i);return"string"==typeof t?new r.FieldError("unique",Object.assign(Object.assign({},e),{component:Object.assign(Object.assign({},o),{conflictId:t})})):!0===t?null:new r.FieldError("unique",e)}catch(t){throw new s.ProcessorError(t.message||t,e,"validate:validateUnique")}})),t.validateUniqueInfo={name:"validateUnique",fullValue:!0,process:t.validateUnique,shouldProcess:t.shouldValidate}},6181:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["çend sanîye","çend sanîyeyan"],ss:[e+" sanîye",e+" sanîyeyan"],m:["deqîqeyek","deqîqeyekê"],mm:[e+" deqîqe",e+" deqîqeyan"],h:["saetek","saetekê"],hh:[e+" saet",e+" saetan"],d:["rojek","rojekê"],dd:[e+" roj",e+" rojan"],w:["hefteyek","hefteyekê"],ww:[e+" hefte",e+" hefteyan"],M:["mehek","mehekê"],MM:[e+" meh",e+" mehan"],y:["salek","salekê"],yy:[e+" sal",e+" salan"]};return t?r[n][0]:r[n][1]}e.defineLocale("ku-kmr",{months:"Rêbendan_Sibat_Adar_Nîsan_Gulan_Hezîran_Tîrmeh_Tebax_Îlon_Cotmeh_Mijdar_Berfanbar".split("_"),monthsShort:"Rêb_Sib_Ada_Nîs_Gul_Hez_Tîr_Teb_Îlo_Cot_Mij_Ber".split("_"),monthsParseExact:!0,weekdays:"Yekşem_Duşem_Sêşem_Çarşem_Pêncşem_În_Şemî".split("_"),weekdaysShort:"Yek_Du_Sê_Çar_Pên_În_Şem".split("_"),weekdaysMin:"Ye_Du_Sê_Ça_Pê_În_Şe".split("_"),meridiem:function(e,t,n){return e<12?n?"bn":"BN":n?"pn":"PN"},meridiemParse:/bn|BN|pn|PN/,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM[a] YYYY[an]",LLL:"Do MMMM[a] YYYY[an] HH:mm",LLLL:"dddd, Do MMMM[a] YYYY[an] HH:mm",ll:"Do MMM[.] YYYY[an]",lll:"Do MMM[.] YYYY[an] HH:mm",llll:"ddd[.], Do MMM[.] YYYY[an] HH:mm"},calendar:{sameDay:"[Îro di saet] LT [de]",nextDay:"[Sibê di saet] LT [de]",nextWeek:"dddd [di saet] LT [de]",lastDay:"[Duh di saet] LT [de]",lastWeek:"dddd[a borî di saet] LT [de]",sameElse:"L"},relativeTime:{future:"di %s de",past:"berî %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,w:t,ww:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(?:yê|ê|\.)/,ordinal:function(e,t){var n=t.toLowerCase();return n.includes("w")||n.includes("m")?e+".":e+function(e){var t=(e=""+e).substring(e.length-1),n=e.length>1?e.substring(e.length-2):"";return 12==n||13==n||"2"!=t&&"3"!=t&&"50"!=n&&"70"!=t&&"80"!=t?"ê":"yê"}(e)},week:{dow:1,doy:4}})}(n(95093))},6268:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(25918);t.default={form:i.default}},6469:(e,t,n)=>{"use strict";var i=n(78227),r=n(2360),a=n(24913).f,s=i("unscopables"),o=Array.prototype;void 0===o[s]&&a(o,s,{configurable:!0,value:r(null)}),e.exports=function(e){o[s][e]=!0}},6561:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{ignore:!0,key:"unique"},{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"textfield",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"textfield",tooltip:"The maximum length requirement this field must meet.",input:!0}]},6947:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-ps",{months:"كانون الثاني_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_تشري الأوّل_تشرين الثاني_كانون الأوّل".split("_"),monthsShort:"ك٢_شباط_آذار_نيسان_أيّار_حزيران_تمّوز_آب_أيلول_ت١_ت٢_ك١".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).split("").reverse().join("").replace(/[١٢](?![\u062a\u0643])/g,(function(e){return n[e]})).split("").reverse().join("").replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(95093))},6980:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},7040:(e,t,n)=>{"use strict";var i=n(4495);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7152:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};function r(e){return null!=e&&"object"===(void 0===e?"undefined":i(e))&&1===e.nodeType&&"object"===i(e.style)&&"object"===i(e.ownerDocument)}},7247:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"Loading...\n"}},7306:function(e,t,n){!function(e){"use strict";e.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(95093))},7309:(e,t,n)=>{var i=n(62006)(n(24713));e.exports=i},7318:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},7360:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(50505),t),r(n(96398),t)},7489:(e,t)=>{"use strict";function n(){return{title:"Base64",name:"base64",uploadFile(e,t){const n=new FileReader;return new Promise(((i,r)=>{n.onload=n=>{const r=n.target.result;i({storage:"base64",name:t,url:r,size:e.size,type:e.type})},n.onerror=()=>r(this),n.readAsDataURL(e)}))},downloadFile:e=>Promise.resolve(e)}}Object.defineProperty(t,"__esModule",{value:!0}),n.title="Base64",t.default=n},7517:(e,t,n)=>{"use strict";n(23792),n(53921);var i=n(19167);e.exports=i.Object.fromEntries},7590:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.withRetries=void 0,t.withRetries=function e(t,i,r=3,a=null){return n(this,void 0,void 0,(function*(){if(!r)throw new Error(a);return t(...i).catch((()=>e(t,i,r-1,a)))}))}},7775:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(37037))&&i.__esModule?i:{default:i};t.default=function(e){if(!(0,r.default)(e))throw TypeError("Invalid UUID");return parseInt(e.slice(14,15),16)}},7927:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96877)),a=i(n(81841)),s=i(n(2543)),o=i(n(30228)),l=n(34600),u=i(n(87422));class d extends a.default{static schema(...e){return r.default.schema({label:"Data Map",key:"dataMap",type:"datamap",clearOnHide:!0,addAnother:"Add Another",disableAddingRemovingRows:!1,keyBeforeValue:!0,valueComponent:{type:"textfield",key:"value",label:"Value",input:!0},input:!0,validate:{maxLength:0,minLength:0}},...e)}static get builderInfo(){return{title:"Data Map",icon:"th-list",group:"data",documentation:"/userguide/form-building/data-components#data-map",showPreview:!1,weight:20,schema:d.schema()}}get schema(){const e=super.schema;return this.components&&this.components.length>0&&(e.valueComponent=this.components[this.components.length-1].schema),s.default.omit(e,"components")}static savedValueTypes(e){return(0,l.getComponentSavedTypes)(e)||[l.componentValueTypes.object]}constructor(e,t,n){super(e,t,n),this.type="datamap"}init(){this.components=[],this.rows=[],this.createRows(),this.visibleColumns={key:!0,[this.valueKey]:!0},this.component.valueComponent.hideLabel=!0}get defaultSchema(){return d.schema()}get emptyValue(){return{}}get dataValue(){return!this.key||!this.visible&&this.component.clearOnHide?this.emptyValue:(!this.hasValue()&&this.shouldAddDefaultValue&&(this.dataValue=this.emptyValue),s.default.get(this.data,this.key))}set dataValue(e){super.dataValue=e}get defaultValue(){const e=super.defaultValue;return Array.isArray(e)?e[0]:this.emptyValue}get keySchema(){return{type:"textfield",input:!0,hideLabel:!0,label:this.component.keyLabel||"Key",key:"__key",disableBuilderActions:!0}}get valueKey(){return this.component.valueComponent.key}getRowValues(){const e=this.dataValue;return this.builderMode?[e]:s.default.isEmpty(e)?[]:Object.keys(e).map((()=>e))}getComponentsContainer(){return this.builderMode?this.getComponents().map((e=>e.component)):super.getComponentsContainer()}get iteratableRows(){return this.rows.map((e=>Object.keys(e).map((t=>({components:e[t],data:e[t].dataValue})))))}componentContext(e){return this.iteratableRows[e.row].find((t=>t.components.key===e.key)).data}hasHeader(){return!0}hasRemoveButtons(){return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode}getColumns(){const e=Object.assign({},this.keySchema),t=Object.assign({},this.component.valueComponent);return e.hideLabel=!1,t.hideLabel=!1,this.component.keyBeforeValue?[e,t]:[t,e]}getRowKey(e){const t=Object.keys(this.dataValue);return t[e]||(t[e]=(0,l.uniqueKey)(this.dataValue,this.defaultRowKey)),t[e]}get defaultRowKey(){return"key"}setRowComponentsData(e,t){s.default.each(this.rows[e],(n=>{"__key"===n.key?n.data={__key:Object.keys(t)[e]}:n.data=t}))}getValueAsString(e,t){if((null==t?void 0:t.email)&&this.visible&&!this.skipInEmail&&s.default.isObject(e)){let n='\n \n \n ';return n=Object.keys(e).reduce(((n,i)=>n+`\n \n \n \n \n `),n),n+="\n \n
${i}${this.getView(e[i],t)}
\n ",n}return s.default.isEmpty(e)?"":(null==t?void 0:t.modalPreview)?(delete t.modalPreview,this.getDataValueAsTable(e,t)):"object"==typeof e?"[Complex Data]":e}getDataValueAsTable(e,t){let n='\n \n \n ';return this.visible&&s.default.isObject(e)&&Object.keys(e).forEach((i=>{n+=`\n \n \n \n \n `})),n+="\n \n
${i}${this.getView(e[i],t)}
\n ",n}createRowComponents(e,t){let n=this.builderMode?this.valueKey:this.getRowKey(t);const i=s.default.clone(this.options);i.events=new o.default,i.name+=`[${t}]`,i.row=`${t}`;const r={};r.__key=this.createComponent(this.keySchema,i,{__key:this.builderMode?this.defaultRowKey:n}),r.__key.on("componentChange",(e=>{const t=this.dataValue,i=(0,l.uniqueKey)(t,e.value);t[i]=t[n],delete t[n];const a=r[this.valueKey];a.component.key=i,a.path=u.default.getComponentPath(a),n=i}));const a=s.default.clone(this.component.valueComponent);a.key=n;const d=this.options;return d.row=i.row,r[this.valueKey]=this.createComponent(a,d,this.dataValue),r}get canAddColumn(){return!1}addChildComponent(e){this.component.valueComponent=e}saveChildComponent(e){e.key!==this.keySchema.key&&(this.component.valueComponent=e)}removeChildComponent(){const e=d.schema();this.component.valueComponent=e.valueComponent}addRow(){const e=this.rows.length;this.rows[e]=this.createRowComponents(this.dataValue,e),this.redraw(),this.triggerChange()}removeRow(e){const t=Object.keys(this.dataValue);t[e]&&delete this.dataValue[t[e]],this.rows.splice(e,1),this.redraw(),this.triggerChange()}setValue(e,t={}){const n=this.hasChanged(e,this.dataValue);return this.dataValue=e,this.createRows(),this.updateOnChange(t,n),n}checkColumns(){return!this.builderMode&&this.dataValue&&Object.keys(this.dataValue).length&&Object.keys(this.dataValue).length>(this.rows||[]).length?{rebuild:!0,show:!0}:{rebuild:!1,show:!0}}}t.default=d},8053:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8235:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};e.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(e,t){return 12===e&&(e=0),"राति"===t?e<4?e:e+12:"बिहान"===t?e:"दिउँसो"===t?e>=10?e:e+12:"साँझ"===t?e+12:void 0},meridiem:function(e,t,n){return e<3?"राति":e<12?"बिहान":e<16?"दिउँसो":e<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(95093))},8404:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8943:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
\n
\n \n ',e.header&&(n+='\n \n '+(null==(t=e.header)?"":t)+"\n \n "),n+='\n \n ',e.rows.forEach((function(i,r){n+='\n \n '+(null==(t=i)?"":t)+"\n ",e.openRows[r]&&!e.readOnly&&(n+='\n \n "),n+="\n ",e.errors[r]&&(n+='\n \n "),n+="\n \n "})),n+="\n \n ",e.footer&&(n+="\n \n \n "+(null==(t=e.footer)?"":t)+"\n \n \n "),n+="\n
\n
\n \n ",e.component.removeRow&&(n+='\n \n "),n+="\n
\n
\n
\n
\n '+(null==(t=e.errors[r])?"":t)+"\n
\n
\n
\n
\n
\n",!e.readOnly&&e.hasAddButton&&(n+='\n\n"),n+="\n"}},8957:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(10280)),a=i(n(21086)),s=i(n(86892)),o=i(n(82710));t.default=function(...e){return(0,r.default)([{key:"display",components:a.default},{label:"Form",key:"form",weight:10,components:s.default},{label:"Data",key:"data",weight:10,components:o.default}],...e)}},9033:function(e,t,n){!function(e){"use strict";e.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:6}})}(n(95093))},9042:(e,t)=>{"use strict";function n(e,t,n,i){switch(e){case 0:return t&n^~t&i;case 1:case 3:return t^n^i;case 2:return t&n^t&i^n&i}}function i(e,t){return e<>>32-t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){const t=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=[];for(let n=0;n>>0;c=d,d=u,u=i(l,30)>>>0,l=s,s=o}r[0]=r[0]+s>>>0,r[1]=r[1]+l>>>0,r[2]=r[2]+u>>>0,r[3]=r[3]+d>>>0,r[4]=r[4]+c>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,255&r[0],r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,255&r[1],r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,255&r[2],r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,255&r[3],r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,255&r[4]]}},9117:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),a=i(n(91670)),s=i(n(78110)),o=i(n(44909));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:s.default},{key:"data",components:a.default},{key:"validation",components:o.default}],...e)}},9157:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"unique",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},9241:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(785);t.default={form:i.default}},9325:(e,t,n)=>{var i=n(34840),r="object"==typeof self&&self&&self.Object===Object&&self,a=i||r||Function("return this")();e.exports=a},9539:(e,t,n)=>{"use strict";var i=n(69565),r=n(28551),a=n(55966);e.exports=function(e,t,n){var s,o;r(e);try{if(!(s=a(e,"return"))){if("throw"===t)throw n;return n}s=i(s,e)}catch(e){o=!0,s=e}if("throw"===t)throw n;if(o)throw s;return r(s),n}},9740:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VALIDATION_ERRORS=void 0;const i=n(569);t.VALIDATION_ERRORS={en:i.EN_ERRORS}},9784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"placeholder",ignore:!0},{type:"select",input:!0,label:"Options Label Position",key:"optionsLabelPosition",tooltip:"Position for the label for options for this field.",dataSrc:"values",weight:32,defaultValue:"right",data:{values:[{label:"Top",value:"top"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Bottom",value:"bottom"}]}},{type:"checkbox",input:!0,key:"inline",label:"Inline Layout",tooltip:"Displays the checkboxes/radios horizontally.",weight:650}]},9823:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"number",input:!0,key:"validate.minSelectedCount",label:"Minimum checked number",tooltip:"Minimum checkboxes required before form can be submitted.",weight:250},{type:"number",input:!0,key:"validate.maxSelectedCount",label:"Maximum checked number",tooltip:"Maximum checkboxes possible before form can be submitted.",weight:250},{type:"textfield",input:!0,key:"minSelectedCountMessage",label:"Minimum checked error message",tooltip:"Error message displayed if minimum number of items not checked.",weight:250},{type:"textfield",input:!0,key:"maxSelectedCountMessage",label:"Maximum checked error message",tooltip:"Error message displayed if maximum number of items checked.",weight:250}]},9866:(e,t,n)=>{"use strict";var i,r=n(31803),a=n(37235),s=n(50727),o=n(43385),l=(i=n(36123))&&"object"==typeof i&&"default"in i?i.default:i;function u(e,t){void 0===t&&(t={});var n=this,i=4,u=!1;this.margin=t.margin||-1,this.scrollWhenOutside=t.scrollWhenOutside||!1;var c={},h=o.createPointCB(c),p=l(),f=!1;window.addEventListener("mousemove",h,!1),window.addEventListener("touchmove",h,!1),isNaN(t.maxSpeed)||(i=t.maxSpeed),this.autoScroll=r.boolean(t.autoScroll),this.syncMove=r.boolean(t.syncMove,!1),this.destroy=function(t){window.removeEventListener("mousemove",h,!1),window.removeEventListener("touchmove",h,!1),window.removeEventListener("mousedown",w,!1),window.removeEventListener("touchstart",w,!1),window.removeEventListener("mouseup",M,!1),window.removeEventListener("touchend",M,!1),window.removeEventListener("pointerup",M,!1),window.removeEventListener("mouseleave",S,!1),window.removeEventListener("mousemove",L,!1),window.removeEventListener("touchmove",L,!1),window.removeEventListener("scroll",_,!0),e=[],t&&k()},this.add=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return s.addElements.apply(void 0,[e].concat(t)),this},this.remove=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return s.removeElements.apply(void 0,[e].concat(t))};var m,g,v=null;"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),g=e,e=[],g.forEach((function(e){e===window?v=window:n.add(e)})),Object.defineProperties(this,{down:{get:function(){return f}},maxSpeed:{get:function(){return i}},point:{get:function(){return c}},scrolling:{get:function(){return u}}});var y,b=null;function _(t){for(var n=0;nr.right-n.margin?Math.ceil(Math.min(1,(c.x-r.right)/n.margin+1)*n.maxSpeed):0,i=c.yr.bottom-n.margin?Math.ceil(Math.min(1,(c.y-r.bottom)/n.margin+1)*n.maxSpeed):0,n.syncMove()&&p.dispatch(e,{pageX:c.pageX+t,pageY:c.pageY+i,clientX:c.x+t,clientY:c.y+i}),setTimeout((function(){i&&function(e,t){e===window?window.scrollTo(e.pageXOffset,e.pageYOffset+t):e.scrollTop+=t}(e,i),t&&function(e,t){e===window?window.scrollTo(e.pageXOffset+t,e.pageYOffset):e.scrollLeft+=t}(e,t)}))}window.addEventListener("mousedown",w,!1),window.addEventListener("touchstart",w,!1),window.addEventListener("mouseup",M,!1),window.addEventListener("touchend",M,!1),window.addEventListener("pointerup",M,!1),window.addEventListener("mousemove",L,!1),window.addEventListener("touchmove",L,!1),window.addEventListener("mouseleave",S,!1),window.addEventListener("scroll",_,!0)}function d(e,t,n){return n?e.y>n.top&&e.yn.left&&e.x{var i=n(37217),r=n(83729),a=n(16547),s=n(74733),o=n(43838),l=n(93290),u=n(23007),d=n(92271),c=n(48948),h=n(50002),p=n(83349),f=n(5861),m=n(76189),g=n(77199),v=n(35529),y=n(56449),b=n(3656),_=n(87730),w=n(23805),M=n(38440),k=n(95950),S=n(37241),x="[object Arguments]",L="[object Function]",C="[object Object]",T={};T[x]=T["[object Array]"]=T["[object ArrayBuffer]"]=T["[object DataView]"]=T["[object Boolean]"]=T["[object Date]"]=T["[object Float32Array]"]=T["[object Float64Array]"]=T["[object Int8Array]"]=T["[object Int16Array]"]=T["[object Int32Array]"]=T["[object Map]"]=T["[object Number]"]=T[C]=T["[object RegExp]"]=T["[object Set]"]=T["[object String]"]=T["[object Symbol]"]=T["[object Uint8Array]"]=T["[object Uint8ClampedArray]"]=T["[object Uint16Array]"]=T["[object Uint32Array]"]=!0,T["[object Error]"]=T[L]=T["[object WeakMap]"]=!1,e.exports=function e(t,n,E,A,D,P){var O,j=1&n,I=2&n,R=4&n;if(E&&(O=D?E(t,A,D,P):E(t)),void 0!==O)return O;if(!w(t))return t;var F=y(t);if(F){if(O=m(t),!j)return u(t,O)}else{var Y=f(t),V=Y==L||"[object GeneratorFunction]"==Y;if(b(t))return l(t,j);if(Y==C||Y==x||V&&!D){if(O=I||V?{}:v(t),!j)return I?c(t,o(O,t)):d(t,s(O,t))}else{if(!T[Y])return D?t:{};O=g(t,Y,j)}}P||(P=new i);var N=P.get(t);if(N)return N;P.set(t,O),M(t)?t.forEach((function(i){O.add(e(i,n,E,i,t,P))})):_(t)&&t.forEach((function(i,r){O.set(r,e(i,n,E,r,t,P))}));var H=F?void 0:(R?I?p:h:I?S:k)(t);return r(H||t,(function(i,r){H&&(i=t[r=i]),a(O,r,e(i,n,E,r,t,P))})),O}},10002:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetEphermalState=t.attachResourceToDom=t.registerEphermalState=t.unescapeHTML=t.boolValue=t.escapeRegExCharacters=void 0;const i=n(2543);t.escapeRegExCharacters=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},t.boolValue=function(e){return(0,i.isBoolean)(e)?e:(0,i.isString)(e)?"true"===e.toLowerCase():!!e},t.unescapeHTML=function(e){return"undefined"!=typeof window&&"DOMParser"in window?(new window.DOMParser).parseFromString(e,"text/html").documentElement.textContent:e},t.registerEphermalState=function(e,t,n){e.ephermalState||Object.defineProperty(e,"ephermalState",{enumerable:!1,configurable:!0,writable:!0,value:{}}),Object.defineProperty(e.ephermalState,t,{enumerable:!1,writable:!1,configurable:!0,value:n})},t.attachResourceToDom=function(e){const{name:t,formio:n,onload:i,rootElement:r}=e;let{src:a}=e;a=Array.isArray(a)?a:[a],a.forEach((e=>{let a={},s="";switch("string"==typeof e&&(e={type:"script",src:e}),e.type){case"script":s="script",a={src:e.src,type:"text/javascript",defer:!0,async:!0,referrerpolicy:"origin"};break;case"styles":s="link",a={href:e.src,rel:"stylesheet"}}const o=document.createElement(s);if(o.setAttribute)for(const e in a)o.setAttribute(e,a[e]);if(i&&o.addEventListener("load",(()=>{n.libraries[t].loaded=!0,i(n.libraries[t].ready)})),r)return void r.insertAdjacentElement("afterend",o);const{head:l}=document;l&&l.appendChild(o)}))},t.resetEphermalState=function(e){e.ephermalState&&delete e.ephermalState}},10085:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},10124:(e,t,n)=>{var i=n(9325);e.exports=function(){return i.Date.now()}},10196:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Evaluator=void 0;const r=i(n(2543)),a=i(n(55459)),s=n(84679);class o extends s.JSONLogicEvaluator{static template(e,t){if(t=t||(0,a.default)(e),o.cache[t])return o.cache[t];try{return e=e.replace(/ctx\./g,""),o.cache[t]=r.default.template(e,o.templateSettings)}catch(t){console.warn("Error while processing template",t,e)}}static interpolate(e,t,n){const i=r.default.isObject(n)?n:{noeval:n};if("function"==typeof e)try{return e(t)}catch(e){return console.warn("Error interpolating template",e,t),e.message}let a;if(e=String(e),o.noeval||i.noeval)return s.JSONLogicEvaluator.interpolateString(e,t,n);if(a=o.template(e),"function"==typeof a)try{return a(t)}catch(n){return console.warn("Error interpolating template",n,e,t),n.message}return a}}t.Evaluator=o,o.cache={},o.protectedEval=!1,o.noeval=!1},10280:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422));t.default=function(...e){return r.default.baseEditForm([{key:"data",ignore:!0},{key:"validation",ignore:!0}],...e)}},10348:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(87278);t.default={form:i.default}},10350:(e,t,n)=>{"use strict";var i=n(43724),r=n(39297),a=Function.prototype,s=i&&Object.getOwnPropertyDescriptor,o=r(a,"name"),l=o&&"something"===function(){}.name,u=o&&(!i||i&&s(a,"name").configurable);e.exports={EXISTS:o,PROPER:l,CONFIGURABLE:u}},10392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},10518:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"defaultValue",ignore:!0}]},10687:(e,t,n)=>{"use strict";var i=n(24913).f,r=n(39297),a=n(78227)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!r(e,a)&&i(e,a,{configurable:!0,value:t})}},10728:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,a=arguments.length,s=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(s=(a<3?r(s):a>3?r(t,n,s):r(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLComponent=t.HTML=t.HTMLProperties=void 0;const r=n(77644);t.HTMLProperties={type:"html",schema:{tag:"span",content:"",attrs:[],className:""},template:e=>`<${e.tag} ref="${e.ref}"${e.attrs}>${e.t(e.content)}`};class a{constructor(e,t,n){this.component=e,this.options=t,this.data=n}getAttributes(){let e=!1,t="";for(let n in this.component.attrs)if(this.component.attrs.hasOwnProperty(n)){const i=this.component.attrs[n],r=Number.isNaN(parseInt(n));let a=r?n:i.attr;const s=r?i:i.value;"class"===a&&this.component.className&&(e=!0,a+=` ${this.component.className}`),t+=` ${a}="${this.interpolate(s,this.evalContext())}"`}return!e&&this.component.className&&(t+=` class="${this.interpolate(this.component.className,this.evalContext())}"`),t}renderContext(e={}){return Object.assign({tag:this.component.tag,ref:this.component.type,content:this.component.content?this.interpolate(this.component.content,this.evalContext()):"",attrs:this.getAttributes()},e)}}t.HTML=a;let s=class extends a{};t.HTMLComponent=s,t.HTMLComponent=s=i([(0,r.Component)(t.HTMLProperties)],s)},10757:(e,t,n)=>{"use strict";var i=n(97751),r=n(94901),a=n(1625),s=n(7040),o=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return r(t)&&a(t.prototype,o(e))}},10776:(e,t,n)=>{var i=n(30756),r=n(95950);e.exports=function(e){for(var t=r(e),n=t.length;n--;){var a=t[n],s=e[a];t[n]=[a,s,i(s)]}return t}},11025:function(e,t,n){!function(e){"use strict";var t={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};e.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(e){return e+"வது"},preparse:function(e){return e.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(e,t,n){return e<2?" யாமம்":e<6?" வைகறை":e<10?" காலை":e<14?" நண்பகல்":e<18?" எற்பாடு":e<22?" மாலை":" யாமம்"},meridiemHour:function(e,t){return 12===e&&(e=0),"யாமம்"===t?e<2?e:e+12:"வைகறை"===t||"காலை"===t||"நண்பகல்"===t&&e>=10?e:e+12},week:{dow:0,doy:6}})}(n(95093))},11107:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.children.forEach((function(e){n+='\n \n '+(null==(t=e)?"":t)+"\n \n"})),n+="\n"}},11319:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(89480)),a=n(2543);class s extends r.default{static get operatorKey(){return"endsWith"}static get displayedName(){return"Ends With"}execute({value:e,comparedValue:t}){return(0,a.endsWith)(e,t)}}t.default=s},11331:(e,t,n)=>{var i=n(72552),r=n(28879),a=n(40346),s=Function.prototype,o=Object.prototype,l=s.toString,u=o.hasOwnProperty,d=l.call(Object);e.exports=function(e){if(!a(e)||"[object Object]"!=i(e))return!1;var t=r(e);if(null===t)return!0;var n=u.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==d}},11470:function(e,t,n){!function(e){"use strict";function t(e,t,n){return e+" "+function(e,t){return 2===t?function(e){var t={m:"v",b:"v",d:"z"};return void 0===t[e.charAt(0)]?e:t[e.charAt(0)]+e.substring(1)}(e):e}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],e)}function n(e){return e>9?n(e%10):e}var i=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],r=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,a=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];e.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:a,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:a,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:t,h:"un eur",hh:"%d eur",d:"un devezh",dd:t,M:"ur miz",MM:t,y:"ur bloaz",yy:function(e){switch(n(e)){case 1:case 3:case 4:case 5:case 9:return e+" bloaz";default:return e+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(e){return e+(1===e?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(e){return"g.m."===e},meridiem:function(e,t,n){return e<12?"a.m.":"g.m."}})}(n(95093))},11681:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),a=i(n(60762)),s=i(n(35818)),o=i(n(45563)),l=i(n(1537));t.default=function(...e){return r.default.baseEditForm([{label:"Templates",key:"templates",weight:5,components:o.default},{key:"display",components:s.default},{key:"data",components:a.default},{key:"validation",components:l.default}],...e)}},11713:function(e,t,n){!function(e){"use strict";e.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(e){return 2===e?"שעתיים":e+" שעות"},d:"יום",dd:function(e){return 2===e?"יומיים":e+" ימים"},M:"חודש",MM:function(e){return 2===e?"חודשיים":e+" חודשים"},y:"שנה",yy:function(e){return 2===e?"שנתיים":e%10==0&&10!==e?e+" שנה":e+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(e){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(e)},meridiem:function(e,t,n){return e<5?"לפנות בוקר":e<10?"בבוקר":e<12?n?'לפנה"צ':"לפני הצהריים":e<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(95093))},11727:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
\n
\n
\n \n '+(null==(t=e.t(e.group.title,{_userInput:!0}))?"":t)+'\n \n
\n
\n \n
\n ',e.group.componentOrder.length||e.subgroups.length?(n+="\n ",!e.group.componentOrder||e.group.componentOrder.forEach((function(i){n+='\n \n ',e.group.components[i].icon&&(n+='\n \n '),n+="\n "+(null==(t=e.t(e.group.components[i].title,{_userInput:!0}))?"":t)+"\n \n "})),n+="\n "+(null==(t=e.subgroups.join(""))?"":t)+"\n "):n+="\n
"+(null==(t=e.t("No Matches Found"))?"":t)+"
\n ",n+="\n
\n
\n\n"}},11879:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(94259)),a=i(n(4582)),s=i(n(40510));t.default=function(...e){return(0,r.default)([{key:"display",components:a.default},{key:"data",components:s.default},{key:"validation",components:[{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0},{key:"validate.pattern",ignore:!0}]}],...e)}},11885:function(e,t,n){!function(e){"use strict";e.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(e,t){return 12===e&&(e=0),"రాత్రి"===t?e<4?e:e+12:"ఉదయం"===t?e:"మధ్యాహ్నం"===t?e>=10?e:e+12:"సాయంత్రం"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"రాత్రి":e<10?"ఉదయం":e<17?"మధ్యాహ్నం":e<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(95093))},11998:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"inputFormat",ignore:!0},{key:"persistent",ignore:!0},{key:"protected",ignore:!0},{key:"dbIndex",ignore:!0},{key:"encrypted",ignore:!0},{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0},{key:"customDefaultValuePanel",ignore:!0},{key:"calculateValuePanel",ignore:!0},{key:"passwordInfo",weight:0,type:"htmlelement",tag:"div",className:"alert alert-info",content:"Password fields are automatically encrypted using 1-way salted bcrypt hashes. These hashes are also protected and not returned in the API."}]},12191:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(79092);t.default=[i.JSONLogicModule]},12211:(e,t,n)=>{"use strict";var i=n(79039);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},12651:(e,t,n)=>{var i=n(74218);e.exports=function(e,t){var n=e.__data__;return i(t)?n["string"==typeof t?"string":"hash"]:n.map}},12749:(e,t,n)=>{var i=n(81042),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:r.call(t,e)}},13222:(e,t,n)=>{var i=n(77556);e.exports=function(e){return null==e?"":i(e)}},13239:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=n(29857);t.default=[{type:"select",input:!0,key:"provider",label:"Provider",placeholder:"Select your address search provider",weight:0,tooltip:"Which address search service should be used.",valueProperty:"value",dataSrc:"custom",data:{custom:()=>r.default.values(a.Formio.Providers.getProviders("address")).sort().map((e=>({label:e.displayName,value:e.name})))},validate:{required:!0}},{type:"textfield",input:!0,key:"providerOptions.params.subscriptionKey",label:"Subscription Key",placeholder:"Enter Subscription Key",weight:10,tooltip:"Use your Azure Maps subscription key here.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"azure"]}}},{type:"textfield",input:!0,key:"providerOptions.url",label:"Url",placeholder:"Enter Url",weight:10,tooltip:"Url to the service which should be used to search addresses for autocomplete.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.queryProperty",label:"Query Property",defaultValue:"query",placeholder:"Enter Query Property",weight:20,tooltip:"Which query param should be used to pass as a search string. Default is `query`.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.responseProperty",label:"Response Property",placeholder:"Enter Response Property",weight:30,tooltip:"The property within the response data, where iterable addresses reside. For example: results.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.displayValueProperty",label:"Display Value Property",placeholder:"Display Value Property",weight:40,tooltip:"The property of each address in the response to use as the display value.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textarea",input:!0,key:"providerOptions.params",label:"Params",placeholder:"{ ... }",weight:50,rows:5,editor:"ace",as:"json",tooltip:"Additional query params can be specified here in a way of JSON object.",conditional:{json:{"===":[{var:"data.provider"},"custom"]}}},{type:"textfield",input:!0,key:"providerOptions.params.key",label:"API Key",placeholder:"Enter API Key",weight:10,tooltip:"Use your Google API key here.",validate:{required:!0},conditional:{json:{"===":[{var:"data.provider"},"google"]}}},{type:"textarea",input:!0,key:"providerOptions.params.autocompleteOptions",label:"Provider options",placeholder:"Enter provider options as JSON object",defaultValue:{},weight:60,rows:5,as:"json",editor:"ace",tooltip:"Specify Google Maps Autocomplete options used for address searching as JSON object. Follow the link for available options",conditional:{json:{"===":[{var:"data.provider"},"google"]}}},{type:"textarea",input:!0,key:"manualModeViewString",label:"Manual Mode View String",placeholder:"Enter Manual Mode View String",description:'"address" variable references component value, "data" - submission data and "component" - address component schema.',weight:60,rows:5,editor:"ace",tooltip:"Specify template which should be when quering view string for the component value entered in manual mode. This string is used in table view, CSV export and email rendering. When left blank combined value of all components joined with comma will be used."}]},13253:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.processes=void 0;const a=n(5623);r(n(23272),t),r(n(78165),t),r(n(3502),t),r(n(23649),t),r(n(34469),t),r(n(3502),t),r(n(74921),t),r(n(38114),t),r(n(50098),t),r(n(54165),t),r(n(99469),t),r(n(77799),t),r(n(7360),t),r(n(30952),t),r(n(29182),t),r(n(37888),t),r(n(67100),t),r(n(26636),t),t.processes={calculation:a.calculateProcessInfo,conditions:a.conditionProcessInfo,defaultValue:a.defaultValueProcessInfo,fetch:a.fetchProcessInfo,filter:a.filterProcessInfo,logic:a.logicProcessInfo,populate:a.populateProcessInfo,validation:a.validateProcessInfo}},13266:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2404)),a=i(n(90179)),s=i(n(66245)),o=i(n(95950));t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0},{key:"label",hidden:!0,calculateValue:e=>e.data.title},{key:"tabindex",hidden:!0},{weight:1,type:"textfield",input:!0,placeholder:"Panel Title",label:"Title",key:"title",tooltip:"The title text that appears in the header of this panel."},{weight:20,type:"textarea",input:!0,key:"tooltip",label:"Tooltip",placeholder:"To add a tooltip to this field, enter text here.",tooltip:"Adds a tooltip to the side of this field."},{weight:30,type:"select",input:!0,label:"Theme",key:"theme",dataSrc:"values",data:{values:[{label:"Default",value:"default"},{label:"Primary",value:"primary"},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Danger",value:"danger"},{label:"Warning",value:"warning"}]}},{weight:40,type:"fieldset",input:!1,components:[{input:!0,type:"checkbox",label:"Allow click on Breadcrumb",key:"breadcrumbClickable",defaultValue:!0,customConditional({data:e={},buildingForm:t={}}){const n=t.settings||{};return![e.breadcrumb,n.wizardBreadcrumbsType].includes("none")}},{input:!0,type:"checkbox",label:"Allow Previous",key:"allowPrevious",defaultValue:!1,tooltip:"Determines if the breadcrumb bar is clickable or not for visited tabs.",conditional:{json:{"===":[{var:"data.breadcrumbClickable"},!1]}}},{weight:50,label:"Panel Navigation Buttons",optionsLabelPosition:"right",values:[{label:"Previous",value:"previous"},{label:"Cancel",value:"cancel"},{label:"Next",value:"next"}],inline:!0,type:"selectboxes",key:"buttonSettings",input:!0,inputType:"checkbox",defaultValue:{previous:!0,cancel:!0,next:!0}},{weight:55,label:"Navigate Wizard on Enter",type:"checkbox",key:"navigateOnEnter",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Use the Enter key to go forward through pages."},{weight:56,label:"Save on Enter",type:"checkbox",key:"saveOnEnter",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Use the Enter key to submit form on last page."},{weight:60,label:"Scroll up on page opening",type:"checkbox",key:"scrollToTop",input:!0,inputType:"checkbox",defaultValue:!1,tooltip:"Scroll to the top of the wizard page when user navigates to it"}],customConditional(e){let t=!1;if("wizard"===e.instance.options.editForm.display){const{components:n}=e.instance.options.editForm,i=e.instance.options.editComponent;n&&i&&(t=n.some((e=>{const t=(0,s.default)((0,o.default)(e),(0,o.default)(i))||[];return t.push("components"),(0,r.default)((0,a.default)(e,t),(0,a.default)(i,t))})))}return t}},{weight:650,type:"checkbox",label:"Collapsible",tooltip:"If checked, this will turn this Panel into a collapsible panel.",key:"collapsible",input:!0},{weight:651,type:"checkbox",label:"Initially Collapsed",tooltip:"Determines the initial collapsed state of this Panel.",key:"collapsed",input:!0,conditional:{json:{"===":[{var:"data.collapsible"},!0]}}}]},13518:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(2858))&&i.__esModule?i:{default:i},a=n(49910);let s,o,l=0,u=0;t.default=function(e,t,n){let i=t&&n||0;const d=t||new Array(16);let c=(e=e||{}).node||s,h=void 0!==e.clockseq?e.clockseq:o;if(null==c||null==h){const t=e.random||(e.rng||r.default)();null==c&&(c=s=[1|t[0],t[1],t[2],t[3],t[4],t[5]]),null==h&&(h=o=16383&(t[6]<<8|t[7]))}let p=void 0!==e.msecs?e.msecs:Date.now(),f=void 0!==e.nsecs?e.nsecs:u+1;const m=p-l+(f-u)/1e4;if(m<0&&void 0===e.clockseq&&(h=h+1&16383),(m<0||p>l)&&void 0===e.nsecs&&(f=0),f>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");l=p,u=f,o=h,p+=122192928e5;const g=(1e4*(268435455&p)+f)%4294967296;d[i++]=g>>>24&255,d[i++]=g>>>16&255,d[i++]=g>>>8&255,d[i++]=255&g;const v=p/4294967296*1e4&268435455;d[i++]=v>>>8&255,d[i++]=255&v,d[i++]=v>>>24&15|16,d[i++]=v>>>16&255,d[i++]=h>>>8|128,d[i++]=255&h;for(let e=0;e<6;++e)d[i+e]=c[e];return t||(0,a.unsafeStringify)(d)}},13523:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},13614:function(e,t){"use strict";var n=this&&this.__decorate||function(e,t,n,i){var r,a=arguments.length,s=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(s=(a<3?r(s):a>3?r(t,n,s):r(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.render=t.Components=void 0;class i{static component(e,t="components"){return i[t][e]?i[t][e]:i[t].component}static create(e,t,n){return new(i.component(e.type))(e,t,n)}static addDecorator(e,t){i.decorators[t]=e}static addComponent(e,t){if(e)return"function"!=typeof e?i.importComponent(e):(i.components[t]=e,e)}static importComponent(e={}){const t=i.component(e.extends,"decorators");let r=class{};r=n([t(e)],r),i.addComponent(r,e.type)}static setComponents(e){Object.assign(i.components,e)}}t.Components=i,i.components={},i.decorators={},t.render=function(e,t,n={},r={}){return i.create(t,n,r).attach(e)}},13716:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
\n
\n

'+(null==(t=e.t(e.componentInfo.title,{_userInput:!0}))?"":t)+" "+(null==(t=e.t("Component"))?"":t)+"

\n
\n ",e.helplinks&&(n+='\n \n "),n+='\n
\n
\n
\n
\n '+(null==(t=e.editForm)?"":t)+"\n
\n ",e.showPreview||(n+='\n
\n \n \n \n ",e.preview&&(n+='\n \n "),n+="\n
\n "),n+="\n
\n ",e.showPreview&&e.preview&&(n+='\n
\n
\n
\n

'+(null==(t=e.t("Preview"))?"":t)+'

\n
\n
\n
\n '+(null==(t=e.preview)?"":t)+"\n
\n
\n
\n ",e.componentInfo.help&&(n+='\n
\n '+(null==(t=e.t(e.componentInfo.help))?"":t)+"\n
\n "),n+='\n
\n \n \n \n \n
\n
\n "),n+"\n
\n"}},13778:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Database=void 0,t.Database=class{}},13925:(e,t,n)=>{"use strict";var i=n(20034);e.exports=function(e){return i(e)||null===e}},14248:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n\n ${this.renderElement("hidden"!==this.component.type?e:"")}\n `)}renderElement(){return""}renderRow(e,t){return this.renderTemplate("multiValueRow",{index:t,disabled:this.disabled,element:`${this.renderElement(e,t)}`})}attach(e){const t=super.attach(e);this.loadRefs(e,{addButton:"multiple",input:"multiple",removeRow:"multiple",mask:"multiple",select:"multiple"});const n=[];return this.refs.input.forEach(((e,t)=>{n.push(this.attachElement.call(this,e,t))})),this.component.multiple?(this.refs.removeRow.forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.removeValue(t)}))})),this.refs.addButton.forEach((e=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.addValue()}))})),t.then((()=>Promise.all(n)))):Promise.all(n)}detach(){this.refs.input&&this.refs.input.length&&this.refs.input.forEach((e=>{e.mask&&(e.mask.destroy?e.mask.destroy():e.mask.remove()),e.widget&&e.widget.destroy()})),this.refs.mask&&this.refs.mask.length&&this.refs.mask.forEach((e=>{e.mask&&(e.mask.destroy?e.mask.destroy():e.mask.remove())})),super.detach()}attachElement(e,t){if(this.addEventListener(e,this.inputInfo.changeEvent,(()=>{const n=a.default.get(this.component,"case","mixed");if("mixed"!==n){const{selectionStart:t,selectionEnd:i}=e;"uppercase"===n&&e.value&&(e.value=e.value.toUpperCase()),"lowercase"===n&&e.value&&(e.value=e.value.toLowerCase()),e.selectionStart&&e.selectionEnd&&(e.selectionStart=t,e.selectionEnd=i)}try{this.saveCaretPosition(e,t)}catch(e){console.warn("An error occurred while trying to save caret position",e)}if(!e.mask)return this.updateValue(null,{modified:"hidden"!==this.component.type},t);setTimeout((()=>this.updateValue(null,{modified:"hidden"!==this.component.type},t)),1)})),!this.attachMultiMask(t)){const t=()=>{this.setInputMask(e);const t=this.component.inputMask,n=this.component.displayMask;t&&n&&n!==t&&this.refs.valueMaskInput&&this.setInputMask(this.refs.valueMaskInput,t)};"blur"===this.inputInfo.changeEvent?this.addEventListener(e,this.inputInfo.changeEvent,(()=>{t(),this.dataValue=this.refs.input[0].value,this.checkComponentValidity()&&this.updateComponentValue(this.refs.input[0].value)})):t()}}onSelectMaskHandler(e){this.updateMask(e.target.maskInput,this.getMaskPattern(e.target.value))}getMaskPattern(e){if(this.multiMasks||(this.multiMasks={}),this.multiMasks[e])return this.multiMasks[e];const t=this.component.inputMasks.find((t=>t.label===e));return this.multiMasks[e]=t?t.mask:this.component.inputMasks[0].mask,this.multiMasks[e]}attachMultiMask(e){if(!(this.isMultipleMasksField&&this.component.inputMasks.length&&this.refs.input.length))return!1;const t=this.refs.select[e];return t.onchange=this.onSelectMaskHandler.bind(this),t.maskInput=this.refs.mask[e],this.setInputMask(t.maskInput,this.component.inputMasks[0].mask),!0}updateMask(e,t){t&&(this.setInputMask(e,t,!this.component.placeholder),this.updateValue())}addNewValue(e){void 0===e&&(e=this.component.defaultValue?this.component.defaultValue:this.emptyValue,Array.isArray(e)&&0===e.length&&(e=this.emptyValue));let t=this.dataValue||[];Array.isArray(t)||(t=[t]),Array.isArray(e)?t=t.concat(e):t.push(e),this.dataValue=t}addValue(){this.addNewValue(),this.redraw(),this.checkConditions(),this.isEmpty(this.dataValue)||this.restoreValue(),this.root&&this.root.onChange()}}t.default=o},14528:e=>{e.exports=function(e,t){for(var n=-1,i=t.length,r=e.length;++n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(77038);t.default={form:i.default}},14652:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.asynchronousRules=void 0;const i=n(88307),r=n(17612);t.asynchronousRules=[i.validateUrlSelectValueInfo,r.validateAvailableItemsInfo]},14728:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(89480)),a=i(n(95093)),s=n(49599);class o extends r.default{static get operatorKey(){return"dateGreaterThan"}static get displayedName(){return"Greater Than"}getFormattedDates({value:e,comparedValue:t,conditionTriggerComponent:n}){const i=n&&"day"===n.component.type?(0,s.getDateValidationFormat)(n.component):null;return{date:i?(0,a.default)(e,i):(0,a.default)(e),comparedDate:i?(0,a.default)(t,i):(0,a.default)(t)}}execute(e,t="isAfter"){const{value:n,instance:i,conditionComponentPath:r}=e;if(!n)return!1;let a=null;if(i&&i.root&&(a=i.root.getComponent(r)),a&&"day"===a.component.type&&(0,s.isPartialDay)(a.component,n))return!1;const{date:o,comparedDate:l}=this.getFormattedDates(Object.assign(Object.assign({},e),{conditionTriggerComponent:a}));return o[t](l)}}t.default=o},14780:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.dereferenceProcessInfo=t.dereferenceProcess=void 0;const r=n(54008),a=n(84679);t.dereferenceProcess=e=>i(void 0,void 0,void 0,(function*(){var t;const{component:n,config:i,scope:s,path:o}=e;if(s.dereference||(s.dereference={}),(e=>{var t,n,i;return e&&"datatable"===e.type&&!0===(null===(t=e.fetch)||void 0===t?void 0:t.enableFetch)&&"resource"===(null===(n=e.fetch)||void 0===n?void 0:n.dataSrc)&&"string"==typeof(null===(i=e.fetch)||void 0===i?void 0:i.resource)})(n)){if(!(null==i?void 0:i.database))throw new r.ProcessorError("Cannot dereference resource value without a database config object",e,"dereference");try{const e=yield null===(t=i.database)||void 0===t?void 0:t.dereferenceDataTableComponent(n),r=(0,a.fastCloneDeep)(e);s.dereference[o]=r,n.components=r}catch(t){throw new r.ProcessorError(t.message||t,e,"dereference")}}})),t.dereferenceProcessInfo={name:"dereference",shouldProcess:()=>!0,process:t.dereferenceProcess}},14808:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default="00000000-0000-0000-0000-000000000000"},14948:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(59025)),r=a(n(22311));function a(e){return e&&e.__esModule?e:{default:e}}var s=(0,i.default)("v3",48,r.default);t.default=s},15003:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateDayInfo=t.validateDaySync=t.validateDay=t.shouldValidate=void 0;const r=n(54008),a=e=>e&&"day"===e.type;t.shouldValidate=e=>{const{component:t,value:n}=e;return!!n&&!!a(t)},t.validateDay=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateDaySync)(e)})),t.validateDaySync=e=>{const{component:n,value:i}=e;if(!(0,t.shouldValidate)(e)||!a(n))return null;const s=new r.FieldError("invalidDay",e,"day");if("string"!=typeof i)return s;let[o,l,u]=n.dayFirst?[0,1,2]:[1,0,2];const d=i.split("/").map((e=>parseInt(e,10)));let c=d[o],h=d[l],p=d[u];3!==d.length&&(n.fields.day.hide&&(l=0===l?0:l-1,u-=1,c=0,h=d[l],p=d[u]),n.fields.month.hide&&(o=0===o?0:o-1,u-=1,c=n.fields.day.hide&&0===c?0:d[o],h=0,p=d[u]),n.fields.year.hide&&(c=n.fields.day.hide&&0===c?0:d[o],h=n.fields.month.hide&&0===h?0:d[l],p=0));const f=((e,t)=>{switch(e){case 1:case 3:case 5:case 7:case 8:case 10:case 12:default:return 31;case 4:case 6:case 9:case 11:return 30;case 2:return(e=>!(e%400&&(!(e%100)||e%4)))(t)?29:28}})(h,p);return isNaN(c)||c<0||c>f||isNaN(h)||h<0||h>12||isNaN(p)||p<0||p>9999?s:null},t.validateDayInfo={name:"validateDay",process:t.validateDay,processSync:t.validateDaySync,shouldProcess:t.shouldValidate}},15068:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"logic",components:[{key:"actions",components:[{key:"actionPanel",components:[{data:{json:[{label:"Hidden",value:"hidden",type:"boolean"},{label:"Required",value:"validate.required",type:"boolean"},{label:"Disabled",value:"disabled",type:"boolean"},{label:"Label",value:"label",type:"string"},{label:"Title",value:"title",type:"string"},{label:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"},{label:"Content",value:"html",type:"string",component:"content"}]},key:"property"},{type:"textarea",editor:"ace",rows:10,as:"html",label:"Content",tooltip:"The content of this HTML element.",defaultValue:'
Content
',key:"content",weight:30,input:!0,customConditional:e=>"property"===e.row.type&&e.row.hasOwnProperty("property")&&"string"===e.row.property.type&&"content"===e.row.property.component}]}]}]}]},15193:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var i in Array.prototype.join,n+=''+(null==(t=e.selectOptions)?"":t)+'\n\n'}},15325:(e,t,n)=>{var i=n(96131);e.exports=function(e,t){return!(null==e||!e.length)&&i(e,t,0)>-1}},15339:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(22831);function r(){return{title:"indexedDB",name:"indexeddb",uploadFile(e,t,n,r,a,s){if("indexedDB"in window)return new Promise((e=>{const t=indexedDB.open(s.indexeddb);t.onsuccess=function(t){const n=t.target.result;e(n)},t.onupgradeneeded=function(e){e.target.result.createObjectStore(s.indexeddbTable)}})).then((t=>{const n=new FileReader;return new Promise(((r,o)=>{n.onload=()=>{const n=new Blob([e],{type:e.type}),o=(0,i.v4)(n),l={id:o,data:n,name:e.name,size:e.size,type:e.type,url:a},u=t.transaction([s.indexeddbTable],"readwrite");u.objectStore(s.indexeddbTable).put(l,o).onerror=function(e){console.log("error storing data"),console.error(e)},u.oncomplete=function(){r({storage:"indexeddb",name:e.name,size:e.size,type:e.type,url:a,id:o})}},n.onerror=()=>o(this),n.readAsDataURL(e)}))}));console.log("This browser doesn't support IndexedDB")},downloadFile(e,t){return new Promise((e=>{indexedDB.open(t.indexeddb).onsuccess=function(t){const n=t.target.result;e(n)}})).then((n=>new Promise(((i,r)=>{const a=n.transaction([t.indexeddbTable],"readonly"),s=a.objectStore(t.indexeddbTable).get(e.id);s.onsuccess=()=>{a.oncomplete=()=>{const t=s.result,n=new File([s.result.data],e.name,{type:s.result.type}),a=new FileReader;a.onload=n=>{t.url=n.target.result,t.storage=e.storage,i(t)},a.onerror=()=>r(this),a.readAsDataURL(n)}},s.onerror=()=>r(this)}))))},deleteFile(e,t){return new Promise((e=>{indexedDB.open(t.indexeddb).onsuccess=function(t){const n=t.target.result;e(n)}})).then((n=>new Promise(((i,r)=>{const a=n.transaction([t.indexeddbTable],"readwrite"),s=a.objectStore(t.indexeddbTable).delete(e.id);s.onsuccess=()=>{a.oncomplete=()=>{const e=s.result;i(e)}},s.onerror=()=>r(this)}))))}}}r.title="IndexedDB",t.default=r},15389:(e,t,n)=>{var i=n(93663),r=n(87978),a=n(83488),s=n(56449),o=n(50583);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?s(e)?r(e[0],e[1]):i(e):o(e)}},15762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0}]},15811:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=i(n(80460)),s=n(29857),o=n(34600);class l extends a.default{static schema(...e){return a.default.schema({type:"radio",inputType:"radio",label:"Radio",key:"radio",values:[{label:"",value:""}],data:{url:""},fieldSet:!1},...e)}static get builderInfo(){return{title:"Radio",group:"basic",icon:"dot-circle-o",weight:80,documentation:"/userguide/form-building/form-components#radio",schema:l.schema()}}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{valueComponent:e=>e.dataSrc&&"values"!==e.dataSrc?Object.assign(Object.assign({},e),{type:"select"}):{type:"select",dataSrc:"custom",valueProperty:"value",dataType:e.dataType||"",data:{custom:`values = ${e&&e.values?JSON.stringify(e.values):[]}`}}})}static get serverConditionSettings(){return l.conditionOperatorsSettings}static savedValueTypes(e){const{boolean:t,string:n,number:i,object:r,array:a}=o.componentValueTypes,{dataType:s}=e;return(0,o.getComponentSavedTypes)(e)||("object"===s?[r,a]:o.componentValueTypes[s]?[o.componentValueTypes[s]]:[t,n,i,r,a])}constructor(e,t,n){super(e,t,n),this.previousValue=this.dataValue||null}get defaultSchema(){return l.schema()}get defaultValue(){let e=super.defaultValue;return e||!1!==this.component.defaultValue||(e=this.component.defaultValue),e}resetValue(){this.unset(),this.setValue(this.emptyValue,{noUpdateEvent:!0,noValidate:!0,resetValue:!0})}get inputInfo(){var e;const t=super.elementInfo();return t.type="input",t.changeEvent="click",t.attr.class="form-check-input",t.attr.name=t.attr.name+=`[${null===(e=this.root)||void 0===e?void 0:e.id}-${this.id}]`,t}get emptyValue(){return""}get isRadio(){return"radio"===this.component.inputType}get optionSelectedClass(){return"radio-selected"}get listData(){const e=r.default.get(this.root,"submission.metadata.listData",{});return r.default.get(e,this.path)}get selectMetadata(){return super.selectData}get selectData(){return this.selectMetadata||this.component.selectData}init(){super.init(),this.templateData={};let e=[];const t=r.default.debounce(((...t)=>(e=[],this.updateItems.apply(this,t))),100);this.triggerUpdate=(...n)=>("function"==typeof this.itemsLoadedResolve&&this.itemsLoadedResolve(),this.itemsLoaded=new Promise((e=>{this.itemsLoadedResolve=e})),n.length&&(e=n),t(...e)),this.itemsLoaded=new Promise((e=>{this.itemsLoadedResolve=e})),this.optionsLoaded=!this.component.dataSrc||"values"===this.component.dataSrc,this.loadedOptions=[],this.visible||this.itemsLoadedResolve(),this.getTemplateKeys()}beforeSubmit(){return new Promise((e=>{this.dataReady.then((()=>e(!0)))}))}render(){return this.optionsLoaded?super.render(this.renderTemplate("radio",{input:this.inputInfo,inline:this.component.inline,values:"values"===this.component.dataSrc?this.component.values:this.loadedOptions,value:this.dataValue,row:this.row})):super.render(this.renderTemplate("loader"))}attach(e){return this.loadRefs(e,{input:"multiple",wrapper:"multiple"}),this.refs.input.forEach(((e,t)=>{if(this.addEventListener(e,this.inputInfo.changeEvent,(()=>{this.updateValue(null,{modified:!0})})),this.component.values[t]&&this.addShortcut(e,this.component.values[t].shortcut),this.isRadio){let n=this.dataValue;if(r.default.isString(this.dataValue)||(n=r.default.toString(this.dataValue)),this.isSelectURL&&r.default.isObject(this.loadedOptions[t].value)){const n="string"===this.component.dataType?JSON.stringify(this.loadedOptions[t].value):this.loadedOptions[t].value;e.checked=r.default.isEqual(n,this.dataValue)}else e.checked=n===e.value&&(e.value||"url"!==this.component.dataSrc);this.addEventListener(e,"keyup",(t=>{" "===t.key&&n===e.value&&(t.preventDefault(),this.updateValue(null,{modified:!0}))}))}})),this.triggerUpdate(),this.setSelectedClasses(),super.attach(e)}detach(e){e&&this.refs.input&&this.refs.input.forEach(((e,t)=>{this.component.values[t]&&this.removeShortcut(e,this.component.values[t].shortcut)})),super.detach()}getValue(){if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;let e="checkbox"===this.component.inputType?"":this.dataValue;return this.refs.input.forEach(((t,n)=>{t.checked&&(e=this.isSelectURL&&r.default.isObject(this.loadedOptions[n].value)?this.loadedOptions[n].value:t.value)})),e}validateValueProperty(){return"values"===this.component.dataSrc||!r.default.some(this.refs.wrapper,((e,t)=>this.refs.input[t].checked&&this.loadedOptions[t].invalid))}validateValueAvailability(e,t){if(!(0,o.boolValue)(e)||!t)return!0;const n="values"===this.component.dataSrc?this.component.values:this.loadedOptions;return!!n&&-1!==n.findIndex((({value:e})=>this.normalizeValue(e)===t))}getValueAsString(e,t={}){r.default.isObject(e)?e=JSON.stringify(e):r.default.isString(e)||(e=r.default.toString(e));const n=(t.modalPreview||this.inDataTable)&&"url"===this.component.dataSrc&&(this.loadedOptions.length||this.selectData);if("values"!==this.component.dataSrc&&!n)return e;const i=n?this.loadedOptions:this.component.values,a=!(null==i?void 0:i.length)&&n?{label:this.itemTemplate(this.selectData)}:r.default.find(i,(t=>t.value===e));return r.default.get(a,"label","")}setValueAt(e,t){if(this.refs.input&&this.refs.input[e]&&null!=t){const n=this.refs.input[e].value;this.refs.input[e].checked=n===t.toString()}}get shouldLoad(){return!(this.options.readOnly&&this.isEmpty()&&this.listData)&&super.shouldLoad}loadItems(e,t,n,i,r,a){if(this.optionsLoaded)this.itemsLoadedResolve();else{if(!this.shouldLoad&&this.listData)return this.loadItemsFromMetadata(),this.itemsLoadedResolve(),void(this.optionsLoaded=!0);"GET"===(r=r||"GET").toUpperCase()&&(a=null),i.ignoreCache=this.component.ignoreCache,i.header=n,this.loading=!0,s.Formio.makeRequest(this.options.formio,"select",e,r,a,i).then((e=>{this.loading=!1,this.setItems(e)})).catch((e=>{this.handleLoadingError(e)})).finally((()=>{this.optionsLoaded=!0,this.redraw()}))}}loadItemsFromMetadata(){this.listData.forEach(((e,t)=>{this.loadedOptions[t]={label:this.itemTemplate(e)},r.default.isEqual(e,this.selectData||r.default.pick(this.dataValue,r.default.keys(e)))&&(this.loadedOptions[t].value=this.dataValue)})),this.optionsLoaded=!0,this.redraw()}setItems(e){const t=[];if(null==e||e.forEach(((e,n)=>{const i=r.default.get(e,this.component.valueProperty);this.loadedOptions[n]={value:this.component.valueProperty?i:e,label:this.component.valueProperty?this.itemTemplate(e,i):this.itemTemplate(e,e,n)},t.push(this.templateData[this.component.valueProperty?i:n]);const a=this.loadedOptions[n].value;!this.isRadio&&(r.default.isObject(a)||r.default.isBoolean(a)||r.default.isUndefined(a))&&(this.loadedOptions[n].invalid=!0)})),this.isSelectURL){const e=this.root.submission;e.metadata||(e.metadata={}),e.metadata.listData||(e.metadata.listData={}),r.default.set(e.metadata.listData,this.path,t)}this.itemsLoadedResolve()}setSelectedClasses(){if(this.refs.wrapper){const e=this.dataValue;this.refs.wrapper.forEach(((t,n)=>{const i=this.refs.input[n];("checkbox"===i.type?e[i.value]||i.checked:i.value.toString()===e.toString())?(this.addClass(t,this.optionSelectedClass),i.setAttribute("checked","true")):(this.removeClass(t,this.optionSelectedClass),i.removeAttribute("checked"))}))}}updateValue(e,t){const n=super.updateValue(e,t);return n&&this.setSelectedClasses(),t&&t.modified&&this.isRadio?(this.currentValue=this.dataValue,t&&t.modified&&!t.noUpdateEvent&&this.previousValue===this.currentValue&&(this.resetValue(),this.triggerChange(t),this.setSelectedClasses()),this.previousValue=this.dataValue,n):(n&&(this.previousValue=this.dataValue),n)}normalizeValue(e){const t=this.component.dataType||"auto";if(e===this.emptyValue)return e;switch(t){case"auto":!isNaN(parseFloat(e))&&isFinite(e)&&r.default.toString(e)===Number(e).toString()&&(e=+e),"true"===e&&(e=!0),"false"===e&&(e=!1);break;case"number":e=+e;break;case"string":e="object"==typeof e?JSON.stringify(e):String(e);break;case"boolean":e=!(!e||"false"===e.toString())}if(this.isSelectURL&&this.templateData&&this.templateData[e]){const t=this.root.submission;t.metadata.selectData||(t.metadata.selectData={}),r.default.set(t.metadata.selectData,this.path,this.templateData[e])}return super.normalizeValue(e)}}t.default=l},15867:function(e,t,n){!function(e){"use strict";e.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(e){return"ຕອນແລງ"===e},meridiem:function(e,t,n){return e<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(e){return"ທີ່"+e}})}(n(95093))},16022:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"logic",components:[{key:"actions",components:[{key:"actionPanel",components:[{data:{json:[{label:"Hidden",value:"hidden",type:"boolean"},{label:"Required",value:"validate.required",type:"boolean"},{label:"Disabled",value:"disabled",type:"boolean"},{label:"Label",value:"label",type:"string"},{label:"Title",value:"title",type:"string"},{label:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"},{label:"Content",value:"content",type:"string",component:"content"}]},key:"property"},{type:"textarea",editor:"ace",rows:10,as:"html",label:"Content",tooltip:"The content of this HTML element.",defaultValue:'
Content
',key:"content",weight:30,input:!0,customConditional:e=>"property"===e.row.type&&e.row.hasOwnProperty("property")&&"string"===e.row.property.type&&"content"===e.row.property.component}]}]}]}]},16038:(e,t,n)=>{var i=n(5861),r=n(40346);e.exports=function(e){return r(e)&&"[object Set]"==i(e)}},16166:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
\n '+(null==(t=e.children)?"":t)+"\n
\n"}},16220:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{weight:0,type:"textfield",input:!0,key:"key",label:"Property Name",tooltip:"The name of this field in the API endpoint.",validate:{pattern:"(\\w|\\w[\\w-.]*\\w)",patternMessage:"The property name must only contain alphanumeric characters, underscores, dots and dashes and should not be ended by dash or dot.",required:!0}},{weight:100,type:"tags",input:!0,label:"Field Tags",storeas:"array",tooltip:"Tag the field for use in custom logic.",key:"tags"},{weight:200,type:"datamap",label:"Custom Properties",tooltip:"This allows you to configure any custom properties for this component.",key:"properties",valueComponent:{type:"textfield",key:"value",label:"Value",placeholder:"Value",input:!0}}]},16296:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(3577)),a=i(n(2543));class s extends r.default{static get operatorKey(){return"endsWith"}static get displayedName(){return"Ends With"}execute({value:e,comparedValue:t}){return a.default.endsWith(e,t)}}t.default=s},16371:(e,t,n)=>{"use strict";var i=[],r="",a=/^on/;for(r in n.g)a.test(r)&&i.push(r.slice(2));e.exports=i},16469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorMessage=void 0,t.getErrorMessage=function(e){return e instanceof Error?e.message:String(e)}},16547:(e,t,n)=>{var i=n(43360),r=n(75288),a=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var s=e[t];a.call(e,t)&&r(s,n)&&(void 0!==n||t in e)||i(e,t,n)}},16557:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(52749);t.default={form:i.default}},16618:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"хвилина":"хвилину":"h"===n?t?"година":"годину":e+" "+(i=+e,r={ss:t?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:t?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:t?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}function n(e){return function(){return e+"о"+(11===this.hours()?"б":"")+"] LT"}}e.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(e,t){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===e?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):e?n[/(\[[ВвУу]\]) ?dddd/.test(t)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(t)?"genitive":"nominative"][e.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:t,m:t,mm:t,h:"годину",hh:t,d:"день",dd:t,M:"місяць",MM:t,y:"рік",yy:t},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(e){return/^(дня|вечора)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночі":e<12?"ранку":e<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e+"-й";case"D":return e+"-го";default:return e}},week:{dow:1,doy:7}})}(n(95093))},16823:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},17077:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(46677);t.default={form:i.default}},17112:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.jwtDecode=void 0,t.jwtDecode=function(e,t={}){if("string"!=typeof e)throw new Error("Invalid token specified: must be a string");const n=!0===t.header?0:1,i=e.split(".")[n];if("string"!=typeof i)throw new Error("Invalid token specified: missing part #"+(n+1));let r;try{r=function(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,(function(e,t){let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(e){return atob(t)}}(i)}catch(e){throw new Error("Invalid token specified: invalid base64 for part #"+(n+1)+" ("+e.message+")")}try{return JSON.parse(r)}catch(e){throw new Error("Invalid token specified: invalid json for part #"+(n+1)+" ("+e.message+")")}}},17160:function(e,t,n){!function(e){"use strict";e.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(e){return/^(ցերեկվա|երեկոյան)$/.test(e)},meridiem:function(e){return e<4?"գիշերվա":e<12?"առավոտվա":e<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(e,t){switch(t){case"DDD":case"w":case"W":case"DDDo":return 1===e?e+"-ին":e+"-րդ";default:return e}},week:{dow:1,doy:7}})}(n(95093))},17255:(e,t,n)=>{var i=n(47422);e.exports=function(e){return function(t){return i(t,e)}}},17277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"unique",ignore:!0},{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0},{key:"validate.pattern",ignore:!0},{type:"number",label:"Minimum Value",key:"validate.min",input:!0,placeholder:"Minimum Value",tooltip:"The minimum value this field must have before the form can be submitted.",weight:150},{type:"number",label:"Maximum Value",key:"validate.max",input:!0,placeholder:"Maximum Value",tooltip:"The maximum value this field can have before the form can be submitted.",weight:160}]},17357:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t?e<4?e:e+12:"ভোর"===t||"সকাল"===t?e:"দুপুর"===t?e>=3?e:e+12:"বিকাল"===t||"সন্ধ্যা"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"রাত":e<6?"ভোর":e<12?"সকাল":e<15?"দুপুর":e<18?"বিকাল":e<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(n(95093))},17382:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"checkbox",input:!0,weight:70,key:"delimiter",label:"Use Thousands Separator",tooltip:"Separate thousands by local delimiter."},{type:"number",input:!0,weight:80,key:"decimalLimit",label:"Decimal Places",tooltip:"The maximum number of decimal places."},{type:"checkbox",input:!0,weight:90,key:"requireDecimal",label:"Require Decimal",tooltip:"Always show decimals, even if trailing zeros."},{key:"case",ignore:!0}]},17389:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(14463)),a=n(34600),s=i(n(95357)),o=i(n(2543));class l extends r.default{constructor(e,t,n){super(e,t,n),this.triggerUpdateValueAt=o.default.debounce(this.updateValueAt.bind(this),100)}static schema(...e){return r.default.schema({widget:{type:"input"}},...e)}get inputInfo(){const e={name:this.options.name,type:this.component.inputType||"text",class:"form-control",lang:this.options.language};return("builder"===this.options.attachMode||this.options.building||o.default.get(this.root,"form.settings.disableAutocomplete"))&&(e.autocomplete=this.autocompleteDisableAttrName),this.component.inputMode&&(e.inputmode=this.component.inputMode),this.component.placeholder&&(e.placeholder=this.getFormattedAttribute(this.component.placeholder)),this.component.tabindex&&(e.tabindex=this.component.tabindex),this.disabled&&(e.disabled="disabled"),this.component.autocomplete&&(e.autocomplete=this.component.autocomplete),o.default.defaults(e,this.component.attributes),{id:this.key,type:"input",changeEvent:"input",content:"",attr:e}}get autocompleteDisableAttrName(){return"off"}get maskOptions(){return o.default.map(this.component.inputMasks,(e=>({label:e.label,value:e.label})))}get isMultipleMasksField(){return this.component.allowMultipleMasks&&!!this.component.inputMasks&&!!this.component.inputMasks.length}getMaskByName(e){const t=o.default.find(this.component.inputMasks,(t=>t.label===e));return t?t.mask:void 0}setInputMask(e,t){const n=t||this.component.displayMask||this.component.inputMask;return super.setInputMask(e,n,!this.component.placeholder)}getMaskOptions(){return this.component.inputMasks.map((e=>({label:e.label,value:e.label})))}getWordCount(e){return e?e.trim().split(/\s+/).length:0}get remainingWords(){return o.default.parseInt(o.default.get(this.component,"validate.maxWords"),10)-this.getWordCount(this.dataValue)}get prefix(){return this.component.prefix}get suffix(){if(this.component.widget&&"calendar"===this.component.widget.type){const e=this.renderTemplate("icon",{ref:"icon",className:this.iconClass(this.component.enableDate||this.component.widget.enableDate?"calendar":"clock-o"),styles:"",content:""}).trim();if(this.component.prefix!==e)return(0,a.convertStringToHTMLElement)(e,`[${this._referenceAttributeName}="icon"]`)}return this.component.suffix}renderElement(e,t){e&&"string"==typeof e&&(e=e.replace(/"/g,"""));const n=this.inputInfo;n.attr=n.attr||{},n.attr.value=this.getValueAsString(this.formatValue(this.parseValue(e))).replace(/"/g,""");const i=this.component.inputMask,r=this.component.displayMask,a=i&&r&&i!==r;return this.isMultipleMasksField&&(n.attr.class+=" formio-multiple-mask-input"),this.isMultipleMasksField?this.renderTemplate("multipleMasksInput",{input:n,value:e,index:t,selectOptions:this.getMaskOptions()||[]},this.isHtmlRenderMode()?"html":null):this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:n,value:this.formatValue(this.parseValue(e)),hasValueMaskInput:a,index:t},this.isHtmlRenderMode()?"html":null)}setCounter(e,t,n,i){if(i){const r=i-n;r>0?this.removeClass(t,"text-danger"):this.addClass(t,"text-danger"),this.setContent(t,this.t("typeRemaining",{remaining:r,type:e}))}else this.setContent(t,this.t("typeCount",{count:n,type:e}))}updateValueAt(e,t,n){if(t=t||{},o.default.get(this.component,"showWordCount",!1)&&this.refs.wordcount&&this.refs.wordcount[n]){const t=o.default.parseInt(o.default.get(this.component,"validate.maxWords",0),10);this.setCounter(this.t("words"),this.refs.wordcount[n],this.getWordCount(e),t)}if(o.default.get(this.component,"showCharCount",!1)&&this.refs.charcount&&this.refs.charcount[n]){const t=o.default.parseInt(o.default.get(this.component,"validate.maxLength",0),10);this.setCounter(this.t("characters"),this.refs.charcount[n],e.length,t)}}getValueAt(e){const t=this.performInputMapping(this.refs.input[e]);return t&&t.widget?t.widget.getValue():t?t.value:void 0}updateValue(e,t,n){t=t||{};const i=super.updateValue(e,t);return this.triggerUpdateValueAt(this.dataValue,t,n),i}parseValue(e){return e}formatValue(e){return e}attach(e){return this.loadRefs(e,{charcount:"multiple",wordcount:"multiple",prefix:"multiple",suffix:"multiple"}),super.attach(e)}getWidget(e){return e=e||0,this.refs.input&&this.refs.input[e]?this.refs.input[e].widget:null}attachElement(e,t){super.attachElement(e,t),e.widget&&e.widget.destroy();let n=Promise.resolve();return e.widget=this.createWidget(t),e.widget&&(n=e.widget.attach(e),this.refs.prefix&&this.refs.prefix[t]&&e.widget.addPrefix(this.refs.prefix[t]),this.refs.suffix&&this.refs.suffix[t]&&e.widget.addSuffix(this.refs.suffix[t])),this.addFocusBlurEvents(e),this.options.submitOnEnter&&this.addEventListener(e,"keypress",(e=>{13===(e.keyCode||e.which)&&(e.preventDefault(),e.stopPropagation(),this.emit("submitButton"))})),n}createWidget(e){var t,n;if(!this.component.widget)return null;const i="string"==typeof this.component.widget?{type:this.component.widget}:this.component.widget;if((null===(t=this.root)||void 0===t?void 0:t.shadowRoot)&&(i.shadowRoot=null===(n=this.root)||void 0===n?void 0:n.shadowRoot),!s.default.hasOwnProperty(i.type))return null;const r=new s.default[i.type](i,this.component,this,e);return r.on("update",(()=>this.updateValue(this.getValue(),{modified:!0},e)),!0),r.on("redraw",(()=>this.redraw()),!0),r}teardown(){if(this.element&&this.element.widget&&(this.element.widget.destroy(),delete this.element.widget),this.refs&&this.refs.input)for(let e=0;e<=this.refs.input.length;e++){const t=this.getWidget(e);t&&t.destroy()}super.teardown()}detach(){if(this.refs&&this.refs.input)for(let e=0;e<=this.refs.input.length;e++){const t=this.getWidget(e);t&&t.destroy()}this.refs.input=[],super.detach()}}t.default=l},17400:(e,t,n)=>{var i=n(99374),r=1/0;e.exports=function(e){return e?(e=i(e))===r||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},17538:function(e,t,n){!function(e){"use strict";e.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(e){return e+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(e){return"ප.ව."===e||"පස් වරු"===e},meridiem:function(e,t,n){return e>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(95093))},17612:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateAvailableItemsInfo=t.validateAvailableItemsSync=t.shouldValidate=t.validateAvailableItems=void 0;const r=n(2543),a=n(54008),s=n(84679),o=n(47499),l=n(16469);function u(e){var t;return e&&"radio"===e.type&&!!(null===(t=e.validate)||void 0===t?void 0:t.onlyAvailableItems)}function d(e){var t;return e&&!!(null===(t=e.validate)||void 0===t?void 0:t.onlyAvailableItems)&&"select"===e.type&&"resource"!==e.dataSrc}function c(e){var t;return e&&!!(null===(t=e.validate)||void 0===t?void 0:t.onlyAvailableItems)&&"selectboxes"===e.type&&"url"===e.dataSrc}function h(e,t){return t.map((t=>e.valueProperty?t[e.valueProperty]:t))}function p(e){return e.map((e=>e.value))}const f=(e,t)=>i(void 0,void 0,void 0,(function*(){let n=null;try{n=t.fetch?t.fetch:fetch}catch(e){n=null}try{if(!n)return console.log("You must provide a fetch interface to the fetch processor."),null;const t=yield n(e.data.url,{method:"GET"}),i=yield t.json();return i?h(e,i):null}catch(e){return console.error((0,l.getErrorMessage)(e)),null}}));function m(e,t,n){if(!(0,o.isObject)(e)||!(0,o.isObject)(t))return!1;try{return JSON.stringify(e)===JSON.stringify(t)}catch(e){throw new a.ProcessorError(`Error while comparing available values: ${e}`,n,"validate:validateAvailableItems")}}t.validateAvailableItems=e=>i(void 0,void 0,void 0,(function*(){const{component:t,value:n}=e,l=new a.FieldError("invalidOption",e,"onlyAvailableItems");try{if(u(t)){if(null==n||(0,r.isEmpty)(n))return null;const i="url"===t.dataSrc?yield f(t,e):t.values;return i?(0,o.isObject)(n)?void 0!==i.find((t=>m(t,n,e)))?null:l:void 0!==i.find((e=>e.value===n||e===n))?null:l:null}if(d(t)){if(null==n||(0,r.isEmpty)(n))return null;const u=yield function(e,t){return i(this,void 0,void 0,(function*(){switch((0,r.isUndefined)(e.dataSrc)&&e.data.hasOwnProperty("values")&&(e.dataSrc="values"),e.dataSrc){case"values":if(Array.isArray(e.data.values))return p(e.data.values);throw new a.ProcessorError(`Failed to validate available values in static values select component '${e.key}': the values are not an array`,t,"validate:validateAvailableItems");case"json":if("string"!=typeof e.data.json){if(Array.isArray(e.data.json))return h(e,e.data.json);throw new a.ProcessorError(`Failed to validate available values in JSON select component '${e.key}': the values are not an array`,t,"validate:validateAvailableItems")}try{return h(e,JSON.parse(e.data.json))}catch(n){throw new a.ProcessorError(`Failed to validate available values in JSON select component '${e.key}': ${n}`,t,"validate:validateAvailableItems")}case"custom":{const n=s.Evaluator.evaluate(e.data.custom,{values:[]},"values");if((0,o.isPromise)(n)){const i=yield n;if(Array.isArray(i))return i;throw new a.ProcessorError(`Failed to validate available values in JSON select component '${e.key}': the values are not an array`,t,"validate:validateAvailableItems")}if(Array.isArray(n))return n;throw new a.ProcessorError(`Failed to validate available values in JSON select component '${e.key}': the values are not an array`,t,"validate:validateAvailableItems")}case"url":return yield f(e,t);default:throw new a.ProcessorError(`Failed to validate available values in select component '${e.key}': data source ${e.dataSrc} is not valid}`,t,"validate:validateAvailableItems")}}))}(t,e);if(u)return(0,o.isObject)(n)?void 0!==u.find((t=>m(t,n,e)))?null:l:void 0!==u.find((e=>e===n))?null:l}else if(c(t)){if(null==n||(0,r.isEmpty)(n))return null;const i=yield f(t,e);if(i)return(0,o.isObject)(n)?void 0!==i.find((t=>m(t,n,e)))?null:l:void 0!==i.find((e=>e===n))?null:l}}catch(t){throw new a.ProcessorError(t.message||t,e,"validate:validateAvailableItems")}return null})),t.shouldValidate=e=>{const{component:t,value:n}=e;return!(null==n||(0,r.isEmpty)(n)||!u(t)&&!d(t)&&!c(t))},t.validateAvailableItemsSync=e=>{const{component:n,value:i}=e,l=new a.FieldError("invalidOption",e,"onlyAvailableItems");try{if(!(0,t.shouldValidate)(e))return null;if(u(n)&&"url"!==n.dataSrc){const e=n.values;return e?-1!==e.findIndex((({value:e})=>e===i))?null:l:null}if(d(n)){const t=function(e,t){var n;switch((0,r.isUndefined)(e.dataSrc)&&e.data.hasOwnProperty("values")&&(e.dataSrc="values"),e.dataSrc){case"values":if(Array.isArray(null===(n=e.data)||void 0===n?void 0:n.values))return p(e.data.values);throw new a.ProcessorError(`Failed to validate available values in static values select component '${e.key}': the values are not an array`,t,"validate:validateAvailableItems");case"json":if("string"!=typeof e.data.json){if(Array.isArray(e.data.json))return h(e,e.data.json);throw new a.ProcessorError(`Failed to validate available values in JSON select component '${e.key}': the values are not an array`,t,"validate:validateAvailableItems")}try{return h(e,JSON.parse(e.data.json))}catch(n){throw new a.ProcessorError(`Failed to validate available values in JSON select component '${e.key}': ${n}`,t,"validate:validateAvailableItems")}case"custom":{const n=s.Evaluator.evaluate(e.data.custom,{values:[]},"values");if(Array.isArray(n))return n;throw new a.ProcessorError(`Failed to validate available values in JSON select component '${e.key}': the values are not an array`,t,"validate:validateAvailableItems")}case"url":return null;default:throw new a.ProcessorError(`Failed to validate available values in select component '${e.key}': data source ${e.dataSrc} is not valid}`,t,"validate:validateAvailableItems")}}(n,e);if(t)return(0,o.isObject)(i)?void 0!==t.find((t=>m(t,i,e)))?null:l:void 0!==t.find((e=>e===i))?null:l}}catch(t){throw new a.ProcessorError(t.message||t,e,"validate:validateAvailableItems")}return null},t.validateAvailableItemsInfo={name:"validateAvailableItems",process:t.validateAvailableItems,processSync:t.validateAvailableItemsSync,shouldProcess:t.shouldValidate}},17640:()=>{},17670:(e,t,n)=>{var i=n(12651);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},17690:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unwind=t.rewind=t.mergeArray=t.mergeObject=void 0;const i=n(2543),r=n(60554),a=n(96690);function s(e,t){(0,i.each)(e,(function(e,n){Array.isArray(e)?(t[n]||(t[n]=[]),o(e,t[n])):t[n]=e}))}function o(e,t){e.forEach((function(e){const n={};(0,i.each)(e,(function(e,t){Array.isArray(e)||(n[t]=e)}));const r=(0,i.find)(t,n);r?s(e,r):t.push(e)}))}t.mergeObject=s,t.mergeArray=o,t.rewind=function(e){const t={data:{}};return e&&e.length&&e.forEach((e=>s(e.data,t.data))),t},t.unwind=function(e,t){const n={},s={},o=[(0,r.fastCloneDeep)(t)],l=function(e,t,n,a,d){for(a=a||0,d=d||0;(0,i.has)(s,"["+d+"]."+n);)d+1>=o.length&&o.push((0,r.fastCloneDeep)(o[d])),d++;const c=n.replace(/\.[^\.]+$/,"");!(0,i.has)(o[d].data,c)&&o[d-1]&&(0,i.has)(o[d-1].data,c)&&(0,i.set)(o[d].data,c,(0,r.fastCloneDeep)((0,i.get)(o[d-1].data,c)));const h=[];(0,i.set)(o[d].data,n,h),(0,i.set)(s,"["+d+"]."+n,!0);for(let i=a;ie[a].max&&(e[a].max=s):e[a]={max:s,param:a,parent:i||null,paths:{}},n+1{e.isInsideNestedForm=!0})),!e.overlay||!e.overlay.width&&!e.overlay.height)return;const s=e.properties&&e.properties.dataPath;let o=e.key;s&&(t=e.properties.dataPath,o=e.properties.dataPath);const l=(0,i.filter)(t.replace(new RegExp(".?"+e.key+"$"),"").split("."));s||!l.length||e.isInsideNestedForm||(o=l.join(".")+"."+e.key),e.multiple&&l.push(e.key),e.key=o,l&&l.length&&d(n,l)}),!0),u(n,t.data),o}},17730:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n(95093))},17749:e=>{var t=Array.isArray,n=Object.prototype.toString;e.exports=t||function(e){return!!e&&"[object Array]"==n.call(e)}},17795:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"validate.minLength",ignore:!0},{key:"validate.maxLength",ignore:!0},{key:"validate.pattern",ignore:!0},{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},17901:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(33844)),a=n(10196);t.default=[{weight:10,type:"checkbox",label:"Required",tooltip:"A required field must be filled in before the form can be submitted.",key:"validate.required",input:!0},{weight:100,type:"checkbox",label:"Unique",tooltip:"Makes sure the data submitted for this field is unique, and has not been submitted before.",key:"unique",input:!0},{weight:100,type:"checkbox",label:"Validate When Hidden",tooltip:"Validates the component when it is hidden/conditionally hidden. Vaildation errors are displayed in the error alert on the form submission. Use caution when enabling this setting, as it can cause a hidden component to be invalid with no way for the form user to correct it.",key:"validateWhenHidden",input:!0},{weight:0,type:"select",key:"validateOn",defaultValue:"change",input:!0,label:"Validate On",tooltip:"Determines when this component should trigger front-end validation.",dataSrc:"values",data:{values:[{label:"Change",value:"change"},{label:"Blur",value:"blur"}]}},{weight:190,type:"textfield",input:!0,key:"errorLabel",label:"Error Label",placeholder:"Error Label",tooltip:"The label for this field when an error occurs."},{weight:200,key:"validate.customMessage",label:"Custom Error Message",placeholder:"Custom Error Message",type:"textfield",tooltip:"Error message displayed if any error occurred.",input:!0},{type:"panel",title:"Custom Validation",collapsible:!0,collapsed:!0,style:{"margin-bottom":"10px"},key:"custom-validation-js",weight:300,customConditional:()=>!a.Evaluator.noeval||a.Evaluator.protectedEval,components:[r.default.logicVariablesTable("inputThe value that was input into this component"),{type:"textarea",key:"validate.custom",rows:5,editor:"ace",hideLabel:!0,as:"javascript",input:!0},{type:"htmlelement",tag:"div",content:"\n \n

Enter custom validation code.

\n

You must assign the valid variable as either true or an error message if validation fails.

\n
Example:
\n
valid = (input === 'Joe') ? true : 'Your name must be \"Joe\"';
\n
"},{type:"well",components:[{weight:100,type:"checkbox",label:"Secret Validation",tooltip:"Check this if you wish to perform the validation ONLY on the server side. This keeps your validation logic private and secret.",description:"Check this if you wish to perform the validation ONLY on the server side. This keeps your validation logic private and secret.",key:"validate.customPrivate",input:!0}]}]},{type:"panel",title:"JSONLogic Validation",collapsible:!0,collapsed:!0,key:"json-validation-json",weight:400,components:[{type:"htmlelement",tag:"div",content:'

Execute custom logic using JSONLogic.

Example:
'+JSON.stringify({if:[{"===":[{var:"input"},"Bob"]},!0,"Your name must be 'Bob'!"]},null,2)+"
"},{type:"textarea",key:"validate.json",hideLabel:!0,rows:5,editor:"ace",as:"json",input:!0}]},{type:"panel",title:"Custom Errors",collapsible:!0,collapsed:!0,key:"errors",weight:400,components:[{type:"textarea",key:"errors",hideLabel:!0,rows:5,editor:"ace",as:"json",input:!0},{type:"htmlelement",tag:"div",content:'\n

This allows you to set different custom error messages for different errors\n (in contrast to “Custom Error Message”, which only allows you to set one\n error message for all errors). E.g.

\n\n
{\n  "required": "{{ field }} is required. Try again.",\n  "maxLength": "{{ field }} is too long. Try again."\n}
\n\n

You can set the following keys (among others):

\n
    \n
  • required
  • \n
  • min
  • \n
  • max
  • \n
  • minLength
  • \n
  • maxLength
  • \n
  • minWords
  • \n
  • maxWords
  • \n
  • invalid_email
  • \n
  • invalid_date
  • \n
  • invalid_day
  • \n
  • invalid_regex
  • \n
  • mask
  • \n
  • pattern
  • \n
  • custom
  • \n
\n\n

Depending on the error message some of the following template variables can be used in the script:

\n
    \n
  • {{ field }} is replaced with the label of the field.
  • \n
  • {{ min }}
  • \n
  • {{ max }}
  • \n
  • {{ length }}
  • \n
  • {{ pattern }}
  • \n
  • {{ minDate }}
  • \n
  • {{ maxDate }}
  • \n
  • {{ minYear }}
  • \n
  • {{ maxYear }}
  • \n
  • {{ regex }}
  • \n
\n '}]}]},17938:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=n(34600),s=(e,t)=>{const{instance:n,data:i}=e,a=n.downloadedResources.find((e=>r.default.get(e,i.valueProperty)===t)),s={data:{},noeval:!0};return n.interpolate(i.template,{item:a},s),s.data.item},o=e=>{setTimeout((()=>{var t,n;const{instance:i,data:r}=e,a=null===(t=null==i?void 0:i.root)||void 0===t?void 0:t.getComponent("selectData");if(a&&(!a.visible||!r.defaultValue))return void a.setValue(null,{resetValue:!0});if(!a||!i.getValue()||!(null===(n=i.downloadedResources)||void 0===n?void 0:n.length))return;const o="url"===r.dataSrc&&r.data.url&&r.valueProperty,l="resource"===r.dataSrc&&r.data.resource&&r.valueProperty,u=o||l?(e=>{const{instance:t}=e,n=t.getValue();if(t.component.multiple){const t={};return(null!=n?n:[]).forEach((n=>{t[n]=s(e,n)})),t}return s(e,n)})(e):null;a.setValue(u,{resetValue:null===u})}),0)};t.default=[{key:"dataSrc",data:{values:[{label:"Values",value:"values"},{label:"URL",value:"url"},{label:"Resource",value:"resource"},{label:"Custom",value:"custom"},{label:"Raw JSON",value:"json"}]}},{type:"textfield",weight:10,input:!0,key:"indexeddb.database",label:"Database name",tooltip:"The name of the indexeddb database.",conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textfield",input:!0,key:"indexeddb.table",label:"Table name",weight:16,tooltip:"The name of table in the indexeddb database.",conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textarea",as:"json",editor:"ace",weight:18,input:!0,key:"indexeddb.filter",label:"Row Filter",tooltip:"Filter table items that match the object.",defaultValue:{},conditional:{json:{"===":[{var:"data.dataSrc"},"indexeddb"]}}},{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"data.json",label:"Data Source Raw JSON",tooltip:"A valid JSON array to use as a data source.",description:'
Example:
["apple", "banana", "orange"].
Example 2:
[{"name": "John", "email": "john.doe@test.com"}, {"name": "Jane", "email": "jane.doe@test.com"}].
',conditional:{json:{"===":[{var:"data.dataSrc"},"json"]}}},{type:"checkbox",input:!0,label:"Lazy Load Data",key:"lazyLoad",tooltip:"When set, this will not fire off the request to the URL until this control is within focus. This can improve performance if you have many Select dropdowns on your form where the API's will only fire when the control is activated.",weight:11,conditional:{json:{and:[{in:[{var:"data.dataSrc"},["resource","url"]]},{"!==":[{var:"data.widget"},"html5"]}]}}},{type:"datagrid",input:!0,label:"Data Source Values",key:"data.values",tooltip:"Values to use as the data source. Labels are shown in the select field. Values are the corresponding values saved with the submission.",weight:10,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:"value = _.camelCase(row.label);"}],conditional:{json:{"===":[{var:"data.dataSrc"},"values"]}}},{type:"select",input:!0,dataSrc:"url",data:{url:"/form?type=resource&limit=1000000&select=_id,title"},authenticate:!0,template:"{{ item.title }}",valueProperty:"_id",clearOnHide:!1,label:"Resource",key:"data.resource",lazyLoad:!1,weight:10,tooltip:"The resource to be used with this field.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",input:!0,label:"Data Path",key:"selectValues",weight:12,description:"The object path to the iterable items.",tooltip:"The property within the source data, where iterable items reside. For example: results.items or results[0].items",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"select",input:!0,label:"Value Property",key:"valueProperty",skipMerge:!0,clearOnHide:!0,tooltip:"The field to use as the value.",weight:11,refreshOn:"data.resource",template:"{{ item.label }}",valueProperty:"key",dataSrc:"url",lazyLoad:!1,onSetItems(e,t){const n="resource"===t.type?[{label:"{Entire Object}",key:"data"}]:[];return(0,a.eachComponent)(t.components,((e,t)=>{e.input&&n.push({label:e.label||e.key,key:`data.${t}`})})),n},onChange(e){if(e&&e.flags&&e.flags.modified){const t=e.instance.data.valueProperty,n=`{{ item.${t||"data"} }}`,i=t?`${t}__regex`:"";e.instance.root.getComponent("template").setValue(n),e.instance.root.getComponent("searchField").setValue(i)}},data:{url:"/form/{{ data.data.resource }}"},conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!==":[{var:"data.reference"},!0]},{var:"data.data.resource"}]}}},{type:"select",input:!0,label:"Storage Type",key:"dataType",clearOnHide:!0,tooltip:"The type to store the data. If you select something other than autotype, it will force it to that type.",weight:12,template:"{{ item.label }}",dataSrc:"values",data:{values:[{label:"Autotype",value:"auto"},{label:"String",value:"string"},{label:"Number",value:"number"},{label:"Boolean",value:"boolean"},{label:"Object",value:"object"}]}},{type:"textfield",input:!0,key:"idPath",weight:12,label:"ID Path",placeholder:"id",tooltip:"Path to the select option id."},{type:"textfield",input:!0,label:"Select Fields",key:"selectFields",tooltip:"The properties on the resource to return as part of the options. Separate property names by commas. If left blank, all properties will be returned.",placeholder:"Comma separated list of fields to select.",weight:14,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"===":[{var:"data.valueProperty"},""]}]}}},{type:"checkbox",input:!0,key:"disableLimit",label:"Disable limiting response",tooltip:"When enabled the request will not include the limit and skip options in the query string",weight:15,conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"textfield",input:!0,key:"searchField",label:"Search Query Name",weight:16,description:"Name of URL query parameter",tooltip:"The name of the search querystring parameter used when sending a request to filter results with. The server at the URL must handle this query parameter.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"searchDebounce",label:"Search request delay",weight:16,description:"The delay (in seconds) before the search request is sent.",tooltip:"The delay in seconds before the search request is sent, measured from the last character input in the search field.",validate:{min:0,customMessage:"",json:"",max:1},delimiter:!1,requireDecimal:!1,encrypted:!1,defaultValue:.3,conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"minSearch",weight:17,label:"Minimum Search Length",tooltip:"The minimum amount of characters they must type before a search is made.",defaultValue:0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"url"]},{"!=":[{var:"data.searchField"},""]}]}}},{type:"textfield",input:!0,key:"filter",label:"Filter Query",weight:18,description:"The filter query for results.",tooltip:"Use this to provide additional filtering using query parameters.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"textfield",input:!0,key:"sort",label:"Sort Query",weight:18,description:"The sort query for results",tooltip:"Use this to provide additional sorting using query parameters",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource"]]}}},{type:"number",input:!0,key:"limit",label:"Limit",weight:18,description:"Maximum number of items to view per page of results.",tooltip:"Use this to limit the number of items to request or view.",clearOnHide:!1,conditional:{json:{and:[{in:[{var:"data.dataSrc"},["url","resource"]]},{"!==":[{var:"data.disableLimit"},!0]}]}}},{type:"textarea",input:!0,key:"data.custom",label:"Custom Values",editor:"ace",rows:10,weight:14,placeholder:"values = data['mykey'] or values = Promise.resolve(['myValue'])",tooltip:"Write custom code to return the value options or a promise with value options. The form data object is available.",conditional:{json:{"===":[{var:"data.dataSrc"},"custom"]}}},{type:"select",input:!0,key:"refreshOn",label:"Refresh Options On",weight:19,tooltip:"Refresh data when another field changes.",dataSrc:"custom",valueProperty:"value",data:{custom(e){var t=[];return t.push({label:"Any Change",value:"data"}),e.utils.eachComponent(e.instance.options.editForm.components,(function(n,i){n.key!==e.data.key&&t.push({label:n.label||n.key,value:i})})),t}},conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values","custom"]]}}},{type:"select",input:!0,key:"refreshOnBlur",label:"Refresh Options On Blur",weight:19,tooltip:"Refresh data when another field is blured.",dataSrc:"custom",valueProperty:"value",data:{custom(e){var t=[];return t.push({label:"Any Change",value:"data"}),e.utils.eachComponent(e.instance.options.editForm.components,(function(n,i){n.key!==e.data.key&&t.push({label:n.label||n.key,value:i})})),t}},conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values"]]}}},{type:"checkbox",input:!0,weight:20,key:"clearOnRefresh",label:"Clear Value On Refresh Options",defaultValue:!1,tooltip:"When the Refresh On field is changed, clear this components value.",conditional:{json:{in:[{var:"data.dataSrc"},["url","resource","values","custom"]]}}},{type:"checkbox",input:!0,weight:21,key:"searchEnabled",label:"Enable Static Search",defaultValue:!0,tooltip:"When checked, the select dropdown will allow for searching within the static list of items provided."},{type:"checkbox",input:!0,weight:21,key:"noRefreshOnScroll",label:"Disable Options Refresh When Scrolling",defaultValue:!1,tooltip:"When checked, the select with search input won't perform new api requests when scrolling through the list of options.",conditional:{json:{and:[{in:[{var:"data.dataSrc"},["url","resource"]]},{"===":[{var:"data.searchEnabled"},!0]}]}}},{label:"Search Threshold",mask:!1,tableView:!0,alwaysEnabled:!1,type:"number",input:!0,key:"selectThreshold",validate:{min:0,customMessage:"",json:"",max:1},delimiter:!1,requireDecimal:!1,encrypted:!1,defaultValue:.3,weight:22,tooltip:"At what point does the match algorithm give up. A threshold of 0.0 requires a perfect match, a threshold of 1.0 would match anything."},{type:"checkbox",input:!0,weight:23,key:"addResource",label:"Add Resource",tooltip:"Allows to create a new resource while entering a submission.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"textfield",label:"Add Resource Label",key:"addResourceLabel",tooltip:"Set the text of the Add Resource button.",placeholder:"Add Resource",weight:24,input:!0,conditional:{json:{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!!":{var:"data.addResource"}}]}}},{type:"checkbox",input:!0,weight:25,key:"reference",label:"Save as reference",tooltip:"Using this option will save this field as a reference and link its value to the value of the origin record.",conditional:{json:{"===":[{var:"data.dataSrc"},"resource"]}}},{type:"checkbox",input:!0,weight:27,key:"readOnlyValue",label:"Read Only Value",tooltip:"Check this if you would like to show just the value when in Read Only mode."},{type:"textarea",as:"json",editor:"ace",weight:28,input:!0,key:"customOptions",label:"Choices.js options",tooltip:"A raw JSON object to use as options for the Select component (Choices JS).",defaultValue:{}},{type:"checkbox",input:!0,weight:29,key:"useExactSearch",label:"Use exact search",tooltip:"Disables search algorithm threshold."},{key:"defaultValue",onSetItems(e){o(e.evalContext())},onChange(e){e&&e.flags&&e.flags.modified&&o(e)}},{key:"selectData",conditional:{json:{and:[{var:"data.valueProperty"},{"===":[{var:"data.lazyLoad"},!0]},{"!==":[{var:"data.widget"},"html5"]},{or:[{"===":[{var:"data.dataSrc"},"url"]},{and:[{"===":[{var:"data.dataSrc"},"resource"]},{"!==":[{var:"data.valueProperty"},"data"]}]}]}]}}},{key:"template",onChange(e){if(e&&e.flags&&e.flags.modified){const t=e.instance.root.getComponent("defaultValue");if(!t)return;o(t.evalContext())}}}]},18014:(e,t,n)=>{"use strict";var i=n(91291),r=Math.min;e.exports=function(e){var t=i(e);return t>0?r(t,9007199254740991):0}},18092:function(e){e.exports=function(){"use strict";var e=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e,t){e.exports=function(e){var t=function(e,t){return e+t&4294967295},n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function i(e,n,i,r,a,s){return n=t(t(n,e),t(r,s)),t(n<>>32-a,i)}function r(e,t,n,r,a,s,o){return i(t&n|~t&r,e,t,a,s,o)}function a(e,t,n,r,a,s,o){return i(t&r|n&~r,e,t,a,s,o)}function s(e,t,n,r,a,s,o){return i(t^n^r,e,t,a,s,o)}function o(e,t,n,r,a,s,o){return i(n^(t|~r),e,t,a,s,o)}function l(e,n){var i=e[0],l=e[1],u=e[2],d=e[3];i=r(i,l,u,d,n[0],7,-680876936),d=r(d,i,l,u,n[1],12,-389564586),u=r(u,d,i,l,n[2],17,606105819),l=r(l,u,d,i,n[3],22,-1044525330),i=r(i,l,u,d,n[4],7,-176418897),d=r(d,i,l,u,n[5],12,1200080426),u=r(u,d,i,l,n[6],17,-1473231341),l=r(l,u,d,i,n[7],22,-45705983),i=r(i,l,u,d,n[8],7,1770035416),d=r(d,i,l,u,n[9],12,-1958414417),u=r(u,d,i,l,n[10],17,-42063),l=r(l,u,d,i,n[11],22,-1990404162),i=r(i,l,u,d,n[12],7,1804603682),d=r(d,i,l,u,n[13],12,-40341101),u=r(u,d,i,l,n[14],17,-1502002290),i=a(i,l=r(l,u,d,i,n[15],22,1236535329),u,d,n[1],5,-165796510),d=a(d,i,l,u,n[6],9,-1069501632),u=a(u,d,i,l,n[11],14,643717713),l=a(l,u,d,i,n[0],20,-373897302),i=a(i,l,u,d,n[5],5,-701558691),d=a(d,i,l,u,n[10],9,38016083),u=a(u,d,i,l,n[15],14,-660478335),l=a(l,u,d,i,n[4],20,-405537848),i=a(i,l,u,d,n[9],5,568446438),d=a(d,i,l,u,n[14],9,-1019803690),u=a(u,d,i,l,n[3],14,-187363961),l=a(l,u,d,i,n[8],20,1163531501),i=a(i,l,u,d,n[13],5,-1444681467),d=a(d,i,l,u,n[2],9,-51403784),u=a(u,d,i,l,n[7],14,1735328473),i=s(i,l=a(l,u,d,i,n[12],20,-1926607734),u,d,n[5],4,-378558),d=s(d,i,l,u,n[8],11,-2022574463),u=s(u,d,i,l,n[11],16,1839030562),l=s(l,u,d,i,n[14],23,-35309556),i=s(i,l,u,d,n[1],4,-1530992060),d=s(d,i,l,u,n[4],11,1272893353),u=s(u,d,i,l,n[7],16,-155497632),l=s(l,u,d,i,n[10],23,-1094730640),i=s(i,l,u,d,n[13],4,681279174),d=s(d,i,l,u,n[0],11,-358537222),u=s(u,d,i,l,n[3],16,-722521979),l=s(l,u,d,i,n[6],23,76029189),i=s(i,l,u,d,n[9],4,-640364487),d=s(d,i,l,u,n[12],11,-421815835),u=s(u,d,i,l,n[15],16,530742520),i=o(i,l=s(l,u,d,i,n[2],23,-995338651),u,d,n[0],6,-198630844),d=o(d,i,l,u,n[7],10,1126891415),u=o(u,d,i,l,n[14],15,-1416354905),l=o(l,u,d,i,n[5],21,-57434055),i=o(i,l,u,d,n[12],6,1700485571),d=o(d,i,l,u,n[3],10,-1894986606),u=o(u,d,i,l,n[10],15,-1051523),l=o(l,u,d,i,n[1],21,-2054922799),i=o(i,l,u,d,n[8],6,1873313359),d=o(d,i,l,u,n[15],10,-30611744),u=o(u,d,i,l,n[6],15,-1560198380),l=o(l,u,d,i,n[13],21,1309151649),i=o(i,l,u,d,n[4],6,-145523070),d=o(d,i,l,u,n[11],10,-1120210379),u=o(u,d,i,l,n[2],15,718787259),l=o(l,u,d,i,n[9],21,-343485551),e[0]=t(i,e[0]),e[1]=t(l,e[1]),e[2]=t(u,e[2]),e[3]=t(d,e[3])}function u(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function d(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function c(e){var t,n,i,r,a,s,o=e.length,d=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=o;t+=64)l(d,u(e.substring(t-64,t)));for(n=(e=e.substring(t-64)).length,i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(l(d,i),t=0;t<16;t+=1)i[t]=0;return r=(r=8*o).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(r[2],16),s=parseInt(r[1],16)||0,i[14]=a,i[15]=s,l(d,i),d}function h(e){var t,n,i,r,a,s,o=e.length,u=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=o;t+=64)l(u,d(e.subarray(t-64,t)));for(n=(e=t-64>2]|=e[t]<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(l(u,i),t=0;t<16;t+=1)i[t]=0;return r=(r=8*o).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(r[2],16),s=parseInt(r[1],16)||0,i[14]=a,i[15]=s,l(u,i),u}function p(e){var t,i="";for(t=0;t<4;t+=1)i+=n[e>>8*t+4&15]+n[e>>8*t&15];return i}function f(e){var t;for(t=0;t>16)+(t>>16)+(n>>16)<<16|65535&n}),"undefined"==typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,i){var r,a,s,o,l=this.byteLength,u=t(n,l),d=l;return i!==e&&(d=t(i,l)),u>d?new ArrayBuffer(0):(r=d-u,a=new ArrayBuffer(r),s=new Uint8Array(a),o=new Uint8Array(this,u,r),s.set(o),a)}}(),_.prototype.append=function(e){return this.appendBinary(m(e)),this},_.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,n=this._buff.length;for(t=64;t<=n;t+=64)l(this._hash,u(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},_.prototype.end=function(e){var t,n,i=this._buff,r=i.length,a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t>2]|=i.charCodeAt(t)<<(t%4<<3);return this._finish(a,r),n=f(this._hash),e&&(n=b(n)),this.reset(),n},_.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},_.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash}},_.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},_.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},_.prototype._finish=function(e,t){var n,i,r,a=t;if(e[a>>2]|=128<<(a%4<<3),a>55)for(l(this._hash,e),a=0;a<16;a+=1)e[a]=0;n=(n=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(n[2],16),r=parseInt(n[1],16)||0,e[14]=i,e[15]=r,l(this._hash,e)},_.hash=function(e,t){return _.hashBinary(m(e),t)},_.hashBinary=function(e,t){var n=f(c(e));return t?b(n):n},_.ArrayBuffer=function(){this.reset()},_.ArrayBuffer.prototype.append=function(e){var t,n=y(this._buff.buffer,e,!0),i=n.length;for(this._length+=e.byteLength,t=64;t<=i;t+=64)l(this._hash,d(n.subarray(t-64,t)));return this._buff=t-64>2]|=i[t]<<(t%4<<3);return this._finish(a,r),n=f(this._hash),e&&(n=b(n)),this.reset(),n},_.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},_.ArrayBuffer.prototype.getState=function(){var e=_.prototype.getState.call(this);return e.buff=v(e.buff),e},_.ArrayBuffer.prototype.setState=function(e){return e.buff=g(e.buff,!0),_.prototype.setState.call(this,e)},_.ArrayBuffer.prototype.destroy=_.prototype.destroy,_.ArrayBuffer.prototype._finish=_.prototype._finish,_.ArrayBuffer.hash=function(e,t){var n=f(h(new Uint8Array(e)));return t?b(n):n},_}()}));return class{md5(t,n,i){this.aborted=!1,this.progress=0;let r=0;const a=File.prototype.slice||File.prototype.mozSlice||File.prototype.webkitSlice,s=2097152,o=Math.ceil(t.size/s),l=new e.ArrayBuffer,u=new FileReader;function d(){const e=r*s,n=e+s>=t.size?t.size:e+s;u.readAsArrayBuffer(a.call(t,e,n))}d(),u.onloadend=e=>{l.append(e.target.result),r++,this.progress=r/o,i&&"function"==typeof i&&i(this.progress),this.aborted?n("aborted"):r{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"tabindex",ignore:!0},{key:"hidden",ignore:!0},{key:"tableView",ignore:!0},{key:"disabled",ignore:!0}]},18113:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const s=a(n(57112));t.default={bootstrap:s}},18509:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(41767)),a=i(n(2543)),s=n(34600);class o extends r.default{static schema(...e){return r.default.schema({type:"textarea",label:"Text Area",key:"textArea",rows:3,wysiwyg:!1,editor:"",fixedSize:!0,inputFormat:"html",validate:{minWords:"",maxWords:""}},...e)}static get builderInfo(){return{title:"Text Area",group:"basic",icon:"font",documentation:"/userguide/form-building/form-components#text-area",weight:20,schema:o.schema()}}init(){super.init(),this.editors=[],this.editorsReady=[],this.updateSizes=[],this.options.submitOnEnter=!1}get defaultSchema(){return o.schema()}get inputInfo(){const e=super.inputInfo;return e.type=this.component.wysiwyg?"div":"textarea",this.component.rows&&(e.attr.rows=this.component.rows),e}validateMultiple(){return!this.isJsonValue}renderElement(e,t){const n=this.inputInfo;if(n.attr=n.attr||{},n.content=e,(this.options.readOnly||this.disabled)&&!this.isHtmlRenderMode()){const t=this.info.attr.style||"",n=`
`;return this.renderTemplate("well",{children:n,nestedKey:this.key,value:e})}return this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:n,value:e,index:t})}get autoExpand(){return this.component.autoExpand}updateEditorValue(e,t){t=this.getConvertedValue(this.trimBlanks(t));const n=this.dataValue;if(this.component.multiple&&Array.isArray(n)){const i=a.default.clone(n);i[e]=t,t=i}a.default.isEqual(t,n)||a.default.isEmpty(t)&&a.default.isEmpty(n)||this.updateValue(t,{modified:!this.autoModified},e),this.autoModified=!1}attachElement(e,t){if(this.autoExpand&&(this.isPlain||this.options.readOnly||this.options.htmlView)&&"TEXTAREA"===e.nodeName&&this.addAutoExpanding(e,t),this.options.readOnly)return e;this.component.wysiwyg&&!this.component.editor&&(this.component.editor="ckeditor");let n=a.default.isEmpty(this.component.wysiwyg)?this.wysiwygDefault[this.component.editor]||this.wysiwygDefault.default:this.component.wysiwyg;return this.editorsReady[t]=new Promise((i=>{switch(this.component.editor){case"ace":n||(n={}),n.mode=this.component.as?`ace/mode/${this.component.as}`:"ace/mode/javascript",this.addAce(e,n,(e=>this.updateEditorValue(t,e))).then((e=>{this.editors[t]=e;let n=this.dataValue;return n=this.component.multiple&&Array.isArray(n)?n[t]:n,e.setValue(this.setConvertedValue(n,t)),i(e),e})).catch((e=>console.warn(e)));break;case"quill":(n.hasOwnProperty("toolbarGroups")||n.hasOwnProperty("toolbar"))&&(console.warn("The WYSIWYG settings are configured for CKEditor. For this renderer, you will need to use configurations for the Quill Editor. See https://quilljs.com/docs/configuration for more information."),n=this.wysiwygDefault.quill),this.addQuill(e,n,(()=>this.updateEditorValue(t,this.editors[t].root.innerHTML))).then((e=>{if(this.editors[t]=e,this.component.isUploadEnabled){const t=this;e.getModule("uploader").options.handler=function(...e){t.imageHandler.call(t,this,...e)}}e.root.spellcheck=this.component.spellcheck,(this.options.readOnly||this.disabled)&&e.disable();let n=this.dataValue;return n=this.component.multiple&&Array.isArray(n)?n[t]:n,e.setContents(e.clipboard.convert({html:this.setConvertedValue(n,t)})),i(e),e})).catch((e=>console.warn(e)));break;case"ckeditor":n=n||{},n.rows=this.component.rows,this.addCKE(e,n,(e=>this.updateEditorValue(t,e))).then((e=>{this.editors[t]=e;let n=this.dataValue;n=this.component.multiple&&Array.isArray(n)?n[t]:n;const r=this.setConvertedValue(n,t),o=this.options.readOnly||this.disabled;if((0,s.getBrowserInfo)().ie)e.on("instanceReady",(()=>{e.setReadOnly(o),e.setData(r)}));else{const t=parseInt(this.component.rows,10);if(a.default.isFinite(t)&&a.default.has(e,"ui.view.editable.editableElement")){const n=31*t+14;e.ui.view.editable.editableElement.style.height=`${n}px`}e.isReadOnly=o,e.data.set(r)}return i(e),e}));break;default:super.attachElement(e,t)}})),e}attach(e){const t=super.attach(e);return this.restoreValue(),t}imageHandler(e,t,n){const i=e.quill;if(!n||!n.length)return void console.warn("No files selected");i.enable(!1);const{uploadStorage:r,uploadUrl:a,uploadOptions:o,uploadDir:l,fileKey:u}=this.component;let d;this.fileService.uploadFile(r,n[0],(0,s.uniqueName)(n[0].name),l||"",null,a,o,u).then((e=>(d=e,this.fileService.downloadFile(e)))).then((e=>{i.enable(!0);const n=Quill.import("delta");i.updateContents((new n).retain(t.index).delete(t.length).insert({image:e.url},{alt:JSON.stringify(d)}),Quill.sources.USER)})).catch((e=>{console.warn("Quill image upload failed"),console.warn(e),i.enable(!0)}))}get isPlain(){return!this.component.wysiwyg&&!this.component.editor}get htmlView(){return this.options.readOnly&&(this.component.editor||this.component.wysiwyg)}setValueAt(e,t,n={}){if(super.setValueAt(e,t,n),this.editorsReady[e]){const i=n=>i=>{if(!n.skipWysiwyg)switch(this.autoModified=!0,this.component.editor){case"ace":i.setValue(this.setConvertedValue(t,e));break;case"quill":if(this.component.isUploadEnabled)this.setAsyncConvertedValue(t).then((e=>{const t=i.clipboard.convert({html:e});i.setContents(t)}));else{const n=this.setConvertedValue(t,e),r=i.clipboard.convert({html:n});i.setContents(r)}break;case"ckeditor":i.data.set(this.setConvertedValue(t,e))}};this.editorsReady[e].then(i(a.default.clone(n)))}}setValue(e,t={}){return this.isPlain||this.options.readOnly||this.disabled?(e=this.component.multiple&&Array.isArray(e)?e.map(((e,t)=>this.setConvertedValue(e,t))):this.setConvertedValue(e),super.setValue(e,t)):(t.skipWysiwyg=(""!==e||!t.resetValue)&&a.default.isEqual(e,this.getValue()),super.setValue(e,t))}setContent(e,t,n){super.setContent(e,t,n,{addAttr:["allow","allowfullscreen","frameborder","scrolling"],addTags:["iframe"]})}setReadOnlyValue(e,t){t=t||0,(this.options.readOnly||this.disabled)&&this.refs.input&&this.refs.input[t]&&("plain"===this.component.inputFormat?this.refs.input[t].innerText=this.isPlain?e:this.interpolate(e,{},{noeval:!0}):this.setContent(this.refs.input[t],this.isPlain?e:this.interpolate(e,{},{noeval:!0}),this.shouldSanitizeValue))}get isJsonValue(){return this.component.as&&"json"===this.component.as}normalizeValue(e){return this.component.multiple&&Array.isArray(e)?e.map((e=>this.normalizeSingleValue(e))):super.normalizeValue(this.normalizeSingleValue(e))}normalizeSingleValue(e){if(!a.default.isNil(e))return this.isJsonValue?e:String(e)}isSingleInputValue(){return!this.component.multiple}setConvertedValue(e,t){if(this.isJsonValue&&!a.default.isNil(e))try{e=JSON.stringify(e,null,2)}catch(e){console.warn(e)}return a.default.isString(e)||(e=""),this.setReadOnlyValue(e,t),e}setAsyncConvertedValue(e){if(this.isJsonValue&&e)try{e=JSON.stringify(e,null,2)}catch(e){console.warn(e)}a.default.isString(e)||(e="");const t=(new DOMParser).parseFromString(e,"text/html"),n=t.getElementsByTagName("img");return n.length?this.setImagesUrl(n).then((()=>e=t.getElementsByTagName("body")[0].innerHTML)):Promise.resolve(e)}setImagesUrl(e){return Promise.all(a.default.map(e,(e=>{let t;try{t=JSON.parse(e.getAttribute("alt"))}catch(e){console.warn(e)}return this.fileService.downloadFile(t).then((t=>{e.setAttribute("src",t.url)}))})))}addAutoExpanding(e,t){let n=null,i=null;const r=t=>{const n=e.style.width;e.style.width="0px",e.offsetWidth,e.style.width=n,e.style.overflowY=t},s=()=>{0!==e.scrollHeight&&(t=>{const i=[];for(;t&&t.parentNode&&t.parentNode instanceof Element;)t.parentNode.scrollTop&&i.push({node:t.parentNode,scrollTop:t.parentNode.scrollTop}),t=t.parentNode;e.style.height="",e.style.height=`${e.scrollHeight+n}px`,i.forEach((e=>{e.node.scrollTop=e.scrollTop}))})(e)},o=a.default.debounce((()=>{s();const t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null);let a=e.offsetHeight;a{const t="

 

",n="


",i="


 

",r=new RegExp(`^${t}|${t}$|^${n}|${n}$|^${i}|${i}$`,"g");return"string"==typeof e?e.replace(r,""):e};return Array.isArray(e)?e.forEach(((n,i)=>{e[i]=t(n)})):e=t(e),e}onChange(e,t){const n=super.onChange(e,t);return this.updateSizes.forEach((e=>e())),n}hasChanged(e,t){return super.hasChanged(this.trimBlanks(e),this.trimBlanks(t))}isEmpty(e=this.dataValue){return super.isEmpty(this.trimBlanks(e))}get defaultValue(){let e=super.defaultValue;return"quill"!==this.component.editor||e||(e="


"),e}getConvertedValue(e){if(this.isJsonValue&&e)try{e=JSON.parse(e)}catch(e){}return e}detach(){this.editors.forEach((e=>{e.destroy&&e.destroy()})),this.editors=[],this.editorsReady=[],this.updateSizes.forEach((e=>this.removeEventListener(window,"resize",e))),this.updateSizes=[],super.detach()}getValue(){return this.isPlain?this.getConvertedValue(super.getValue()):this.dataValue}focus(){var e,t,n;switch(super.focus(),this.component.editor){case"ckeditor":null===(e=this.editorsReady[0])||void 0===e||e.then((()=>{var e,t;(null===(t=null===(e=this.editors[0].editing)||void 0===e?void 0:e.view)||void 0===t?void 0:t.focus)&&this.editors[0].editing.view.focus(),this.element.scrollIntoView()})).catch((e=>{console.warn("An editor did not initialize properly when trying to focus:",e)}));break;case"ace":null===(t=this.editorsReady[0])||void 0===t||t.then((()=>{this.editors[0].focus(),this.element.scrollIntoView()})).catch((e=>{console.warn("An editor did not initialize properly when trying to focus:",e)}));break;case"quill":null===(n=this.editorsReady[0])||void 0===n||n.then((()=>{this.editors[0].focus()})).catch((e=>{console.warn("An editor did not initialize properly when trying to focus:",e)}))}}}t.default=o},18618:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{key:"hideLabel",ignore:!0},{weight:0,type:"textfield",input:!0,key:"label",label:"Label",placeholder:"Field Label",tooltip:"The label for this field.",validate:{required:!0},autofocus:!0,overrideEditForm:!0},{key:"components",type:"datagrid",input:!0,label:"Tabs",weight:50,reorder:!0,components:[{type:"textfield",input:!0,key:"label",label:"Label"},{type:"textfield",input:!0,key:"key",label:"Key",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}}]},{weight:1100,type:"checkbox",label:"Vertical Layout",tooltip:"Make this field display in vertical orientation.",key:"verticalLayout",input:!0},{key:"hideLabel",ignore:!0}]},18633:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=s(n(31959)),l=n(29857),u=s(n(46043)),d=s(n(84591)),c=a(n(34600));class h extends o.default{constructor(e,t,n={}){let i,r,a;e instanceof HTMLElement?(i=e,r=t,a=n):(i=null,r=e,a=t||{}),l.Formio.options&&l.Formio.options.form&&(a=Object.assign(a,l.Formio.options.form)),super(a),this.options.useSessionToken&&l.Formio.useSessionToken(this.options),this.ready=new Promise(((e,t)=>{this.readyResolve=e,this.readyReject=t})),this.instance=null,i?(this.element&&delete this.element.component,this.element=i):this.element=null,this.options=a,this.options.events=this.events,r&&this.setForm(r).then((()=>this.readyResolve(this.instance))).catch(this.readyReject),this.display=""}createElement(e,t,n){const i=document.createElement(e);for(const e in t)t.hasOwnProperty(e)&&i.setAttribute(e,t[e]);return(n||[]).forEach((e=>{i.appendChild(this.createElement(e.tag,e.attrs,e.children))})),i}set loading(e){if(this.element&&!this.options.noLoader)if(e){if(this.loader)return;this.loader=this.createElement("div",{class:"formio-loader"},[{tag:"div",attrs:{class:"loader-wrapper"},children:[{tag:"div",attrs:{class:"loader text-center"}}]}]),this.element.appendChild(this.loader)}else this.loader&&(this.element.contains(this.loader)&&this.element.removeChild(this.loader),this.loader=null)}create(e){return this.options&&(this.options.flatten||"flat"===this.options.renderMode)&&(e="form"),this.display=e,u.default.displays[e]?new u.default.displays[e](this.element,this.options):new u.default.displays.webform(this.element,this.options)}set form(e){this.setForm(e)}errorForm(e){return{components:[{label:"HTML",tag:"div",className:"error error-message alert alert-danger ui red message",attrs:[{attr:"role",value:"alert"}],key:"errorMessage",type:"htmlelement",input:!1,content:"string"==typeof e?e:e.message}]}}getFormInitOptions(e,t){const n={},i=e.indexOf(null==t?void 0:t.path);if(-1===i)return n;const r=e.substring(0,i-1),a=l.Formio.getUrlParts(r);if(!a||a.filter((e=>!!e)).length<4)return n;const s=`${a[1]}${a[2]}`;return s!==l.Formio.baseUrl?{base:s,project:r}:{}}setForm(e){let t;if("string"==typeof(e=e||this.form)){const n=new l.Formio(e);let i;this.loading=!0,t=this.getSubmission(n,this.options).catch((e=>{i=e})).then((t=>n.loadForm().catch((e=>{i=e})).then((n=>{i&&(n=this.errorForm(i)),this.loading=!1,this.instance=this.instance||this.create(n.display);const r=this.getFormInitOptions(e,n);if(this.instance.setUrl(e,r),this.instance.nosubmit=!1,this._form=this.instance.form=n,t&&(this.instance.submission=t),i)throw i;return this.instance}))))}else this.instance=this.instance||this.create(e.display),this._form=this.instance.form=e,t=this.instance.ready;return t.then((()=>(this.element&&delete this.element.component,this.element=this.instance.element,this.instance)))}getSubmission(e,t){return e.submissionId?e.loadSubmission(null,t):Promise.resolve()}get form(){return this._form}setDisplay(e){return this.display===e&&this.instance?Promise.resolve(this.instance):(this.form.display=e,this.instance.destroy(),this.instance=this.create(e),this.setForm(this.form))}empty(){if(this.element)for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}static embed(e){return new Promise((t=>{e&&e.src||t();const n=this.id||`formio-${Math.random().toString(36).substring(7)}`,i=e.class||"formio-form-wrapper";let r=e.styles?``:"";r+=`
`,document.write(r);let a=0;const s=setInterval((()=>{a++;const i=document.getElementById(n);(i||a>10)&&(t(new h(i,e.src).ready),clearInterval(s))}),10)}))}sanitize(e,t){return!1!==this.options.sanitize||t?c.sanitize(e,this.options):e}setContent(e,t,n){return e instanceof HTMLElement&&(e.innerHTML=this.sanitize(t,n),!0)}build(){if(!this.instance)return Promise.reject("Form not ready. Use form.ready promise");if(!this.element)return Promise.reject("No DOM element for form.");const e=this.options&&this.options.template?this.options.template:"bootstrap",t=d.default[e].loader||d.default.bootstrap.loader;return this.setContent(this.element,t.form),this.render().then((e=>(this.setContent(this.element,e),this.attach(this.element).then((()=>this.instance))))).then((e=>(this.emit("build",e),e)))}render(){return this.instance?Promise.resolve(this.instance.render()).then((e=>(this.emit("render",e),e))):Promise.reject("Form not ready. Use form.ready promise")}attach(e){return this.instance?(this.element&&delete this.element.component,this.element=e,this.instance.attach(this.element).then((e=>(this.emit("attach",e),e)))):Promise.reject("Form not ready. Use form.ready promise")}teardown(){super.teardown(),delete this.instance,delete this.ready}}t.default=h,l.Formio.embedForm=e=>h.embed(e),l.Formio.createForm=(e,t,n)=>new h(e,t,n).ready,l.Formio.Form=h},18678:function(e,t,n){var i,r;i=function(){"use strict";Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var e={},t={"==":function(e,t){return e==t},"===":function(e,t){return e===t},"!=":function(e,t){return e!=t},"!==":function(e,t){return e!==t},">":function(e,t){return e>t},">=":function(e,t){return e>=t},"<":function(e,t,n){return void 0===n?e=t?[]:i}};return e.is_logic=function(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)&&1===Object.keys(e).length},e.truthy=function(e){return!(Array.isArray(e)&&0===e.length||!e)},e.get_operator=function(e){return Object.keys(e)[0]},e.get_values=function(t){return t[e.get_operator(t)]},e.apply=function(n,i){if(Array.isArray(n))return n.map((function(t){return e.apply(t,i)}));if(!e.is_logic(n))return n;var r,a,s,o,l,u=e.get_operator(n),d=n[u];if(Array.isArray(d)||(d=[d]),"if"===u||"?:"==u){for(r=0;r0){var c=String(u).split("."),h=t;for(r=0;r{e.data.widget=a.default.pick(e.data.widget,"type")},dataSrc:"values",data:{values:[{label:"Input Field",value:"input"},{label:"Calendar Picker",value:"calendar"}]},conditional:{json:{"===":[{var:"data.type"},"textfield"]}}},{weight:405,type:"textarea",key:"widget",label:"Widget Settings",refreshOn:"wiget.type",clearOnHide:!1,calculateValue:e=>{const{calculatedValue:t}=e.instance,{type:n}=e.data.widget;if(a.default.isEmpty(a.default.omit(e.data.widget,"type"))||a.default.isEmpty(a.default.omit(t,"type"))){if(t&&!t.type)return e.data.widget;const i=e.instance._currentForm.options.editComponent.widget;if(i&&!a.default.isEmpty(a.default.omit(i,"type"))&&n===i.type)return a.default.omit(i,"language");if(n)return a.default.omit(r.default[n].defaultSettings,"language")}return e.data.widget},input:!0,rows:5,editor:"ace",as:"json",conditional:{json:{"!==":[{var:"data.widget.type"},"input"]}}},{weight:410,type:"textfield",input:!0,key:"inputMask",label:"Input Mask",tooltip:"An input mask helps the user with input by ensuring a predefined format.

9: numeric
a: alphabetical
*: alphanumeric

Example telephone mask: (999) 999-9999

See the jquery.inputmask documentation for more information.",customConditional:e=>!e.data.allowMultipleMasks},{weight:410,type:"textfield",input:!0,key:"displayMask",label:"Display Mask",tooltip:"A display mask helps to display the input in a readable way, this won't affect the value which will be saved (to affect both view and saved value, delete Display Mask and use Input Mask).

9: numeric
a: alphabetical
*: alphanumeric

Example telephone mask: (999) 999-9999

See the jquery.inputmask documentation for more information.",customConditional:e=>!e.data.allowMultipleMasks},{weight:410,type:"select",input:!0,key:"applyMaskOn",label:"Apply Mask On",tooltip:"Select the type of applying mask.",defaultValue:"change",dataSrc:"values",data:{values:[{label:"Change",value:"change"},{label:"Blur",value:"blur"}]},customConditional:e=>!e.data.allowMultipleMasks},{weight:411,type:"textfield",input:!0,key:"inputMaskPlaceholderChar",label:"Input Mask Placeholder Char",tooltip:"You can specify a char which will be used as a placeholder in the field.
E.g., ˍ
Make note that placeholder char will be replaced by a space if it is used inside the mask",validation:{maxLength:1},customConditional:e=>e.data.inputMask||e.data.displayMask},{weight:413,type:"checkbox",input:!0,key:"allowMultipleMasks",label:"Allow Multiple Masks"},{weight:1350,type:"checkbox",input:!0,key:"spellcheck",defaultValue:!0,label:"Allow Spellcheck"},{weight:417,type:"datagrid",input:!0,key:"inputMasks",label:"Input Masks",customConditional:e=>!0===e.data.allowMultipleMasks,reorder:!0,components:[{type:"textfield",key:"label",label:"Label",input:!0},{type:"textfield",key:"mask",label:"Mask",input:!0}]},{weight:320,type:"textfield",input:!0,key:"prefix",label:"Prefix"},{weight:330,type:"textfield",input:!0,key:"suffix",label:"Suffix"},{weight:700,type:"textfield",input:!0,key:"autocomplete",label:"Autocomplete",placeholder:"on",tooltip:"Indicates whether input elements can by default have their values automatically completed by the browser. See the MDN documentation on autocomplete for more information."},{weight:1300,type:"checkbox",label:"Hide Input",tooltip:"Hide the input in the browser. This does not encrypt on the server. Do not use for passwords.",key:"mask",input:!0},{weight:1200,type:"checkbox",label:"Show Word Counter",tooltip:"Show a live count of the number of words.",key:"showWordCount",input:!0},{weight:1201,type:"checkbox",label:"Show Character Counter",tooltip:"Show a live count of the number of characters.",key:"showCharCount",input:!0}]},18975:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(31959)),a=i(n(2543));class s extends r.default{static get info(){return{supportedComponents:[],name:"formioAddon",components:[],label:"Formio Addon",defaultSettings:{}}}get defaultSettings(){return s.info.defaultSettings}get element(){return this._element}constructor(e,t){super(e),this.namespace="formio.plugin",this.component=t||{},this.settings=a.default.merge({},this.defaultSettings,e||{})}attach(e){return this._element=e,Promise.resolve()}destroy(){}}t.default=s},19107:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(3577)),a=i(n(2543));class s extends r.default{static get operatorKey(){return"includes"}static get displayedName(){return"Includes"}execute({value:e,comparedValue:t}){return a.default.includes(e,t)}}t.default=s},19167:(e,t,n)=>{"use strict";var i=n(22195);e.exports=i},19184:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(19107));class a extends r.default{static get operatorKey(){return"notIncludes"}static get displayedName(){return"Not Includes"}execute(e){return!super.execute(e)}}t.default=a},19219:e=>{e.exports=function(e,t){return e.has(t)}},19274:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0},{key:"clearOnHide",ignore:!0},{key:"allowCalculateOverride",ignore:!0}]},19313:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._=void 0;const i=n(2543);t._={chunk:i.chunk,compact:i.compact,concat:i.concat,difference:i.difference,drop:i.drop,dropRight:i.dropRight,findIndex:i.findIndex,findLastIndex:i.findLastIndex,first:i.first,flatten:i.flatten,flattenDeep:i.flattenDeep,flattenDepth:i.flattenDepth,fromPairs:i.fromPairs,head:i.head,indexOf:i.indexOf,initial:i.initial,intersection:i.intersection,intersectionBy:i.intersectionBy,intersectionWith:i.intersectionWith,join:i.join,last:i.last,lastIndexOf:i.lastIndexOf,nth:i.nth,slice:i.slice,sortedIndex:i.sortedIndex,sortedIndexBy:i.sortedIndexBy,sortedIndexOf:i.sortedIndexOf,sortedLastIndex:i.sortedLastIndex,sortedLastIndexBy:i.sortedLastIndexBy,sortedLastIndexOf:i.sortedLastIndexOf,sortedUniq:i.sortedUniq,sortedUniqBy:i.sortedUniqBy,tail:i.tail,take:i.take,takeRight:i.takeRight,takeRightWhile:i.takeRightWhile,takeWhile:i.takeWhile,union:i.union,unionBy:i.unionBy,unionWith:i.unionWith,uniq:i.uniq,uniqBy:i.uniqBy,uniqWith:i.uniqWith,unzip:i.unzip,unzipWith:i.unzipWith,without:i.without,xor:i.xor,xorBy:i.xorBy,xorWith:i.xorWith,zip:i.zip,zipObject:i.zipObject,zipObjectDeep:i.zipObjectDeep,zipWith:i.zipWith,countBy:i.countBy,every:i.every,filter:i.filter,find:i.find,findLast:i.findLast,flatMap:i.flatMap,flatMapDeep:i.flatMapDeep,flatMapDepth:i.flatMapDepth,groupBy:i.groupBy,includes:i.includes,invokeMap:i.invokeMap,keyBy:i.keyBy,map:i.map,orderBy:i.orderBy,partition:i.partition,reduce:i.reduce,reduceRight:i.reduceRight,reject:i.reject,sample:i.sample,sampleSize:i.sampleSize,shuffle:i.shuffle,size:i.size,some:i.some,sortBy:i.sortBy,now:i.now,flip:i.flip,negate:i.negate,overArgs:i.overArgs,partial:i.partial,partialRight:i.partialRight,rearg:i.rearg,rest:i.rest,spread:i.spread,castArray:i.castArray,clone:i.clone,cloneDeepWith:i.cloneDeepWith,cloneDeep:i.cloneDeep,conformsTo:i.conformsTo,eq:i.eq,gt:i.gt,gte:i.gte,isArguments:i.isArguments,isArray:i.isArray,isArrayBuffer:i.isArrayBuffer,isArrayLike:i.isArrayLike,isArrayLikeObject:i.isArrayLikeObject,isBoolean:i.isBoolean,isBuffer:i.isBuffer,isDate:i.isDate,isElement:i.isElement,isEmpty:i.isEmpty,isEqual:i.isEqual,isEqualWith:i.isEqualWith,isError:i.isError,isFinite:i.isFinite,isFunction:i.isFunction,isInteger:i.isInteger,isLength:i.isLength,isMap:i.isMap,isMatch:i.isMatch,isMatchWith:i.isMatchWith,isNaN:i.isNaN,isNative:i.isNative,isNil:i.isNil,isNull:i.isNull,isNumber:i.isNumber,isObject:i.isObject,isObjectLike:i.isObjectLike,isPlainObject:i.isPlainObject,isRegExp:i.isRegExp,isSafeInteger:i.isSafeInteger,isSet:i.isSet,isString:i.isString,isSymbol:i.isSymbol,isTypedArray:i.isTypedArray,isUndefined:i.isUndefined,isWeakMap:i.isWeakMap,isWeakSet:i.isWeakSet,lt:i.lt,lte:i.lte,toArray:i.toArray,toFinite:i.toFinite,toInteger:i.toInteger,toLength:i.toLength,toNumber:i.toNumber,toPlainObject:i.toPlainObject,toSafeInteger:i.toSafeInteger,toString:i.toString,add:i.add,ceil:i.ceil,divide:i.divide,floor:i.floor,max:i.max,maxBy:i.maxBy,mean:i.mean,meanBy:i.meanBy,min:i.min,minBy:i.minBy,multiply:i.multiply,round:i.round,subtract:i.subtract,sum:i.sum,sumBy:i.sumBy,clamp:i.clamp,inRange:i.inRange,random:i.random,at:i.at,entries:i.entries,entriesIn:i.entriesIn,findKey:i.findKey,findLastKey:i.findLastKey,functions:i.functions,functionsIn:i.functionsIn,get:i.get,has:i.has,hasIn:i.hasIn,invert:i.invert,invertBy:i.invertBy,invoke:i.invoke,keys:i.keys,keysIn:i.keysIn,mapKeys:i.mapKeys,mapValues:i.mapValues,omit:i.omit,omitBy:i.omitBy,pick:i.pick,pickBy:i.pickBy,result:i.result,toPairs:i.toPairs,toPairsIn:i.toPairsIn,transform:i.transform,values:i.values,valuesIn:i.valuesIn,camelCase:i.camelCase,capitalize:i.capitalize,deburr:i.deburr,endsWith:i.endsWith,escape:i.escape,escapeRegExp:i.escapeRegExp,kebabCase:i.kebabCase,lowerCase:i.lowerCase,lowerFirst:i.lowerFirst,pad:i.pad,padEnd:i.padEnd,padStart:i.padStart,parseInt:i.parseInt,repeat:i.repeat,replace:i.replace,snakeCase:i.snakeCase,split:i.split,startCase:i.startCase,startsWith:i.startsWith,toLower:i.toLower,toUpper:i.toUpper,trim:i.trim,trimEnd:i.trimEnd,trimStart:i.trimStart,truncate:i.truncate,unescape:i.unescape,upperCase:i.upperCase,upperFirst:i.upperFirst,words:i.words,cond:i.cond,conforms:i.conforms,constant:i.constant,defaultTo:i.defaultTo,flow:i.flow,flowRight:i.flowRight,identity:i.identity,iteratee:i.iteratee,matches:i.matches,matchesProperty:i.matchesProperty,method:i.method,methodOf:i.methodOf,nthArg:i.nthArg,over:i.over,overEvery:i.overEvery,overSome:i.overSome,property:i.property,propertyOf:i.propertyOf,range:i.range,rangeRight:i.rangeRight,stubArray:i.stubArray,stubFalse:i.stubFalse,stubObject:i.stubObject,stubString:i.stubString,stubTrue:i.stubTrue,times:i.times,toPath:i.toPath,uniqueId:i.uniqueId}},19570:(e,t,n)=>{var i=n(37334),r=n(93243),a=n(83488),s=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:a;e.exports=s},19617:(e,t,n)=>{"use strict";var i=n(25397),r=n(35610),a=n(26198),s=function(e){return function(t,n,s){var o=i(t),l=a(o);if(0===l)return!e&&-1;var u,d=r(s,l);if(e&&n!=n){for(;l>d;)if((u=o[d++])!=u)return!0}else for(;l>d;d++)if((e||d in o)&&o[d]===n)return e||d||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},19931:(e,t,n)=>{var i=n(31769),r=n(68090),a=n(68969),s=n(77797);e.exports=function(e,t){return t=i(t,e),null==(e=a(e,t))||delete e[s(r(t))]}},20031:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(67002));t.default=function(){return{components:[{type:"tabs",key:"tabs",components:[{label:"Custom",key:"display",weight:0,components:r.default}]}]}}},20034:(e,t,n)=>{"use strict";var i=n(94901);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},20046:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(75499));class a extends r.default{static get operatorKey(){return"isNotEmpty"}static get displayedName(){return"Is Not Empty"}getResult(e){return!super.getResult(e)}}t.default=a},20163:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},20317:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}},20397:(e,t,n)=>{"use strict";var i=n(97751);e.exports=i("document","documentElement")},20663:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(83175);t.default={form:i.default}},20734:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateCustomInfo=t.validateCustomSync=t.shouldValidate=t.validateCustom=void 0;const r=n(54008),a=n(84679);t.validateCustom=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateCustomSync)(e)})),t.shouldValidate=e=>{var t;const{component:n}=e;return!!(null===(t=n.validate)||void 0===t?void 0:t.custom)},t.validateCustomSync=e=>{var n;const{component:i,data:s,row:o,value:l,index:u,instance:d,evalContext:c}=e,h=null===(n=i.validate)||void 0===n?void 0:n.custom;try{if(!(0,t.shouldValidate)(e))return null;const n=Object.assign(Object.assign({},(null==d?void 0:d.evalContext)?d.evalContext():c?c(e):e),{component:i,data:s,row:o,rowIndex:u,instance:d,valid:!0,input:l}),p=a.Evaluator.evaluate(h,n,"valid",!0,{},{});return null===p||!0===p?null:new r.FieldError("string"==typeof p?p:"custom",Object.assign(Object.assign({},e),{hasLabel:!1,setting:h}),"custom")}catch(t){throw new r.ProcessorError(t.message||t,e,"validate:validateCustom")}},t.validateCustomInfo={name:"validateCustom",process:t.validateCustom,processSync:t.validateCustomSync,shouldProcess:t.shouldValidate}},20838:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},20880:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(95434),r=n(31885);t.default={form:i.default,html:r.default}},21026:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"disabled",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0},{type:"textfield",input:!0,key:"tag",weight:50,label:"HTML Tag",placeholder:"HTML Element Tag",tooltip:"The tag of this HTML element."},{type:"textfield",input:!0,key:"className",weight:60,label:"CSS Class",placeholder:"CSS Class",tooltip:"The CSS class for this HTML element."},{type:"datagrid",input:!0,label:"Attributes",key:"attrs",tooltip:"The attributes for this HTML element. Only safe attributes are allowed, such as src, href, and title.",weight:70,components:[{label:"Attribute",key:"attr",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}]},{type:"textarea",input:!0,editor:"ace",rows:10,as:"html",label:"Content",tooltip:"The content of this HTML element.",defaultValue:'
Content
',key:"content",weight:80},{weight:85,type:"checkbox",label:"Refresh On Change",tooltip:"Rerender the field whenever a value on the form changes.",key:"refreshOnChange",input:!0}]},21086:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabIndex",ignore:!0},{key:"autofocus",ignore:!0}]},21135:function(e,t,n){!function(e){"use strict";e.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(e){return/^ch$/i.test(e)},meridiem:function(e,t,n){return e<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(95093))},21149:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,a=arguments.length,s=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(s=(a<3?r(s):a>3?r(t,n,s):r(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.DataTableComponent=t.DataTable=void 0;const r=n(77644);class a{constructor(e,t,n){this.component=e,this.options=t,this.data=n}renderClasses(){let e="";return this.component.bordered&&(e+=" table-bordered"),this.component.striped&&(e+=" table-striped"),this.component.hover&&(e+=" table-hover"),this.component.condensed&&(e+=" table-condensed"),e}renderContext(e={}){return Object.assign({classes:this.renderClasses()},e)}}t.DataTable=a;let s=class extends a{};t.DataTableComponent=s,t.DataTableComponent=s=i([(0,r.ArrayComponent)({type:"datatable",schema:{bordered:!0,striped:!1,hover:!0,condensed:!0},template:"datatable"})],s)},21416:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AddressProvider=void 0;const r=i(n(2543)),a=n(29857);t.AddressProvider=class{static get name(){return"address"}static get displayName(){return"Address"}constructor(e={}){this.beforeMergeOptions(e),this.options=r.default.merge({},this.defaultOptions,e)}beforeMergeOptions(){}get defaultOptions(){return{}}get queryProperty(){return"query"}get responseProperty(){return null}get displayValueProperty(){return null}serialize(e){return r.default.toPairs(e).map((([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`)).join("&")}getRequestOptions(e={}){return r.default.merge({},this.options,e)}getRequestUrl(e={}){throw new Error("Method AddressProvider#getRequestUrl(options) is abstract.")}makeRequest(e={}){return a.Formio.makeStaticRequest(this.getRequestUrl(e),"GET",null,{noToken:!0})}search(e,t={}){const n=this.getRequestOptions(t);return(n.params=n.params||{})[this.queryProperty]=e,this.makeRequest(n).then((e=>this.responseProperty?r.default.get(e,this.responseProperty,[]):e))}getDisplayValue(e){return this.displayValueProperty?r.default.get(e,this.displayValueProperty,""):String(e)}}},21419:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(10280)),a=i(n(13266)),s=i(n(71652));t.default=function(...e){return(0,r.default)([{key:"display",components:a.default},{key:"conditional",components:s.default}],...e)}},21445:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=i(n(42248)),s=i(n(60406)),o=i(n(16220)),l=i(n(96958)),u=i(n(83258)),d=i(n(17901)),c=i(n(60924)),h=i(n(33844));t.default=function(...e){const t=r.default.cloneDeep([{type:"tabs",key:"tabs",components:[{label:"Display",key:"display",weight:0,components:l.default},{label:"Data",key:"data",weight:10,components:s.default},{label:"Validation",key:"validation",weight:20,components:d.default},{label:"API",key:"api",weight:30,components:o.default},{label:"Conditional",key:"conditional",weight:40,components:a.default},{label:"Logic",key:"logic",weight:50,components:u.default},{label:"Layout",key:"layout",weight:60,components:c.default}]}]).concat(e.map((e=>({type:"tabs",key:"tabs",components:r.default.cloneDeep(e)}))));return{components:r.default.unionWith(t,h.default.unifyComponents).concat({type:"hidden",key:"type"})}}},21549:(e,t,n)=>{var i=n(22032),r=n(63862),a=n(66721),s=n(12749),o=n(35749);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{var i=n(16547),r=n(43360);e.exports=function(e,t,n,a){var s=!n;n||(n={});for(var o=-1,l=t.length;++o{var i=n(51873),r=n(37828),a=n(75288),s=n(25911),o=n(20317),l=n(84247),u=i?i.prototype:void 0,d=u?u.valueOf:void 0;e.exports=function(e,t,n,i,u,c,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!c(new r(e),new r(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=o;case"[object Set]":var f=1&i;if(p||(p=l),e.size!=t.size&&!f)return!1;var m=h.get(e);if(m)return m==t;i|=2,h.set(e,t);var g=s(p(e),p(t),i,u,c,h);return h.delete(e),g;case"[object Symbol]":if(d)return d.call(e)==d.call(t)}return!1}},22032:(e,t,n)=>{var i=n(81042);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},22195:function(e,t,n){"use strict";var i=function(e){return e&&e.Math===Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()},22261:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"select",input:!0,weight:0,tooltip:"The source to use for the select data. Values lets you provide your own values and labels. JSON lets you provide raw JSON data. URL lets you provide a URL to retrieve the JSON data from.",key:"dataSrc",defaultValue:"values",label:"Data Source Type",dataSrc:"values"},{type:"textfield",input:!0,key:"data.url",weight:10,label:"Data Source URL",placeholder:"Data Source URL",tooltip:"A URL that returns a JSON array to use as the data source.",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"datagrid",input:!0,label:"Request Headers",key:"data.headers",tooltip:"Set any headers that should be sent along with the request to the url. This is useful for authentication.",weight:11,components:[{label:"Key",key:"key",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}],conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"textfield",input:!0,label:"Value Property",key:"valueProperty",skipMerge:!0,clearOnHide:!1,weight:13,description:"The selected item's property to save.",tooltip:"The property of each item in the data source to use as the select value. If not specified, the item itself will be used.",conditional:{json:{in:[{var:"data.dataSrc"},["json","url","custom"]]}}},{type:"textarea",input:!0,key:"template",label:"Item Template",editor:"ace",as:"html",rows:3,weight:18,tooltip:"The HTML template for the result data items.",allowCalculateOverride:!0,calculateValue:e=>!e.data.template&&e.instance&&e.instance._currentForm.options.editComponent?e.instance._currentForm.options.editComponent.template:e.data.template},{type:"checkbox",input:!0,weight:26,key:"authenticate",label:"Formio Authenticate",tooltip:"Check this if you would like to use Formio Authentication with the request.",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}},{type:"checkbox",input:!0,weight:29,key:"ignoreCache",label:"Disables Storing Request Result in the Cache",tooltip:"Check it if you don't want the requests and its results to be stored in the cache. By default, it is stored and if the Select tries to make the request to the same URL with the same paremetrs, the cached data will be returned. It allows to increase performance, but if the remote source's data is changing quite often and you always need to keep it up-to-date, uncheck this option.",conditional:{json:{or:[{"===":[{var:"data.dataSrc"},"url"]},{"===":[{var:"data.dataSrc"},"resource"]}]}}}]},22267:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},22274:function(e,t,n){!function(e){"use strict";e.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"én time",hh:"%d timer",d:"én dag",dd:"%d dager",w:"én uke",ww:"%d uker",M:"én måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},22307:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(10280)),a=i(n(46218));t.default=function(...e){return(0,r.default)([{key:"display",components:a.default}],...e)}},22311:(e,t)=>{"use strict";function n(e){return 14+(e+64>>>9<<4)+1}function i(e,t){const n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function r(e,t,n,r,a,s){return i((o=i(i(t,e),i(r,s)))<<(l=a)|o>>>32-l,n);var o,l}function a(e,t,n,i,a,s,o){return r(t&n|~t&i,e,t,a,s,o)}function s(e,t,n,i,a,s,o){return r(t&i|n&~i,e,t,a,s,o)}function o(e,t,n,i,a,s,o){return r(t^n^i,e,t,a,s,o)}function l(e,t,n,i,a,s,o){return r(n^(t|~i),e,t,a,s,o)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){if("string"==typeof e){const t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(let n=0;n>5]>>>r%32&255,a=parseInt(i.charAt(n>>>4&15)+i.charAt(15&n),16);t.push(a)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[n/8])<{"use strict";n.r(t),n.d(t,{default:()=>b});var i=/iPhone/i,r=/iPod/i,a=/iPad/i,s=/\biOS-universal(?:.+)Mac\b/i,o=/\bAndroid(?:.+)Mobile\b/i,l=/Android/i,u=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,d=/Silk/i,c=/Windows Phone/i,h=/\bWindows(?:.+)ARM\b/i,p=/BlackBerry/i,f=/BB10/i,m=/Opera Mini/i,g=/\b(CriOS|Chrome)(?:.+)Mobile/i,v=/Mobile(?:.+)Firefox\b/i,y=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&"undefined"==typeof MSStream};function b(e){var t={userAgent:"",platform:"",maxTouchPoints:0};e||"undefined"==typeof navigator?"string"==typeof e?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var n=t.userAgent,b=n.split("[FBAN");void 0!==b[1]&&(n=b[0]),void 0!==(b=n.split("Twitter"))[1]&&(n=b[0]);var _=function(e){return function(t){return t.test(e)}}(n),w={apple:{phone:_(i)&&!_(c),ipod:_(r),tablet:!_(i)&&(_(a)||y(t))&&!_(c),universal:_(s),device:(_(i)||_(r)||_(a)||_(s)||y(t))&&!_(c)},amazon:{phone:_(u),tablet:!_(u)&&_(d),device:_(u)||_(d)},android:{phone:!_(c)&&_(u)||!_(c)&&_(o),tablet:!_(c)&&!_(u)&&!_(o)&&(_(d)||_(l)),device:!_(c)&&(_(u)||_(d)||_(o)||_(l))||_(/\bokhttp\b/i)},windows:{phone:_(c),tablet:_(h),device:_(c)||_(h)},other:{blackberry:_(p),blackberry10:_(f),opera:_(m),firefox:_(v),chrome:_(g),device:_(p)||_(f)||_(m)||_(v)||_(g)},any:!1,phone:!1,tablet:!1};return w.any=w.apple.device||w.android.device||w.windows.device||w.other.device,w.phone=w.apple.phone||w.android.phone||w.windows.phone,w.tablet=w.apple.tablet||w.android.tablet||w.windows.tablet,w}},22461:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var i in Array.prototype.join,n+="<"+(null==(t=e.input.type)?"":t)+'\n ref="button"\n ',e.input.attr)n+="\n "+(null==(t=i)?"":t)+'="'+(null==(t=e.input.attr[i])?"":t)+'"\n ';return n+="\n ",e.component.description&&(n+='\n aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n '),n+="\n>\n",e.component.leftIcon&&(n+=' '),n+="\n"+(null==(t=e.input.content)?"":t)+"\n",e.component.tooltip&&(n+='\n \n'),n+="\n",e.component.rightIcon&&(n+=' '),n+"\n\n
\n \n
\n'}},22595:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)},a=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateProcessInfo=t.validateServerProcessInfo=t.validateCustomProcessInfo=t.validateAllProcessSync=t.validateAllProcess=t.validateServerProcessSync=t.validateServerProcess=t.validateCustomProcessSync=t.validateCustomProcess=t.validateProcessSync=t.validateProcess=t.shouldValidateServer=t.shouldValidateCustom=t.shouldValidateAll=t.shouldSkipValidation=t.shouldSkipValidationSimple=t.shouldSkipValidationCustom=t._shouldSkipValidation=t.isForcedHidden=t.isValueHidden=t.isInputComponent=t.validationRules=void 0;const o=n(22699),l=s(n(7309)),u=s(n(58156)),d=s(n(44383)),c=n(96690),h=n(16469),p=n(3234);function f(e,t,n){return n&&n(e)?[]:t.reduce(((t,n)=>(n.shouldProcess&&n.shouldProcess(e)&&t.push(n),t)),[])}function m(e){const{component:t}=e;return!t.hasOwnProperty("input")||t.input}function g(e){const{component:t}=e;return!(t.protected||(!t.hasOwnProperty("persistent")||t.persistent)&&"client-only"!==t.persistent)}function v(e,t){var n;const{component:i}=e;return!(!(null===(n=i.ephermalState)||void 0===n?void 0:n.conditionallyHidden)&&!t(e))||!!i.hasOwnProperty("hidden")&&!!i.hidden}function y(e){return f(e,o.rules,t.shouldSkipValidation).length>0}function b(e){const{component:n}=e;return!!n.customConditional||!(0,t.shouldSkipValidationCustom)(e)}function _(e){const{component:n}=e;return!n.customConditional&&!(0,t.shouldSkipValidationSimple)(e)&&y(e)}function w(e,t){const{scope:n,component:i,path:r}=t,a=(0,c.getComponentAbsolutePath)(i)||r;if(e){const t=(e=>Object.assign(Object.assign({},e),{context:(0,d.default)(e.context,["component","path","index","value","field","hasLabel","processor","setting","pattern","length","min","max","maxDate","minDate","maxYear","minYear","minCount","maxCount","regex"])}))(e);t.context.path=a,(0,l.default)(n.errors,{errorKeyOrMessage:t.errorKeyOrMessage,context:{path:a}})||(n.validated||(n.validated=[]),n.errors||(n.errors=[]),n.errors.push(t),n.validated.push({path:a,error:t}))}}t.validationRules=f,t.isInputComponent=m,t.isValueHidden=g,t.isForcedHidden=v,t._shouldSkipValidation=(e,t)=>{const{component:n}=e;return[()=>!m(e),()=>g(e),()=>!n.validateWhenHidden&&v(e,t)].some((e=>e()))},t.shouldSkipValidationCustom=e=>(0,t._shouldSkipValidation)(e,p.isCustomConditionallyHidden),t.shouldSkipValidationSimple=e=>(0,t._shouldSkipValidation)(e,p.isSimpleConditionallyHidden),t.shouldSkipValidation=e=>(0,t._shouldSkipValidation)(e,p.isConditionallyHidden),t.shouldValidateAll=y,t.shouldValidateCustom=b,t.shouldValidateServer=_,t.validateProcess=e=>a(void 0,void 0,void 0,(function*(){const{component:t,data:n,row:i,path:r,instance:a,scope:s,rules:o,skipValidation:l}=e;let{value:d}=e;if(s.validated||(s.validated=[]),s.errors||(s.errors=[]),!o||!o.length)return;if(t.multiple&&Array.isArray(d)&&d.length>0){const i=o.filter((e=>e.fullValue)),s=o.filter((e=>!e.fullValue));for(let i=0;i{const{component:t,data:n,row:i,path:r,instance:a,scope:s,rules:o,skipValidation:l}=e;let{value:d}=e;if(s.validated||(s.validated=[]),s.errors||(s.errors=[]),!o||!o.length)return;if(t.multiple&&Array.isArray(d)&&d.length>0){const i=o.filter((e=>e.fullValue)),s=o.filter((e=>!e.fullValue));for(let i=0;ia(void 0,void 0,void 0,(function*(){return e.rules=e.rules||o.evaluationRules,e.skipValidation=t.shouldSkipValidationCustom,(0,t.validateProcess)(e)})),t.validateCustomProcessSync=e=>(e.rules=e.rules||o.evaluationRules,e.skipValidation=t.shouldSkipValidationCustom,(0,t.validateProcessSync)(e)),t.validateServerProcess=e=>a(void 0,void 0,void 0,(function*(){return e.rules=e.rules||o.serverRules,e.skipValidation=t.shouldSkipValidationSimple,(0,t.validateProcess)(e)})),t.validateServerProcessSync=e=>(e.rules=e.rules||o.serverRules,e.skipValidation=t.shouldSkipValidationSimple,(0,t.validateProcessSync)(e)),t.validateAllProcess=e=>a(void 0,void 0,void 0,(function*(){return e.rules=e.rules||o.rules,e.skipValidation=t.shouldSkipValidation,(0,t.validateProcess)(e)})),t.validateAllProcessSync=e=>(e.rules=e.rules||o.rules,e.skipValidation=t.shouldSkipValidation,(0,t.validateProcessSync)(e)),t.validateCustomProcessInfo={name:"validateCustom",process:t.validateCustomProcess,processSync:t.validateCustomProcessSync,shouldProcess:b},t.validateServerProcessInfo={name:"validateServer",process:t.validateServerProcess,processSync:t.validateServerProcessSync,shouldProcess:_},t.validateProcessInfo={name:"validate",process:t.validateAllProcess,processSync:t.validateAllProcessSync,shouldProcess:y},r(n(47499),t)},22699:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evaluationRules=t.databaseRules=t.clientRules=t.rules=t.serverRules=void 0;const i=n(34361);Object.defineProperty(t,"clientRules",{enumerable:!0,get:function(){return i.clientRules}});const r=n(52679);Object.defineProperty(t,"databaseRules",{enumerable:!0,get:function(){return r.databaseRules}});const a=n(69910);Object.defineProperty(t,"evaluationRules",{enumerable:!0,get:function(){return a.evaluationRules}});const s=n(14652);t.serverRules=[...s.asynchronousRules,...r.databaseRules],t.rules=[...i.clientRules,...a.evaluationRules]},22719:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(11727);t.default={form:i.default}},22812:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=void 0;const s=a(n(95461));t.Formio=s.default,r(n(77644),t),r(n(74418),t),r(n(54221),t),r(n(26131),t),t.default=s.default},22823:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=i(n(95093)),s=i(n(71961)),o=n(34600),l=n(35349);class u extends s.default{static schema(...e){return s.default.schema({type:"day",label:"Day",key:"day",fields:{day:{type:"number",placeholder:"",required:!1},month:{type:"select",placeholder:"",required:!1},year:{type:"number",placeholder:"",required:!1}},dayFirst:!1,defaultValue:""},...e)}static get builderInfo(){return{title:"Day",group:"advanced",icon:"calendar",documentation:"/userguide/form-building/advanced-components#day",weight:50,schema:u.schema()}}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{operators:["isDateEqual","isNotDateEqual","isEmpty","isNotEmpty","dateLessThan","dateGreaterThan","dateLessThanOrEqual","dateGreaterThanOrEqual"]})}static savedValueTypes(e){return e=e||{},(0,o.getComponentSavedTypes)(e)||[o.componentValueTypes.string]}constructor(e,t,n){e.maxDate&&-1===e.maxDate.indexOf("moment(")&&(e.maxDate=(0,a.default)(e.maxDate,"YYYY-MM-DD").toISOString()),e.minDate&&-1===e.minDate.indexOf("moment(")&&(e.minDate=(0,a.default)(e.minDate,"YYYY-MM-DD").toISOString()),super(e,t,n)}static get serverConditionSettings(){return u.conditionOperatorsSettings}get emptyValue(){return""}get valueMask(){return/^\d{2}\/\d{2}\/\d{4}$/}get dayRequired(){return this.showDay&&r.default.get(this.component,"fields.day.required",!1)}get showDay(){return!r.default.get(this.component,"fields.day.hide",!1)}get monthRequired(){return this.showMonth&&r.default.get(this.component,"fields.month.required",!1)}get showMonth(){return!r.default.get(this.component,"fields.month.hide",!1)}get yearRequired(){return this.showYear&&r.default.get(this.component,"fields.year.required",!1)}get showYear(){return!r.default.get(this.component,"fields.year.hide",!1)}get defaultSchema(){return u.schema()}get shouldDisabled(){return super.shouldDisabled||this.parentDisabled}get inputInfo(){const e=super.elementInfo();return e.type="input",e.attr.type="hidden",e.changeEvent="input",e}isEmpty(e=this.dataValue){return e===u.oldEmptyValue||super.isEmpty(e)}inputDefinition(e){let t,n;return"day"===e&&(t=1,n=31),"month"===e&&(t=1,n=12),"year"===e&&(t=r.default.get(this.component,"fields.year.minYear",1900)||1900,n=r.default.get(this.component,"fields.year.maxYear",2030)||1900),{type:"input",ref:e,attr:{id:`${this.component.key}-${e}`,class:`form-control ${this.transform("class",`formio-day-component-${e}`)}`,type:"select"===this.component.fields[e].type?"select":"number",placeholder:this.t(this.component.fields[e].placeholder),step:1,min:t,max:n}}}selectDefinition(e){return{multiple:!1,ref:e,widget:"html5",attr:{id:`${this.component.key}-${e}`,class:"form-control",name:e,lang:this.options.language}}}get days(){if(this._days)return this._days;this._days=[{value:"",label:r.default.get(this.component,"fields.day.placeholder","")}];for(let e=1;e<=31;e++)this._days.push({value:e,label:e.toString()});return this._days}get months(){return this._months||(this._months=[{value:"",label:r.default.get(this.component,"fields.month.placeholder")||(this.hideInputLabels?this.t("Month"):"")},{value:1,label:"January"},{value:2,label:"February"},{value:3,label:"March"},{value:4,label:"April"},{value:5,label:"May"},{value:6,label:"June"},{value:7,label:"July"},{value:8,label:"August"},{value:9,label:"September"},{value:10,label:"October"},{value:11,label:"November"},{value:12,label:"December"}]),this._months}get years(){if(this._years)return this._years;this._years=[{value:"",label:r.default.get(this.component,"fields.year.placeholder","")}];const e=r.default.get(this.component,"fields.year.minYear",1900)||1900,t=r.default.get(this.component,"fields.year.maxYear",2030)||2030;for(let n=e;n<=t;n++)this._years.push({value:n,label:n.toString()});return this._years}setErrorClasses(e,t,n){super.setErrorClasses(e,t,n),super.setErrorClasses([this.refs.day,this.refs.month,this.refs.year],t,n)}removeInputError(e){super.removeInputError([this.refs.day,this.refs.month,this.refs.year]),super.removeInputError(e)}init(){super.init();const e=this.component.fields.year.minYear,t=this.component.fields.year.maxYear;this.component.maxYear=t,this.component.minYear=e;const n=(0,o.getLocaleDateFormatInfo)(this.options.language);this.dayFirst=this.component.useLocaleSettings?n.dayFirst:this.component.dayFirst}render(){return this.isHtmlRenderMode()?super.render(this.renderTemplate("input")):super.render(this.renderTemplate("day",{dayFirst:this.dayFirst,showDay:this.showDay,showMonth:this.showMonth,showYear:this.showYear,day:this.renderField("day"),month:this.renderField("month"),year:this.renderField("year")}))}renderField(e){return"select"===this.component.fields[e].type?this.renderTemplate("select",{input:this.selectDefinition(e),selectOptions:this[`${e}s`].reduce(((e,t)=>e+this.renderTemplate("selectOption",{option:t,selected:!1,attrs:{}})),"")}):this.renderTemplate("input",{prefix:this.prefix,suffix:this.suffix,input:this.inputDefinition(e)})}attach(e){this.loadRefs(e,{day:"single",month:"single",year:"single",input:"multiple"});const t=super.attach(e),n=(e,t)=>()=>{try{this.saveCaretPosition(e,t)}catch(e){console.warn("An error occurred while trying to save caret position",e)}this.updateValue(null,{modified:!0})};return this.shouldDisabled?(this.setDisabled(this.refs.day,!0),this.setDisabled(this.refs.month,!0),this.setDisabled(this.refs.year,!0),this.refs.input&&this.refs.input.forEach((e=>this.setDisabled(e,!0)))):(this.addEventListener(this.refs.day,"input",n(this.refs.day,"day")),this.addEventListener(this.refs.month,"input",(()=>{const e=this.refs.year?parseInt(new Date(this.refs.year.value,this.refs.month.value,0).getDate(),10):"",t=this.getFieldValue("day");!this.component.fields.day.hide&&e&&(this.refs.day.max=e),e&&t>e&&this.refs.day&&(this.refs.day.value=this.refs.day.max),n(this.refs.month,"month")()})),this.addEventListener(this.refs.year,"input",n(this.refs.year,"year")),this.addEventListener(this.refs.input,this.info.changeEvent,(()=>this.updateValue(null,{modified:!0}))),[this.refs.day,this.refs.month,this.refs.year].filter((e=>!!e)).forEach((e=>{super.addFocusBlurEvents(e)}))),this.setValue(this.dataValue),this.disabled=this.shouldDisabled,t}validateRequired(e,t){const{day:n,month:i,year:r}=this.parts;return!(this.dayRequired&&!n||this.monthRequired&&!i||this.yearRequired&&!r||(0,o.boolValue)(e)&&this.isEmpty(t))}set disabled(e){super.disabled=e,this.refs.year&&this.refs.month&&this.refs.day&&(e?(this.refs.year.setAttribute("disabled","disabled"),this.refs.month.setAttribute("disabled","disabled"),this.refs.day.setAttribute("disabled","disabled")):(this.refs.year.removeAttribute("disabled"),this.refs.month.removeAttribute("disabled"),this.refs.day.removeAttribute("disabled")))}normalizeValue(e){if(e===u.oldEmptyValue&&(e=""),!e||this.valueMask.test(e))return e;const t=[],n=e.split("/"),[i,r,a]=this.component.dayFirst?[0,1,2]:[1,0,2],s=this.component.defaultValue?this.component.defaultValue.split("/"):"";let o="",l="",d="";if(s){const e=3!==s.length;o=e?this.getDayWithHiddenFields(s).day:s[i],l=e?this.getDayWithHiddenFields(s).month:s[r],d=e?this.getDayWithHiddenFields(s).year:s[a]}if(this.options.building&&3===s.length)return this.component.defaultValue;const c=(e,i)=>{const r=e?n.shift():i;""!==r&&t.push(r)};return this.dayFirst&&c(this.showDay,o),c(this.showMonth,l),this.dayFirst||c(this.showDay,o),c(this.showYear,d),t.join("/")}setValueAt(e,t){if("Invalid date"===t)return null;let n,i,r;const a=t.split("/");3!==a.length?(n=this.getDayWithHiddenFields(a).day,i=this.getDayWithHiddenFields(a).month,r=this.getDayWithHiddenFields(a).year):(this.component.dayFirst&&(n=a.shift()),i=a.shift(),this.component.dayFirst||(n=a.shift()),r=a.shift()),this.refs.day&&this.showDay&&(this.refs.day.value="00"===n?"":parseInt(n,10)),this.refs.month&&this.showMonth&&(this.refs.month.value="00"===i?"":parseInt(i,10)),this.refs.year&&this.showYear&&(this.refs.year.value="0000"===r?"":parseInt(r,10))}getDayWithHiddenFields(e){let[t,n,i]=this.component.dayFirst?[0,1,2]:[1,0,2];return this.showDay||(n=0===n?0:n-1,i-=1,t=null),this.showMonth||(r.default.isNull(t)||(t=0===t?0:t-1),i-=1,n=null),this.showYear||(i=null),{month:r.default.isNull(n)?"":e[n],day:r.default.isNull(t)?"":e[t],year:r.default.isNull(i)?"":e[i]}}getFieldValue(e){const t=this.dataValue?this.dataValue.split("/"):[];let n=0;switch(e){case"month":n=t[this.dayFirst?1:0];break;case"day":n=t[this.dayFirst?0:1];break;case"year":n=t[2]}return n=parseInt(n,10),!r.default.isNaN(n)&&r.default.isNumber(n)?n:0}get parts(){return{day:this.getFieldValue("day"),month:this.getFieldValue("month"),year:this.getFieldValue("year")}}get format(){return(0,l.getDayFormat)(this.component)}getDate(e){let t,n,i,a=[];const[s,o,l]=this.component.dayFirst?[0,1,2]:[1,0,2],u=e||this.component.defaultValue;u&&(a=u.split("/").map((e=>parseInt(e,10))));const d=this.component.modalEdit&&!this.componentModal.isOpened;let c;return this.showDay&&this.refs.day&&(t=""!==this.refs.day.value||d?parseInt(this.refs.day.value,10):""),(void 0===t||r.default.isNaN(t)||e)&&(t=3!==a.length?this.getDayWithHiddenFields(a).day:a[s]&&!r.default.isNaN(a[s])?a[s]:0),this.showMonth&&this.refs.month&&(n=""!==this.refs.month.value||d?parseInt(this.refs.month.value,10):""),(void 0===n||r.default.isNaN(n)||e)&&(n=3!==a.length?this.getDayWithHiddenFields(a).month:a[o]&&!r.default.isNaN(a[o])?a[o]:0),this.showYear&&this.refs.year&&(i=""!==this.refs.year.value||d?parseInt(this.refs.year.value):""),(void 0===i||r.default.isNaN(i)||e)&&(i=3!==a.length?this.getDayWithHiddenFields(a).year:a[l]&&!r.default.isNaN(a[l])?a[l]:0),t||n||i?(t=this.showDay?t.toString().padStart(2,0):"",n=this.showMonth?n.toString().padStart(2,0):"",i=this.showYear?i.toString().padStart(4,0):"",c=this.component.dayFirst?`${t}${this.showDay&&this.showMonth||this.showDay&&this.showYear?"/":""}${n}${this.showMonth&&this.showYear?"/":""}${i}`:`${n}${this.showDay&&this.showMonth||this.showMonth&&this.showYear?"/":""}${t}${this.showDay&&this.showYear?"/":""}${i}`,c):(d||(this.dataValue=this.emptyValue,this.options.building&&this.triggerChange()),null)}get date(){return this.getDate()}get validationValue(){return this.dataValue}getValue(){return super.getValue()||this.dataValue}getValueAt(e){const t=this.date||this.emptyValue;return t?(this.refs.input[e].value=t,this.refs.input[e].value):(this.refs.input[e].value="",null)}getValueAsString(e){return e&&this.getDate(e)||""}focus(e){var t,n,i;e&&"string"==typeof e&&this.refs[e]?this.refs[e].focus():this.dayFirst&&this.showDay||!this.dayFirst&&!this.showMonth&&this.showDay?null===(t=this.refs.day)||void 0===t||t.focus():this.dayFirst&&!this.showDay&&this.showMonth||!this.dayFirst&&this.showMonth?null===(n=this.refs.month)||void 0===n||n.focus():this.showDay||this.showDay||!this.showYear||null===(i=this.refs.year)||void 0===i||i.focus()}restoreCaretPosition(){var e,t;if(null===(e=this.root)||void 0===e?void 0:e.currentSelection){const{selection:e,index:n}=this.root.currentSelection;if(this.refs[n]){const i=this.refs[n];/text|search|password|tel|url/i.test((null==(t=i)?void 0:t.type)||"")&&i.setSelectionRange(...e)}}}isPartialDay(e){if(!e)return!0;const[t,n,i]=this.component.dayFirst?[0,1,2]:[1,0,2],r=e.split("/");return r.length<3||"00"===r[t]||"00"===r[n]||"0000"===r[i]}getValidationFormat(){var e,t,n,i,r,a;let s=this.dayFirst?"DD-MM-YYYY":"MM-DD-YYYY";return(null===(t=null===(e=this.fields)||void 0===e?void 0:e.day)||void 0===t?void 0:t.hide)&&(s=s.replace("DD-","")),(null===(i=null===(n=this.fields)||void 0===n?void 0:n.month)||void 0===i?void 0:i.hide)&&(s=s.replace("MM-","")),(null===(a=null===(r=this.fields)||void 0===r?void 0:r.year)||void 0===a?void 0:a.hide)&&(s=s.replace("-YYYY","")),s}}u.oldEmptyValue="00/00/0000",t.default=u},22831:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return l.default}});var i=h(n(13518)),r=h(n(14948)),a=h(n(45073)),s=h(n(77186)),o=h(n(14808)),l=h(n(7775)),u=h(n(37037)),d=h(n(49910)),c=h(n(96792));function h(e){return e&&e.__esModule?e:{default:e}}},22859:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),a=i(n(77408));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:a.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"conditional",ignore:!0},{key:"logic",ignore:!0}],...e)}},23007:e=>{e.exports=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n{},23272:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ProcessType=void 0,function(e){e.Change="change",e.Submit="submit",e.Save="save"}(n||(t.ProcessType=n={}))},23370:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2543);class r{static identity(e){return e}static deregisterPlugin(e){const t=r.plugins.length;return r.plugins=r.plugins.filter((t=>t!==e&&t.__name!==e||((t.deregister||i.noop).call(e,r.Formio),!1))),t!==r.plugins.length}static registerPlugin(e,t){r.plugins.push(e),r.plugins.sort(((e,t)=>(t.priority||0)-(e.priority||0))),e.__name=t,(e.init||i.noop).call(e,r.Formio)}static getPlugin(e){for(const t of r.plugins)if(t.__name===e)return t;return null}static pluginWait(e,...t){return Promise.all(r.plugins.map((n=>(n[e]||i.noop).call(n,...t))))}static pluginGet(e,...t){const n=a=>{const s=r.plugins[a];return s?Promise.resolve((s[e]||i.noop).call(s,...t)).then((e=>(0,i.isNil)(e)?n(a+1):e)):Promise.resolve(null)};return n(0)}static pluginAlter(e,t,...n){return r.plugins.reduce(((t,i)=>(i[e]||r.identity)(t,...n)),t)}}r.plugins=[],t.default=r},23418:(e,t,n)=>{"use strict";const{Components:i}=n(92595),r=i.components.field;class a extends r{static schema(...e){return r.schema({type:"imageviewer",label:"Image Viewer",key:"imageviewer",inputType:"url",input:!0,sourceField:"",...e})}static get builderInfo(){return{title:"Image Viewer",group:"basic",icon:"image",weight:70,documentation:"",schema:a.schema()}}get defaultSchema(){return a.schema()}render(){return super.render(`\n
\n
\n `)}getImageSrc(){const e=this.component.sourceField;if(!e)return this.dataValue;const t=(this.root?this.root.data:{})[e];if(Array.isArray(t)&&t.length>0){const e=t[0];if(e.url)return e.url;if("base64"===e.storage&&e.base64)return e.base64;if(e.url&&e.url.startsWith("data:image"))return e.url}return"string"==typeof t&&t.startsWith("data:image")?t:""}attach(e){return function(){if(document.getElementById("imageviewer-style"))return;const e=document.createElement("style");e.id="imageviewer-style",e.innerHTML="\n .imageviewer-wrapper {\n text-align: center;\n padding: 1rem;\n border: 1px dashed #ccc;\n border-radius: 8px;\n background: #fafafa;\n margin-top: 1rem;\n }\n .imageviewer-image {\n max-width: 100%;\n max-height: 300px;\n object-fit: contain;\n border-radius: 4px;\n }\n .imageviewer-placeholder {\n color: #888;\n font-style: italic;\n padding: 2rem;\n }\n ",document.head.appendChild(e)}(),super.attach(e),setTimeout((()=>{this.imageElement=document.getElementById(`${this.id}-image`),this.placeholderElement=document.getElementById(`${this.id}-placeholder`),this.updateImage()}),0),this.root.on("change",(e=>{e.changed&&e.changed.component.key===this.component.sourceField&&this.updateImage()})),Promise.resolve()}updateImage(){const e=this.getImageSrc();this.imageElement&&this.placeholderElement&&(e?(this.imageElement.src=e,this.imageElement.style.display="block",this.placeholderElement.style.display="none"):(this.imageElement.style.display="none",this.placeholderElement.style.display="block"))}updateValue(e,t={}){super.updateValue(e,t);const n=document.getElementById(`${this.id}-image`),i=this.getImageSrc();n&&"IMG"===n.tagName&&n.src!==i&&(n.src=i)}setValue(e,t){super.setValue(e,t);const n=document.getElementById(`${this.id}-image`);n&&"IMG"===n.tagName&&(n.src=this.getImageSrc())}}e.exports=a},23649:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},23665:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(90409),r=n(47762);t.default={form:i.default,html:r.default}},23792:(e,t,n)=>{"use strict";var i=n(25397),r=n(6469),a=n(26269),s=n(91181),o=n(24913).f,l=n(51088),u=n(62529),d=n(96395),c=n(43724),h="Array Iterator",p=s.set,f=s.getterFor(h);e.exports=l(Array,"Array",(function(e,t){p(this,{type:h,target:i(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)}),"values");var m=a.Arguments=a.Array;if(r("keys"),r("values"),r("entries"),!d&&c&&"values"!==m.name)try{o(m,"name",{value:"values"})}catch(e){}},23805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},23827:function(e,t,n){!function(e){"use strict";e.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(e,t){return"元"===t[1]?1:parseInt(t[1]||e,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(e){return"午後"===e},meridiem:function(e,t,n){return e<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(e){return e.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(e){return this.week()!==e.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(e,t){switch(t){case"y":return 1===e?"元年":e+"年";case"d":case"D":case"DDD":return e+"日";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(95093))},23875:(e,t,n)=>{var i=n(96131);e.exports=function(e,t){for(var n=e.length;n--&&i(t,e[n],0)>-1;);return n}},24348:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
\n
\n ',"wizardHeaderVertical"===e.wizardHeaderType?(n+='\n
\n ',"right"!==e.wizardHeaderLocation&&(n+='\n
\n '+(null==(t=e.wizardHeader)?"":t)+"\n
\n "),n+='\n
\n '+(null==(t=e.components)?"":t)+"\n
\n ","right"===e.wizardHeaderLocation&&(n+='\n
\n '+(null==(t=e.wizardHeader)?"":t)+"\n
\n "),n+='\n
\n
\n '+(null==(t=e.wizardNav)?"":t)+"\n
\n "):n+="\n "+(null==(t=e.wizardHeader)?"":t)+'\n
\n '+(null==(t=e.components)?"":t)+"\n
\n "+(null==(t=e.wizardNav)?"":t)+"\n ",n+"\n
\n
\n"}},24457:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=" ";return(e%100>=20||e>=100&&e%100==0)&&(i=" de "),e+i+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}e.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:t,m:"un minut",mm:t,h:"o oră",hh:t,d:"o zi",dd:t,w:"o săptămână",ww:t,M:"o lună",MM:t,y:"un an",yy:t},week:{dow:1,doy:7}})}(n(95093))},24494:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0},{weight:20,type:"textfield",input:!0,key:"delimeter",label:"Delimiter",tooltip:"What is used to separate the tags."},{weight:22,type:"number",input:!0,key:"maxTags",label:"Max Tags",defaultValue:0,tooltip:"The maximum amount of tags that can be added. 0 for infinity."},{weight:24,type:"select",input:!0,key:"storeas",label:"Store As",dataSrc:"values",data:{values:[{label:"String (CSV)",value:"string"},{label:"Array of Tags",value:"array"}]}}]},24496:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(95093))},24713:(e,t,n)=>{var i=n(2523),r=n(15389),a=n(61489),s=Math.max;e.exports=function(e,t,n){var o=null==e?0:e.length;if(!o)return-1;var l=null==n?0:a(n);return l<0&&(l=s(o+l,0)),i(e,r(t,3),l)}},24715:(e,t,n)=>{var i,r;void 0===(r="function"==typeof(i=function(){"use strict";function e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,l=!1;return{s:function(){i=i.call(t)},n:function(){var e=i.next();return o=e.done,e},e:function(e){l=!0,s=e},f:function(){try{o||null==i.return||i.return()}finally{if(l)throw s}}}}function o(){return o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=l(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},o.apply(null,arguments)}function l(e){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},l(e)}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(u=function(){return!!e})()}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function c(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}!function(e){e.AbortSignal,e.AbortController}("undefined"!=typeof self?self:n.g);var h=function(){return a((function e(){i(this,e),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}),[{key:"addEventListener",value:function(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})}},{key:"removeEventListener",value:function(e,t){if(e in this.listeners)for(var n=this.listeners[e],i=0,r=n.length;i{var i=n(26025);e.exports=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}},24889:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},24913:(e,t,n)=>{"use strict";var i=n(43724),r=n(35917),a=n(48686),s=n(28551),o=n(56969),l=TypeError,u=Object.defineProperty,d=Object.getOwnPropertyDescriptor,c="enumerable",h="configurable",p="writable";t.f=i?a?function(e,t,n){if(s(e),t=o(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var i=d(e,t);i&&i[p]&&(e[t]=n.value,n={configurable:h in n?n[h]:i[h],enumerable:c in n?n[c]:i[c],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(s(e),t=o(t),s(n),r)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},25115:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(76659),r=n(59048);t.default={form:i.default,html:r.default}},25160:e=>{e.exports=function(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(r);++i=20?"ste":"de")},week:{dow:1,doy:4}})}(n(95093))},25397:(e,t,n)=>{"use strict";var i=n(47055),r=n(67750);e.exports=function(e){return i(r(e))}},25454:e=>{"use strict";const{entries:t,setPrototypeOf:n,isFrozen:i,getPrototypeOf:r,getOwnPropertyDescriptor:a}=Object;let{freeze:s,seal:o,create:l}=Object,{apply:u,construct:d}="undefined"!=typeof Reflect&&Reflect;s||(s=function(e){return e}),o||(o=function(e){return e}),u||(u=function(e,t,n){return e.apply(t,n)}),d||(d=function(e,t){return new e(...t)});const c=L(Array.prototype.forEach),h=L(Array.prototype.lastIndexOf),p=L(Array.prototype.pop),f=L(Array.prototype.push),m=L(Array.prototype.splice),g=L(String.prototype.toLowerCase),v=L(String.prototype.toString),y=L(String.prototype.match),b=L(String.prototype.replace),_=L(String.prototype.indexOf),w=L(String.prototype.trim),M=L(Object.prototype.hasOwnProperty),k=L(RegExp.prototype.test),S=(x=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n1?n-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:g;n&&n(e,null);let a=t.length;for(;a--;){let n=t[a];if("string"==typeof n){const e=r(n);e!==n&&(i(t)||(t[a]=e),n=e)}e[n]=!0}return e}function T(e){for(let t=0;t/gm),B=o(/\$\{[\w\W]*/gm),W=o(/^data-[\-\w.\u00B7-\uFFFF]+$/),$=o(/^aria-[\-\w]+$/),q=o(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),K=o(/^(?:\w+script|data):/i),G=o(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=o(/^html$/i),X=o(/^[a-z][.\w]*(-[.\w]+)+$/i);var Z=Object.freeze({__proto__:null,ARIA_ATTR:$,ATTR_WHITESPACE:G,CUSTOM_ELEMENT:X,DATA_ATTR:W,DOCTYPE_NAME:J,ERB_EXPR:U,IS_ALLOWED_URI:q,IS_SCRIPT_OR_DATA:K,MUSTACHE_EXPR:z,TMPLIT_EXPR:B});const Q=function(){return"undefined"==typeof window?null:window};var ee=function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q();const i=t=>e(t);if(i.version="3.2.4",i.removed=[],!n||!n.document||9!==n.document.nodeType||!n.Element)return i.isSupported=!1,i;let{document:r}=n;const a=r,o=a.currentScript,{DocumentFragment:u,HTMLTemplateElement:d,Node:x,Element:L,NodeFilter:T,NamedNodeMap:z=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:U,DOMParser:B,trustedTypes:W}=n,$=L.prototype,K=A($,"cloneNode"),G=A($,"remove"),X=A($,"nextSibling"),ee=A($,"childNodes"),te=A($,"parentNode");if("function"==typeof d){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let ne,ie="";const{implementation:re,createNodeIterator:ae,createDocumentFragment:se,getElementsByTagName:oe}=r,{importNode:le}=a;let ue={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof t&&"function"==typeof te&&re&&void 0!==re.createHTMLDocument;const{MUSTACHE_EXPR:de,ERB_EXPR:ce,TMPLIT_EXPR:he,DATA_ATTR:pe,ARIA_ATTR:fe,IS_SCRIPT_OR_DATA:me,ATTR_WHITESPACE:ge,CUSTOM_ELEMENT:ve}=Z;let{IS_ALLOWED_URI:ye}=Z,be=null;const _e=C({},[...D,...P,...O,...I,...F]);let we=null;const Me=C({},[...Y,...V,...N,...H]);let ke=Object.seal(l(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}})),Se=null,xe=null,Le=!0,Ce=!0,Te=!1,Ee=!0,Ae=!1,De=!0,Pe=!1,Oe=!1,je=!1,Ie=!1,Re=!1,Fe=!1,Ye=!0,Ve=!1,Ne=!0,He=!1,ze={},Ue=null;const Be=C({},["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 We=null;const $e=C({},["audio","video","img","source","image","track"]);let qe=null;const Ke=C({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Ge="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",Xe="http://www.w3.org/1999/xhtml";let Ze=Xe,Qe=!1,et=null;const tt=C({},[Ge,Je,Xe],v);let nt=C({},["mi","mo","mn","ms","mtext"]),it=C({},["annotation-xml"]);const rt=C({},["title","style","font","a","script"]);let at=null;const st=["application/xhtml+xml","text/html"];let ot=null,lt=null;const ut=r.createElement("form"),dt=function(e){return e instanceof RegExp||e instanceof Function},ct=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!lt||lt!==e){if(e&&"object"==typeof e||(e={}),e=E(e),at=-1===st.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ot="application/xhtml+xml"===at?v:g,be=M(e,"ALLOWED_TAGS")?C({},e.ALLOWED_TAGS,ot):_e,we=M(e,"ALLOWED_ATTR")?C({},e.ALLOWED_ATTR,ot):Me,et=M(e,"ALLOWED_NAMESPACES")?C({},e.ALLOWED_NAMESPACES,v):tt,qe=M(e,"ADD_URI_SAFE_ATTR")?C(E(Ke),e.ADD_URI_SAFE_ATTR,ot):Ke,We=M(e,"ADD_DATA_URI_TAGS")?C(E($e),e.ADD_DATA_URI_TAGS,ot):$e,Ue=M(e,"FORBID_CONTENTS")?C({},e.FORBID_CONTENTS,ot):Be,Se=M(e,"FORBID_TAGS")?C({},e.FORBID_TAGS,ot):{},xe=M(e,"FORBID_ATTR")?C({},e.FORBID_ATTR,ot):{},ze=!!M(e,"USE_PROFILES")&&e.USE_PROFILES,Le=!1!==e.ALLOW_ARIA_ATTR,Ce=!1!==e.ALLOW_DATA_ATTR,Te=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Ee=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Ae=e.SAFE_FOR_TEMPLATES||!1,De=!1!==e.SAFE_FOR_XML,Pe=e.WHOLE_DOCUMENT||!1,Ie=e.RETURN_DOM||!1,Re=e.RETURN_DOM_FRAGMENT||!1,Fe=e.RETURN_TRUSTED_TYPE||!1,je=e.FORCE_BODY||!1,Ye=!1!==e.SANITIZE_DOM,Ve=e.SANITIZE_NAMED_PROPS||!1,Ne=!1!==e.KEEP_CONTENT,He=e.IN_PLACE||!1,ye=e.ALLOWED_URI_REGEXP||q,Ze=e.NAMESPACE||Xe,nt=e.MATHML_TEXT_INTEGRATION_POINTS||nt,it=e.HTML_INTEGRATION_POINTS||it,ke=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ke.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&dt(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ke.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(ke.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Ae&&(Ce=!1),Re&&(Ie=!0),ze&&(be=C({},F),we=[],!0===ze.html&&(C(be,D),C(we,Y)),!0===ze.svg&&(C(be,P),C(we,V),C(we,H)),!0===ze.svgFilters&&(C(be,O),C(we,V),C(we,H)),!0===ze.mathMl&&(C(be,I),C(we,N),C(we,H))),e.ADD_TAGS&&(be===_e&&(be=E(be)),C(be,e.ADD_TAGS,ot)),e.ADD_ATTR&&(we===Me&&(we=E(we)),C(we,e.ADD_ATTR,ot)),e.ADD_URI_SAFE_ATTR&&C(qe,e.ADD_URI_SAFE_ATTR,ot),e.FORBID_CONTENTS&&(Ue===Be&&(Ue=E(Ue)),C(Ue,e.FORBID_CONTENTS,ot)),Ne&&(be["#text"]=!0),Pe&&C(be,["html","head","body"]),be.table&&(C(be,["tbody"]),delete Se.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');ne=e.TRUSTED_TYPES_POLICY,ie=ne.createHTML("")}else void 0===ne&&(ne=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";t&&t.hasAttribute(i)&&(n=t.getAttribute(i));const r="dompurify"+(n?"#"+n:"");try{return e.createPolicy(r,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+r+" could not be created."),null}}(W,o)),null!==ne&&"string"==typeof ie&&(ie=ne.createHTML(""));s&&s(e),lt=e}},ht=C({},[...P,...O,...j]),pt=C({},[...I,...R]),ft=function(e){f(i.removed,{element:e});try{te(e).removeChild(e)}catch(t){G(e)}},mt=function(e,t){try{f(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){f(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(Ie||Re)try{ft(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},gt=function(e){let t=null,n=null;if(je)e=""+e;else{const t=y(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===at&&Ze===Xe&&(e=''+e+"");const i=ne?ne.createHTML(e):e;if(Ze===Xe)try{t=(new B).parseFromString(i,at)}catch(e){}if(!t||!t.documentElement){t=re.createDocument(Ze,"template",null);try{t.documentElement.innerHTML=Qe?ie:i}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),Ze===Xe?oe.call(t,Pe?"html":"body")[0]:Pe?t.documentElement:a},vt=function(e){return ae.call(e.ownerDocument||e,e,T.SHOW_ELEMENT|T.SHOW_COMMENT|T.SHOW_TEXT|T.SHOW_PROCESSING_INSTRUCTION|T.SHOW_CDATA_SECTION,null)},yt=function(e){return e instanceof U&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof z)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},bt=function(e){return"function"==typeof x&&e instanceof x};function _t(e,t,n){c(e,(e=>{e.call(i,t,n,lt)}))}const wt=function(e){let t=null;if(_t(ue.beforeSanitizeElements,e,null),yt(e))return ft(e),!0;const n=ot(e.nodeName);if(_t(ue.uponSanitizeElement,e,{tagName:n,allowedTags:be}),e.hasChildNodes()&&!bt(e.firstElementChild)&&k(/<[/\w]/g,e.innerHTML)&&k(/<[/\w]/g,e.textContent))return ft(e),!0;if(7===e.nodeType)return ft(e),!0;if(De&&8===e.nodeType&&k(/<[/\w]/g,e.data))return ft(e),!0;if(!be[n]||Se[n]){if(!Se[n]&&kt(n)){if(ke.tagNameCheck instanceof RegExp&&k(ke.tagNameCheck,n))return!1;if(ke.tagNameCheck instanceof Function&&ke.tagNameCheck(n))return!1}if(Ne&&!Ue[n]){const t=te(e)||e.parentNode,n=ee(e)||e.childNodes;if(n&&t)for(let i=n.length-1;i>=0;--i){const r=K(n[i],!0);r.__removalCount=(e.__removalCount||0)+1,t.insertBefore(r,X(e))}}return ft(e),!0}return e instanceof L&&!function(e){let t=te(e);t&&t.tagName||(t={namespaceURI:Ze,tagName:"template"});const n=g(e.tagName),i=g(t.tagName);return!!et[e.namespaceURI]&&(e.namespaceURI===Je?t.namespaceURI===Xe?"svg"===n:t.namespaceURI===Ge?"svg"===n&&("annotation-xml"===i||nt[i]):Boolean(ht[n]):e.namespaceURI===Ge?t.namespaceURI===Xe?"math"===n:t.namespaceURI===Je?"math"===n&&it[i]:Boolean(pt[n]):e.namespaceURI===Xe?!(t.namespaceURI===Je&&!it[i])&&!(t.namespaceURI===Ge&&!nt[i])&&!pt[n]&&(rt[n]||!ht[n]):!("application/xhtml+xml"!==at||!et[e.namespaceURI]))}(e)?(ft(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!k(/<\/no(script|embed|frames)/i,e.innerHTML)?(Ae&&3===e.nodeType&&(t=e.textContent,c([de,ce,he],(e=>{t=b(t,e," ")})),e.textContent!==t&&(f(i.removed,{element:e.cloneNode()}),e.textContent=t)),_t(ue.afterSanitizeElements,e,null),!1):(ft(e),!0)},Mt=function(e,t,n){if(Ye&&("id"===t||"name"===t)&&(n in r||n in ut))return!1;if(Ce&&!xe[t]&&k(pe,t));else if(Le&&k(fe,t));else if(!we[t]||xe[t]){if(!(kt(e)&&(ke.tagNameCheck instanceof RegExp&&k(ke.tagNameCheck,e)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(e))&&(ke.attributeNameCheck instanceof RegExp&&k(ke.attributeNameCheck,t)||ke.attributeNameCheck instanceof Function&&ke.attributeNameCheck(t))||"is"===t&&ke.allowCustomizedBuiltInElements&&(ke.tagNameCheck instanceof RegExp&&k(ke.tagNameCheck,n)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(n))))return!1}else if(qe[t]);else if(k(ye,b(n,ge,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==_(n,"data:")||!We[e])if(Te&&!k(me,b(n,ge,"")));else if(n)return!1;return!0},kt=function(e){return"annotation-xml"!==e&&y(e,ve)},St=function(e){_t(ue.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||yt(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:we,forceKeepAttr:void 0};let r=t.length;for(;r--;){const a=t[r],{name:s,namespaceURI:o,value:l}=a,u=ot(s);let d="value"===s?l:w(l);if(n.attrName=u,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,_t(ue.uponSanitizeAttribute,e,n),d=n.attrValue,!Ve||"id"!==u&&"name"!==u||(mt(s,e),d="user-content-"+d),De&&k(/((--!?|])>)|<\/(style|title)/i,d)){mt(s,e);continue}if(n.forceKeepAttr)continue;if(mt(s,e),!n.keepAttr)continue;if(!Ee&&k(/\/>/i,d)){mt(s,e);continue}Ae&&c([de,ce,he],(e=>{d=b(d,e," ")}));const h=ot(e.nodeName);if(Mt(h,u,d)){if(ne&&"object"==typeof W&&"function"==typeof W.getAttributeType)if(o);else switch(W.getAttributeType(h,u)){case"TrustedHTML":d=ne.createHTML(d);break;case"TrustedScriptURL":d=ne.createScriptURL(d)}try{o?e.setAttributeNS(o,s,d):e.setAttribute(s,d),yt(e)?ft(e):p(i.removed)}catch(e){}}}_t(ue.afterSanitizeAttributes,e,null)},xt=function e(t){let n=null;const i=vt(t);for(_t(ue.beforeSanitizeShadowDOM,t,null);n=i.nextNode();)_t(ue.uponSanitizeShadowNode,n,null),wt(n),St(n),n.content instanceof u&&e(n.content);_t(ue.afterSanitizeShadowDOM,t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,s=null,o=null;if(Qe=!e,Qe&&(e="\x3c!--\x3e"),"string"!=typeof e&&!bt(e)){if("function"!=typeof e.toString)throw S("toString is not a function");if("string"!=typeof(e=e.toString()))throw S("dirty is not a string, aborting")}if(!i.isSupported)return e;if(Oe||ct(t),i.removed=[],"string"==typeof e&&(He=!1),He){if(e.nodeName){const t=ot(e.nodeName);if(!be[t]||Se[t])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof x)n=gt("\x3c!----\x3e"),r=n.ownerDocument.importNode(e,!0),1===r.nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!Ie&&!Ae&&!Pe&&-1===e.indexOf("<"))return ne&&Fe?ne.createHTML(e):e;if(n=gt(e),!n)return Ie?null:Fe?ie:""}n&&je&&ft(n.firstChild);const l=vt(He?e:n);for(;s=l.nextNode();)wt(s),St(s),s.content instanceof u&&xt(s.content);if(He)return e;if(Ie){if(Re)for(o=se.call(n.ownerDocument);n.firstChild;)o.appendChild(n.firstChild);else o=n;return(we.shadowroot||we.shadowrootmode)&&(o=le.call(a,o,!0)),o}let d=Pe?n.outerHTML:n.innerHTML;return Pe&&be["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&k(J,n.ownerDocument.doctype.name)&&(d="\n"+d),Ae&&c([de,ce,he],(e=>{d=b(d,e," ")})),ne&&Fe?ne.createHTML(d):d},i.setConfig=function(){ct(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Oe=!0},i.clearConfig=function(){lt=null,Oe=!1},i.isValidAttribute=function(e,t,n){lt||ct({});const i=ot(e),r=ot(t);return Mt(i,r,n)},i.addHook=function(e,t){"function"==typeof t&&f(ue[e],t)},i.removeHook=function(e,t){if(void 0!==t){const n=h(ue[e],t);return-1===n?void 0:m(ue[e],n,1)[0]}return p(ue[e])},i.removeHooks=function(e){ue[e]=[]},i.removeAllHooks=function(){ue={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}();e.exports=ee},25730:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'\n'}},25745:(e,t,n)=>{"use strict";var i=n(77629);e.exports=function(e,t){return i[e]||(i[e]=t||{})}},25911:(e,t,n)=>{var i=n(38859),r=n(14248),a=n(19219);e.exports=function(e,t,n,s,o,l){var u=1&n,d=e.length,c=t.length;if(d!=c&&!(u&&c>d))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var f=-1,m=!0,g=2&n?new i:void 0;for(l.set(e,t),l.set(t,e);++f{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+="<"+(null==(t=e.tag)?"":t)+' class="formio-component-htmlelement '+(null==(t=e.component.className)?"":t)+'" ref="html"\n ',e.attrs.forEach((function(e){n+="\n "+(null==(t=e.attr)?"":t)+'="'+(null==(t=e.value)?"":t)+'"\n '})),n+="\n>"+(null==(t=e.t(e.content))?"":t),e.singleTags&&-1!==e.singleTags.indexOf(e.tag)||(n+=""),n+="\n"}},26025:(e,t,n)=>{var i=n(75288);e.exports=function(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return-1}},26101:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CustomAddressProvider=void 0;const i=n(21416);class r extends i.AddressProvider{static get name(){return"custom"}static get displayName(){return"Custom"}get queryProperty(){return this.options.queryProperty||super.queryProperty}get responseProperty(){return this.options.responseProperty||super.responseProperty}get displayValueProperty(){return this.options.displayValueProperty||super.displayValueProperty}getRequestUrl(e={}){const{params:t,url:n}=e;return`${n}?${this.serialize(t)}`}}t.CustomAddressProvider=r},26111:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},26131:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Template=void 0;var i=n(83037);Object.defineProperty(t,"Template",{enumerable:!0,get:function(){return i.Template}})},26198:(e,t,n)=>{"use strict";var i=n(18014);e.exports=function(e){return i(e.length)}},26213:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+((null==(t=e.children.join(""))?"":t)+"\n")}},26269:e=>{"use strict";e.exports={}},26308:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"m":return t?"jedna minuta":"jedne minute";case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return t?"jedan sat":"jednog sata";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:t,mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},26435:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}}})}(n(95093))},26627:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(94259)),a=i(n(51444)),s=i(n(396)),o=i(n(31863));t.default=function(...e){return(0,r.default)([{key:"display",components:a.default},{key:"data",components:s.default},{key:"validation",components:o.default}],...e)}},26636:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(13523),t),r(n(59880),t)},27025:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(90761);t.default={form:i.default}},27072:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateRequiredDayInfo=t.validateRequiredDaySync=t.validateRequiredDay=t.shouldValidate=void 0;const r=n(54008),a=e=>{var t,n,i,r,a,s;return e&&"day"===e.type&&((null===(n=null===(t=e.fields)||void 0===t?void 0:t.day)||void 0===n?void 0:n.required)||(null===(r=null===(i=e.fields)||void 0===i?void 0:i.month)||void 0===r?void 0:r.required)||(null===(s=null===(a=e.fields)||void 0===a?void 0:a.year)||void 0===s?void 0:s.required))};t.shouldValidate=e=>{const{component:t}=e;return a(t)},t.validateRequiredDay=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateRequiredDaySync)(e)})),t.validateRequiredDaySync=e=>{var n,i,s,o,l,u;const{component:d,value:c}=e;if(!(0,t.shouldValidate)(e))return null;if(!a(d))return null;if(!c)return new r.FieldError("requiredDayEmpty",e,"day");if("string"!=typeof c)throw new r.ProcessorError(`Cannot validate required day field of ${c} because it is not a string`,e,"validate:validateRequiredDay");let[h,p,f]=d.dayFirst?[0,1,2]:[1,0,2];const m=c.split("/").map((e=>parseInt(e,10)));let g=m[h],v=m[p],y=m[f];return 3!==m.length&&(d.fields.day.hide&&(p=0===p?0:p-1,f-=1,g=0,v=m[p],y=m[f]),d.fields.month.hide&&(h=0===h?0:h-1,f-=1,g=d.fields.day.hide&&0===g?0:m[h],v=0,y=m[f]),d.fields.year.hide&&(g=d.fields.day.hide&&0===g?0:m[h],v=d.fields.month.hide&&0===v?0:m[p],y=0)),!g&&(null===(i=null===(n=d.fields)||void 0===n?void 0:n.day)||void 0===i?void 0:i.required)?new r.FieldError("requiredDayField",e,"day"):!v&&(null===(o=null===(s=d.fields)||void 0===s?void 0:s.month)||void 0===o?void 0:o.required)?new r.FieldError("requiredMonthField",e,"day"):!y&&(null===(u=null===(l=d.fields)||void 0===l?void 0:l.year)||void 0===u?void 0:u.required)?new r.FieldError("requiredYearField",e,"day"):null},t.validateRequiredDayInfo={name:"validateRequiredDay",process:t.validateRequiredDay,processSync:t.validateRequiredDaySync,shouldProcess:t.shouldValidate}},27088:function(e,t,n){!function(e){"use strict";var t={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};e.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},27094:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var i in Array.prototype.join,n+='
\n <'+(null==(t=e.input.type)?"":t)+'\n ref="input"\n id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n aria-labelledby="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n ',e.input.attr)n+="\n "+(null==(t=i)?"":t)+'="'+(null==(t=e.input.attr[i])?"":t)+'"\n ';return n+="\n ",e.checked&&(n+="checked=true"),n+='\n aria-required="'+(null==(t=e.component.validate.required)?"":t)+'"\n ',e.component.description&&(n+='\n aria-describedby="d-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n '),n+="\n >\n ",e.self.labelIsHidden()||(n+='\n \n '+(null==(t=e.input.label)?"":t)+"\n \n "),n+="\n ",e.component.tooltip&&(n+='\n \n '),n+"\n
\n"}},27251:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(93643);t.default={form:i.default}},27301:e=>{e.exports=function(e){return function(t){return e(t)}}},27452:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(46103)),a=i(n(73249)),s=i(n(27539)),o=i(n(53067)),l=i(n(96877)),u=i(n(85179)),d=i(n(44435)),c=i(n(95211)),h=i(n(77171)),p=i(n(81841)),f=i(n(7927)),m=i(n(88131)),g=i(n(22823)),v=i(n(80865)),y=i(n(99563)),b=i(n(57441)),_=i(n(54065)),w=i(n(86309)),M=i(n(68905)),k=i(n(17389)),S=i(n(14463)),x=i(n(71961)),L=i(n(80460)),C=i(n(3571)),T=i(n(39142)),E=i(n(42574)),A=i(n(33670)),D=i(n(84803)),P=i(n(39007)),O=i(n(66387)),j=i(n(63983)),I=i(n(15811)),R=i(n(92383)),F=i(n(39991)),Y=i(n(43397)),V=i(n(29071)),N=i(n(71397)),H=i(n(85783)),z=i(n(96337)),U=i(n(51299)),B=i(n(18509)),W=i(n(41767)),$=i(n(35891)),q=i(n(63691)),K=i(n(78647)),G=i(n(99493));t.default={address:r.default,base:l.default,component:l.default,componentmodal:u.default,button:a.default,checkbox:s.default,columns:o.default,container:d.default,content:c.default,currency:h.default,datagrid:p.default,datamap:f.default,datetime:m.default,day:g.default,editgrid:v.default,email:y.default,input:k.default,field:x.default,multivalue:S.default,list:L.default,fieldset:b.default,file:_.default,form:w.default,hidden:M.default,htmlelement:C.default,nested:T.default,nesteddata:E.default,nestedarray:A.default,number:D.default,panel:P.default,password:O.default,phoneNumber:j.default,radio:I.default,recaptcha:R.default,select:Y.default,selectboxes:F.default,signature:V.default,survey:N.default,table:H.default,tabs:z.default,tags:U.default,textarea:B.default,textfield:W.default,time:$.default,unknown:q.default,url:K.default,well:G.default}},27476:(e,t,n)=>{"use strict";var i=n(44576),r=n(79504);e.exports=function(e){if("Function"===i(e))return r(e)}},27500:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateResourceSelectValueInfo=t.validateResourceSelectValue=t.shouldValidate=t.generateUrl=void 0;const r=n(54008),a=n(47499);t.generateUrl=(e,t,n)=>{const i=e,r=i.searchParams;if(t.searchField){let e=n;e=t.valueProperty?n[t.valueProperty]:n,r.set(t.searchField,"string"==typeof e?e:JSON.stringify(e))}return t.selectFields&&r.set("select",t.selectFields),t.sort&&r.set("sort",t.sort),t.filter&&new URLSearchParams(t.filter).forEach(((e,t)=>r.set(t,e))),i},t.shouldValidate=e=>{var t;const{component:n,value:i,config:r}=e;return!(!(null==r?void 0:r.server)||!(e=>{var t;return e&&"select"===e.type&&(0,a.toBoolean)("resource"===e.dataSrc)&&(0,a.toBoolean)(null===(t=e.validate)||void 0===t?void 0:t.select)})(n)||!i||(0,a.isEmptyObject)(i)||Array.isArray(i)&&0===i.length||"resource"!==n.dataSrc||!(null===(t=n.data)||void 0===t?void 0:t.resource))},t.validateResourceSelectValue=e=>i(void 0,void 0,void 0,(function*(){var n;const{value:i,config:a}=e;if(!(0,t.shouldValidate)(e))return null;if(!a||!a.database)throw new r.ProcessorError("Can't validate for resource value without a database config object",e,"validate:validateResourceSelectValue");try{return!0===(yield null===(n=a.database)||void 0===n?void 0:n.validateResourceSelectValue(e,i))?null:new r.FieldError("select",e)}catch(t){throw new r.ProcessorError(t.message||t,e,"validate:validateResourceSelectValue")}})),t.validateResourceSelectValueInfo={name:"validateResourceSelectValue",process:t.validateResourceSelectValue,shouldProcess:t.shouldValidate}},27534:(e,t,n)=>{var i=n(72552),r=n(40346);e.exports=function(e){return r(e)&&"[object Arguments]"==i(e)}},27539:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=n(34600),s=i(n(71961));class o extends s.default{static schema(...e){return s.default.schema({type:"checkbox",inputType:"checkbox",label:"Checkbox",key:"checkbox",dataGridLabel:!0,labelPosition:"right",value:"",name:""},...e)}static get builderInfo(){return{title:"Checkbox",group:"basic",icon:"check-square",documentation:"/userguide/form-building/form-components#check-box",weight:50,schema:o.schema()}}static get serverConditionSettings(){return o.conditionOperatorsSettings}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{operators:["isEqual"],valueComponent:()=>({valueType:"boolean",data:{values:[{label:"Checked",value:"true"},{label:"Not Checked",value:"false"}]},type:"select"})})}static savedValueTypes(e){e=e||{};const t=(0,a.getComponentSavedTypes)(e);return r.default.isArray(t)?t:"radio"===e.inputType?[a.componentValueTypes.string]:[a.componentValueTypes.boolean]}get defaultSchema(){return o.schema()}get labelClass(){let e="";return this.isInputComponent&&!this.options.inputsOnly&&this.component.validate&&this.component.validate.required&&(e+=" field-required"),`${e}`}get hasSetValue(){return this.hasValue()}get inputInfo(){const e=super.elementInfo();return e.type="input",e.changeEvent="click",e.attr.type=this.component.inputType||"checkbox",e.attr.class="form-check-input",this.component.name&&(e.attr.name=`data[${this.component.name}]`),e.attr.value=this.component.value?this.component.value:0,e.label=this.t(this.component.label,{_userInput:!0}),e.labelClass=this.labelClass,e}get labelInfo(){return{hidden:!0}}render(){return super.render(this.renderTemplate("checkbox",{input:this.inputInfo,checked:this.checked,tooltip:this.interpolate(this.t(this.component.tooltip)||"",{_userInput:!0}).replace(/(?:\r\n|\r|\n)/g,"
")}))}attach(e){return this.loadRefs(e,{input:"multiple"}),this.input=this.refs.input[0],this.refs.input&&(this.addEventListener(this.input,this.inputInfo.changeEvent,(()=>this.updateValue(null,{modified:!0}))),this.addShortcut(this.input)),super.attach(e)}detach(e){e&&this.input&&this.removeShortcut(this.input),super.detach()}get emptyValue(){return"radio"===this.component.inputType&&null}isEmpty(e=this.dataValue){return super.isEmpty(e)||!1===e}get key(){return this.component.name?this.component.name:super.key}getValueAt(e){return this.component.name?this.refs.input[e].checked?this.component.value:"":!!this.refs.input[e].checked}getValue(){const e=super.getValue();return this.component.name?e?this.setCheckedState(e):this.setCheckedState(this.dataValue):""===e?this.dataValue:!!e}get checked(){return this.component.name?this.dataValue===this.component.value:!!this.dataValue}setCheckedState(e){if(this.input)return this.component.name?(this.input.value=e===this.component.value?this.component.value:0,this.input.checked=e===this.component.value?1:0):"on"===e?(this.input.value=1,this.input.checked=1):"off"===e?(this.input.value=0,this.input.checked=0):e?(this.input.value=1,this.input.checked=1):(this.input.value=0,this.input.checked=0),this.input.checked?this.input.setAttribute("checked",!0):this.input.removeAttribute("checked"),e}setValue(e,t={}){return this.setCheckedState(e),super.setValue(e,t)}getValueAsString(e){const{name:t,value:n}=this.component,i=t?r.default.isEqual(e,n):e;return r.default.isUndefined(e)&&this.inDataTable?"":this.t(i?"Yes":"No")}updateValue(e,t){this.component.name&&t.modified&&this.dataValue===this.component.value&&(this.input.checked=0,this.input.value=0,this.dataValue="",this.updateOnChange(t,!0));const n=super.updateValue(e,t);return n&&this.input&&(this.input.checked?this.input.setAttribute("checked","true"):this.input.removeAttribute("checked")),n}}t.default=o},27546:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87338)),a=i(n(2543));t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"hideLabel",customConditional(e){var t,n;return null===(n=null===(t=e.instance.options)||void 0===t?void 0:t.flags)||void 0===n?void 0:n.inDataGrid}},{key:"dataGridLabel",ignore:!0},{type:"select",key:"action",label:"Action",input:!0,dataSrc:"values",weight:110,tooltip:"This is the action to be performed by this button.",data:{values:[{label:"Submit",value:"submit"},{label:"Save in state",value:"saveState"},{label:"Event",value:"event"},{label:"Custom",value:"custom"},{label:"Reset",value:"reset"},{label:"OAuth",value:"oauth"},{label:"POST to URL",value:"url"}]}},{type:"select",key:"oauthProvider",label:"OAuth Provider",input:!0,dataSrc:"values",weight:111,tooltip:"The oauth provider to use to log in (8.x server only).",data:{values:[{label:"OpenID",value:"openid"},{label:"Github",value:"github"},{label:"Google",value:"google"}]},conditional:{json:{"===":[{var:"data.action"},"oauth"]}}},{type:"textfield",label:"Save in state",key:"state",weight:112,tooltip:'The state you wish to save the submission under when this button is pressed. Example "draft" would save the submission in Draft Mode.',placeholder:"submitted",input:!0,conditional:{json:{"===":[{var:"data.action"},"saveState"]}}},{type:"checkbox",input:!0,inputType:"checkbox",key:"saveOnEnter",label:"Save On Enter",weight:113,tooltip:"Use the Enter key to submit form.",conditional:{json:{"===":[{var:"data.action"},"submit"]}}},{type:"checkbox",input:!0,inputType:"checkbox",key:"showValidations",label:"Show Validations",weight:115,tooltip:"When the button is pressed, show any validation errors on the form.",conditional:{json:{"!==":[{var:"data.action"},"submit"]}}},{type:"textfield",label:"Button Event",key:"event",input:!0,weight:120,tooltip:"The event to fire when the button is clicked.",conditional:{json:{"===":[{var:"data.action"},"event"]}}},{type:"textfield",inputType:"url",key:"url",input:!0,weight:120,label:"Button URL",tooltip:"The URL where the submission will be sent.",placeholder:"https://example.form.io",conditional:{json:{"===":[{var:"data.action"},"url"]}}},{type:"datagrid",key:"headers",input:!0,weight:130,label:"Headers",addAnother:"Add Header",tooltip:"Headers Properties and Values for your request",components:[{key:"header",label:"Header",input:!0,type:"textfield"},{key:"value",label:"Value",input:!0,type:"textfield"}],conditional:{json:{"===":[{var:"data.action"},"url"]}}},{type:"textarea",key:"custom",label:"Button Custom Logic",tooltip:"The custom logic to evaluate when the button is clicked.",rows:5,editor:"ace",input:!0,weight:120,placeholder:"data['mykey'] = data['anotherKey'];",conditional:{json:{"===":[{var:"data.action"},"custom"]}}},{type:"select",key:"theme",label:"Theme",input:!0,tooltip:"The color theme of this button.",dataSrc:"values",weight:140,data:{values:[{label:"Primary",value:"primary"},{label:"Secondary",value:"secondary"},{label:"Info",value:"info"},{label:"Success",value:"success"},{label:"Danger",value:"danger"},{label:"Warning",value:"warning"}]}},{type:"select",key:"size",label:"Size",input:!0,tooltip:"The size of this button.",dataSrc:"values",weight:150,data:{values:[{label:"Small",value:"sm"},{label:"Medium",value:"md"},{label:"Large",value:"lg"}]}},{type:"textfield",key:"leftIcon",label:"Left Icon",input:!0,placeholder:"Enter icon classes",tooltip:"This is the full icon class string to show the icon. Example: 'bi bi-plus'",weight:160},{type:"textfield",key:"rightIcon",label:"Right Icon",input:!0,placeholder:"Enter icon classes",tooltip:"This is the full icon class string to show the icon. Example: 'bi bi-plus'",weight:170},{type:"select",input:!0,weight:180,label:"Shortcut",key:"shortcut",tooltip:"Shortcut for this component.",dataSrc:"custom",valueProperty:"value",customDefaultValue:()=>"",template:"{{ item.label }}",data:{custom:e=>r.default.getAvailableShortcuts(a.default.get(e,"instance.options.editForm",{}),a.default.get(e,"instance.options.editComponent",{}))}},{type:"checkbox",key:"block",label:"Block Button",input:!0,weight:155,tooltip:"This control should span the full width of the bounding container."},{type:"checkbox",key:"disableOnInvalid",label:"Disable on Form Invalid",tooltip:"This will disable this field if the form is invalid.",input:!0,weight:620}]},27656:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},27836:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(89480)),a=n(2543);class s extends r.default{static get operatorKey(){return"includes"}static get displayedName(){return"Includes"}execute({value:e,comparedValue:t}){return(0,a.includes)(e,t)}}t.default=s},28042:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=n(29857),s=i(n(57692)),o=n(34600),l=n(30214),u=i(n(87338)),d=i(n(90177));class c extends s.default{constructor(){let e,t;arguments[0]instanceof HTMLElement||arguments[1]?(e=arguments[0],t=arguments[1]):t=arguments[0],t.skipInit=!0,t.display="pdf",e?super(e,t):super(t),this.dragDropEnabled=!1}get defaultGroups(){return{pdf:{title:"PDF Fields",weight:0,default:!0,components:{textfield:!0,number:!0,password:!0,email:!0,phoneNumber:!0,currency:!0,checkbox:!0,signature:!0,select:!0,textarea:!0,datetime:!0,file:!0,htmlelement:!0,signrequestsignature:!0}},basic:!1,advanced:!1,layout:!1,data:!1,premium:!1,resource:!1}}get hasPDF(){return r.default.has(this.webform.form,"settings.pdf")}get projectUrl(){return this.options.projectUrl||a.Formio.getProjectUrl()}init(){this.options.attachMode="builder",this.webform=this.webform||this.createForm(this.options),this.webform.init()}render(){return this.renderTemplate("pdfBuilder",{sidebar:this.renderTemplate("builderSidebar",{scrollEnabled:this.sideBarScroll,groupOrder:this.groupOrder,groupId:`builder-sidebar-${this.id}`,groups:this.groupOrder.map((e=>this.renderTemplate("builderSidebarGroup",{group:this.groups[e],groupKey:e,groupId:`builder-sidebar-${this.id}`,subgroups:this.groups[e].subgroups.map((t=>this.renderTemplate("builderSidebarGroup",{group:t,groupKey:t.key,groupId:`group-container-${e}`,subgroups:[]})))})))}),form:this.hasPDF?this.webform.render():this.renderTemplate("pdfBuilderUpload",{})})}attach(e){if(!this.hasPDF){if(this.loadRefs(e,{fileDrop:"single",fileBrowse:"single",hiddenFileInputElement:"single",uploadError:"single",uploadProgress:"single",uploadProgressWrapper:"single",dragDropText:"single"}),this.addEventListener(this.refs["pdf-upload-button"],"click",(e=>{e.preventDefault()})),this.projectUrl?this.setUploadError():this.setUploadError('Form options.projectUrl not set. Please set the "projectUrl" property of the options for this form or use Formio.setProjectUrl(). This setting is necessary to upload a pdf background.'),this.refs.fileDrop){const e=this;this.addEventListener(this.refs.fileDrop,"dragover",(function(e){this.className="fileSelector fileDragOver",e.preventDefault()})),this.addEventListener(this.refs.fileDrop,"dragleave",(function(e){this.className="fileSelector",e.preventDefault()})),this.addEventListener(this.refs.fileDrop,"drop",(function(t){return this.className="fileSelector",t.preventDefault(),e.upload(t.dataTransfer.files[0]),!1}))}return this.refs.fileBrowse&&this.refs.hiddenFileInputElement&&(this.addEventListener(this.refs.fileBrowse,"click",(e=>{e.preventDefault(),"function"==typeof this.refs.hiddenFileInputElement.trigger?this.refs.hiddenFileInputElement.trigger("click"):this.refs.hiddenFileInputElement.click()})),this.addEventListener(this.refs.hiddenFileInputElement,"change",(()=>{this.refs.hiddenFileInputElement.value&&(this.upload(this.refs.hiddenFileInputElement.files[0]),this.refs.hiddenFileInputElement.value="")}))),Promise.resolve()}return super.attach(e).then((()=>(this.loadRefs(this.element,{iframeDropzone:"single","sidebar-container":"multiple",sidebar:"single"}),this.afterAttach(),this.element)))}afterAttach(){this.on("saveComponent",(e=>{this.webform.postMessage({name:"updateElement",data:e})})),this.on("removeComponent",(e=>{this.webform.postMessage({name:"removeElement",data:e})})),this.initIframeEvents(),this.updateDropzoneDimensions();const e=this.refs.sidebar;e&&(this.addClass(e,"disabled"),this.webform.on("iframe-ready",(()=>{this.pdfLoaded=!0,this.updateDragAndDrop(),this.removeClass(e,"disabled")}),!0))}upload(e){const t=new a.Formio(this.projectUrl);this.refs.dragDropText&&(this.refs.dragDropText.style.display="none"),this.refs.uploadProgressWrapper&&(this.refs.uploadProgressWrapper.style.display="inherit"),t.uploadFile("url",e,e,"",(e=>{if(this.refs.uploadProgress){const t=Math.floor(e.loaded/e.total*100);this.refs.uploadProgress.style.width=`${t}%`,this.refs.uploadProgress.innerHTML=t>98?this.t("Converting PDF. Please wait."):`${this.t("Uploading")} ${t}%`}}),`${this.projectUrl}/upload`,{},"file").then((e=>{var t,n,i,a;let s=!1;if((null===(t=e.data.formfields)||void 0===t?void 0:t.components)&&e.data.formfields.components.length){const t="submit"===(null===(n=this.webform.form.components[0])||void 0===n?void 0:n.key),r="page1"===(null===(i=this.webform.form.components[0])||void 0===i?void 0:i.key)&&0===(null===(a=this.webform.form.components[0])||void 0===a?void 0:a.components.length),o=0===this.webform.form.components.length;(t||r||o)&&(s=!0,this.webform.form.components=e.data.formfields.components)}this.refs.dragDropText&&(this.refs.dragDropText.style.display="inherit"),this.refs.uploadProgressWrapper&&(this.refs.uploadProgressWrapper.style.display="none"),r.default.set(this.webform.form,"settings.pdf",{id:e.data.file,src:e.data.filesServer?`${e.data.filesServer}${e.data.path}`:`${new URL(this.projectUrl).origin}/pdf-proxy${e.data.path}`,nonFillableConversionUsed:s&&e.data.formfields.nonFillableConversionUsed}),this.emit("pdfUploaded",e.data),this.redraw()})).catch((e=>this.setUploadError(e)))}setUploadError(e){this.refs.uploadError&&(this.refs.uploadError.style.display=e?"":"none",this.refs.uploadError.innerHTML=e)}createForm(e){return e.skipInit=!1,e.hideLoader=!0,this.webform=new d.default(this.element,e),this.webform.on("attach",(()=>{this.refs.iframeDropzone&&![...this.refs.form.children].includes(this.refs.iframeDropzone)&&this.prependTo(this.refs.iframeDropzone,this.refs.form)})),this.webform}destroy(e=!1){super.destroy(e),this.webform.destroy(e)}getParentContainer(e){let t=[],n=null;return(0,l.eachComponent)(this.webform._form.components,((i,r,a)=>{if(i.id===e.component.id)return t=a,n=i,!0}),!0),{formioComponent:e.parent,formioContainer:t,originalComponent:n}}initIframeEvents(){this.webform.off("iframe-elementUpdate"),this.webform.off("iframe-componentUpdate"),this.webform.off("iframe-componentClick"),this.webform.on("iframe-elementUpdate",(e=>{const t=this.webform.getComponentById(e.id);if(t&&t.component){const n=!0;t.component.overlay={page:e.page,left:e.left,top:e.top,height:e.height,width:e.width},this.options.noNewEdit||t.component.noNewEdit||this.editComponent(t.component,this.getParentContainer(t),n),this.emit("updateComponent",t.component)}return t})),this.webform.on("iframe-componentUpdate",(e=>{const t=this.webform.getComponentById(e.id);return t&&t.component&&(t.component.overlay={page:e.overlay.page,left:e.overlay.left,top:e.overlay.top,height:e.overlay.height,width:e.overlay.width},this.emit("updateComponent",t.component),this.emit("change",this.form)),t})),this.webform.on("iframe-componentClick",(e=>{const t=this.webform.getComponentById(e.id);t&&this.editComponent(t.component,this.getParentContainer(t))}),!0)}initDropzoneEvents(){this.refs.iframeDropzone&&(this.removeEventListener(this.refs.iframeDropzone,"dragover"),this.removeEventListener(this.refs.iframeDropzone,"drop"),this.addEventListener(this.refs.iframeDropzone,"dragover",(e=>(e.preventDefault(),!1))),this.addEventListener(this.refs.iframeDropzone,"drop",this.onDropzoneDrop.bind(this)))}updateDragAndDrop(){this.pdfLoaded&&(this.initDropzoneEvents(),this.prepSidebarComponentsForDrag())}prepSidebarComponentsForDrag(){this.refs["sidebar-container"]&&this.refs["sidebar-container"].forEach((e=>{[...e.children].forEach((e=>{e.draggable=!0,e.setAttribute("draggable",!0),this.removeEventListener(e,"dragstart"),this.removeEventListener(e,"dragend"),this.addEventListener(e,"dragstart",this.onDragStart.bind(this),!0),this.addEventListener(e,"dragend",this.onDragEnd.bind(this),!0),this.addEventListener(e,"drag",(e=>{e.target.style.cursor="none"}))}))}))}updateDropzoneDimensions(){if(!this.refs.iframeDropzone)return;const e=(0,o.getElementRect)(this.webform.refs.iframeContainer);this.refs.iframeDropzone.style.height=e&&e.height?`${e.height}px`:"1000px",this.refs.iframeDropzone.style.width=e&&e.width?`${e.width}px`:"100%"}onDragStart(e){const{offsetX:t=0,offsetY:n=0}=e;this.itemOffsetX=t,this.itemOffsetY=n,e.dataTransfer.setData("text",""),this.updateDropzoneDimensions(),this.addClass(this.refs.iframeDropzone,"enabled"),this.dropEmitted=!1}onDropzoneDrop(e){return this.dropEmitted=!0,this.dropEvent=e,e.preventDefault(),!1}onDragEnd(e){var t;const n=this.webform.refs.iframeContainer.getBoundingClientRect(),i=this.dropEvent?this.dropEvent.layerX:null,a=this.dropEvent?this.dropEvent.layerY:null;if(this.removeClass(this.refs.iframeDropzone,"enabled"),!this.dropEvent){if(!(!this.dropEmitted&&((0,o.getBrowserInfo)().chrome||(0,o.getBrowserInfo)().edge)&&"macOS"===globalThis.navigator.userAgentData.platform&&n.left{this.repeatablePaths.includes(t)&&this.webform.postMessage({name:"updateElement",data:e.component})})),this.repeatablePaths=e),e.length&&(0,l.eachComponent)(this.webform.getComponents(),((e,t)=>{this.repeatablePaths.includes(t)&&this.webform.postMessage({name:"showBuilderErrors",data:{compId:e.component.id,errorMessage:`API Key is not unique: ${e.key}`}})}))}}t.default=c},28077:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},28178:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(62980);t.default={form:i.default}},28298:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(95093))},28303:(e,t,n)=>{var i=n(56110)(n(9325),"WeakMap");e.exports=i},28380:(e,t,n)=>{var i=n(96131);e.exports=function(e,t){for(var n=-1,r=e.length;++n-1;);return n}},28495:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Model=void 0;const i=n(2543),r=n(41826);t.Model=function(e={}){return e.schema||(e.schema={}),e.schema.key||(e.schema.key=""),function(t){return class n extends((0,r.EventEmitter)(t)){static schema(){return e.schema}constructor(e={},t={},n={}){super(e,t,n),this.component=e,this.options=t,this.data=n,this.root=null,this.id=`e${Math.random().toString(36).substring(7)}`,this.component=(0,i.merge)({},this.defaultSchema,this.component),this.options=Object.assign(Object.assign({},this.defaultOptions),this.options),this.options.noInit||this.init()}get defaultOptions(){return{}}get defaultSchema(){return n.schema()}init(){this.hook("init")}get errors(){return this.validator.errors}get emptyValue(){return null}isEmpty(e=this.dataValue){const t=!(!(0,i.isArray)(e)||1!==e.length)&&(0,i.isEqual)(e[0],this.emptyValue);return null==e||0===e.length||(0,i.isEqual)(e,this.emptyValue)||t}get dataValue(){return this.component.key?(0,i.get)(this.data,this.component.key):this.data}set dataValue(e){this.component.key&&(0,i.set)(this.data,this.component.key,e)}hasChanged(e){return String(e)!==String(this.dataValue)}updateValue(e){const t=this.hasChanged(e);return this.dataValue=e,t&&this.bubble("change",e),t}getValue(){return this.dataValue}hook(e,...t){if(this.options&&this.options.hooks&&this.options.hooks[e])return this.options.hooks[e].apply(this,t);{const e="function"==typeof t[t.length-1]?t[t.length-1]:null;return e?e(null,t[1]):t[1]}}}}}},28551:(e,t,n)=>{"use strict";var i=n(20034),r=String,a=TypeError;e.exports=function(e){if(i(e))return e;throw new a(r(e)+" is not an object")}},28586:(e,t,n)=>{var i=n(56449),r=n(44394),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(i(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!r(e))||s.test(e)||!a.test(e)||null!=t&&e in Object(t)}},28754:(e,t,n)=>{var i=n(25160);e.exports=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&n>=r?e:i(e,t,n)}},28832:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(55220),r=n(87509);t.default={treeView:{form:r.default},treeEdit:{form:i.default}}},28861:function(e,t,n){!function(e){"use strict";e.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},28879:(e,t,n)=>{var i=n(74335)(Object.getPrototypeOf,Object);e.exports=i},28936:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.jsonLogic=void 0;const r=i(n(18678));t.jsonLogic=r.default;const a=n(49599),s=n(19313);for(const e in s._)r.default.add_operation(`_${e}`,s._[e]);r.default.add_operation("getDate",(e=>(0,a.dayjs)(e).toISOString())),r.default.add_operation("relativeMinDate",(e=>(0,a.dayjs)().subtract(e,"days").toISOString())),r.default.add_operation("relativeMaxDate",(e=>(0,a.dayjs)().add(e,"days").toISOString()))},28953:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.checkSimpleConditional=t.checkJsonConditional=t.checkLegacyConditional=t.checkCustomConditional=t.conditionallyHidden=t.isSimpleConditional=t.isLegacyConditional=t.isJSONConditional=void 0;const r=n(79092),a=n(96690),s=n(2543),o=i(n(3029));t.isJSONConditional=e=>e&&e.json&&(0,s.isObject)(e.json),t.isLegacyConditional=e=>e&&e.when,t.isSimpleConditional=e=>e&&e.conjunction&&e.conditions,t.conditionallyHidden=function(e){const{scope:t,path:n,component:i}=e,r=(0,a.getComponentAbsolutePath)(i)||n;if(t.conditionals&&r){const e=(0,s.find)(t.conditionals,(e=>e.path===r));return null==e?void 0:e.conditionallyHidden}return!1},t.checkCustomConditional=function(e,t,n="show"){const{evalContext:i}=t;if(!e)return null;const a=(0,r.evaluate)(t,e,n,i);return null===a?null:a},t.checkLegacyConditional=function(e,n){const{row:i,data:r,component:o}=n;if(!e||!(0,t.isLegacyConditional)(e)||!e.when)return null;const l=(0,a.getComponentActualValue)(o,e.when,r,i),u=String(e.eq),d=String(e.show);return(0,s.isObject)(l)&&(0,s.has)(l,u)?String(l[u])===d:Array.isArray(l)&&l.map(String).includes(u)?"true"===d:String(l)===u==("true"===d)},t.checkJsonConditional=function(e,n){const{evalContext:i}=n;if(!e||!(0,t.isJSONConditional)(e))return null;const a=i?i(n):n;return r.JSONLogicEvaluator.evaluate(e.json,a)},t.checkSimpleConditional=function(e,n){const{component:i,data:r,row:l,instance:u,form:d}=n;if(!e||!(0,t.isSimpleConditional)(e))return null;const{conditions:c=[],conjunction:h="all",show:p=!0}=e;if(!c.length)return null;const f=(0,s.filter)((0,s.map)(c,(e=>{let{value:t,component:n}=e;const{operator:c}=e;if(!n)return null;const h=(null==d?void 0:d.components)||[];let p=(0,a.getComponent)(h,n,!0);if(!p&&function(e={}){let t;try{t=JSON.parse(e.value)}catch(n){t=e.value}return(0,s.isBoolean)(t)&&(e.component||"").split(".").length>1&&"isEqual"===e.operator}(e)&&h.length){const e=(0,a.flattenComponents)(h,!0),i=(0,s.split)(n,"."),r=[];for(;!p&&i.length;)p=e[`${i.join(".")}`],p||r.unshift(i.pop());p&&"selectboxes"===p.type&&r.length&&(console.warn("Condition based on selectboxes has wrong format. Resave the form in the form builder to fix it."),n=i.join("."),t=r.join("."))}const f=p?(0,a.getComponentActualValue)(p,n,r,l):null,m=o.default[c];return!m||(new m).getResult({value:f,comparedValue:t,instance:u,component:i,conditionComponent:p,conditionComponentPath:n,data:r})})),(e=>null!==e));let m=!1;return m="any"===h?(0,s.some)(f,(e=>!!e)):(0,s.every)(f,(e=>!!e)),p?m:!m}},28959:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"хвіліна":"хвіліну":"h"===n?t?"гадзіна":"гадзіну":e+" "+(i=+e,r={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:t?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}e.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:t,mm:t,h:t,hh:t,d:"дзень",dd:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(e){return/^(дня|вечара)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночы":e<12?"раніцы":e<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":case"w":case"W":return e%10!=2&&e%10!=3||e%100==12||e%100==13?e+"-ы":e+"-і";case"D":return e+"-га";default:return e}},week:{dow:1,doy:7}})}(n(95093))},28975:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(66655),r=n(96012);t.default={form:i.default,align:r.default}},29015:e=>{e.exports=function(e,t){return Array.prototype.slice.call(e,t)}},29071:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(42492)),a=i(n(17389)),s=i(n(2543)),o=n(34600);class l extends a.default{static schema(...e){return a.default.schema({type:"signature",label:"Signature",key:"signature",footer:"Sign above",width:"100%",height:"150px",penColor:"black",backgroundColor:"rgb(245,245,235)",minWidth:"0.5",maxWidth:"2.5",keepOverlayRatio:!0},...e)}static get builderInfo(){return{title:"Signature",group:"advanced",icon:"pencil",weight:120,documentation:"/developers/integrations/esign/esign-integrations#signature-component",schema:l.schema()}}static get serverConditionSettings(){return l.conditionOperatorsSettings}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{operators:["isEmpty","isNotEmpty"]})}static savedValueTypes(e){return e=e||{},(0,o.getComponentSavedTypes)(e)||[o.componentValueTypes.string]}init(){var e,t,n,i,r;super.init(),this.currentWidth=0,this.scale=1,this.component.width||(this.component.width="100%"),this.component.height||(this.component.height="200px"),this.component.keepOverlayRatio&&"pdf"===(null===(e=this.options)||void 0===e?void 0:e.display)&&(null===(t=this.component.overlay)||void 0===t?void 0:t.width)&&(null===(n=this.component.overlay)||void 0===n?void 0:n.height)&&(this.ratio=(null===(i=this.component.overlay)||void 0===i?void 0:i.width)/(null===(r=this.component.overlay)||void 0===r?void 0:r.height),this.component.width="100%",this.component.height="auto")}get emptyValue(){return""}get defaultSchema(){return l.schema()}get inputInfo(){const e=super.inputInfo;return e.type="input",e.attr.type="hidden",e}get className(){return`${super.className} signature-pad`}labelIsHidden(){return this.component.hideLabel}setValue(e,t={}){const n=super.setValue(e,t);return this.refs.signatureImage&&(this.options.readOnly||this.disabled)&&(this.refs.signatureImage.setAttribute("src",e),this.showCanvas(!1)),this.signaturePad&&(e?n&&this.triggerChange():this.signaturePad.clear()),this.signaturePad&&this.dataValue&&this.signaturePad.isEmpty()&&this.setDataToSigaturePad(),n}showCanvas(e){e?(this.refs.canvas&&(this.refs.canvas.style.display="inherit"),this.refs.signatureImage&&(this.refs.signatureImage.style.display="none")):(this.refs.canvas&&(this.refs.canvas.style.display="none"),this.refs.signatureImage&&(this.refs.signatureImage.style.display="inherit",this.refs.signatureImage.style.maxHeight="100%"))}onDisabled(){this.showCanvas(!super.disabled),this.signaturePad&&(super.disabled?(this.signaturePad.off(),this.refs.refresh&&this.refs.refresh.classList.add("disabled"),this.refs.signatureImage&&this.dataValue&&this.refs.signatureImage.setAttribute("src",this.dataValue)):(this.signaturePad.on(),this.refs.refresh&&this.refs.refresh.classList.remove("disabled")))}checkSize(e,t){if(this.refs.padBody&&(e||this.refs.padBody&&this.refs.padBody.offsetWidth!==this.currentWidth)){this.scale=e?t:this.scale,this.currentWidth=this.refs.padBody.offsetWidth;const n=this.currentWidth*this.scale,i=this.ratio?n/this.ratio:this.refs.padBody.offsetHeight*this.scale,r=this.ratio?i:this.refs.padBody.offsetHeight*this.scale;this.refs.canvas.width=n,this.refs.canvas.height=i>r?r:i,this.refs.canvas.style.maxWidth=this.currentWidth*this.scale+"px",this.refs.canvas.style.maxHeight=`${r}px`;const a=this.refs.canvas.getContext("2d");a.setTransform(1,0,0,1,0,0),a.scale(1/this.scale,1/this.scale),a.fillStyle=this.signaturePad.backgroundColor,a.fillRect(0,0,this.refs.canvas.width,this.refs.canvas.height),this.signaturePad.clear(),this.dataValue&&this.setDataToSigaturePad(),this.showCanvas(!0)}}renderElement(e,t){return this.renderTemplate("signature",{element:super.renderElement(e,t),required:s.default.get(this.component,"validate.required",!1)})}get hasModalSaveButton(){return!1}getModalPreviewTemplate(){return this.renderTemplate("modalPreview",{previewText:this.dataValue?``:this.t("Click to Sign")})}attach(e){this.loadRefs(e,{canvas:"single",refresh:"single",padBody:"single",signatureImage:"single"});const t=super.attach(e);return this.refs.refresh&&this.options.readOnly&&this.refs.refresh.classList.add("disabled"),this.refs.canvas&&(this.signaturePad=new r.default(this.refs.canvas,{minWidth:this.component.minWidth,maxWidth:this.component.maxWidth,penColor:this.component.penColor,backgroundColor:this.component.backgroundColor}),this.signaturePad.addEventListener("endStroke",(()=>this.setValue(this.signaturePad.toDataURL()))),this.refs.signatureImage.setAttribute("src",this.signaturePad.toDataURL()),this.onDisabled(),this.refs.padBody&&(this.refs.padBody.style.maxWidth||(this.refs.padBody.style.maxWidth="100%"),this.builderMode||this.options.preview||(this.observer=new ResizeObserver((()=>{this.checkSize()})),this.observer.observe(this.refs.padBody)),this.addEventListener(window,"resize",s.default.debounce((()=>this.checkSize()),10)),setTimeout(function e(){this.refs.padBody&&this.refs.padBody.offsetWidth?this.checkSize():setTimeout(e.bind(this),20)}.bind(this),20))),this.addEventListener(this.refs.refresh,"click",(e=>{e.preventDefault(),this.showCanvas(!0),this.signaturePad.clear(),this.setValue(this.defaultValue)})),this.setValue(this.dataValue),t}detach(){this.observer&&(this.observer.disconnect(),this.observer=null),this.signaturePad&&this.signaturePad.off(),this.signaturePad=null,this.currentWidth=0,super.detach()}getValueAsString(e){return s.default.isUndefined(e)&&this.inDataTable?"":e?"Yes":"No"}focus(){this.refs.padBody.focus()}setDataToSigaturePad(){this.signaturePad.fromDataURL(this.dataValue,{ratio:1,width:this.refs.canvas.width,height:this.refs.canvas.height})}}t.default=l},29172:(e,t,n)=>{var i=n(5861),r=n(40346);e.exports=function(e){return r(e)&&"[object Map]"==i(e)}},29182:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(30071),t),r(n(65012),t)},29231:function(e,t,n){!function(e){"use strict";e.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(95093))},29243:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.html=void 0;const i=n(1e3).A;t.html=i},29256:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(41090);t.default={form:i.default}},29491:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),a=i(n(15762)),s=i(n(98690)),o=i(n(73417)),l=i(n(41546)),u=i(n(57618)),d=i(n(47439));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:s.default},{key:"data",components:a.default},{key:"validation",components:o.default},{key:"day",label:"Day",weight:3,components:l.default},{key:"month",label:"Month",weight:3,components:u.default},{key:"year",label:"Year",weight:3,components:d.default}],...e)}},29688:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=void 0;const r=i(n(25454));let a=null;t.sanitize=function(e,t){const n=a||(window?(a=(0,r.default)(window),a):null);if(!n)return console.log("DOMPurify unable to sanitize the contents."),e;const i={ADD_ATTR:["ref","target","within"],USE_PROFILES:{html:!0}};return t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addAttr)&&t.sanitizeConfig.addAttr.length>0&&t.sanitizeConfig.addAttr.forEach((e=>{i.ADD_ATTR.push(e)})),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addTags)&&t.sanitizeConfig.addTags.length>0&&(i.ADD_TAGS=t.sanitizeConfig.addTags),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedTags)&&t.sanitizeConfig.allowedTags.length>0&&(i.ALLOWED_TAGS=t.sanitizeConfig.allowedTags),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedAttrs)&&t.sanitizeConfig.allowedAttrs.length>0&&(i.ALLOWED_ATTR=t.sanitizeConfig.allowedAttrs),t.sanitizeConfig&&t.sanitizeConfig.allowedUriRegex&&(i.ALLOWED_URI_REGEXP=t.sanitizeConfig.allowedUriRegex),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addUriSafeAttr)&&t.sanitizeConfig.addUriSafeAttr.length>0&&(i.ADD_URI_SAFE_ATTR=t.sanitizeConfig.addUriSafeAttr),n.sanitize(e,i)}},29817:e=>{e.exports=function(e){return this.__data__.has(e)}},29849:function(e,t,n){!function(e){"use strict";var t={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};e.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(e){return e.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ਰਾਤ"===t?e<4?e:e+12:"ਸਵੇਰ"===t?e:"ਦੁਪਹਿਰ"===t?e>=10?e:e+12:"ਸ਼ਾਮ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ਰਾਤ":e<10?"ਸਵੇਰ":e<17?"ਦੁਪਹਿਰ":e<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(95093))},29857:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=void 0;const r=n(94394);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return r.Formio}});const a=n(89126),s=i(n(1704)),o=i(n(77486));r.Formio.cdn=new s.default,r.Formio.Providers=o.default,r.Formio.version="5.0.1",s.default.defaultCDN=r.Formio.version.includes("rc")?"https://cdn.test-form.io":"https://cdn.form.io";const l=e=>null==e;r.Formio.prototype.uploadFile=function(e,t,n,i,a,s,u,d,c,h,p,f,m){const g={provider:e,method:"upload",file:t,fileName:n,dir:i};d=d||"file";const v=r.Formio.pluginWait("preRequest",g).then((()=>r.Formio.pluginGet("fileRequest",g).then((r=>{if(e&&l(r)){const r=o.default.getProvider("storage",e);if(r){const e=new r(this);return p&&p(),e.uploadFile(t,n,i,a,s,u,d,c,h,f,m)}throw"Storage provider not found"}return r||{url:""}}))));return r.Formio.pluginAlter("wrapFileRequestPromise",v,g)},r.Formio.prototype.downloadFile=function(e,t){const n={method:"download",file:e},i=r.Formio.pluginWait("preRequest",n).then((()=>r.Formio.pluginGet("fileRequest",n).then((n=>{if(e.storage&&l(n)){const n=o.default.getProvider("storage",e.storage);if(n)return new n(this).downloadFile(e,t);throw"Storage provider not found"}return n||{url:""}}))));return r.Formio.pluginAlter("wrapFileRequestPromise",i,n)},r.Formio.prototype.deleteFile=function(e,t){const n={method:"delete",file:e},i=r.Formio.pluginWait("preRequest",n).then((()=>r.Formio.pluginGet("fileRequest",n).then((n=>{if(e.storage&&l(n)){const n=o.default.getProvider("storage",e.storage);if(n)return new n(this).deleteFile(e,t);throw"Storage provider not found"}return n||{url:""}}))));return r.Formio.pluginAlter("wrapFileRequestPromise",i,n)},["setBaseUrl","setApiUrl","setAppUrl","setProjectUrl","setPathType","setLicense"].forEach((e=>{const t=r.Formio[e];r.Formio[e]=function(n){const i=a.Formio[e](n,!0);return t?t.call(this,n):i}})),r.Formio.Promise=Promise,r.Formio.formioReady=a.Formio.formioReady,r.Formio.config=a.Formio.config,r.Formio.builder=a.Formio.builder,r.Formio.Report=a.Formio.Report,r.Formio.Form=a.Formio.Form,r.Formio.FormBuilder=a.Formio.FormBuilder,r.Formio.use=a.Formio.use,r.Formio.createForm=a.Formio.createForm,r.Formio.submitDone=a.Formio.submitDone,r.Formio.addLibrary=a.Formio.addLibrary,r.Formio.addLoader=a.Formio.addLoader,r.Formio.addToGlobal=e=>{"object"!=typeof e||e.Formio||(e.Formio=r.Formio)},void 0!==n.g&&r.Formio.addToGlobal(n.g),"undefined"!=typeof window&&r.Formio.addToGlobal(window),a.Formio._formioReady(r.Formio)},29905:e=>{e.exports=function(e,t,n){for(var i=-1,r=null==e?0:e.length;++i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"spellcheck",ignore:!0},{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},30071:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},30091:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(3577)),a=i(n(2543));class s extends r.default{static get operatorKey(){return"startsWith"}static get displayedName(){return"Starts With"}execute({value:e,comparedValue:t}){return a.default.startsWith(e,t)}}t.default=s},30214:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getItemTemplateKeys=t.compareSelectResourceWithObjectTypeValues=t.isSelectResourceWithObjectValue=t.isComponentDataEmpty=t.getEmptyValue=t.findComponent=t.applyFormChanges=t.generateFormChange=t.getStrings=t.getValue=t.escapeRegExCharacters=t.formatAsCurrency=t.parseFloatExt=t.hasCondition=t.removeComponent=t.searchComponents=t.getComponent=t.matchComponent=t.isLayoutComponent=t.getComponentActualValue=t.getComponentData=t.eachComponentAsync=t.eachComponent=t.componentInfo=t.getContextualRowData=t.getContextualRowPath=t.getComponentKey=t.eachComponentData=t.eachComponentDataAsync=t.componentChildPath=t.componentPath=t.isComponentNestedDataType=t.getComponentPath=t.getComponentAbsolutePath=t.getModelType=t.MODEL_TYPES=t.uniqueName=t.guid=t.flattenComponents=t.findComponents=void 0;const i=n(35349),{flattenComponents:r,guid:a,uniqueName:s,MODEL_TYPES:o,getModelType:l,getComponentAbsolutePath:u,getComponentPath:d,isComponentNestedDataType:c,componentPath:h,componentChildPath:p,eachComponentDataAsync:f,eachComponentData:m,getComponentKey:g,getContextualRowPath:v,getContextualRowData:y,componentInfo:b,eachComponent:_,eachComponentAsync:w,getComponentData:M,getComponentActualValue:k,isLayoutComponent:S,matchComponent:x,getComponent:L,searchComponents:C,removeComponent:T,hasCondition:E,parseFloatExt:A,formatAsCurrency:D,escapeRegExCharacters:P,getValue:O,getStrings:j,generateFormChange:I,applyFormChanges:R,findComponent:F,getEmptyValue:Y,isComponentDataEmpty:V,isSelectResourceWithObjectValue:N,compareSelectResourceWithObjectTypeValues:H,getItemTemplateKeys:z}=i.Utils;t.flattenComponents=r,t.guid=a,t.uniqueName=s,t.MODEL_TYPES=o,t.getModelType=l,t.getComponentAbsolutePath=u,t.getComponentPath=d,t.isComponentNestedDataType=c,t.componentPath=h,t.componentChildPath=p,t.eachComponentDataAsync=f,t.eachComponentData=m,t.getComponentKey=g,t.getContextualRowPath=v,t.getContextualRowData=y,t.componentInfo=b,t.eachComponent=_,t.eachComponentAsync=w,t.getComponentData=M,t.getComponentActualValue=k,t.isLayoutComponent=S,t.matchComponent=x,t.getComponent=L,t.searchComponents=C,t.removeComponent=T,t.hasCondition=E,t.parseFloatExt=A,t.formatAsCurrency=D,t.escapeRegExCharacters=P,t.getValue=O,t.getStrings=j,t.generateFormChange=I,t.applyFormChanges=R,t.findComponent=F,t.getEmptyValue=Y,t.isComponentDataEmpty=V,t.isSelectResourceWithObjectValue=N,t.compareSelectResourceWithObjectTypeValues=H,t.getItemTemplateKeys=z,t.findComponents=function(e,t){return console.warn("formio.js/utils findComponents is deprecated. Use searchComponents instead."),C(e,t)}},30228:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n="~";function i(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(e,t,i,a,s){if("function"!=typeof i)throw new TypeError("The listener must be a function");var o=new r(i,a||e,s),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],o]:e._events[l].push(o):(e._events[l]=o,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new i:delete e._events[t]}function o(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(n=!1)),o.prototype.eventNames=function(){var e,i,r=[];if(0===this._eventsCount)return r;for(i in e=this._events)t.call(e,i)&&r.push(n?i.slice(1):i);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},o.prototype.listeners=function(e){var t=n?n+e:e,i=this._events[t];if(!i)return[];if(i.fn)return[i.fn];for(var r=0,a=i.length,s=new Array(a);r{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},30301:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.Utils=void 0;const s=a(n(34600));t.Utils=s,"object"==typeof n.g&&(n.g.FormioUtils=s),t.default=s},30306:function(e,t,n){!function(e){"use strict";e.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(95093))},30361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var i=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e{"use strict";e.exports={}},30713:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},30756:(e,t,n)=>{var i=n(23805);e.exports=function(e){return e==e&&!i(e)}},30952:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(24889),t),r(n(97342),t)},30977:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n"}},31052:function(e,t,n){!function(e){"use strict";var t="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(e,n,i,r){var a=function(e){var n=Math.floor(e%1e3/100),i=Math.floor(e%100/10),r=e%10,a="";return n>0&&(a+=t[n]+"vatlh"),i>0&&(a+=(""!==a?" ":"")+t[i]+"maH"),r>0&&(a+=(""!==a?" ":"")+t[r]),""===a?"pagh":a}(e);switch(i){case"ss":return a+" lup";case"mm":return a+" tup";case"hh":return a+" rep";case"dd":return a+" jaj";case"MM":return a+" jar";case"yy":return a+" DIS"}}e.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"leS":-1!==e.indexOf("jar")?t.slice(0,-3)+"waQ":-1!==e.indexOf("DIS")?t.slice(0,-3)+"nem":t+" pIq"},past:function(e){var t=e;return-1!==e.indexOf("jaj")?t.slice(0,-3)+"Hu’":-1!==e.indexOf("jar")?t.slice(0,-3)+"wen":-1!==e.indexOf("DIS")?t.slice(0,-3)+"ben":t+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},31175:(e,t,n)=>{var i=n(26025);e.exports=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},31179:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(11107);t.default={form:i.default}},31373:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(65069),r=n(87078);t.default={form:i.default,html:r.default}},31380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},31541:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(95093))},31545:function(e,t,n){!function(e){"use strict";var t={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};e.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(e){return e.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(e,t){return 12===e&&(e=0),"མཚན་མོ"===t&&e>=4||"ཉིན་གུང"===t&&e<5||"དགོང་དག"===t?e+12:e},meridiem:function(e,t,n){return e<4?"མཚན་མོ":e<10?"ཞོགས་ཀས":e<17?"ཉིན་གུང":e<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(95093))},31667:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(44619),r=n(86928);t.default={form:i.default,html:r.default}},31739:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(94259)),a=i(n(17795));t.default=function(...e){return(0,r.default)([{key:"display",components:[{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},{key:"data",components:[{key:"case",ignore:!0}]},{key:"validation",components:a.default}],...e)}},31769:(e,t,n)=>{var i=n(56449),r=n(28586),a=n(61802),s=n(13222);e.exports=function(e,t){return i(e)?e:r(e,t)?[e]:a(s(e))}},31800:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},31803:(e,t)=>{"use strict";function n(e,t){return void 0===e?void 0===t?e:t:e}Object.defineProperty(t,"__esModule",{value:!0}),t.boolean=function(e,t){return"function"==typeof(e=n(e,t))?function(){for(var t=arguments.length,n=Array(t),i=0;i{},31863:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0}]},31870:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=t.FormioPathType=void 0;const r=i(n(42681)),a=n(60554),s=n(2543),o=n(96690),l=n(17112),u=i(n(30228)),d=i(n(81018)),{fetch:c,Headers:h}=(0,r.default)(),p=i(n(23370)),f=n(84679);var m;!function(e){e.Subdirectories="Subdirectories",e.Subdomains="Subdomains"}(m||(t.FormioPathType=m={}));class g{constructor(e,t={}){if(this.path=e,this.options=t,this.base="",this.projectsUrl="",this.projectUrl="",this.projectId="",this.roleUrl="",this.rolesUrl="",this.roleId="",this.formUrl="",this.formsUrl="",this.formId="",this.submissionsUrl="",this.submissionUrl="",this.submissionId="",this.actionsUrl="",this.actionId="",this.actionUrl="",this.vsUrl="",this.vId="",this.vUrl="",this.query="",this.noProject=!1,!(this instanceof g))return new g(e);if(t.useSessionToken&&g.useSessionToken(t),t.hasOwnProperty("base")&&t.base)this.base=t.base;else if(g.baseUrl)this.base=g.baseUrl;else if(window&&window.location){const e=window.location.href.match(/http[s]?:\/\/api./);this.base=e?e[0]:window.location.origin}if(!e)return this.projectUrl=g.projectUrl||`${this.base}/project`,this.projectsUrl=`${this.base}/project`,this.projectId="",void(this.query="");t.hasOwnProperty("project")&&t.project&&(this.projectUrl=t.project);const n=this.projectUrl||g.projectUrl,i=/(^|\/)(project)($|\/[^/]+)/,r=-1!==e.search(i);n&&this.base===n&&!r&&(this.noProject=!0,this.projectUrl=this.base),0!==e.indexOf("http")&&0!==e.indexOf("//")&&(e=this.base+e);const a=this.getUrlParts(e);let s="",o=[];if(a){s=a[1]+a[2];const t=(e=a.length>3?a[3]:"").split("?");t.length>1&&(e=t[0],this.query=`?${t[1]}`)}const l=(t,n)=>{this[`${t}sUrl`]=`${n}/${t}`;const i=new RegExp(`/${t}/([^/]+)`);return e&&-1!==e.search(i)&&(o=e.match(i),this[`${t}Url`]=o?n+o[0]:"",this[`${t}Id`]=o.length>1?o[1]:"",n+=o[0]),n},u=(e,t,n)=>{for(const i in e)if(e.hasOwnProperty(i)){const r=e[i];if(Array.isArray(r))u(r,t,!0);else{const e=l(r,t);t=n?t:e}}};if(!this.projectUrl||this.projectUrl===this.base)if(this.projectUrl||r||"Subdirectories"!==g.pathType)this.projectUrl=s;else{const e=`^${s.replace(/\//g,"\\/")}.[^/]+`,t=n.match(new RegExp(e));this.projectUrl=t?t[0]:s}let d=!1;if(g.pathType&&(d="Subdomains"!==g.pathType),!this.noProject){if(r)u(["project"],s),e=e.replace(i,"");else if(s===this.base){if(a&&a.length>3&&e.split("/").length>1){const t=e.match(/.json/),n=e.split("/");if(t)this.projectUrl=s;else{n.shift();const t=n.shift();t&&(this.projectId=t,e=`/${n.join("/")}`,this.projectUrl=`${s}/${this.projectId}`)}}}else a&&a.length>2&&(a[2].split(".").length>2||s.includes("localhost"))&&!d&&(this.projectUrl=s,this.projectId=a[2].split(".")[0]);this.projectsUrl=this.projectsUrl||`${this.base}/project`}if(u(["role"],this.projectUrl),/(^|\/)(form)($|\/)/.test(e))u(["form",["submission","action","v"]],this.projectUrl);else{const t=new RegExp("/(submission|action|v)($|/.*)"),n=e.match(t);n&&n.length>1&&(this.pathType=n[1]),e=(e=e.replace(t,"")).replace(/\/$/,""),this.formsUrl=`${this.projectUrl}/form`,this.formUrl=e?this.projectUrl+e:"",this.formId=e.replace(/^\/+|\/+$/g,"");const i=["submission","action","v"];for(const t in i)if(i.hasOwnProperty(t)){const r=i[t];this[`${r}sUrl`]=`${this.projectUrl+e}/${r}`,this.pathType===r&&n&&n.length>2&&n[2]&&(this[`${r}Id`]=n[2].replace(/^\/+|\/+$/g,""),this[`${r}Url`]=this.projectUrl+e+n[0])}}g.projectUrlSet||(g.projectUrl=this.projectUrl)}delete(e,t){const n=`${e}Url`;return this[`${e}Id`]?(g.cache={},this.makeRequest(e,this[n],"delete",null,t)):Promise.reject("Nothing to delete")}index(e,t,n){const i=`${e}Url`;return(t=t||"")&&(0,s.isObject)(t)&&(t=`?${g.serialize(t.params)}`),this.makeRequest(e,this[i]+t,"get",null,n)}save(e,t,n){const i=`${e}Id`,r=`${e}Url`,a=this[i]||t._id?"put":"post";let s=this[i]?this[r]:this[`${e}sUrl`];return this[i]||!t._id||"put"!==a||s.includes(t._id)||(s+=`/${t._id}`),g.cache={},this.makeRequest(e,s+this.query,a,t,n)}load(e,t,n){const i=`${e}Id`,r=`${e}Url`;if(t&&(0,s.isObject)(t)&&(t=g.serialize(t.params)),t=t?this.query?`${this.query}&${t}`:`?${t}`:this.query,!this[i])return Promise.reject(`Missing ${i}`);let a=this[r]+t;return"form"!==e||isNaN(parseInt(this.vId))||(a+=-1===a.indexOf("?")?"?":"&",a+=`formRevision=${this.vId}`),this.makeRequest(e,a,"get",null,n)}makeRequest(e,t,n,i,r){return g.makeRequest(this,e,t,n,i,r)}loadProject(e,t){return this.load("project",e,t)}saveProject(e,t){return this.save("project",e,t)}deleteProject(e){return this.delete("project",e)}static loadProjects(e,t){return e=e||"",(0,s.isObject)(e)&&(e=`?${g.serialize(e.params)}`),g.makeStaticRequest(`${g.baseUrl}/project${e}`,"GET",null,t)}loadRole(e){return this.load("role",null,e)}saveRole(e,t){return this.save("role",e,t)}deleteRole(e){return this.delete("role",e)}loadRoles(e){return this.index("roles",null,e)}loadForm(e,t){return this.load("form",e,t).then((n=>!n.revisions||isNaN(parseInt(this.vId))||"current"===n.revisions&&this.submissionId||n._vid==this.vId||n.revisionId===this.vId?n:(e&&(0,s.isObject)(e)&&(e=g.serialize(e.params)),e=e?this.query?`${this.query}&${e}`:`?${e}`:this.query,this.makeRequest("form",this.vUrl+e,"get",null,t).then((e=>(n._vid=e._vid,n.components=e.components,n.settings=e.settings,n.revisionId=e.revisionId,Object.assign({},n)))).catch((()=>Object.assign({},n))))))}saveForm(e,t){return this.save("form",e,t)}deleteForm(e){return this.delete("form",e)}loadForms(e,t){return this.index("forms",e,t)}loadSubmission(e,t){return this.load("submission",e,t).then((e=>(this.vId=e._frid||e._fvid,this.vUrl=`${this.formUrl}/v/${this.vId}`,e)))}saveSubmission(e,t){return isNaN(parseInt(this.vId))||e._fvid||(e._fvid=this.vId),this.save("submission",e,t)}deleteSubmission(e){return this.delete("submission",e)}loadSubmissions(e,t){return this.index("submissions",e,t)}loadAction(e,t){return this.load("action",e,t)}saveAction(e,t){return this.save("action",e,t)}deleteAction(e){return this.delete("action",e)}loadActions(e,t){return this.index("actions",e,t)}availableActions(){return this.makeRequest("availableActions",`${this.formUrl}/actions`)}actionInfo(e){return this.makeRequest("actionInfo",`${this.formUrl}/actions/${e}`)}isObjectId(e){return new RegExp("^[0-9a-fA-F]{24}$").test(e)}getProjectId(){return this.projectId?this.isObjectId(this.projectId)?Promise.resolve(this.projectId):this.loadProject().then((e=>e._id)):Promise.resolve("")}getFormId(){return this.formId?this.isObjectId(this.formId)?Promise.resolve(this.formId):this.loadForm().then((e=>e._id)):Promise.resolve("")}currentUser(e){return g.currentUser(this,e)}accessInfo(){return g.accessInfo(this)}oauthLogoutURI(e,t){return g.oauthLogoutURI(e,Object.assign({formio:this},this.options,t))}getToken(e){return g.getToken(Object.assign({formio:this},this.options,e))}setToken(e,t){return g.setToken(e,Object.assign({formio:this},this.options,t))}getTempToken(e,t,n){if(!g.getToken(n))return Promise.reject("You must be authenticated to generate a temporary auth token.");const i=g.authUrl||this.projectUrl;return this.makeRequest("tempToken",`${i}/token`,"GET",null,{ignoreCache:!0,header:new h({"x-expire":e,"x-allow":t})})}getDownloadUrl(e){if(!this.submissionId)return Promise.resolve("");if(!e)return this.loadForm().then((e=>e?this.getDownloadUrl(e):""));let t=`/project/${e.project}`;t+=`/form/${e._id}`,t+=`/submission/${this.submissionId}`;const n=e.submissionRevisions&&e.settings.changeLog?"/download/changelog":"/download";t+=n;let i=this.base+t;return new Promise(((e,n)=>{this.getTempToken(3600,`GET:${t}`).then((t=>{i+=`?token=${t.key}`,e(i)}),(()=>{e(i)})).catch(n)}))}userPermissions(e,t,n){return Promise.all([void 0!==t?Promise.resolve(t):this.loadForm(),void 0!==e?Promise.resolve(e):this.currentUser(),void 0===n&&this.submissionId?this.loadSubmission():Promise.resolve(n),this.accessInfo()]).then((e=>{const t=e.shift(),n=e.shift()||{_id:!1,roles:[]},i=e.shift(),r=e.shift(),a={create:"create",read:"read",update:"edit",delete:"delete"},l={user:n,form:t,access:r,create:!1,read:!1,edit:!1,delete:!1};for(const e in r.roles)if(r.roles.hasOwnProperty(e)){const t=r.roles[e];if(t.default&&!1===n._id)n.roles.push(t._id);else if(t.admin&&-1!==n.roles.indexOf(t._id))return l.create=!0,l.read=!0,l.delete=!0,l.edit=!0,l}if(t&&t.submissionAccess)for(let e=0;e{if(e&&e.defaultPermission){const r=(0,s.get)(i.data,t);(Array.isArray(r)?r:[r]).forEach((t=>{t&&t._id&&n.roles.indexOf(t._id)>-1&&("read"===e.defaultPermission&&(l[a.read]=!0),"create"===e.defaultPermission&&(l[a.create]=!0,l[a.read]=!0),"write"===e.defaultPermission&&(l[a.create]=!0,l[a.read]=!0,l[a.update]=!0),"admin"===e.defaultPermission&&(l[a.create]=!0,l[a.read]=!0,l[a.update]=!0,l[a.delete]=!0))}))}})),l}))}canSubmit(){return this.userPermissions().then((e=>!e.create&&g.getUser()?this.userPermissions(null).then((e=>!!e.create&&(g.setUser(null),!0))):e.create))}getUrlParts(e){return g.getUrlParts(e,this)}static getUrlParts(e,t){const n=t&&t.base?t.base:g.baseUrl;let i="^(http[s]?:\\/\\/)";return n&&0===e.indexOf(n)?i+=`(${n.replace(/^http[s]?:\/\//,"")})`:i+="([^/]+)",i+="($|\\/.*)",e.match(new RegExp(i))}static serialize(e,t){const n=[];for(const r in e)Object.prototype.hasOwnProperty.call(e,r)&&n.push(`${encodeURIComponent(r)}=${encodeURIComponent((i=e[r],t?t(i):i))}`);var i;return n.join("&")}static getRequestArgs(e,t,n,i,r,a){i=(i||"GET").toUpperCase(),a&&(0,s.isObject)(a)||(a={});const o={url:n,method:i,data:r||null,opts:a};return t&&(o.type=t),e&&(o.formio=e),o}static makeStaticRequest(e,t,n,i){const r=g.getRequestArgs(null,"",e,t,n,i),a=p.default.pluginWait("preRequest",r).then((()=>p.default.pluginGet("staticRequest",r).then((e=>(0,s.isNil)(e)?g.request(r.url,r.method,r.data,r.opts.header,r.opts):e))));return p.default.pluginAlter("wrapStaticRequestPromise",a,r)}static makeRequest(e,t,n,i,r,a){if(!e)return g.makeStaticRequest(n,i,r,a);const o=g.getRequestArgs(e,t,n,i,r,a);o.opts=o.opts||{},o.opts.formio=e,o.opts.headers||(o.opts.headers={}),o.opts.headers=(0,s.defaults)(o.opts.headers,{Accept:"application/json","Content-type":"application/json"});const l=p.default.pluginWait("preRequest",o).then((()=>p.default.pluginGet("request",o).then((e=>(0,s.isNil)(e)?g.request(o.url,o.method,o.data,o.opts.header,o.opts):e))));return p.default.pluginAlter("wrapRequestPromise",l,o)}static request(e,t,n,i,r){if(!e)return Promise.reject("No url provided");t=(t||"GET").toUpperCase(),(0,s.isBoolean)(r)&&(r={ignoreCache:r}),r&&(0,s.isObject)(r)||(r={});const a=btoa(encodeURI(e));if(!r.ignoreCache&&"GET"===t&&g.cache.hasOwnProperty(a))return Promise.resolve(g.cloneResponse(g.cache[a]));"/"===e[0]&&(e=g.baseUrl+e);const o=i||new h(r.headers||{Accept:"application/json","Content-type":"application/json"}),l=g.getToken(r);l&&!r.noToken&&o.set("x-jwt-token",l);const u={};o.forEach((function(e,t){u[t]=e}));let d={method:t,headers:u,mode:"cors"};n&&(d.body=JSON.stringify(n)),d=p.default.pluginAlter("requestOptions",d,e),(d.namespace||g.namespace)&&(r.namespace=d.namespace||g.namespace);const c=d.headers["x-jwt-token"],f=p.default.pluginAlter("wrapFetchRequestPromise",g.fetch(e,d),{url:e,method:t,data:n,opts:r}).then((i=>{if(!(i=p.default.pluginAlter("requestResponse",i,g,n)).ok){if(440===i.status)g.setToken(null,r),g.events.emit("formio.sessionExpired",i.body||i);else if(401===i.status)g.events.emit("formio.unauthorized",i.body||i);else if(416===i.status)g.events.emit("formio.rangeIsNotSatisfiable",i.body||i);else if(504===i.status)return Promise.reject(new Error("Network request failed"));return(i.headers.get("content-type").includes("application/json")?i.json():i.text()).then((e=>Promise.reject(e)))}const a=i.headers.get("x-jwt-token");let o=!1;return"GET"!==t||c||!a||r.external||e.includes("token=")||e.includes("x-jwt-token=")||(console.warn("Token was introduced in request."),o=!0),i.status>=200&&i.status<300&&a&&""!==a&&!o&&g.setToken(a,Object.assign(Object.assign({},r),{fromCurrent:r.fromCurrent||!!c})),204===i.status?{}:(i.headers.get("content-type").includes("application/json")?i.json():i.text()).then((e=>{let t=i.headers.get("content-range");if(t&&(0,s.isObject)(e)){if(t=t.split("/"),"*"!==t[0]){const n=t[0].split("-");e.skip=Number(n[0]),e.limit=n[1]-n[0]+1}e.serverCount="*"===t[1]?t[1]:Number(t[1])}if(!r.getHeaders)return e;const n={};return i.headers.forEach(((e,t)=>{n[t]=e})),{result:e,headers:n}}))})).then((e=>r.getHeaders?e:("GET"===t&&(g.cache[a]=e),g.cloneResponse(e)))).catch((n=>("Bad Token"===n&&!1!==r.noToken&&(g.setToken(null,r),g.events.emit("formio.badToken",n)),n.message&&((n=new Error(`Could not connect to API server (${n.message}): ${e}`)).networkError=!0),"GET"===t&&delete g.cache[a],Promise.reject(n))));return f}static get token(){return g.tokens.formioToken||""}static set token(e){g.tokens.formioToken=e||""}static useSessionToken(e){if("undefined"==typeof localStorage)return;const t=e;"object"==typeof e&&(e=e.namespace);const n=`${t||g.namespace||"formio"}Token`,i=localStorage.getItem(n);i&&(localStorage.removeItem(n),sessionStorage.setItem(n,i));const r=`${t||g.namespace||"formio"}User`,a=localStorage.getItem(r);a&&(localStorage.removeItem(r),sessionStorage.setItem(r,a)),localStorage.setItem("useSessionToken","true")}static setToken(e="",t={}){e=e||"";const n=`${(t="string"==typeof t?{namespace:t}:t||{}).namespace||g.namespace||"formio"}Token`;g.tokens||(g.tokens={});const i=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){t.fromUser||(t.fromToken=!0,g.setUser(null,t));try{i.removeItem(n)}catch(e){d.default.erase(n,{path:"/"})}return g.tokens[n]=e,Promise.resolve(null)}if(g.tokens[n]!==e){g.tokens[n]=e;try{i.setItem(n,e)}catch(t){d.default.set(n,e,{path:"/"})}}return g.currentUser(t.formio,t)}static getToken(e){const t=`${(e="string"==typeof e?{namespace:e}:e||{}).namespace||g.namespace||"formio"}Token`,n=e.decode?`${t}Decoded`:t;if(g.tokens||(g.tokens={}),g.tokens[n])return g.tokens[n];try{const i=localStorage.getItem("useSessionToken")?sessionStorage.getItem(t):localStorage.getItem(t);return g.tokens[t]=i||"",e.decode?(g.tokens[n]=g.tokens[t]?(0,l.jwtDecode)(g.tokens[t]):{},g.tokens[n]):g.tokens[t]}catch(e){return g.tokens[t]=d.default.get(t),""}}static setUser(e,t={}){const n=`${t.namespace||g.namespace||"formio"}User`,i=localStorage.getItem("useSessionToken")?sessionStorage:localStorage;if(!e){t.fromToken||(t.fromUser=!0,g.setToken(null,t)),g.events.emit("formio.user",null);try{return i.removeItem(n)}catch(e){return d.default.erase(n,{path:"/"})}}try{i.setItem(n,JSON.stringify(e))}catch(t){d.default.set(n,JSON.stringify(e),{path:"/"})}g.events.emit("formio.user",e)}static getUser(e){const t=`${(e=e||{}).namespace||g.namespace||"formio"}User`;try{return JSON.parse((localStorage.getItem("useSessionToken")?sessionStorage:localStorage).getItem(t)||"")}catch(e){return JSON.parse(d.default.get(t))}}static setBaseUrl(e){g.baseUrl=e,g.projectUrlSet||(g.projectUrl=e)}static getBaseUrl(){return g.baseUrl}static setApiUrl(e){return g.setBaseUrl(e)}static getApiUrl(){return g.getBaseUrl()}static setAppUrl(e){console.warn("Formio.setAppUrl() is deprecated. Use Formio.setProjectUrl instead."),g.projectUrl=e,g.projectUrlSet=!0}static setProjectUrl(e){g.projectUrl=e,g.projectUrlSet=!0}static setAuthUrl(e){g.authUrl=e}static getAppUrl(){return console.warn("Formio.getAppUrl() is deprecated. Use Formio.getProjectUrl instead."),g.projectUrl}static getProjectUrl(){return g.projectUrl}static clearCache(){g.cache={}}static accessInfo(e){const t=e?e.projectUrl:g.projectUrl;return g.makeRequest(e,"accessInfo",`${t}/access`)}static projectRoles(e){const t=e?e.projectUrl:g.projectUrl;return g.makeRequest(e,"projectRoles",`${t}/role`)}static currentUser(e,t={}){let n=g.authUrl;if(n||(n=e?e.projectUrl:g.projectUrl||g.baseUrl),n+="/current",!t.ignoreCache||t.fromCurrent){const e=g.getUser(t);if(e)return p.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(e),{url:n,method:"GET",options:t})}const i=g.getToken(t);return t&&t.external||i?(t.fromCurrent=!0,g.makeRequest(e,"currentUser",n,"GET",null,t).then((e=>(g.setUser(e,t),e)))):p.default.pluginAlter("wrapStaticRequestPromise",Promise.resolve(null),{url:n,method:"GET",options:t})}static logout(e,t={}){t.formio=e;const n=g.authUrl?g.authUrl:e?e.projectUrl:g.baseUrl,i=()=>{g.setToken(null,t),g.setUser(null,t),g.clearCache(),localStorage.removeItem("useSessionToken")};return g.makeRequest(e,"logout",`${n}/logout`).then((function(e){return i(),e.shouldRedirect&&e.url&&(window.location.href=e.url),e})).catch((function(e){throw i(),e}))}static pageQuery(){const e={paths:[]},t=location.hash.substr(1).replace(/\?/g,"&").split("&");let n=[];return location.search.substr(1).split("&").forEach((function(t){n=t.split("="),n.length>1&&(e[n[0]]=n[1]&&decodeURIComponent(n[1]))})),t.forEach((function(t){n=t.split("="),n.length>1?e[n[0]]=n[1]&&decodeURIComponent(n[1]):0===t.indexOf("/")&&(e.paths=t.substr(1).split("/"))})),e}static oAuthCurrentUser(e,t){return g.currentUser(e,{external:!0,headers:{Authorization:`Bearer ${t}`}})}static oauthLogoutURI(e,t){const n=`${(t="string"==typeof t?{namespace:t}:t||{}).namespace||g.namespace||"formio"}LogoutAuthUrl`;return localStorage.setItem(n,e),g.tokens[n]}static samlInit(e={}){const t=g.pageQuery();if(t.saml){g.setUser(null);const e=g.setToken(t.saml);let n=window.location.toString();return n=n.substring(0,n.indexOf("?")),window.location.hash&&(n+=window.location.hash),window.history.replaceState({},document.title,n),e}e.relay||(e.relay=window.location.href);const n=g.authUrl||g.projectUrl;return window.location.href=`${n}/saml/sso?relay=${encodeURI(e.relay)}`,!1}static oktaInit(e={}){if("undefined"!=typeof OktaAuth&&(e.OktaAuth=OktaAuth),void 0===e.OktaAuth){const e="Cannot find OktaAuth. Please include the Okta JavaScript SDK within your application. See https://developer.okta.com/code/javascript/okta_auth_sdk for an example.";return console.warn(e),Promise.reject(e)}return new Promise(((t,n)=>{const i=e.OktaAuth;delete e.OktaAuth;const r=new i(e);r.tokenManager.get("accessToken").then((i=>{i?t(g.oAuthCurrentUser(e.formio,i.accessToken)):location.hash?r.token.parseFromUrl().then((n=>{r.tokenManager.add("accessToken",n),t(g.oAuthCurrentUser(e.formio,n.accessToken))})).catch((e=>{console.warn(e),n(e)})):(r.token.getWithRedirect({responseType:"token",scopes:e.scopes}),t(!1))})).catch((e=>{n(e)}))}))}static ssoInit(e,t={}){switch(e){case"saml":return g.samlInit(t);case"okta":return g.oktaInit(t);default:return console.warn("Unknown SSO type"),Promise.reject("Unknown SSO type")}}static requireLibrary(e,t,n,i=!1,r,a){const o={name:e,src:n,formio:g,onload:r,rootElement:a};let l=!1;if(!g.libraries.hasOwnProperty(e)){g.libraries[e]={},g.libraries[e].ready=new Promise(((t,n)=>{g.libraries[e].resolve=t,g.libraries[e].reject=n}));const n=`${e}Callback`;i||window[n]||(window[n]=()=>g.libraries[e].resolve());const r=(0,s.get)(window,t);if(r)g.libraries[e].resolve(r);else if((0,f.attachResourceToDom)(o),l=!0,i){const n=setInterval((()=>{const i=(0,s.get)(window,t);i&&(clearInterval(n),g.libraries[e].resolve(i))}),200)}}const u=g.libraries[e];return a&&!l&&(0,f.attachResourceToDom)(o),r&&u.loaded?r(u.ready):u.ready}static libraryReady(e){return g.libraries.hasOwnProperty(e)&&g.libraries[e].ready?g.libraries[e].ready:Promise.reject(`${e} library was not required.`)}static cloneResponse(e){const t=(0,a.fastCloneDeep)(e);return Array.isArray(e)&&(t.skip=e.skip,t.limit=e.limit,t.serverCount=e.serverCount),t}static setPathType(e){"string"==typeof e&&(g.pathType=e)}static getPathType(){return g.pathType}}t.Formio=g,g.baseUrl="https://api.form.io",g.projectUrl="",g.authUrl="",g.projectUrlSet=!1,g.cache={},g.namespace="",g.events=new u.default,g.libraries={},g.fetch=c,g.Headers=h,g.tokens={},g.version="---VERSION---",g.options={},g.plugins=p.default.plugins,g.deregisterPlugin=p.default.deregisterPlugin,g.registerPlugin=p.default.registerPlugin,g.getPlugin=p.default.getPlugin,g.pluginWait=p.default.pluginWait,g.pluginGet=p.default.pluginGet,g.pluginAlter=p.default.pluginAlter,p.default.Formio=g},31885:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.selected&&(n+=null==(t=e.t(e.option.label,{_userInput:!0}))?"":t),n+"\n"}},31956:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
\n
\n \n ',e.header&&(n+='\n \n '+(null==(t=e.header)?"":t)+"\n \n "),n+='\n \n ',e.rows.forEach((function(i,r){n+='\n \n '+(null==(t=i)?"":t)+"\n ",e.openRows[r]&&!e.readOnly&&(n+='\n \n "),n+="\n ",e.errors[r]&&(n+='\n \n "),n+="\n \n "})),n+="\n \n ",e.footer&&(n+="\n \n \n "+(null==(t=e.footer)?"":t)+"\n \n \n "),n+="\n
\n
\n \n ",e.component.removeRow&&(n+='\n \n "),n+="\n
\n
\n
\n
\n '+(null==(t=e.errors[r])?"":t)+"\n
\n
\n
\n
\n
\n"}},31959:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=s(n(98625)),l=n(29857),u=a(n(34600)),d=n(35985),c=s(n(2543)),h=s(n(95093)),p=s(n(78443));t.default=class{constructor(e){var t;this.options=Object.assign({language:"en",highlightErrors:!0,componentErrorClass:"formio-error-wrapper",componentWarningClass:"formio-warning-wrapper",row:"",namespace:"formio"},e||{}),this.id=u.getRandomComponentId(),this.eventHandlers=[],this.options.i18n=this.options.i18n||{},(null===(t=this.options)||void 0===t?void 0:t.language)&&(this.options.i18n.language=this.options.language),this.options.i18next=this.i18next=this.options.i18next||d.I18n.init(this.options.i18n),this.events=e&&e.events?e.events:new o.default,this.defaultMask=null,this.helplinks="false"!==this.options.helplinks&&(this.options.helplinks||"https://help.form.io")}on(e,t,n,i=!1){if(!this.events)return;const r=`${this.options.namespace}.${e}`;return t.id=this.id,t.key=this.key,t.internal=n,this.events[i?"once":"on"](r,t)}once(e,t,n){return this.on(e,t,n,!0)}onAny(e){if(this.events)return this.events.onAny(e)}offAny(e){if(this.events)return this.events.offAny(e)}off(e,t){if(!this.events)return;const n=`${this.options.namespace}.${e}`;this.events.listeners(n).forEach((e=>{e&&e.id===this.id&&(t&&t!==e||this.events.off(n,e))}))}emit(e,...t){this.events&&this.events.emit(`${this.options.namespace}.${e}`,...t)}hasEventHandler(e){if(!this.events)return!1;const t=`${this.options.namespace}.${e}`;return this.events.listeners(t).some((e=>!!e&&(e.id===this.id||e.key===this.key)))}addEventListener(e,t,n,i,r){if(e)return i||this.eventHandlers.push({id:this.id,obj:e,type:t,func:n}),"addEventListener"in e?e.addEventListener(t,n,!!r):"attachEvent"in e&&e.attachEvent(`on${t}`,n),this}removeEventListener(e,t,n=null){const i=[];if(e)return this.eventHandlers.forEach(((r,a)=>{r.id!==this.id||!e.removeEventListener||r.type!==t||n&&r.func!==n||(e.removeEventListener(t,r.func),i.push(a))})),i.length&&c.default.pullAt(this.eventHandlers,i),this}removeEventListeners(){this.eventHandlers.forEach((e=>{this.id===e.id&&e.type&&e.obj&&e.obj.removeEventListener&&e.obj.removeEventListener(e.type,e.func)})),this.eventHandlers=[]}removeAllEvents(e){this.events&&c.default.each(this.events._events,((t,n)=>{c.default.each(t,(t=>{t&&this.id===t.id&&(e||t.internal)&&this.events.off(n,t)}))}))}teardown(){delete this.i18next,delete this.events}destroy(e=!1){this.removeEventListeners(),this.removeAllEvents(),e&&this.teardown()}appendTo(e,t){return null==t||t.appendChild(e),this}prependTo(e,t){if(t)if(t.firstChild)try{t.insertBefore(e,t.firstChild)}catch(n){console.warn(n),t.appendChild(e)}else t.appendChild(e);return this}removeChildFrom(e,t){if(t&&t.contains(e))try{t.removeChild(e)}catch(e){console.warn(e)}return this}ce(e,t,n=null){const i=document.createElement(e);return t&&this.attr(i,t),this.appendChild(i,n),i}appendChild(e,t){return Array.isArray(t)?t.forEach((t=>this.appendChild(e,t))):t instanceof HTMLElement||t instanceof Text?e.appendChild(t):t&&e.appendChild(this.text(t.toString())),this}maskPlaceholder(e){return e.map((e=>e instanceof RegExp?this.placeholderChar:e)).join("")}get placeholderChar(){var e;return(null===(e=this.component)||void 0===e?void 0:e.inputMaskPlaceholderChar)||"_"}setInputMask(e,t,n){if(e&&t){const i=u.getInputMask(t,this.placeholderChar);this.defaultMask=i;try{e.mask&&e.mask.destroy(),e.mask=(0,p.default)({inputElement:e,mask:i,placeholderChar:this.placeholderChar,shadowRoot:this.root?this.root.shadowRoot:null})}catch(e){console.warn(e)}i.numeric&&e.setAttribute("pattern","\\d*"),n&&e.setAttribute("placeholder",this.maskPlaceholder(i))}}t(e,...t){return this.i18next?this.i18next.t(e,...t):e}text(e){return document.createTextNode(this.t(e))}attr(e,t){e&&c.default.each(t,((t,n)=>{void 0!==t&&(0===n.indexOf("on")?this.addEventListener(e,n.substr(2).toLowerCase(),t):e.setAttribute(n,t))}))}hasClass(e,t){return!!e&&(t=` ${t} `,` ${e.className} `.replace(/[\n\t\r]/g," ").indexOf(t)>-1)}addClass(e,t){if(!(e&&e instanceof HTMLElement))return this;const n=e.getAttribute("class");return(null==n?void 0:n.includes(t))||e.setAttribute("class",`${n} ${t}`),this}removeClass(e,t){if(!(e&&t&&e instanceof HTMLElement))return this;let n=e.getAttribute("class");return n&&(n=n.replace(new RegExp(` ${t}`,"g"),""),e.setAttribute("class",n)),this}empty(e){if(e)for(;e.firstChild;)e.removeChild(e.firstChild)}evalContext(e){var t;return Object.assign({_:c.default,utils:u,util:u,user:l.Formio.getUser(),moment:h.default,instance:this,self:this,token:l.Formio.getToken({decode:!0}),options:this.options,config:this.root&&this.root.form&&this.root.form.config?this.root.form.config:(null===(t=this.options)||void 0===t?void 0:t.formConfig)?this.options.formConfig:{}},e,c.default.get(this.root,"options.evalContext",{}))}interpolate(e,t,n={}){if("function"==typeof e||!this.component.content&&!this.component.html||u.Evaluator.templateSettings.interpolate.test(e)||(e=u.translateHTMLTemplate(String(e),(e=>this.t(e)))),this.component.filter===e&&!this.options.building){const i=this.evalContext(t);return i.data=c.default.mapValues(i.data,(e=>c.default.isString(e)?encodeURIComponent(e):e)),u.interpolate(e,i,n)}return u.interpolate(e,this.evalContext(t),n)}evaluate(e,t,n,i,r={}){return u.evaluate(e,this.evalContext(t),n,i,r)}hook(){const e=arguments[0];if(this.options&&this.options.hooks&&this.options.hooks[e])return this.options.hooks[e].apply(this,Array.prototype.slice.call(arguments,1));{const e="function"==typeof arguments[arguments.length-1]?arguments[arguments.length-1]:null;return e?e(null,arguments[1]):arguments[1]}}}},32124:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[e+" सॅकंडांनी",e+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[e+" मिणटांनी",e+" मिणटां"],h:["एका वरान","एक वर"],hh:[e+" वरांनी",e+" वरां"],d:["एका दिसान","एक दीस"],dd:[e+" दिसांनी",e+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[e+" म्हयन्यानी",e+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[e+" वर्सांनी",e+" वर्सां"]};return i?r[n][0]:r[n][1]}e.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(e,t){return"D"===t?e+"वेर":e},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(e,t){return 12===e&&(e=0),"राती"===t?e<4?e:e+12:"सकाळीं"===t?e:"दनपारां"===t?e>12?e:e+12:"सांजे"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"राती":e<12?"सकाळीं":e<16?"दनपारां":e<20?"सांजे":"राती"}})}(n(95093))},32504:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(79602);t.default={form:i.default}},32804:(e,t,n)=>{var i=n(56110)(n(9325),"Promise");e.exports=i},32865:(e,t,n)=>{var i=n(19570),r=n(51811)(i);e.exports=r},32934:function(e,t,n){!function(e){"use strict";e.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(e){return"p"===e.charAt(0).toLowerCase()},meridiem:function(e,t,n){return e>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(95093))},33129:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},33200:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tabindex",ignore:!0}]},33392:(e,t,n)=>{"use strict";var i=n(79504),r=0,a=Math.random(),s=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++r+a,36)}},33478:function(e,t,n){!function(e){"use strict";e.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},33670:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=n(34600),s=i(n(96877)),o=i(n(42574));class l extends o.default{static schema(...e){return o.default.schema({disableAddingRemovingRows:!1},...e)}static savedValueTypes(){return[a.componentValueTypes.array]}componentContext(e){return this.iteratableRows[e.rowIndex].data}get iteratableRows(){throw new Error("Getter #iteratableRows() is not implemented")}get rowIndex(){return super.rowIndex}set rowIndex(e){this._rowIndex=e}init(){super.init(),this.prevHasAddButton=this.hasAddButton()}checkAddButtonChanged(){const e=this.hasAddButton();e!==this.prevHasAddButton&&(this.prevHasAddButton=e,this.redraw())}checkData(e,t,n){return e=e||this.rootValue,t=t||{},n=n||this.data,this.checkAddButtonChanged(),this.processRows("checkData",e,t,s.default.prototype.checkData.call(this,e,t,n))}processRows(e,t,n,i,r){return this.iteratableRows.reduce(((i,a,s)=>((null==n?void 0:n.rowIndex)&&(null==n?void 0:n.rowIndex)!==s||this.processRow(e,t,n,a.data,a.components,r))&&i),i)}validate(e,t={}){return e=e||this.data,this.validateComponents([this.component],e,t)}checkRow(...e){return console.log("Deprecation Warning: checkRow method has been replaced with processRow"),this.processRow.call(this,...e)}processRow(e,t,n,i,a,s){(null==n?void 0:n.isolateRow)&&(s=!0,n.noRefresh=!0);const o=r.default.reduce(a,((r,a)=>a[e](t,n,i,s)&&r),!0);return(null==n?void 0:n.noRefresh)&&delete n.noRefresh,o}hasAddButton(){const e=r.default.get(this.component,"validate.maxLength"),t=r.default.get(this.component,"conditionalAddButton");return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&!this.options.preview&&(!e||this.iteratableRows.length{e.component.key===i&&(l=e,s.length>0&&"getComponent"in e?u=e.getComponent(s,t,n):t&&t(e,r),o=null!==d?u:o.concat(u||l))}),d),o&&0!==o.length||!l||(o=null!==d?l:[l]),o):o}everyComponent(e,t,n={}){if(r.default.isObject(t)&&(n=t,t=null),null==n?void 0:n.email)return;const i=this.getComponents(t);r.default.each(i,((t,r)=>!1!==e(t,i,r)&&("function"!=typeof t.everyComponent||!1!==t.everyComponent(e,n))&&void 0))}getValueAsString(e,t){var n;if(null==t?void 0:t.email){let e='\n \n \n \n ';return null===(n=this.component.components)||void 0===n||n.forEach((t=>{const n=t.label||t.key;e+=``})),e+="\n \n \n \n ",this.iteratableRows.forEach((({components:n})=>{e+="",r.default.each(n,(n=>{e+='"})),e+=""})),e+="\n \n
${n}
',n.isInputComponent&&n.visible&&!n.skipInEmail&&(e+=n.getView(n.dataValue,t)),e+="
\n ",e}return e&&e.length?super.getValueAsString(e,t):""}getComponents(e){return null!=e?this.iteratableRows[e]?this.iteratableRows[e].components:[]:super.getComponents()}removeSubmissionMetadataRow(e){const t=r.default.get(this.root,`submission.metadata.selectData.${this.path}`,null);r.default.isArray(t)&&t.splice(e,1)}}t.default=l},33706:(e,t,n)=>{"use strict";var i=n(79504),r=n(94901),a=n(77629),s=i(Function.toString);r(a.inspectSource)||(a.inspectSource=function(e){return s(e)}),e.exports=a.inspectSource},33717:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},33844:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=n(10196),s={sortAndFilterComponents:e=>r.default.filter(r.default.sortBy(e,"weight"),(e=>!e.ignore)),unifyComponents:(e,t)=>e.key&&t.key?!e.skipMerge&&!t.skipMerge&&e.key===t.key&&(r.default.each(e,((n,i)=>{!e.overrideEditForm&&t.hasOwnProperty(i)||(t[i]=n)})),r.default.each(t,((n,i)=>{!t.overrideEditForm&&e.hasOwnProperty(i)||(e[i]=n)})),e.components&&(t.components=s.sortAndFilterComponents(r.default.unionWith(e.components,t.components,s.unifyComponents))),!0):r.default.isEqual(e,t),logicVariablesTable:e=>({type:"htmlelement",tag:"div",content:'

The following variables are available in all scripts.

'+(e=e||"")+'
formThe complete form JSON object
submissionThe complete submission object.
dataThe complete submission data object.
rowContextual "row" data, used within DataGrid, EditGrid, and Container components
componentThe current component JSON
instanceThe current component instance.
valueThe current value of the component.
momentThe moment.js library for date manipulation.
_An instance of Lodash.
utilsAn instance of the FormioUtils object.
utilAn alias for "utils".

'}),javaScriptValue(e,t,n,i,r,s,o="",l){const u=[this.logicVariablesTable(o),{type:"panel",title:"JavaScript",collapsible:!0,collapsed:!1,style:{"margin-bottom":"10px"},key:`${t}-js`,customConditional:()=>!a.Evaluator.noeval||a.Evaluator.protectedEval,components:[{type:"textarea",key:t,rows:5,editor:"ace",hideLabel:!0,as:"javascript",input:!0},{type:"htmlelement",tag:"div",content:`

Enter custom javascript code.

${r}`}]},{type:"panel",title:"JSONLogic",collapsible:!0,collapsed:!0,key:`${t}-json`,components:[{type:"htmlelement",tag:"div",content:'

Execute custom logic using JSONLogic.

Full Lodash support is provided using an "_" before each operation, such as {"_sum": {var: "data.a"}}

'+s},{type:"textarea",key:n,rows:5,editor:"ace",hideLabel:!0,as:"json",input:!0}]}];return l&&u.splice(2,1),{type:"panel",title:e,theme:"default",collapsible:!0,collapsed:!0,key:`${t}Panel`,weight:i,components:u}}};t.default=s},33994:(e,t,n)=>{"use strict";var i=n(57657).IteratorPrototype,r=n(2360),a=n(6980),s=n(10687),o=n(26269),l=function(){return this};e.exports=function(e,t,n,u){var d=t+" Iterator";return e.prototype=r(i,{next:a(+!u,n)}),s(e,d,!1,!0),o[d]=l,e}},34025:(e,t,n)=>{"use strict";var i=n(31803);e.exports=function(e,t){t=t||{};var n=i.boolean(t.allowUpdate,!0);return function(t){if(t=t||window.event,e.target=t.target||t.srcElement||t.originalTarget,e.element=this,e.type=t.type,n(t)){if(t.targetTouches)e.x=t.targetTouches[0].clientX,e.y=t.targetTouches[0].clientY,e.pageX=t.targetTouches[0].pageX,e.pageY=t.targetTouches[0].pageY,e.screenX=t.targetTouches[0].screenX,e.screenY=t.targetTouches[0].screenY;else{if(null===t.pageX&&null!==t.clientX){var i=t.target&&t.target.ownerDocument||document,r=i.documentElement,a=i.body;e.pageX=t.clientX+(r&&r.scrollLeft||a&&a.scrollLeft||0)-(r&&r.clientLeft||a&&a.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||a&&a.scrollTop||0)-(r&&r.clientTop||a&&a.clientTop||0)}else e.pageX=t.pageX,e.pageY=t.pageY;e.x=t.clientX,e.y=t.clientY,e.screenX=t.screenX,e.screenY=t.screenY}e.clientX=e.x,e.clientY=e.y}}}},34361:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clientRules=void 0;const i=n(79565),r=n(15003),a=n(97301),s=n(85311),o=n(99561),l=n(41893),u=n(79635),d=n(61615),c=n(77274),h=n(36874),p=n(43762),f=n(58359),m=n(78289),g=n(82861),v=n(82464),y=n(74724),b=n(98492),_=n(39477),w=n(41478),M=n(75564),k=n(27072),S=n(54676),x=n(36348),L=n(84625),C=n(55400);t.clientRules=[i.validateDateInfo,r.validateDayInfo,a.validateEmailInfo,s.validateJsonInfo,o.validateMaskInfo,l.validateMaximumDayInfo,u.validateMaximumLengthInfo,d.validateMaximumSelectedCountInfo,c.validateMaximumValueInfo,h.validateMaximumWordsInfo,p.validateMaximumYearInfo,f.validateMinimumDayInfo,m.validateMinimumLengthInfo,g.validateMinimumSelectedCountInfo,v.validateMinimumValueInfo,y.validateMinimumWordsInfo,b.validateMinimumYearInfo,_.validateMultipleInfo,w.validateRegexPatternInfo,M.validateRequiredInfo,k.validateRequiredDayInfo,S.validateTimeInfo,x.validateUrlInfo,L.validateValuePropertyInfo,C.validateNumberInfo]},34469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},34542:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},34600:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.firstNonNil=t.unfold=t.bootstrapVersion=t.uniqueKey=t.iterateKey=t.delay=t.fieldData=t.getCurrencyAffixes=t.getNumberDecimalLimit=t.getNumberSeparators=t.matchInputMask=t.unmaskValue=t.getInputMask=t.convertFormatToMask=t.convertFormatToMoment=t.convertFormatToFlatpickr=t.getLocaleDateFormatInfo=t.formatOffset=t.formatDate=t.momentDate=t.loadZones=t.shouldLoadZones=t.zonesLoaded=t.offsetDate=t.currentTimezone=t.isValidDate=t.getDateSetting=t.guid=t.uniqueName=t.convertStringToHTMLElement=t.unescapeHTML=t.removeHTML=t.setActionProperty=t.checkTrigger=t.checkCondition=t.checkJsonConditional=t.checkCustomConditional=t.getComponentActualValue=t.checkSimpleConditional=t.checkCalculated=t.isMongoId=t.boolValue=t.getScriptPlugin=t.getElementRect=t.getPropertyValue=t.getRandomComponentId=t.evaluate=t.moment=t.ConditionOperators=t.jsonLogic=void 0,t.interpolateErrors=t.getComponentSavedTypes=t.componentValueTypes=t._=t.getFocusableElements=t.isInsideScopingComponent=t.isPromise=t.getDataParentComponent=t.getComponentPath=t.getComponentPathWithoutIndicies=t.getBrowserInfo=t.getIEBrowserVersion=t.round=t.getStringFromComponentPath=t.isChildOf=t.getArrayFromComponentPath=t.isInputComponent=t.interpolate=t.Evaluator=t.fastCloneDeep=t.sanitize=t.translateHTMLTemplate=t.getContextButtons=t.getContextComponents=t.observeOverload=t.withSwitch=void 0;const s=a(n(2543));t._=s.default;const o=a(n(18678));t.jsonLogic=o.default;const l=a(n(56639));t.moment=l.default;const u=a(n(54472)),d=n(85231),c=a(n(25454)),h=n(30214),p=n(10196);Object.defineProperty(t,"Evaluator",{enumerable:!0,get:function(){return p.Evaluator}});const f=a(n(93432));t.ConditionOperators=f.default;const m=p.Evaluator.interpolate;function g(e,t,n,i,r={}){return p.Evaluator.evaluate(e,t,n,i,void 0,r)}function v(e,t){let n=e.getPropertyValue(t);return n=n?n.replace(/[^0-9.]/g,""):"0",parseFloat(n)}function y(e,t,n,i,r){if(t.when){const e=b(t.when,i,n),r=String(t.eq),a=String(t.show);return s.default.isObject(e)&&s.default.has(e,t.eq)?String(e[t.eq])===a:Array.isArray(e)&&e.map(String).includes(r)?"true"===a:String(e)===r==("true"===a)}{const{conditions:a=[],conjunction:o="all",show:l=!0}=t;if(!a.length)return!0;const u=s.default.map(a,(t=>{var a,o;const{value:l,operator:u,component:d}=t;if(!d)return!0;const c=d.split("."),h="datagrid"===(null===(a=null==r?void 0:r.parent)||void 0===a?void 0:a.type)||"editgrid"===(null===(o=null==r?void 0:r.parent)||void 0===o?void 0:o.type)?[]:function(e,t){let n=0;const i=[],r=(t,a="",o=0)=>{a=a.replace(/^\.+|\.+$/g,"");const l=o,u=s.default.get(t,a);if(Array.isArray(u)&&u.filter(Boolean).length>0){if(u.some((e=>"object"!=typeof e)))return;u.find((t=>Array.isArray(t[e[l]])))?u.forEach(((n,i)=>{const s=`${a}[${i}].${e[l]}`;r(t,s,l+1)})):u.forEach(((t,n)=>{if(!s.default.isNil(t[e[l]])){const t=`${a}[${n}].${e[l]}`;i.push(t)}}))}else{if(!e[n])return;n+=1,r(t,`${a}.${e[n-1]}`,n)}};return r(t),i}(c,i);if(h.length>0)return h.map((t=>{const a=b(t,i,n),s=f.default[u];return!s||(new s).getResult({value:a,comparedValue:l,instance:r,component:e,conditionComponentPath:d})}));{const t=b(d,i,n),a=f.default[u];return!a||(new a).getResult({value:t,comparedValue:l,instance:r,component:e,conditionComponentPath:d})}}));let d=!1;return d="any"===o?s.default.some(u.flat(),(e=>!!e)):s.default.every(u.flat(),(e=>!!e)),l?d:!d}}function b(e,t,n){let i=null;return n&&(i=(0,h.getValue)({data:n},e)),t&&s.default.isNil(i)&&(i=(0,h.getValue)({data:t},e)),(s.default.isNil(i)||s.default.isObject(i)&&s.default.isEmpty(i))&&(i=""),i}function _(e,t,n,i,r,a,s,o){"string"==typeof t&&(t=`var ${a} = true; ${t}; return ${a};`);const l=o&&o.evaluate?o.evaluate(t,{row:n,data:i,form:r}):g(t,{row:n,data:i,form:r});return null===l?s:l}function w(e,t,n,i,r,a){try{return o.default.apply(t,{data:i,row:n,form:r,_:s.default})}catch(t){return console.warn(`An error occurred in jsonLogic advanced condition for ${e.key}`,t),a}}function M(e,t,n,i){var r;const a=i||e.conditional;n||function(e){e.path=R(e);const t=F(e);t&&"object"==typeof t&&(t.path=R(t))}(n=s.default.cloneDeep(e));const o=F(n),l=o?R(o):null,u=a.when||!a.conditions?null===(r=a.when)||void 0===r?void 0:r.startsWith(l):s.default.some(a.conditions,(e=>e.component.startsWith(l)));if(o&&u){const e={};s.default.set(e,l,t),t=e}return t}function k(e){if("undefined"==typeof window||!("DOMParser"in window))return e;const t=document.createElement("textarea");return t.innerHTML=e,t.value}function S(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function x(){return l.default.currentTimezone||(l.default.currentTimezone=u.default.determine().name()),l.default.currentTimezone}function L(e,t){if("UTC"===t)return{date:new Date(e.getTime()+6e4*e.getTimezoneOffset()),abbr:"UTC"};const n=(0,l.default)(e).tz(t);return{date:new Date(e.getTime()+6e4*(n.utcOffset()+e.getTimezoneOffset())),abbr:n.format("z")}}function C(e){return e!==x()&&"UTC"!==e}function T(e,t){return t&&!C(t)?new Promise(s.default.noop):l.default.zonesPromise?l.default.zonesPromise:l.default.zonesPromise=fetch(e).then((e=>e.json().then((e=>{if(l.default.tz.load(e),l.default.zonesLoaded=!0,document&&document.createEvent&&document.body&&document.body.dispatchEvent){var t=document.createEvent("Event");t.initEvent("zonesLoaded",!0,!0),document.body.dispatchEvent(t)}}))))}function E(e){return e.replace(/y/g,"Y").replace(/d/g,"D").replace(/E/g,"d").replace(/a/g,"A").replace(/U/g,"X")}function A(e){return e.match(/(\d+)$/)?e.replace(/(\d+)$/,(function(e){return Number(e)+1})):`${e}1`}function D(e){return"function"==typeof e?e():e}t.interpolate=m,r(n(30214),t),d.lodashOperators.forEach((e=>o.default.add_operation(`_${e}`,s.default[e]))),o.default.add_operation("getDate",(e=>(0,l.default)(e).toISOString())),o.default.add_operation("relativeMinDate",(e=>(0,l.default)().subtract(e,"days").toISOString())),o.default.add_operation("relativeMaxDate",(e=>(0,l.default)().add(e,"days").toISOString())),t.evaluate=g,t.getRandomComponentId=function(){return`e${Math.random().toString(36).substring(7)}`},t.getPropertyValue=v,t.getElementRect=function(e){const t=window.getComputedStyle(e,null);return{x:v(t,"left"),y:v(t,"top"),width:v(t,"width"),height:v(t,"height")}},t.getScriptPlugin=function(e){const t=window[e];if(!("object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&1===t.nodeType&&"string"==typeof t.nodeName))return t},t.boolValue=function(e){return s.default.isBoolean(e)?e:s.default.isString(e)?"true"===e.toLowerCase():!!e},t.isMongoId=function(e){return!!e.toString().match(/^[0-9a-fA-F]{24}$/)},t.checkCalculated=function(e,t,n){e.calculateValue&&s.default.set(n,e.key,g(e.calculateValue,{value:void 0,data:t?t.data:n,row:n,util:this,component:e},"value"))},t.checkSimpleConditional=y,t.getComponentActualValue=b,t.checkCustomConditional=_,t.checkJsonConditional=w,t.checkCondition=function(e,t,n,i,r){const{customConditional:a,conditional:o}=e;return a?_(0,a,t,n,i,"show",!0,r):o&&(o.when||s.default.some(o.conditions||[],(e=>e.component&&e.operator)))?y(e,o,t=M(e,t,r),n,r):!o||!o.json||w(e,o.json,t,n,i,!0)},t.checkTrigger=function(e,t,n,i,r,a){if(!t||!t[t.type])return!1;switch(t.type){case"simple":return n=M(e,n,a,t.simple),y(e,t.simple,n,i,a);case"javascript":return _(0,t.javascript,n,i,r,"result",!1,a);case"json":return w(e,t.json,n,i,r,!1)}return!1},t.setActionProperty=function(e,t,n,i,r,a){const o=t.property.value;switch(t.property.type){case"boolean":{const n=s.default.get(e,o,!1).toString(),i=t.state.toString();n!==i&&s.default.set(e,o,"true"===i);break}case"string":{const l={data:r,row:i,component:e,result:n},u=t.property.component?t[t.property.component]:t.text,d=s.default.get(e,o,""),c=a&&a.interpolate?a.interpolate(u,l):p.Evaluator.interpolate(u,l);c!==d&&s.default.set(e,o,c);break}}return e},t.removeHTML=function(e){return((new window.DOMParser).parseFromString(e,"text/html").body.textContent||"").trim()},t.unescapeHTML=k,t.convertStringToHTMLElement=function(e,t){return(new window.DOMParser).parseFromString(e,"text/html").body.querySelector(t)},t.uniqueName=function(e,t,n){(t=t||"{{fileName}}-{{guid}}").includes("{{guid}}")||(t=`${t}-{{guid}}`);const i=e.split(".");let r=i.slice(0,i.length-1).join(".");const a=i.length>1?`.${s.default.last(i)}`:"";return r=r.substr(0,100),n=Object.assign(n||{},{fileName:r,guid:S()}),`${p.Evaluator.interpolate(t,n)}${a}`.replace(/[^0-9a-zA-Z.\-_ ]/g,"-")},t.guid=S,t.getDateSetting=function(e){if(s.default.isNil(e)||s.default.isNaN(e)||""===e)return null;if(e instanceof Date)return e;if("function"==typeof e.toDate)return e.isValid()?e.toDate():null;let t="string"!=typeof e||-1===e.indexOf("moment(")?(0,l.default)(e):null;if(t&&t.isValid())return t.toDate();t=null;try{const n=p.Evaluator.evaluator(`return ${e};`,"moment")(l.default);"string"==typeof n?t=(0,l.default)(n):"function"==typeof n.toDate?t=(0,l.default)(n.toDate().toUTCString()):n instanceof Date&&(t=(0,l.default)(n))}catch(e){return null}return t&&t.isValid()?t.toDate():null},t.isValidDate=function(e){return s.default.isDate(e)&&!s.default.isNaN(e.getDate())},t.currentTimezone=x,t.offsetDate=L,t.zonesLoaded=function(){return l.default.zonesLoaded},t.shouldLoadZones=C,t.loadZones=T,t.momentDate=function(e,t,n){const i=(0,l.default)(e);return n?("UTC"===n&&(n="Etc/UTC"),(n!==x()||t&&t.match(/\s(z$|z\s)/))&&l.default.zonesLoaded?i.tz(n):i):i},t.formatDate=function(e,t,n,i,r){const a=(0,l.default)(t,r||void 0);if(i===x())return n.match(/\s(z$|z\s)/)?(T(e),l.default.zonesLoaded?a.tz(i).format(E(n)):a.format(E(n.replace(/\s(z$|z\s)/,"")))):a.format(E(n));if("UTC"===i){const e=L(a.toDate(),"UTC");return`${(0,l.default)(e.date).format(E(n))} UTC`}return T(e),l.default.zonesLoaded&&i?a.tz(i).format(`${E(n)} z`):a.format(E(n))},t.formatOffset=function(e,t,n,i,r){if(r===x())return t(n,i);if("UTC"===r)return`${t(L(n,"UTC").date,i)} UTC`;if(T(e),l.default.zonesLoaded){const e=L(n,r);return`${t(e.date,i)} ${e.abbr}`}return t(n,i)},t.getLocaleDateFormatInfo=function(e){const t={},n=new Date(2017,11,21).toLocaleDateString(e);return t.dayFirst=n.slice(0,2)===21..toString(),t},t.convertFormatToFlatpickr=function(e){return e.replace(/Z/g,"").replace(/y/g,"Y").replace("YYYY","Y").replace("YY","y").replace("MMMM","F").replace(/M/g,"n").replace("nnn","M").replace("nn","m").replace(/d/g,"j").replace(/jj/g,"d").replace("EEEE","l").replace("EEE","D").replace("HH","H").replace("hh","G").replace("mm","i").replace("ss","S").replace(/a/g,"K")},t.convertFormatToMoment=E,t.convertFormatToMask=function(e){return e.replace(/M{4}/g,"MM").replace(/M{3}/g,"***").replace(/e/g,"Q").replace(/W/g,"99").replace(/[ydhmswHMG]/g,"9").replace(/a/g,"AA")},t.getInputMask=function(e,t){if(e instanceof Array)return e;const n=[];n.numeric=!0;for(let i=0;it.length)return e;let i=e.split("");for(let n=0;nt.length)return!1;for(let n=0;n1?t[1]:",",decimalSeparator:t.length>2?t[2]:"."}:{delimiter:",",decimalSeparator:"."}},t.getNumberDecimalLimit=function(e,t){if(s.default.has(e,"decimalLimit"))return s.default.get(e,"decimalLimit");let n=t||20;const i=s.default.get(e,"validate.step","any");if("any"!==i){const e=i.toString().split(".");e.length>1&&(n=e[1].length)}return n},t.getCurrencyAffixes=function({currency:e,decimalLimit:t,decimalSeparator:n,lang:i}){let r=`(.*)?${100..toLocaleString(i)}`;t&&(r+=`${"."===n?"\\.":n}${(0).toLocaleString(i)}{${t}}`),r+="(.*)?";const a=100..toLocaleString(i,{style:"currency",currency:e||"USD",useGrouping:!0,maximumFractionDigits:t||0,minimumFractionDigits:t||0}).replace(".",n).match(new RegExp(r));return{prefix:(null==a?void 0:a[1])||"",suffix:(null==a?void 0:a[2])||""}},t.fieldData=function(e,t){if(!e)return"";if(!t||!t.key)return e;if(t.key.includes(".")){let n=e;const i=t.key.split(".");let r="";for(let e=0;e!s.default.isUndefined(e)))]),t.withSwitch=function(e,t){let n=e,i=t;return[function(){return n},function(){const e=n;n=i,i=e}]},t.observeOverload=function(e,t={}){const{limit:n=50,delay:i=500}=t;let r=0,a=0;const s=()=>r=0;return()=>{if(0!==a&&(clearTimeout(a),a=0),a=setTimeout(s,i),r+=1,r>=n)return clearTimeout(a),s(),e()}},t.getContextComponents=function(e,t,n=[]){const i=[];return e.utils.eachComponent(e.instance.options.editForm.components,((r,a)=>{const o=!t||!r.tree;r.key!==e.data.key&&o&&!s.default.includes(n,r.type)&&i.push({label:`${r.label||r.key} (${a})`,value:a})})),i},t.getContextButtons=function(e){const t=[];return e.utils.eachComponent(e.instance.options.editForm.components,(e=>{"button"===e.type&&t.push({label:`${e.key} (${e.label})`,value:e.key})})),t};const P=["#text","A","B","EM","I","SMALL","STRONG","SUB","SUP","INS","DEL","MARK","CODE"];function O(e,t){if(!e.innerText)return e.innerHTML;const n=e.innerText.replace(p.Evaluator.templateSettings.interpolate,"").replace(/\s\s+/g," ").trim(),i=t(n);if(n!==i){const r=e.innerHTML.match(/]*>(.*?)<\/a>/g);return r&&r.length?1===r.length&&r[0].length===e.innerHTML.length?e.innerHTML.replace(n,i):`${i} (${r.map((e=>{const n=document.createElement("a");return n.innerHTML=e,O(n,t)})).join(", ")})`:e.innerText.replace(n,i)}return e.innerHTML}function j(e,t){const n=e.children.length&&[...e.children],i=n&&n.every((e=>0===e.children.length&&P.some((t=>e.nodeName===t))));!n||i?e.innerHTML=O(e,t):n.forEach((e=>j(e,t)))}function I(){const e={};if("undefined"==typeof window)return e;const t=window.navigator.userAgent.toLowerCase(),n=/(edge|edg)\/([\w.]+)/.exec(t)||/(opr)[/]([\w.]+)/.exec(t)||/(yabrowser)[ /]([\w.]+)/.exec(t)||/(chrome)[ /]([\w.]+)/.exec(t)||/(iemobile)[/]([\w.]+)/.exec(t)||/(version)(applewebkit)[ /]([\w.]+).*(safari)[ /]([\w.]+)/.exec(t)||/(webkit)[ /]([\w.]+).*(version)[ /]([\w.]+).*(safari)[ /]([\w.]+)/.exec(t)||/(webkit)[ /]([\w.]+)/.exec(t)||/(opera)(?:.*version|)[ /]([\w.]+)/.exec(t)||/(msie) ([\w.]+)/.exec(t)||t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(t)||t.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t)||[],i={browser:n[5]||n[3]||n[1]||"",version:n[4]||n[2]||"0"};return i.browser&&(e[i.browser]=!0,e.version=parseInt(i.version,10)),(e.chrome||e.opr||e.safari||e.edg||e.yabrowser)&&(e.isWebkit=!0),(e.rv||e.iemobile)&&(e.ie=!0),e.edg&&(e.edge=!0),e.opr&&(e.opera=!0),e}function R(e,t=""){var n;return e&&e.key&&"wizard"!==(null===(n=null==e?void 0:e._form)||void 0===n?void 0:n.display)?(t=e.isInputComponent||!0===e.input?`${e.key}${t?".":""}${t}`:t,R(e.parent,t)):t}function F(e){if(!e)return;const{parent:t}=e;return t&&(t.isInputComponent||t.input)?t:F(t)}t.translateHTMLTemplate=function(e,t){if(!/<[^>]*>/.test(e))return t(e);const n=document.createElement("div");return n.innerHTML=e,n.innerText&&n.children.length?(j(n,t),n.innerHTML):e},t.sanitize=function(e,t){if("function"!=typeof c.default.sanitize)return e;const n={ADD_ATTR:["ref","target"],USE_PROFILES:{html:!0}};if(t.sanitizeConfig&&t.sanitizeConfig.useProfiles&&Object.keys(t.sanitizeConfig.useProfiles).forEach((e=>{n.USE_PROFILES[e]=t.sanitizeConfig.useProfiles[e]})),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addAttr)&&t.sanitizeConfig.addAttr.length>0&&t.sanitizeConfig.addAttr.forEach((e=>{n.ADD_ATTR.push(e)})),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addTags)&&t.sanitizeConfig.addTags.length>0&&(n.ADD_TAGS=t.sanitizeConfig.addTags),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedTags)&&t.sanitizeConfig.allowedTags.length>0&&(n.ALLOWED_TAGS=t.sanitizeConfig.allowedTags),t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.allowedAttrs)&&t.sanitizeConfig.allowedAttrs.length>0&&(n.ALLOWED_ATTR=t.sanitizeConfig.allowedAttrs),t.sanitizeConfig&&t.sanitizeConfig.allowedUriRegex){const e=t.sanitizeConfig.allowedUriRegex;n.ALLOWED_URI_REGEXP=s.default.isString(e)?new RegExp(e):e}return t.sanitizeConfig&&Array.isArray(t.sanitizeConfig.addUriSafeAttr)&&t.sanitizeConfig.addUriSafeAttr.length>0&&(n.ADD_URI_SAFE_ATTR=t.sanitizeConfig.addUriSafeAttr),c.default.sanitize(e,n)},t.fastCloneDeep=function(e){return e?JSON.parse(JSON.stringify(e)):e},t.isInputComponent=function(e){if(!1===e.input||!0===e.input)return e.input;switch(e.type){case"htmlelement":case"content":case"columns":case"fieldset":case"panel":case"table":case"tabs":case"well":case"button":return!1;default:return!0}},t.getArrayFromComponentPath=function(e){return e&&s.default.isString(e)?e.replace(/[[\]]/g,".").replace(/\.\./g,".").replace(/(^\.)|(\.$)/g,"").split(".").map((e=>s.default.defaultTo(s.default.toNumber(e),e))):s.default.isArray(e)?e:[e]},t.isChildOf=function(e,t){for(;e&&e.parent;){if(e.parent===t)return!0;e=e.parent}return!1},t.getStringFromComponentPath=function(e){if(!s.default.isArray(e))return e;let t="";return e.forEach(((e,n)=>{s.default.isNumber(e)?t+=`[${e}]`:t+=0===n?e:`.${e}`})),t},t.round=function(e,t){return s.default.isNumber(e)?e.toFixed(t):e.toString()},t.getIEBrowserVersion=function(){const{ie:e,version:t}=I();return e?t:null},t.getBrowserInfo=I,t.getComponentPathWithoutIndicies=function(e=""){return e.replace(/\[\d+\]/,"")},t.getComponentPath=R,t.getDataParentComponent=F,t.isPromise=function(e){return e&&e.then&&"function"==typeof e.then&&"[object Promise]"===Object.prototype.toString.call(e)},t.isInsideScopingComponent=function e(t,n=!0){if(!n&&(null==t?void 0:t.hasScopedChildren))return!0;const i=F(t);return!!(null==i?void 0:i.hasScopedChildren)||!!(null==i?void 0:i.parent)&&e(i.parent,!1)},t.getFocusableElements=function(e){return e.querySelectorAll("button:not([disabled]), input:not([disabled]), select:not([disabled]),\n textarea:not([disabled]), button:not([disabled]), [href]")},t.componentValueTypes={number:"number",string:"string",boolean:"boolean",array:"array",object:"object",date:"date",any:"any"},t.getComponentSavedTypes=function(e){const n=e||{};return!0!==n.persistent?[]:n.multiple?[t.componentValueTypes.array]:null},t.interpolateErrors=(e,t,n)=>t.map((t=>{t.component=e;const{errorKeyOrMessage:i,context:r}=t,a=e.errors&&e.errors[i]?e.errors[i]:i;return Object.assign(Object.assign({},t),{message:k(n(a,r)),context:Object.assign({},r)})}))},34840:(e,t,n)=>{var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=i},34847:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),a=i(n(48264)),s=i(n(15068));t.default=function(...e){const t=r.default.baseEditForm([{key:"display",components:a.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"logic",components:s.default}],...e);return t.components=[{weight:0,type:"textarea",editor:"ckeditor",label:"Content",hideLabel:!0,input:!0,key:"html",as:"html",rows:3,tooltip:"The HTML template for the result data items."}].concat(t.components),t}},34865:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),a=i(n(40250)),s=i(n(4490)),o=i(n(6561));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:s.default},{key:"data",components:a.default},{key:"validation",components:o.default}],...e)}},34932:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n{"use strict";var i=n(97751),r=n(79504),a=n(38480),s=n(33717),o=n(28551),l=r([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=a.f(o(e)),n=s.f;return n?l(t,n(e)):t}},35349:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(12191),t),r(n(84679),t),r(n(22595),t),r(n(22699),t),r(n(5623),t),r(n(94394),t),r(n(71059),t),r(n(54008),t)},35358:(e,t,n)=>{var i={"./af":25177,"./af.js":25177,"./ar":61509,"./ar-dz":41488,"./ar-dz.js":41488,"./ar-kw":58676,"./ar-kw.js":58676,"./ar-ly":42353,"./ar-ly.js":42353,"./ar-ma":24496,"./ar-ma.js":24496,"./ar-ps":6947,"./ar-ps.js":6947,"./ar-sa":82682,"./ar-sa.js":82682,"./ar-tn":89756,"./ar-tn.js":89756,"./ar.js":61509,"./az":95533,"./az.js":95533,"./be":28959,"./be.js":28959,"./bg":47777,"./bg.js":47777,"./bm":54903,"./bm.js":54903,"./bn":61290,"./bn-bd":17357,"./bn-bd.js":17357,"./bn.js":61290,"./bo":31545,"./bo.js":31545,"./br":11470,"./br.js":11470,"./bs":44429,"./bs.js":44429,"./ca":7306,"./ca.js":7306,"./cs":56464,"./cs.js":56464,"./cv":73635,"./cv.js":73635,"./cy":64226,"./cy.js":64226,"./da":93601,"./da.js":93601,"./de":77853,"./de-at":26111,"./de-at.js":26111,"./de-ch":54697,"./de-ch.js":54697,"./de.js":77853,"./dv":60708,"./dv.js":60708,"./el":54691,"./el.js":54691,"./en-au":53872,"./en-au.js":53872,"./en-ca":28298,"./en-ca.js":28298,"./en-gb":56195,"./en-gb.js":56195,"./en-ie":66584,"./en-ie.js":66584,"./en-il":65543,"./en-il.js":65543,"./en-in":9033,"./en-in.js":9033,"./en-nz":79402,"./en-nz.js":79402,"./en-sg":43004,"./en-sg.js":43004,"./eo":32934,"./eo.js":32934,"./es":97650,"./es-do":20838,"./es-do.js":20838,"./es-mx":17730,"./es-mx.js":17730,"./es-us":56575,"./es-us.js":56575,"./es.js":97650,"./et":3035,"./et.js":3035,"./eu":3508,"./eu.js":3508,"./fa":119,"./fa.js":119,"./fi":90527,"./fi.js":90527,"./fil":95995,"./fil.js":95995,"./fo":52477,"./fo.js":52477,"./fr":85498,"./fr-ca":26435,"./fr-ca.js":26435,"./fr-ch":37892,"./fr-ch.js":37892,"./fr.js":85498,"./fy":37071,"./fy.js":37071,"./ga":41734,"./ga.js":41734,"./gd":70217,"./gd.js":70217,"./gl":77329,"./gl.js":77329,"./gom-deva":32124,"./gom-deva.js":32124,"./gom-latn":93383,"./gom-latn.js":93383,"./gu":95050,"./gu.js":95050,"./he":11713,"./he.js":11713,"./hi":43861,"./hi.js":43861,"./hr":26308,"./hr.js":26308,"./hu":90609,"./hu.js":90609,"./hy-am":17160,"./hy-am.js":17160,"./id":74063,"./id.js":74063,"./is":89374,"./is.js":89374,"./it":88383,"./it-ch":21827,"./it-ch.js":21827,"./it.js":88383,"./ja":23827,"./ja.js":23827,"./jv":89722,"./jv.js":89722,"./ka":41794,"./ka.js":41794,"./kk":27088,"./kk.js":27088,"./km":96870,"./km.js":96870,"./kn":84451,"./kn.js":84451,"./ko":63164,"./ko.js":63164,"./ku":98174,"./ku-kmr":6181,"./ku-kmr.js":6181,"./ku.js":98174,"./ky":78474,"./ky.js":78474,"./lb":79680,"./lb.js":79680,"./lo":15867,"./lo.js":15867,"./lt":45766,"./lt.js":45766,"./lv":69532,"./lv.js":69532,"./me":58076,"./me.js":58076,"./mi":41848,"./mi.js":41848,"./mk":30306,"./mk.js":30306,"./ml":73739,"./ml.js":73739,"./mn":99053,"./mn.js":99053,"./mr":86169,"./mr.js":86169,"./ms":73386,"./ms-my":92297,"./ms-my.js":92297,"./ms.js":73386,"./mt":77075,"./mt.js":77075,"./my":72264,"./my.js":72264,"./nb":22274,"./nb.js":22274,"./ne":8235,"./ne.js":8235,"./nl":92572,"./nl-be":43784,"./nl-be.js":43784,"./nl.js":92572,"./nn":54566,"./nn.js":54566,"./oc-lnc":69330,"./oc-lnc.js":69330,"./pa-in":29849,"./pa-in.js":29849,"./pl":94418,"./pl.js":94418,"./pt":79834,"./pt-br":48303,"./pt-br.js":48303,"./pt.js":79834,"./ro":24457,"./ro.js":24457,"./ru":82271,"./ru.js":82271,"./sd":1221,"./sd.js":1221,"./se":33478,"./se.js":33478,"./si":17538,"./si.js":17538,"./sk":5784,"./sk.js":5784,"./sl":46637,"./sl.js":46637,"./sq":86794,"./sq.js":86794,"./sr":45719,"./sr-cyrl":3322,"./sr-cyrl.js":3322,"./sr.js":45719,"./ss":56e3,"./ss.js":56e3,"./sv":41011,"./sv.js":41011,"./sw":40748,"./sw.js":40748,"./ta":11025,"./ta.js":11025,"./te":11885,"./te.js":11885,"./tet":28861,"./tet.js":28861,"./tg":86571,"./tg.js":86571,"./th":55802,"./th.js":55802,"./tk":59527,"./tk.js":59527,"./tl-ph":29231,"./tl-ph.js":29231,"./tlh":31052,"./tlh.js":31052,"./tr":85096,"./tr.js":85096,"./tzl":79846,"./tzl.js":79846,"./tzm":81765,"./tzm-latn":97711,"./tzm-latn.js":97711,"./tzm.js":81765,"./ug-cn":48414,"./ug-cn.js":48414,"./uk":16618,"./uk.js":16618,"./ur":57777,"./ur.js":57777,"./uz":57609,"./uz-latn":72475,"./uz-latn.js":72475,"./uz.js":57609,"./vi":21135,"./vi.js":21135,"./x-pseudo":64051,"./x-pseudo.js":64051,"./yo":82218,"./yo.js":82218,"./zh-cn":52648,"./zh-cn.js":52648,"./zh-hk":1632,"./zh-hk.js":1632,"./zh-mo":31541,"./zh-mo.js":31541,"./zh-tw":50304,"./zh-tw.js":50304};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id=35358},35529:(e,t,n)=>{var i=n(39344),r=n(28879),a=n(55527);e.exports=function(e){return"function"!=typeof e.constructor||a(e)?{}:i(r(e))}},35610:(e,t,n)=>{"use strict";var i=n(91291),r=Math.max,a=Math.min;e.exports=function(e,t){var n=i(e);return n<0?r(n+t,0):a(n,t)}},35749:(e,t,n)=>{var i=n(81042);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},35818:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(10196);t.default=[{key:"placeholder",ignore:!0},{type:"checkbox",label:"Open First Row when Empty",key:"openWhenEmpty",tooltip:"Check this if you would like to open up the first row when the EditGrid is empty",weight:1e3,input:!0,conditional:{json:{"!==":[{var:"data.modal"},!0]}}},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:1001,input:!0,clearOnHide:!1,calculateValue:"value = data.disableAddingRemovingRows;"},{type:"checkbox",label:"Display EditGrid as Table",key:"displayAsTable",tooltip:"use Table Template",weight:1002,input:!1,customConditional:()=>!i.Evaluator.noeval},{weight:1010,type:"textarea",input:!0,key:"conditionalAddButton",label:"Conditional Add Button",placeholder:"show = ...",tooltip:"Specify condition when Add Button should be displayed.",editor:"ace",as:"javascript",wysiwyg:{minLines:3}}]},35891:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(95093)),a=i(n(41767)),s=n(34600),o="HH:mm:ss";class l extends a.default{static schema(...e){return a.default.schema({type:"time",label:"Time",key:"time",inputType:"time",format:"HH:mm",dataFormat:o},...e)}constructor(e,t,n){super(e,t,n);const{edge:i,version:r}=(0,s.getBrowserInfo)();this.component.inputMask=this.getInputMaskFromFormat(this.component.format),this.component.inputType=i&&r<=18?"text":this.component.inputType||"time",this.rawData=this.component.multiple?[]:this.getValueAsString(this.defaultValue)||this.emptyValue}static get builderInfo(){return{title:"Time",icon:"clock-o",group:"advanced",documentation:"/userguide/form-building/advanced-components#time-1",weight:55,schema:l.schema()}}get dataFormat(){return this.component.dataFormat||o}get defaultSchema(){return l.schema()}get defaultValue(){let e=super.defaultValue;return this.component.multiple&&Array.isArray(e)?e=e.map((e=>e?this.getStringAsValue(e):e)):e&&(e=this.getStringAsValue(e)),e}get inputInfo(){const e=super.inputInfo;return e.attr.type=this.component.inputType,e}get skipMaskValidation(){return!0}isNotCompleteInput(e){return e.includes("_")}removeValue(e){this.rawData=Array.isArray(this.rawData)?[...this.rawData.slice(0,e),...this.rawData.slice(e+1)]:this.emptyValue,super.removeValue(e)}resetRawData(e){e?this.setRawValue(this.emptyValue,e):this.rawData=[]}setRawValue(e,t){Array.isArray(this.rawData)?this.rawData[t]=e:this.rawData=e}getRawValue(e){return e&&Array.isArray(this.rawData)?this.rawData[e]||this.emptyValue:this.rawData}getValueAt(e){if(!this.refs.input.length||!this.refs.input[e])return this.emptyValue;const{value:t}=this.refs.input[e];return t?(this.setRawValue(t,e),this.getStringAsValue(t)):(this.resetRawData(e),this.emptyValue)}setValueAt(e,t){this.setRawValue(t?this.getValueAsString(t):t,e),this.refs.input[e].value=this.getRawValue(e)}getStringAsValue(e){return e?(0,r.default)(e,this.component.format).format(this.component.dataFormat):e}getValueAsString(e){return Array.isArray(e)&&this.component.multiple?e.map((e=>(0,r.default)(e,this.component.dataFormat).format(this.component.format))).join(", "):(e?(0,r.default)(e,this.component.dataFormat).format(this.component.format):e)||""}getInputMaskFromFormat(e){return"LT"===e?"99:99 AA":"LTS"===e?"99:99:99 AA":e.replace(/[hHmMsSk]/g,"9").replace(/[aA]/,"AA")}addFocusBlurEvents(e){super.addFocusBlurEvents(e),this.addEventListener(e,"blur",(()=>{e.value=this.getValueAsString(e.value)}))}}t.default=l},35917:(e,t,n)=>{"use strict";var i=n(43724),r=n(79039),a=n(4055);e.exports=!i&&!r((function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}))},35970:(e,t,n)=>{var i=n(83120);e.exports=function(e){return null!=e&&e.length?i(e,1):[]}},35985:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.I18n=void 0;const r=n(84679),a=i(n(2899)),s={};for(const e in a.default.resources)a.default.resources.hasOwnProperty(e)&&(s[e]=a.default.resources[e].translation);class o{constructor(e={}){this.languages=s,this.language="en",this.currentLanguage=s.en,this.setLanguages(e),this.changeLanguage(this.language)}setLanguages(e){if(e.resources){for(const t in e.resources)e.resources.hasOwnProperty(t)&&(e[t]=e.resources[t].translation);delete e.resources}e.lng&&(e.language=e.lng,delete e.lng),delete e.nsSeparator,delete e.keySeparator,delete e.pluralSeparator,delete e.contextSeparator,e.language&&(this.language=e.language);for(const t in e)"language"!==t&&e.hasOwnProperty(t)&&(this.languages[t]||(this.languages[t]={}),this.languages[t]=Object.assign(Object.assign({},this.languages[t]),e[t]))}static init(e={}){return new o(e)}dir(e=""){return e=e||this.language,["ar","he","fa","ps","ur"].includes(e)?"rtl":"ltr"}static createInstance(){return new o}changeLanguage(e,t=null){this.languages[e]||(e="en"),this.language=e,this.currentLanguage=this.languages[e]?this.languages[e]:{},t&&t()}addResourceBundle(e,t,n){this.languages[e]=n}t(e,...t){var n;if(this.currentLanguage[e]){const i=null===(n=t[0])||void 0===n?void 0:n.field;return i&&this.currentLanguage[i]&&(t[0].field=this.currentLanguage[i]),r.Evaluator.interpolateString(this.currentLanguage[e],...t)}return r.Evaluator.interpolateString(e,...t)}}t.I18n=o},36123:e=>{"use strict";var t,n=void 0;"function"!=typeof Object.create?(t=function(){},n=function(e,n){if(e!==Object(e)&&null!==e)throw TypeError("Argument must be an object, or null");t.prototype=e||{};var i=new t;return t.prototype=null,void 0!==n&&Object.defineProperties(i,n),null===e&&(i.__proto__=null),i}):n=Object.create;var i=n,r=["altKey","button","buttons","clientX","clientY","ctrlKey","metaKey","movementX","movementY","offsetX","offsetY","pageX","pageY","region","relatedTarget","screenX","screenY","shiftKey","which","x","y"];function a(e,t){t=t||{};for(var n=i(e),a=0;a{const{component:t,value:n}=e;return!(!(e=>e&&"url"===e.type)(t)||t.multiple&&Array.isArray(n)&&0===n.length||!n)},t.validateUrlSync=e=>{const{value:n}=e;if(!(0,t.shouldValidate)(e))return null;const i=new r.FieldError("invalid_url",e,"url");return"string"!=typeof n?i:/^(?:(?:(?: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-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(n)&&!/^(([^<>()[\]\\.,;:\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,}))$/.test(n)?null:i},t.validateUrl=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateUrlSync)(e)})),t.validateUrlInfo={name:"validateUrl",process:t.validateUrl,processSync:t.validateUrlSync,shouldProcess:t.shouldValidate}},36382:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
\n ',e.visible&&(n+="\n "+(null==(t=e.children)?"":t)+'\n
\n '),n+"\n
\n"}},36840:(e,t,n)=>{"use strict";var i=n(94901),r=n(24913),a=n(50283),s=n(39433);e.exports=function(e,t,n,o){o||(o={});var l=o.enumerable,u=void 0!==o.name?o.name:t;if(i(n)&&a(n,u,o),o.global)l?e[t]=n:s(t,n);else{try{o.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:r.f(e,t,{value:n,enumerable:!1,configurable:!o.nonConfigurable,writable:!o.nonWritable})}return e}},36874:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateMaximumWordsInfo=t.validateMaximumWordsSync=t.validateMaximumWords=void 0;const r=n(54008),a=e=>{var t;let n=null===(t=e.validate)||void 0===t?void 0:t.maxWords;return"string"==typeof n&&(n=parseInt(n,10)),n},s=e=>{const{component:t}=e;if(!(e=>{var t;return e&&(null===(t=e.validate)||void 0===t?void 0:t.hasOwnProperty("maxWords"))})(t))return!1;const n=a(t);return void 0!==n&&!(!n||Number.isNaN(n))};t.validateMaximumWords=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateMaximumWordsSync)(e)})),t.validateMaximumWordsSync=e=>{const{component:t,value:n}=e;if(!s(e))return null;const i=a(t);return i&&"string"==typeof n&&n.trim().split(/\s+/).length>i?new r.FieldError("maxWords",Object.assign(Object.assign({},e),{length:String(i),setting:String(i)})):null},t.validateMaximumWordsInfo={name:"validateMaximumWords",process:t.validateMaximumWords,processSync:t.validateMaximumWordsSync,shouldProcess:s}},36955:(e,t,n)=>{"use strict";var i=n(92140),r=n(94901),a=n(44576),s=n(78227)("toStringTag"),o=Object,l="Arguments"===a(function(){return arguments}());e.exports=i?a:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=o(e),s))?n:l?a(t):"Object"===(i=a(t))&&r(t.callee)?"Arguments":i}},37014:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(54496);t.default={form:i.default}},37037:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(27656))&&i.__esModule?i:{default:i};t.default=function(e){return"string"==typeof e&&r.default.test(e)}},37071:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");e.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(95093))},37092:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=i(n(44085)),s=i(n(77689)),o=i(n(75940));class l{static addProvider(e,t,n){l.providers[e]=l.providers[e]||{},l.providers[e][t]=n}static addProviders(e,t){l.providers[e]=r.default.merge(l.providers[e],t)}static getProvider(e,t){if(l.providers[e]&&l.providers[e][t])return l.providers[e][t]}static getProviders(e){if(l.providers[e])return l.providers[e]}}l.providers={address:a.default,auth:s.default,storage:o.default},t.default=l},37108:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'
\n
\n
\n
\n
\n'}},37167:(e,t,n)=>{var i=n(4901),r=n(27301),a=n(86009),s=a&&a.isTypedArray,o=s?r(s):i;e.exports=o},37217:(e,t,n)=>{var i=n(80079),r=n(51420),a=n(90938),s=n(63605),o=n(29817),l=n(80945);function u(e){var t=this.__data__=new i(e);this.size=t.size}u.prototype.clear=r,u.prototype.delete=a,u.prototype.get=s,u.prototype.has=o,u.prototype.set=l,e.exports=u},37235:(e,t,n)=>{"use strict";n.r(t),n.d(t,{cancelAnimationFrame:()=>a,requestAnimationFrame:()=>r});var i=["webkit","moz","ms","o"],r=function(){for(var e=0,t=i.length;e{var i=n(70695),r=n(72903),a=n(64894);e.exports=function(e){return a(e)?i(e,!0):r(e)}},37242:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NominatimAddressProvider=void 0;const i=n(21416);class r extends i.AddressProvider{static get name(){return"nominatim"}static get displayName(){return"OpenStreetMap Nominatim"}get defaultOptions(){return{params:{addressdetails:"1",format:"json"}}}get queryProperty(){return"q"}get displayValueProperty(){return"display_name"}getRequestUrl(e={}){const{params:t}=e;return`https://nominatim.openstreetmap.org/search?${this.serialize(t)}`}}t.NominatimAddressProvider=r},37334:e=>{e.exports=function(e){return function(){return e}}},37347:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),a=i(n(37354)),s=i(n(95309));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:s.default},{key:"data",components:a.default}],...e)}},37354:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0}]},37513:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,a=arguments.length,s=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(s=(a<3?r(s):a>3?r(t,n,s):r(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.HTMLContainerComponent=t.HTMLContainer=void 0;const r=n(77644),a=n(10728);class s extends a.HTML{renderContext(e={}){return super.renderContext(Object.assign({content:this.renderComponents()},e))}}t.HTMLContainer=s;let o=class extends s{};t.HTMLContainerComponent=o,t.HTMLContainerComponent=o=i([(0,r.NestedComponent)({type:"htmlcontainer",schema:a.HTMLProperties.schema,template:a.HTMLProperties.template})],o)},37828:(e,t,n)=>{var i=n(9325).Uint8Array;e.exports=i},37833:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(30977);t.default={form:i.default}},37888:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(3369),t),r(n(34542),t)},37892:function(e,t,n){!function(e){"use strict";e.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(e,t){switch(t){default:case"M":case"Q":case"D":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(95093))},37957:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(26213);t.default={form:i.default}},38034:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.setXhrHeaders=void 0;const a=r(n(44826));t.setXhrHeaders=(e,t)=>{const{headers:n}=e.options;if(n){const e={"Content-Disposition":!0,Authorization:!0};for(const i in n)e[i]&&t.setRequestHeader(i,n[i])}};const s={trim:e=>(0,a.default)(e,"/"),path:e=>e.filter((e=>!!e)).map(s.trim).join("/"),upload(e,t,n,r,a,o,l,u,d,c,h){return i(this,void 0,void 0,(function*(){const i=e.getToken();let p;try{p=yield fetch(`${e.formUrl}/storage/${t}`,{method:"POST",headers:Object.assign({Accept:"application/json","Content-Type":"application/json; charset=UTF-8"},i?{"x-jwt-token":i}:{}),body:JSON.stringify({name:s.path([o,a]),size:r.size,type:r.type,groupPermissions:u,groupId:d,multipart:h})})}catch(e){throw e.networkError=!0,e}if(!p.ok){if(504===p.status){const e=new Error("Network request failed");throw e.networkError=!0,e}const e=yield p.text();throw new Error(e||"Unable to sign file.")}const f=yield p.json();return yield s.makeXhrRequest(e,n,f,l,c)}))},makeXhrRequest:(e,n,i,r,a)=>new Promise(((s,o)=>{const l=new XMLHttpRequest;l.openAndSetHeaders=(...n)=>{l.open(...n),(0,t.setXhrHeaders)(e,l)},Promise.resolve(n(l,i,a)).then((e=>{if(!e)return s(i);l.onerror=e=>{e.networkError=!0,o(e)},l.onabort=e=>{e.networkError=!0,o(e)},l.onabort=o,"function"==typeof r&&(l.upload.onprogress=r),"function"==typeof a&&a((()=>l.abort())),l.onload=()=>{if(l.status>=200&&l.status<300)s(i);else if(504===l.status){const e=new Error("Network request failed");e.networkError=!0,o(e)}else o(l.response||"Unable to upload file")},l.send(e)})).catch(o)}))};t.default=s},38068:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(89480)),a=n(2543);class s extends r.default{static get operatorKey(){return"lessThanOrEqual"}static get displayedName(){return"Less Than Or Equal To"}execute({value:e,comparedValue:t}){return(0,a.isNumber)(e)&&(e{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},38140:function(e,t){var n,i;void 0===(i="function"==typeof(n=function(){return function e(t,n,i){var r,a,s=window,o="application/octet-stream",l=i||o,u=t,d=!n&&!i&&u,c=document.createElement("a"),h=function(e){return String(e)},p=s.Blob||s.MozBlob||s.WebKitBlob||h,f=n||"download";if(p=p.call?p.bind(s):Blob,"true"===String(this)&&(l=(u=[u,l])[0],u=u[1]),d&&d.length<2048&&(f=d.split("/").pop().split("?")[0],c.href=d,-1!==c.href.indexOf(d))){var m=new XMLHttpRequest;return m.open("GET",d,!0),m.responseType="blob",m.onload=function(t){e(t.target.response,f,o)},setTimeout((function(){m.send()}),0),m}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u)){if(!(u.length>2096103.424&&p!==h))return navigator.msSaveBlob?navigator.msSaveBlob(b(u),f):_(u);l=(u=b(u)).type||o}else if(/([\x80-\xff])/.test(u)){for(var g=0,v=new Uint8Array(u.length),y=v.length;g{var i=n(23805),r=n(10124),a=n(99374),s=Math.max,o=Math.min;e.exports=function(e,t,n){var l,u,d,c,h,p,f=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=l,i=u;return l=u=void 0,f=t,c=e.apply(i,n)}function b(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-f>=d}function _(){var e=r();if(b(e))return w(e);h=setTimeout(_,function(e){var n=t-(e-p);return g?o(n,d-(e-f)):n}(e))}function w(e){return h=void 0,v&&l?y(e):(l=u=void 0,c)}function M(){var e=r(),n=b(e);if(l=arguments,u=this,p=e,n){if(void 0===h)return function(e){return f=e,h=setTimeout(_,t),m?y(e):c}(p);if(g)return clearTimeout(h),h=setTimeout(_,t),y(p)}return void 0===h&&(h=setTimeout(_,t)),c}return t=a(t)||0,i(n)&&(m=!!n.leading,d=(g="maxWait"in n)?s(a(n.maxWait)||0,t):d,v="trailing"in n?!!n.trailing:v),M.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=u=h=void 0},M.flush=function(){return void 0===h?c:w(r())},M}},38296:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(43922);t.default={form:i.default}},38385:(e,t,n)=>{"use strict";n.r(t),n.d(t,{compare:()=>d,compareVersions:()=>u,satisfies:()=>f,validate:()=>m,validateStrict:()=>g});const i=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,r=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(i);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},a=e=>"*"===e||"x"===e||"X"===e,s=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},o=(e,t)=>{if(a(e)||a(t))return 0;const[n,i]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(s(e),s(t));return n>i?1:n{for(let n=0;n{const n=r(e),i=r(t),a=n.pop(),s=i.pop(),o=l(n,i);return 0!==o?o:a&&s?l(a.split("."),s.split(".")):a||s?a?-1:1:0},d=(e,t,n)=>{p(n);const i=u(e,t);return c[n].includes(i)},c={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},h=Object.keys(c),p=e=>{if("string"!=typeof e)throw new TypeError("Invalid operator type, expected string but got "+typeof e);if(-1===h.indexOf(e))throw new Error(`Invalid operator, expected one of ${h.join("|")}`)},f=(e,t)=>{if((t=t.replace(/([><=]+)\s+/g,"$1")).includes("||"))return t.split("||").some((t=>f(e,t)));if(t.includes(" - ")){const[n,i]=t.split(" - ",2);return f(e,`>=${n} <=${i}`)}if(t.includes(" "))return t.trim().replace(/\s{2,}/g," ").split(" ").every((t=>f(e,t)));const n=t.match(/^([<>=~^]+)/),i=n?n[1]:"=";if("^"!==i&&"~"!==i)return d(e,t,i);const[a,s,o,,u]=r(e),[c,h,p,,m]=r(t),g=[a,s,o],v=[c,null!=h?h:"x",null!=p?p:"x"];if(m){if(!u)return!1;if(0!==l(g,v))return!1;if(-1===l(u.split("."),m.split(".")))return!1}const y=v.findIndex((e=>"0"!==e))+1,b="~"===i?2:y>1?y:1;return 0===l(g.slice(0,b),v.slice(0,b))&&-1!==l(g.slice(b),v.slice(b))},m=e=>"string"==typeof e&&/^[v\d]/.test(e)&&i.test(e),g=e=>"string"==typeof e&&/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$/.test(e)},38440:(e,t,n)=>{var i=n(16038),r=n(27301),a=n(86009),s=a&&a.isSet,o=s?r(s):i;e.exports=o},38480:(e,t,n)=>{"use strict";var i=n(61828),r=n(88727).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},38644:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+="

"+(null==(t=e.t("error"))?"":t)+"\n ",e.options.vpat&&(n+='\n \n '),n+="\n

\n
    \n ",e.errors.forEach((function(e){n+='\n
  • \n \n '+(null==(t=e.message)?"":t)+"\n \n
  • \n "})),n+="\n
\n"}},38717:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
\n'}},38816:(e,t,n)=>{var i=n(35970),r=n(56757),a=n(32865);e.exports=function(e){return a(r(e,void 0,i),e+"")}},38859:(e,t,n)=>{var i=n(53661),r=n(31380),a=n(51459);function s(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t{(0,a.isChildOf)(e.instance,this)&&this.collapsed&&(this.collapsed=!1)}))}}t.default=s},39142:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=i(n(71961)),s=i(n(87422)),o=n(34600),l=n(5623);class u extends a.default{static schema(...e){return a.default.schema({tree:!1,lazyLoad:!1},...e)}constructor(e,t,n){super(e,t,n),this.type="components",this._collapsed=!!this.component.collapsed}get defaultSchema(){return u.schema()}get schema(){const e=super.schema,t=r.default.uniqBy(this.getComponents(),"component.key");return e.components=r.default.map(t,"schema"),e}get collapsed(){return this._collapsed}collapse(e){const t=this.redraw();return e||this.checkValidity(this.data,!this.pristine),t}set collapsed(e){this._collapsed=e,this.collapse(e)}set visible(e){const t=this._visible!==e;this._visible=e;const n=this.visible,i=this.shouldForceShow(),r=this.shouldForceHide();this.components.forEach((e=>{e.parentVisible=n;const t=e.conditionallyVisible();i||t?e.visible=!0:!r&&n&&t||(e.visible=!1),e.visible||(e.error="")})),t&&(this.clearOnHide(),this.redraw())}get visible(){return super.visible}set parentVisible(e){super.parentVisible=e,this.components.forEach((e=>e.parentVisible=this.visible))}get parentVisible(){return super.parentVisible}get disabled(){return super.disabled}set disabled(e){super.disabled=e,this.components.forEach((t=>t.parentDisabled=e))}set parentDisabled(e){super.parentDisabled=e,this.components.forEach((e=>{e.parentDisabled=this.disabled}))}get parentDisabled(){return super.parentDisabled}get ready(){return Promise.all(this.getComponents().map((e=>e.ready)))}get currentForm(){return super.currentForm}set currentForm(e){super.currentForm=e,this.getComponents().forEach((t=>{t.currentForm=e}))}get rowIndex(){return this._rowIndex}set rowIndex(e){this._rowIndex=e,this.eachComponent((t=>{t.rowIndex=e}))}componentContext(){return this._data}get data(){return this._data}set data(e){this._data=e,this.eachComponent((e=>{e.data=this.componentContext(e)}))}getComponents(){return this.components||[]}everyComponent(e,t={}){const n=this.getComponents();r.default.each(n,((i,r)=>!1!==e(i,n,r)&&("function"!=typeof i.everyComponent||!1!==i.everyComponent(e,t))&&void 0))}hasComponent(e){let t=!1;return this.everyComponent((n=>{if(n===e)return t=!0,!1})),t}flattenComponents(){const e={};return this.everyComponent((t=>{e[t.component.flattenAs||t.key]=t})),e}eachComponent(e){r.default.each(this.getComponents(),((t,n)=>{if(!1===e(t,n))return!1}))}getComponent(e,t,n){if(n=n||(0,o.getStringFromComponentPath)(e),this.componentsMap.hasOwnProperty(n))return t?t(this.componentsMap[n]):this.componentsMap[n];e=(0,o.getArrayFromComponentPath)(e);const i=n,a=r.default.clone(e);let s=a.shift();const l=a;let u=null,d=null;return r.default.isNumber(s)&&(s=l.shift()),r.default.isString(s)?(this.everyComponent(((e,r)=>{const a=!e.hasInput||!e.path||i.includes(e.path);if(e.component.key===s&&(d=e,a))return u=e,l.length>0&&"getComponent"in e?u=e.getComponent(l,t,n):t&&t(e,r),!1})),u||(u=d),u):u}getComponentById(e,t=null){let n=null;return this.everyComponent(((i,r)=>{if(i.id===e)return n=i,t&&t(i,r),!1})),n}createComponent(e,t,n,i,a){if(!e)return;t=t||this.options,n=n||this.data,t.parent=this,t.parentVisible=this.visible,t.root=(null==t?void 0:t.root)||this.root||this,t.localRoot=this.localRoot,t.skipInit=!0,"pdf"===t.display&&this.builderMode||(e.id=(0,o.getRandomComponentId)());const l=s.default.create(e,t,n,!0);if(l.init(),e.internal)return l;if(i){const e=r.default.findIndex(this.components,{id:i.id});-1!==e?this.components.splice(e,0,l):this.components.push(l)}else if(a){const e=r.default.findIndex(this.components,{id:a.id});-1!==e?this.components[e]=l:this.components.push(l)}else this.components.push(l);return l}getContainer(){return this.element}get componentComponents(){return this.component.components||[]}get nestedKey(){return`nested-${this.key}`}get templateName(){return"container"}init(){return this.components=this.components||[],this.addComponents(),super.init()}addComponents(e,t){e=e||this.data,this.components=this.components||[],(t=t||this.options).components?this.components=t.components:(this.hook("addComponents",this.componentComponents,this)||[]).forEach((t=>this.addComponent(t,e)))}addComponent(e,t=null,n=null,i=!1){t=t||this.data,this.components=this.components||[],e=this.hook("addComponent",e,t,n,i);return this.createComponent(e,this.options,t,n||null)}beforeFocus(){this.parent&&"beforeFocus"in this.parent&&this.parent.beforeFocus(this)}render(e){return super.render(e||this.renderTemplate(this.templateName,{children:this.visible?this.renderComponents():"",nestedKey:this.nestedKey,collapsed:!this.options.pdf&&this.collapsed}))}renderComponents(e){const t=(e=e||this.getComponents()).map((e=>e.render()));return this.renderTemplate("components",{children:t,components:e})}attach(e){const t=super.attach(e);this.loadRefs(e,{header:"single",collapsed:this.collapsed,[this.nestedKey]:"single",messageContainer:"single-scope"});let n=Promise.resolve();return this.refs[this.nestedKey]&&(n=this.attachComponents(this.refs[this.nestedKey])),this.visible||this.attachComponentsLogic(),this.component.collapsible&&this.refs.header&&(this.addEventListener(this.refs.header,"click",(()=>{this.collapsed=!this.collapsed})),this.addEventListener(this.refs.header,"keydown",(e=>{13!==e.keyCode&&32!==e.keyCode||(e.preventDefault(),this.collapsed=!this.collapsed)}))),Promise.all([t,n])}attachComponentsLogic(e){e=e||this.components,r.default.each(e,(e=>{e.attachLogic(),r.default.isFunction(e.attachComponentsLogic)&&e.attachComponentsLogic()}))}attachComponents(e,t,n){if(t=t||this.components,n=n||this.component.components,!(e=this.hook("attachComponents",e,t,n,this)))return new Promise((()=>{}));let i=0;const r=[];return Array.prototype.slice.call(e.children).forEach((e=>{!e.getAttribute("data-noattach")&&t[i]&&(r.push(t[i].attach(e)),i++)})),Promise.all(r)}removeComponent(e,t,n=!1){t=t||this.components,e.destroy(n),r.default.remove(t,{id:e.id}),this.componentsMap[e.path]&&delete this.componentsMap[e.path]}removeComponentByKey(e,t=null){if(!this.getComponent(e,((e,n)=>{this.removeComponent(e,n),t&&t(e,n)})))return t&&t(null),null}removeComponentById(e,t=null){if(!this.getComponentById(e,((e,n)=>{this.removeComponent(e,n),t&&t(e,n)})))return t&&t(null),null}updateValue(e,t={}){return this.components.reduce(((e,n)=>n.updateValue(null,t)||e),super.updateValue(e,t))}shouldSkipValidation(e,t,n){return!this.component.input||super.shouldSkipValidation(e,t,n)}checkData(e,t,n,i){if(this.builderMode)return!0;e=e||this.rootValue,t=t||{},n=n||this.data,i=i&&r.default.isArray(i)?i:this.getComponents(),super.checkData(e,Object.assign({},t),n),i.forEach((i=>i.checkData(e,Object.assign({},t),n)))}checkConditions(e,t,n){const i=super.checkConditions(e,t,n);return this.getComponents().forEach((n=>n.checkConditions(e,t,n.data))),i}clearOnHide(e){super.clearOnHide(e),this.component.clearOnHide&&(!this.allowData||this.hasValue()||this.options.server&&!this.visible||(this.dataValue=this.defaultValue),this.hasValue()&&this.restoreComponentsContext()),this.getComponents().forEach((t=>t.clearOnHide(e)))}restoreComponentsContext(){this.getComponents().forEach((e=>e.data=this.dataValue))}beforePage(e){return Promise.all(this.getComponents().map((t=>t.beforePage(e))))}beforeSubmit(){return Promise.allSettled(this.getComponents().map((e=>e.beforeSubmit())))}calculateValue(e,t,n){return!!this.conditionallyVisible()&&this.getComponents().reduce(((i,r)=>r.calculateValue(e,t,n)||i),super.calculateValue(e,t,n))}isLastPage(){return this.pages.length-1===this.page}isValid(e,t){return this.getComponents().reduce(((n,i)=>i.isValid(e,t)&&n),super.isValid(e,t))}validationProcessor({scope:e,data:t,row:n,instance:i,component:r},a){var s;const{dirty:o}=a;this.root.hasExtraPages&&this.page!==this.root.page&&(i=(null===(s=this.childComponentsMap)||void 0===s?void 0:s.hasOwnProperty(r.path))?this.childComponentsMap[r.path]:this.getComponent(r.path)),i&&(i.component.path||(i.component.path=r.path),i.checkComponentValidity(t,o,n,a,e.errors),i.processOwnValidation&&(e.noRecurse=!0))}validateComponents(e=null,t=null,n={}){e=e||this.component.components,t=t||this.rootValue;const{async:i,dirty:r,process:a}=n,s=e=>this.validationProcessor(e,n),o=({instance:e,component:t,components:n})=>{e&&e.parent&&t===n[n.length-1]&&e.parent.componentModal&&e.parent.checkModal(e.parent.childErrors,r)},u={process:a||"unknown",components:e,instances:this.componentsMap,data:t,scope:{errors:[]},processors:[{process:s,processSync:s},{process:o,processSync:o}]};return i?(0,l.process)(u).then((e=>e.errors)):(0,l.processSync)(u).errors}validate(e=null,t={}){return e=e||this.rootValue,this.validateComponents(this.getComponents().map((e=>e.component)),e,t)}checkComponentValidity(e=null,t=!1,n=null,i={},r=[]){return this.childErrors=[],super.checkComponentValidity(e,t,n,i,r)}checkValidity(e=null,t=!1,n=null,i=!1,r=[]){return r.push(...this.validate(e,{dirty:t,silentCheck:i})),this.checkComponentValidity(e,t,n,{dirty:t,silentCheck:i},r)&&0===r.length}checkAsyncValidity(e=null,t=!1,n=null,i=!1){return this.ready.then((()=>this.validate(e,{dirty:t,silentCheck:i,async:!0}).then((r=>this.checkComponentValidity(e,t,n,{dirty:t,silentCheck:i,async:!0},r).then((e=>e&&0===r.length))))))}setPristine(e){super.setPristine(e),this.getComponents().forEach((t=>t.setPristine(e)))}get isPristine(){return this.pristine&&this.getComponents().every((e=>e.isPristine))}get isDirty(){return this.dirty&&this.getComponents().every((e=>e.isDirty))}detach(){this.components.forEach((e=>{e.detach()})),super.detach()}clear(){this.components.forEach((e=>{e.clear()})),super.clear()}destroy(e=!1){this.destroyComponents(e),super.destroy(e)}destroyComponents(e=!1){this.getComponents().slice().forEach((t=>this.removeComponent(t,this.components,e))),this.components=[]}get visibleErrors(){return this.getComponents().reduce(((e,t)=>e.concat(t.visibleErrors||[])),super.visibleErrors)}get errors(){const e=super.errors;return this.getComponents().reduce(((e,t)=>e.concat(t.errors||[])),e).filter((e=>"hidden"!==e.level))}getValue(){return this.data}resetValue(){super.resetValue(),this.getComponents().forEach((e=>e.resetValue())),this.setPristine(!0)}get dataReady(){return Promise.all(this.getComponents().map((e=>e.dataReady)))}setNestedValue(e,t,n={}){return e._data=this.componentContext(e),"button"!==e.type&&("components"===e.type?e.tree&&e.hasValue(t)?e.setValue(r.default.get(t,e.key),n):e.setValue(t,n):t&&e.hasValue(t)?e.setValue(r.default.get(t,e.key),n):this.rootPristine&&!e.visible||!e.shouldAddDefaultValue?void 0:(n.noValidate=!n.dirty,n.resetValue=!0,e.setValue(e.defaultValue,n)))}setValue(e,t={}){return!!e&&this.getComponents().reduce(((n,i)=>this.setNestedValue(i,e,t,n)||n),!1)}get lazyLoad(){var e;return null!==(e=this.component.lazyLoad)&&void 0!==e&&e}}t.default=u},39277:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"unique",ignore:!0},{key:"validateOn",ignore:!0}]},39297:(e,t,n)=>{"use strict";var i=n(79504),r=n(48981),a=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return a(r(e),t)}},39344:(e,t,n)=>{var i=n(23805),r=Object.create,a=function(){function e(){}return function(t){if(!i(t))return{};if(r)return r(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},39433:(e,t,n)=>{"use strict";var i=n(22195),r=Object.defineProperty;e.exports=function(e,t){try{r(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},39477:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateMultipleInfo=t.validateMultipleSync=t.validateMultiple=t.shouldValidate=t.emptyValueIsArray=t.isEligible=void 0;const r=n(2543),a=n(54008),s=n(96690);t.isEligible=e=>{switch(e.type){case"hidden":case"address":return!!e.multiple;case"textarea":return!(!e.as||"json"!==e.as||"json"===e.as&&!e.multiple);case"select":return!1;default:return!0}},t.emptyValueIsArray=e=>{switch(e.type){case"datagrid":case"editgrid":case"tagpad":case"sketchpad":case"datatable":case"dynamicWizard":case"file":default:return!0;case"select":case"textfield":return!!e.multiple;case"tags":return"string"!==e.storeas}},t.shouldValidate=e=>{const{component:n}=e;return!!(0,t.isEligible)(n)},t.validateMultiple=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateMultipleSync)(e)})),t.validateMultipleSync=e=>{var n;const{component:i,value:o}=e;if(!(0,t.isEligible)(i))return null;const l=!!i.multiple,u=!!(null===(n=i.validate)||void 0===n?void 0:n.required),d=(0,s.getModelType)(i),c=-1!==["nestedArray","nestedDataArray"].indexOf(d)||(e=>"tags"===(null==e?void 0:e.type))(i)&&"array"===i.storeas,h=Array.isArray(o);if(l){if(h&&c)return 0===o.length&&u?new a.FieldError("array_nonempty",Object.assign(Object.assign({},e),{setting:!0})):null;if(h&&!c)return 0===o.length?u?new a.FieldError("array_nonempty",Object.assign(Object.assign({},e),{setting:!0})):null:Array.isArray(o[0])&&"any"!==d?new a.FieldError("nonarray",Object.assign(Object.assign({},e),{setting:!0})):null;{const t=new a.FieldError("array",Object.assign(Object.assign({},e),{setting:!0}));return(0,r.isNil)(o)?u?t:null:t}}return(0,t.emptyValueIsArray)(i)||c||!h?null:new a.FieldError("nonarray",Object.assign(Object.assign({},e),{setting:!1}))},t.validateMultipleInfo={name:"validateMultiple",process:t.validateMultiple,fullValue:!0,processSync:t.validateMultipleSync,shouldProcess:t.shouldValidate}},39493:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var i in Array.prototype.join,n+="'+(null==(t=e.t("errorListHotkey"))?"":t)+"\n "),n+"\n\n"}},39512:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},39519:(e,t,n)=>{"use strict";var i,r,a=n(22195),s=n(82839),o=a.process,l=a.Deno,u=o&&o.versions||l&&l.version,d=u&&u.v8;d&&(r=(i=d.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&s&&(!(i=s.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/))&&(r=+i[1]),e.exports=r},39646:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.NestedModel=void 0;const r=n(2543),a=n(28495);t.NestedModel=function(e={}){return e.schema||(e.schema={}),e.schema.components||(e.schema.components=[]),function(t){return class extends((0,a.Model)(e)(t)){init(){super.init(),this.components=[],this.createComponents(this.componentData())}componentData(){return this.data}createComponent(t,n,i){if(!e.factory)return console.log('Cannot create components. No "factory" provided.'),null;const r=e.factory.create(t,Object.assign({noInit:!0},n),i);return r.parent=this,r.root=this.root||this,r.init(),r}createComponents(e,t){const n=[];return(this.component.components||[]).forEach((i=>{const r=this.createComponent(i,this.options,e);r&&(this.components.push(r),n.push(r),t&&t(r))})),n}removeComponent(e){(this.components||[]).forEach(((t,n)=>{t===e&&(t.detach&&t.detach(),this.components.splice(n,1))}))}checkValidity(){return i(this,void 0,void 0,(function*(){return this.components.reduce(((e,t)=>e&&t.checkValidity()),this.checkComponentValidity())}))}get defaultValue(){return{}}get emptyValue(){return{}}get dataValue(){return this.data}eachComponent(e){(0,r.each)(this.components,((t,n)=>{if(!1===e(t,n))return!1}))}eachComponentValue(e,t){Object.keys(e).length&&this.eachComponent((n=>{t(n,(0,r.get)(e,n.component.key))}))}set dataValue(e){this.eachComponentValue(e,((e,t)=>e.dataValue=t))}setValue(e){var t=!1;return this.eachComponentValue(e,((e,n)=>{t=e.setValue(n)||t})),t}}}}},39664:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0},{key:"allowCalculateOverride",ignore:!0},{key:"defaultValue",ignore:!0}]},39801:(e,t,n)=>{"use strict";var i=n(99394);e.exports=function(e,t,n){e&&i((function(){e.apply(n||null,t||[])}))}},39991:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=n(34600),s=i(n(15811));class o extends s.default{static schema(...e){return s.default.schema({type:"selectboxes",label:"Select Boxes",key:"selectBoxes",inline:!1},...e)}static get builderInfo(){return{title:"Select Boxes",group:"basic",icon:"plus-square",weight:60,documentation:"/userguide/form-building/form-components#select-box",schema:o.schema()}}static get serverConditionSettings(){return o.conditionOperatorsSettings}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{valueComponent:e=>e.dataSrc&&"values"!==e.dataSrc?Object.assign(Object.assign({},e),{dataType:"string",type:"select"}):{type:"select",dataSrc:"custom",valueProperty:"value",dataType:"string",data:{custom:`values = ${e&&e.values?JSON.stringify(e.values):[]}`}}})}static savedValueTypes(e){return(0,a.getComponentSavedTypes)(e)||[a.componentValueTypes.object]}constructor(...e){super(...e)}init(){super.init(),this.component.inputType="checkbox"}get defaultSchema(){return o.schema()}get inputInfo(){const e=super.elementInfo();return e.attr.name+="[]",e.attr.type="checkbox",e.attr.class="form-check-input",e}get emptyValue(){return this.component.values.reduce(((e,t)=>(t.value&&(e[t.value]=!1),e)),{})}get defaultValue(){let e=this.emptyValue;return r.default.isEmpty(this.component.defaultValue)||(e=this.component.defaultValue),this.component.customDefaultValue&&!this.options.preview&&(e=this.evaluate(this.component.customDefaultValue,{value:""},"value")),e}isEmpty(e=this.dataValue){let t=!0;for(const n in e)if(e.hasOwnProperty(n)&&e[n]){t=!1;break}return t}getValue(){if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;const e={};return r.default.each(this.refs.input,(t=>{e[t.value]=!!t.checked})),e}normalizeValue(e){"object"!=typeof(e=e||{})&&(e="string"==typeof e?{[e]:!0}:{}),Array.isArray(e)&&r.default.each(e,(t=>{e[t]=!0}));const t=r.default.keys(r.default.pickBy(e,(e=>e)));if(this.isSelectURL&&this.templateData&&r.default.every(t,(e=>this.templateData[e]))){const e=this.root.submission;e.metadata.selectData||(e.metadata.selectData={});const n=[];t.forEach((e=>n.push(this.templateData[e]))),r.default.set(e.metadata.selectData,this.path,n)}if("values"===this.component.dataSrc)for(const t in e)this.component.values.find((e=>e.value===t))||delete e[t];return e}setValue(e,t={}){const n=this.updateValue(e,t);return e=this.dataValue,this.isHtmlRenderMode()?n&&this.redraw():r.default.each(this.refs.input,(t=>{r.default.isUndefined(e[t.value])&&(e[t.value]=!1),t.checked=!!e[t.value]})),n}getValueAsString(e,t={}){var n,i;if(!e)return"";if(this.isSelectURL){if(t.modalPreview||this.options.readOnly||this.inDataTable){const t=r.default.keys(r.default.pickBy(e,(e=>e)));if((null===(n=this.selectData)||void 0===n?void 0:n.length)===t.length)return this.selectData.map((e=>this.itemTemplate(e))).join(", ");if(null===(i=this.loadedOptions)||void 0===i?void 0:i.length)return this.loadedOptions.filter((t=>e[t.value])).map((e=>e.label)).join(", ")}return(0,r.default)(e).pickBy((e=>e)).keys().join(", ")}return(0,r.default)(this.component.values||[]).filter((t=>e[t.value])).map("label").join(", ")}setSelectedClasses(){if(this.refs.wrapper){const e=this.dataValue,t=Object.keys(e);this.refs.wrapper.forEach(((n,i)=>{let a=t[i];const s=this.refs.input[i];(null==s?void 0:s.value.toString())!==a&&(a=t.find((e=>(null==s?void 0:s.value.toString())===e)));const o=e[a];o&&a||this.isSelectURL&&!this.shouldLoad&&this.listData&&-1!==r.default.findIndex(this.selectData,this.listData[i])?(this.addClass(n,this.optionSelectedClass),s.setAttribute("checked","true")):!o&&a&&(this.removeClass(n,this.optionSelectedClass),s.removeAttribute("checked"))}))}}setInputsDisabled(e,t){this.refs.input&&this.refs.input.forEach((n=>{(t&&!n.checked||!t)&&(n.disabled=e)}))}checkComponentValidity(e,t,n,i,r=[]){const a=this.component.validate.minSelectedCount,s=this.component.validate.maxSelectedCount;if(!this.shouldSkipValidation(e,n,i)){const n=this.isValid(e,t);if(s||a){const e=Object.keys(this.validationValue).reduce(((e,t)=>(this.validationValue[t]&&e++,e)),0);if(s&&e>=s?this.setInputsDisabled(!0,!0):s&&!this.shouldDisabled&&this.setInputsDisabled(!1),!n&&s&&e>s){const e=this.t(this.component.maxSelectedCountMessage||"You may only select up to {{maxCount}} items",{maxCount:s});return this.errors.push({message:e}),this.setCustomValidity(e,t),!1}if(!n&&a&&e{this.root&&(0,a.getComponent)(this.root.components,"valueProperty").setCustomValidity(e,t)}),0),super.setCustomValidity(r.default.filter(e,(e=>"invalidValueProperty"!==e.ruleName)),t,n)):super.setCustomValidity(e,t,n)}validateValueAvailability(e,t){if(!(0,a.boolValue)(e)||!t)return!0;const n=(("values"===this.component.dataSrc?this.component.values:this.loadedOptions)||[]).map((({value:e})=>e));return Object.keys(t).every((e=>n.includes(e)))}}t.default=o},40250:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0}]},40346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},40470:(e,t,n)=>{"use strict";var i=n(7517);n(62953),e.exports=i},40503:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),a=i(n(77610)),s=i(n(4182)),o=i(n(70202)),l=i(n(66543)),u=i(n(84113));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:o.default},{label:"Date",key:"date",weight:1,components:s.default},{label:"Time",key:"time",weight:2,components:l.default},{key:"data",components:a.default},{key:"validation",components:u.default}],...e)}},40510:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"case",ignore:!0},{type:"select",input:!0,weight:50,key:"currency",label:"Currency",tooltip:"The currency to use in currency formatting. Possible values are (ISO-4217) currency codes.",defaultValue:"USD",dataSrc:"values",data:{values:[{label:"US Dollar (USD)",value:"USD"},{label:"Euro (EUR)",value:"EUR"},{label:"Pound Sterling (GBP)",value:"GBP"},{label:"Australian Dollar (AUD)",value:"AUD"},{label:"Afghani (AFN)",value:"AFN"},{label:"Lek (ALL)",value:"ALL"},{label:"Algerian Dinar (DZD)",value:"DZD"},{label:"Kwanza (AOA)",value:"AOA"},{label:"East Caribbean Dollar (XCD)",value:"XCD"},{label:"Argentine Peso (ARS)",value:"ARS"},{label:"Armenian Dram (AMD)",value:"AMD"},{label:"Aruban Florin (AWG)",value:"AWG"},{label:"Azerbaijan Manat (AZN)",value:"AZN"},{label:"Bahamian Dollar (BSD)",value:"BSD"},{label:"Bahraini Dinar (BHD)",value:"BHD"},{label:"Taka (BDT)",value:"BDT"},{label:"Barbados Dollar (BBD)",value:"BBD"},{label:"Belarusian Ruble (BYN)",value:"BYN"},{label:"Belize Dollar (BZD)",value:"BZD"},{label:"CFA Franc BCEAO (XOF)",value:"XOF"},{label:"Bermudian Dollar (BMD)",value:"BMD"},{label:"Indian Rupee (INR)",value:"INR"},{label:"Ngultrum (BTN)",value:"BTN"},{label:"Boliviano (BOB)",value:"BOB"},{label:"Mvdol (BOV)",value:"BOV"},{label:"Convertible Mark (BAM)",value:"BAM"},{label:"Pula (BWP)",value:"BWP"},{label:"Norwegian Krone (NOK)",value:"NOK"},{label:"Brazilian Real (BRL)",value:"BRL"},{label:"Brunei Dollar (BND)",value:"BND"},{label:"Bulgarian Lev (BGN)",value:"BGN"},{label:"Burundi Franc (BIF)",value:"BIF"},{label:"Cabo Verde Escudo (CVE)",value:"CVE"},{label:"Riel (KHR)",value:"KHR"},{label:"CFA Franc BEAC (XAF)",value:"XAF"},{label:"Canadian Dollar (CAD)",value:"CAD"},{label:"Cayman Islands Dollar (KYD)",value:"KYD"},{label:"Chilean Peso (CLP)",value:"CLP"},{label:"Unidad de Fomento (CLF)",value:"CLF"},{label:"Yuan Renminbi (CNY)",value:"CNY"},{label:"Colombian Peso (COP)",value:"COP"},{label:"Unidad de Valor Real (COU)",value:"COU"},{label:"Comorian Franc (KMF)",value:"KMF"},{label:"Congolese Franc (CDF)",value:"CDF"},{label:"New Zealand Dollar (NZD)",value:"NZD"},{label:"Costa Rican Colon (CRC)",value:"CRC"},{label:"Kuna (HRK)",value:"HRK"},{label:"Cuban Peso (CUP)",value:"CUP"},{label:"Peso Convertible (CUC)",value:"CUC"},{label:"Netherlands Antillean Guilder (ANG)",value:"ANG"},{label:"Czech Koruna (CZK)",value:"CZK"},{label:"Danish Krone (DKK)",value:"DKK"},{label:"Djibouti Franc (DJF)",value:"DJF"},{label:"Dominican Peso (DOP)",value:"DOP"},{label:"Egyptian Pound (EGP)",value:"EGP"},{label:"El Salvador Colon (SVC)",value:"SVC"},{label:"Nakfa (ERN)",value:"ERN"},{label:"Ethiopian Birr (ETB)",value:"ETB"},{label:"Falkland Islands Pound (FKP)",value:"FKP"},{label:"Fiji Dollar (FJD)",value:"FJD"},{label:"CFP Franc (XPF)",value:"XPF"},{label:"Dalasi (GMD)",value:"GMD"},{label:"Lari (GEL)",value:"GEL"},{label:"Ghana Cedi (GHS)",value:"GHS"},{label:"Gibraltar Pound (GIP)",value:"GIP"},{label:"Quetzal (GTQ)",value:"GTQ"},{label:"Guinean Franc (GNF)",value:"GNF"},{label:"Guyana Dollar (GYD)",value:"GYD"},{label:"Gourde (HTG)",value:"HTG"},{label:"Lempira (HNL)",value:"HNL"},{label:"Hong Kong Dollar (HKD)",value:"HKD"},{label:"Forint (HUF)",value:"HUF"},{label:"Iceland Krona (ISK)",value:"ISK"},{label:"Indian Rupee (INR)",value:"INR"},{label:"Rupiah (IDR)",value:"IDR"},{label:"SDR (Special Drawing Right) (XDR)",value:"XDR"},{label:"Iranian Rial (IRR)",value:"IRR"},{label:"Iraqi Dinar (IQD)",value:"IQD"},{label:"New Israeli Sheqel (ILS)",value:"ILS"},{label:"Jamaican Dollar (JMD)",value:"JMD"},{label:"Yen (JPY)",value:"JPY"},{label:"Jordanian Dinar (JOD)",value:"JOD"},{label:"Tenge (KZT)",value:"KZT"},{label:"Kenyan Shilling (KES)",value:"KES"},{label:"North Korean Won (KPW)",value:"KPW"},{label:"Won (KRW)",value:"KRW"},{label:"Kuwaiti Dinar (KWD)",value:"KWD"},{label:"Som (KGS)",value:"KGS"},{label:"Lao Kip (LAK)",value:"LAK"},{label:"Lebanese Pound (LBP)",value:"LBP"},{label:"Loti (LSL)",value:"LSL"},{label:"Rand (ZAR)",value:"ZAR"},{label:"Liberian Dollar (LRD)",value:"LRD"},{label:"Libyan Dinar (LYD)",value:"LYD"},{label:"Swiss Franc (CHF)",value:"CHF"},{label:"Pataca (MOP)",value:"MOP"},{label:"Denar (MKD)",value:"MKD"},{label:"Malagasy Ariary (MGA)",value:"MGA"},{label:"Malawi Kwacha (MWK)",value:"MWK"},{label:"Malaysian Ringgit (MYR)",value:"MYR"},{label:"Rufiyaa (MVR)",value:"MVR"},{label:"Ouguiya (MRU)",value:"MRU"},{label:"Mauritius Rupee (MUR)",value:"MUR"},{label:"ADB Unit of Account (XUA)",value:"XUA"},{label:"Mexican Peso (MXN)",value:"MXN"},{label:"Mexican Unidad de Inversion (UDI) (MXV)",value:"MXV"},{label:"Moldovan Leu (MDL)",value:"MDL"},{label:"Tugrik (MNT)",value:"MNT"},{label:"Moroccan Dirham (MAD)",value:"MAD"},{label:"Mozambique Metical (MZN)",value:"MZN"},{label:"Kyat (MMK)",value:"MMK"},{label:"Namibia Dollar (NAD)",value:"NAD"},{label:"Nepalese Rupee (NPR)",value:"NPR"},{label:"Cordoba Oro (NIO)",value:"NIO"},{label:"Naira (NGN)",value:"NGN"},{label:"Rial Omani (OMR)",value:"OMR"},{label:"Pakistan Rupee (PKR)",value:"PKR"},{label:"Balboa (PAB)",value:"PAB"},{label:"Kina (PGK)",value:"PGK"},{label:"Guarani (PYG)",value:"PYG"},{label:"Sol (PEN)",value:"PEN"},{label:"Philippine Peso (PHP)",value:"PHP"},{label:"Zloty (PLN)",value:"PLN"},{label:"Qatari Rial (QAR)",value:"QAR"},{label:"Romanian Leu (RON)",value:"RON"},{label:"Russian Ruble (RUB)",value:"RUB"},{label:"Rwanda Franc (RWF)",value:"RWF"},{label:"Saint Helena Pound (SHP)",value:"SHP"},{label:"Tala (WST)",value:"WST"},{label:"Dobra (STN)",value:"STN"},{label:"Saudi Riyal (SAR)",value:"SAR"},{label:"Serbian Dinar (RSD)",value:"RSD"},{label:"Seychelles Rupee (SCR)",value:"SCR"},{label:"Leone (SLL)",value:"SLL"},{label:"Singapore Dollar (SGD)",value:"SGD"},{label:"Sucre (XSU)",value:"XSU"},{label:"Solomon Islands Dollar (SBD)",value:"SBD"},{label:"Somali Shilling (SOS)",value:"SOS"},{label:"South Sudanese Pound (SSP)",value:"SSP"},{label:"Sri Lanka Rupee (LKR)",value:"LKR"},{label:"Sudanese Pound (SDG)",value:"SDG"},{label:"Surinam Dollar (SRD)",value:"SRD"},{label:"Lilangeni (SZL)",value:"SZL"},{label:"Swedish Krona (SEK)",value:"SEK"},{label:"WIR Euro (CHE)",value:"CHE"},{label:"WIR Franc (CHW)",value:"CHW"},{label:"Syrian Pound (SYP)",value:"SYP"},{label:"New Taiwan Dollar (TWD)",value:"TWD"},{label:"Somoni (TJS)",value:"TJS"},{label:"Tanzanian Shilling (TZS)",value:"TZS"},{label:"Baht (THB)",value:"THB"},{label:"Pa’anga (TOP)",value:"TOP"},{label:"Trinidad and Tobago Dollar (TTD)",value:"TTD"},{label:"Tunisian Dinar (TND)",value:"TND"},{label:"Turkish Lira (TRY)",value:"TRY"},{label:"Turkmenistan New Manat (TMT)",value:"TMT"},{label:"Uganda Shilling (UGX)",value:"UGX"},{label:"Hryvnia (UAH)",value:"UAH"},{label:"UAE Dirham (AED)",value:"AED"},{label:"US Dollar (Next day) (USN)",value:"USN"},{label:"Peso Uruguayo (UYU)",value:"UYU"},{label:"Uruguay Peso en Unidades Indexadas (UYI)",value:"UYI"},{label:"Unidad Previsional (UYW)",value:"UYW"},{label:"Uzbekistan Sum (UZS)",value:"UZS"},{label:"Vatu (VUV)",value:"VUV"},{label:"Bolívar Soberano (VES)",value:"VES"},{label:"Dong (VND)",value:"VND"},{label:"Yemeni Rial (YER)",value:"YER"},{label:"Zambian Kwacha (ZMW)",value:"ZMW"},{label:"Zimbabwe Dollar (ZWL),",value:"ZWL"}]}}]},40616:(e,t,n)=>{"use strict";var i=n(79039);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},40748:function(e,t,n){!function(e){"use strict";e.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(95093))},40770:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"select",input:!0,weight:20,tooltip:"Select the type of widget you'd like to use.",key:"widget",defaultValue:"choicesjs",label:"Widget Type",dataSrc:"values",data:{values:[{label:"ChoicesJS",value:"choicesjs"},{label:"HTML 5",value:"html5"}]}},{weight:1230,type:"checkbox",label:"Unique Options",tooltip:"Display only unique dropdown options.",key:"uniqueOptions",input:!0}]},41011:function(e,t,n){!function(e){"use strict";e.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?":e":1===t||2===t?":a":":e")},week:{dow:1,doy:4}})}(n(95093))},41090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'\n \n \n \n \n \n \n \n \n
\n '+(null==(t=e.element)?"":t)+'\n
\n \n
\n"}},41449:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(4769);t.default={form:i.default}},41478:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateRegexPatternInfo=t.validateRegexPatternSync=t.validateRegexPattern=t.shouldValidate=void 0;const r=n(54008),a=e=>{var t;return e&&(null===(t=e.validate)||void 0===t?void 0:t.hasOwnProperty("pattern"))};t.shouldValidate=e=>{var t;const{component:n,value:i}=e;return!(!a(n)||!i)&&!(!(null===(t=n.validate)||void 0===t?void 0:t.pattern)||!i||"string"!=typeof i)},t.validateRegexPattern=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateRegexPatternSync)(e)})),t.validateRegexPatternSync=e=>{var n,i;const{component:s,value:o}=e;if(!(0,t.shouldValidate)(e)||!a(s))return null;const l=null===(n=s.validate)||void 0===n?void 0:n.pattern,u=new RegExp(`^${l}$`);return"string"==typeof o&&u.test(o)?null:new r.FieldError((null===(i=s.validate)||void 0===i?void 0:i.patternMessage)||"pattern",Object.assign(Object.assign({},e),{regex:l,pattern:l,setting:l}),"pattern")},t.validateRegexPatternInfo={name:"validateRegexPattern",process:t.validateRegexPattern,processSync:t.validateRegexPatternSync,shouldProcess:t.shouldValidate}},41488:function(e,t,n){!function(e){"use strict";var t=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(e){return function(i,r,a,s){var o=t(i),l=n[e][t(i)];return 2===o&&(l=l[r?0:1]),l.replace(/%d/i,i)}},r=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-dz",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n(95093))},41546:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543));t.default=[{wieght:200,type:"select",datasrc:"values",key:"fields.day.type",label:"Type",data:{values:[{label:"Number",value:"number"},{label:"Select",value:"select"}]}},{weight:210,type:"textfield",input:!0,key:"fields.day.placeholder",label:"Placeholder",placeholder:"Day Placeholder",tooltip:"The placeholder text that will appear when Day field is empty."},{weight:215,type:"checkbox",label:"Hidden",tooltip:"Hide the Day part of the component.",key:"fields.day.hide",onChange:({data:e})=>{if(e.defaultValue){const t=e.defaultValue.split("/");if(!e.fields.day.hide&&3!==t.length){const n=["00"];e.fields.month.hide||(e.dayFirst?n.push(t[0]):n.unshift(t[0])),e.fields.year.hide||n.push(t[1]),r.default.set(e,"defaultValue",n.join("/"))}}},input:!0},{weight:214,type:"checkbox",label:"Day First",tooltip:"Display the Day field before the Month field.",key:"dayFirst",input:!0}]},41552:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(92565));class a extends r.default{static get operatorKey(){return"isNotEqual"}static get displayedName(){return"Is Not Equal To"}execute(e){return!super.execute(e)}}t.default=a},41660:function(e){"undefined"!=typeof self&&self,e.exports=function(){"use strict";var e={3976:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={_maxTestPos:500,placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:function(){},onincomplete:function(){},oncleared:function(){},repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,insertModeVisual:!0,clearIncomplete:!1,alias:null,onKeyDown:function(){},onBeforeMask:null,onBeforePaste:function(e,t){return"function"==typeof t.onBeforeMask?t.onBeforeMask.call(this,e,t):e},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:function(){},skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:void 0,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"text",importDataAttributes:!0,shiftPositions:!0,usePrototypeDefinitions:!0,validationEventTimeOut:3e3,substitutes:{}}},7392:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default={9:{validator:"[0-90-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-90-9A-Za-zА-яЁёÀ-ÿµ]"}}},253:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if(void 0===n)return e.__data?e.__data[t]:null;e.__data=e.__data||{},e.__data[t]=n}},3776:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0,t.off=function(e,t){var n,i;return d(this[0])&&e&&(n=this[0].eventRegistry,i=this[0],e.split(" ").forEach((function(e){var r=s(e.split("."),2);(function(e,i){var r,a,s=[];if(e.length>0)if(void 0===t)for(r=0,a=n[e][i].length;r0?i:"global",handler:n[e][i][r]});else s.push({ev:e,namespace:i&&i.length>0?i:"global",handler:t});else if(i.length>0)for(var o in n)for(var l in n[o])if(l===i)if(void 0===t)for(r=0,a=n[o][l].length;re.length)&&(t=e.length);for(var n=0,i=new Array(t);n0||a.indexOf("Trident/")>0,t.mobile=r.default.navigator&&r.default.navigator.userAgentData&&r.default.navigator.userAgentData.mobile||r.default.navigator&&r.default.navigator.maxTouchPoints||"ontouchstart"in r.default,t.iphone=/iphone/i.test(a)},7184:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(n,"\\$1")};var n=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"].join("|\\")+")","gim")},6030:function(e,t,n){function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.EventHandlers=void 0;var r,a=n(9845),s=(r=n(9380))&&r.__esModule?r:{default:r},o=n(7760),l=n(2839),u=n(8711),d=n(7215),c=n(4713);function h(){h=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},o=s.iterator||"@@iterator",l=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var r=t&&t.prototype instanceof b?t:b,s=Object.create(r.prototype),o=new P(i||[]);return a(s,"_invoke",{value:T(e,n,o)}),s}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var f="suspendedStart",m="suspendedYield",g="executing",v="completed",y={};function b(){}function _(){}function w(){}var M={};d(M,o,(function(){return this}));var k=Object.getPrototypeOf,S=k&&k(k(O([])));S&&S!==n&&r.call(S,o)&&(M=S);var x=w.prototype=b.prototype=Object.create(M);function L(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function n(a,s,o,l){var u=p(e[a],e,s);if("throw"!==u.type){var d=u.arg,c=d.value;return c&&"object"==i(c)&&r.call(c,"__await")?t.resolve(c.__await).then((function(e){n("next",e,o,l)}),(function(e){n("throw",e,o,l)})):t.resolve(c).then((function(e){d.value=e,o(d)}),(function(e){return n("throw",e,o,l)}))}l(u.arg)}var s;a(this,"_invoke",{value:function(e,i){function r(){return new t((function(t,r){n(e,i,t,r)}))}return s=s?s.then(r,r):r()}})}function T(t,n,i){var r=f;return function(a,s){if(r===g)throw new Error("Generator is already running");if(r===v){if("throw"===a)throw s;return{value:e,done:!0}}for(i.method=a,i.arg=s;;){var o=i.delegate;if(o){var l=E(o,i);if(l){if(l===y)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===f)throw r=v,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=g;var u=p(t,n,i);if("normal"===u.type){if(r=i.done?v:m,u.arg===y)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=v,i.method="throw",i.arg=u.arg)}}}function E(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),y;var a=p(r,t.iterator,n.arg);if("throw"===a.type)return n.method="throw",n.arg=a.arg,n.delegate=null,y;var s=a.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function O(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var a=-1,s=function n(){for(;++a=0;--a){var s=this.tryEntries[a],o=s.completion;if("root"===s.tryLoc)return i("end");if(s.tryLoc<=this.prev){var l=r.call(s,"catchLoc"),u=r.call(s,"finallyLoc");if(l&&u){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;D(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:O(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),y}},t}function p(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=0&&b.end>0&&(e.preventDefault(),u.caret.call(s,m,b.begin,b.end))):(b.begin=u.seekNext.call(s,b.begin,!0),b.end=u.seekNext.call(s,b.begin,!0),b.end1&&!("textarea"===m.tagName.toLowerCase()&&v==l.keys.Enter),y.keypressEvent.call(this,e,t,n,i,r)},keypressEvent:function(e,t,n,i,r){var a=this.inputmask||this,s=a.opts,c=a.dependencyLib,h=a.maskset,p=a.el,f=c(p),m=e.key;if(!0===t||e.ctrlKey&&e.altKey&&!a.ignorable||!(e.ctrlKey||e.metaKey||a.ignorable)){if(m){var g,v=t?{begin:r,end:r}:u.caret.call(a,p);t||(m=s.substitutes[m]||m),h.writeOutBuffer=!0;var y=d.isValid.call(a,v,m,i,void 0,void 0,void 0,t);if(!1!==y&&(u.resetMaskSet.call(a,!0),g=void 0!==y.caret?y.caret:u.seekNext.call(a,y.pos.begin?y.pos.begin:y.pos),h.p=g),g=s.numericInput&&void 0===y.caret?u.seekPrevious.call(a,g):g,!1!==n&&(setTimeout((function(){s.onKeyValidation.call(p,m,y)}),0),h.writeOutBuffer&&!1!==y)){var b=u.getBuffer.call(a);(0,o.writeBuffer)(p,b,g,e,!0!==t)}if(e.preventDefault(),t)return!1!==y&&(y.forwardPosition=g),y}}else m===l.keys.Enter&&a.undoValue!==a._valueGet(!0)&&(a.undoValue=a._valueGet(!0),setTimeout((function(){f.trigger("change")}),0))},pasteEvent:(g=h().mark((function e(t){var n,i,r,a,l,d;return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=function(e,n,i,r,s){var l=u.caret.call(e,n,void 0,void 0,!0),d=i.substr(0,l.begin),c=i.substr(l.end,i.length);if(d==(e.isRTL?u.getBufferTemplate.call(e).slice().reverse():u.getBufferTemplate.call(e)).slice(0,l.begin).join("")&&(d=""),c==(e.isRTL?u.getBufferTemplate.call(e).slice().reverse():u.getBufferTemplate.call(e)).slice(l.end).join("")&&(c=""),r=d+r+c,e.isRTL&&!0!==a.numericInput){r=r.split("");var h,f=p(u.getBufferTemplate.call(e));try{for(f.s();!(h=f.n()).done;){var m=h.value;r[0]===m&&r.shift()}}catch(e){f.e(e)}finally{f.f()}r=r.reverse().join("")}var g=r;if("function"==typeof s){if(!1===(g=s.call(e,g,a)))return!1;g||(g=i)}(0,o.checkVal)(n,!0,!1,g.toString().split(""),t)},i=this,r=this.inputmask,a=r.opts,l=r._valueGet(!0),r.skipInputEvent=!0,t.clipboardData&&t.clipboardData.getData?d=t.clipboardData.getData("text/plain"):s.default.clipboardData&&s.default.clipboardData.getData&&(d=s.default.clipboardData.getData("Text")),n(r,i,l,d,a.onBeforePaste),t.preventDefault();case 7:case"end":return e.stop()}}),e,this)})),v=function(){var e=this,t=arguments;return new Promise((function(n,i){var r=g.apply(e,t);function a(e){m(r,n,i,a,s,"next",e)}function s(e){m(r,n,i,a,s,"throw",e)}a(void 0)}))},function(e){return v.apply(this,arguments)}),inputFallBackEvent:function(e){var t,n=this.inputmask,i=n.opts,r=n.dependencyLib,s=this,d=s.inputmask._valueGet(!0),h=(n.isRTL?u.getBuffer.call(n).slice().reverse():u.getBuffer.call(n)).join(""),p=u.caret.call(n,s,void 0,void 0,!0);if(h!==d){if(t=function(e,t,r){for(var a,s,o,l=e.substr(0,r.begin).split(""),d=e.substr(r.begin).split(""),h=t.substr(0,r.begin).split(""),p=t.substr(r.begin).split(""),f=l.length>=h.length?l.length:h.length,m=d.length>=p.length?d.length:p.length,g="",v=[],y="~";l.length0)&&(t.undoValue=s,r.trigger("change"))}},mouseenterEvent:function(){var e=this.inputmask,t=e.opts.showMaskOnHover,n=this;if(e.mouseEnter=!0,(n.inputmask.shadowRoot||n.ownerDocument).activeElement!==n){var i=(e.isRTL?u.getBufferTemplate.call(e).slice().reverse():u.getBufferTemplate.call(e)).join("");t&&(0,o.HandleNativePlaceholder)(n,i)}},submitEvent:function(){var e=this.inputmask,t=e.opts;e.undoValue!==e._valueGet(!0)&&e.$el.trigger("change"),-1===u.getLastValidPosition.call(e)&&e._valueGet&&e._valueGet()===u.getBufferTemplate.call(e).join("")&&e._valueSet(""),t.clearIncomplete&&!1===d.isComplete.call(e,u.getBuffer.call(e))&&e._valueSet(""),t.removeMaskOnSubmit&&(e._valueSet(e.unmaskedvalue(),!0),setTimeout((function(){(0,o.writeBuffer)(e.el,u.getBuffer.call(e))}),0))},resetEvent:function(){var e=this.inputmask;e.refreshValue=!0,setTimeout((function(){(0,o.applyInputValue)(e.el,e._valueGet(!0))}),0)}}},9716:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.EventRuler=void 0;var i,r=n(7760),a=(i=n(2394))&&i.__esModule?i:{default:i},s=n(2839),o=n(8711);t.EventRuler={on:function(e,t,n){var i=e.inputmask.dependencyLib,l=function(t){t.originalEvent&&(t=t.originalEvent||t,arguments[0]=t);var l,u=this,d=u.inputmask,c=d?d.opts:void 0;if(void 0===d&&"FORM"!==this.nodeName){var h=i.data(u,"_inputmask_opts");i(u).off(),h&&new a.default(h).mask(u)}else{if(["submit","reset","setvalue"].includes(t.type)||"FORM"===this.nodeName||!(u.disabled||u.readOnly&&!("keydown"===t.type&&t.ctrlKey&&t.key===s.keys.c||!1===c.tabThrough&&t.key===s.keys.Tab))){switch(t.type){case"input":if(!0===d.skipInputEvent)return d.skipInputEvent=!1,t.preventDefault();break;case"click":case"focus":return d.validationEvent?(d.validationEvent=!1,e.blur(),(0,r.HandleNativePlaceholder)(e,(d.isRTL?o.getBufferTemplate.call(d).slice().reverse():o.getBufferTemplate.call(d)).join("")),setTimeout((function(){e.focus()}),c.validationEventTimeOut),!1):(l=arguments,void setTimeout((function(){e.inputmask&&n.apply(u,l)}),0))}var p=n.apply(u,arguments);return!1===p&&(t.preventDefault(),t.stopPropagation()),p}t.preventDefault()}};["submit","reset"].includes(t)?(l=l.bind(e),null!==e.form&&i(e.form).on(t,l)):i(e).on(t,l),e.inputmask.events[t]=e.inputmask.events[t]||[],e.inputmask.events[t].push(l)},off:function(e,t){if(e.inputmask&&e.inputmask.events){var n=e.inputmask.dependencyLib,i=e.inputmask.events;for(var r in t&&((i=[])[t]=e.inputmask.events[t]),i){for(var a=i[r];a.length>0;){var s=a.pop();["submit","reset"].includes(r)?null!==e.form&&n(e.form).off(r,s):n(e).off(r,s)}delete e.inputmask.events[r]}}}}},219:function(e,t,n){var i=c(n(7184)),r=c(n(2394)),a=n(2839),s=n(8711),o=n(4713);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n0&&t--,Date.prototype.setMonth.call(this,t)},"month",function(){return Date.prototype.getMonth.call(this)+1}],mm:["0[1-9]|1[012]",function(e){var t=e?parseInt(e):0;return t>0&&t--,Date.prototype.setMonth.call(this,t)},"month",function(){return x(Date.prototype.getMonth.call(this)+1,2)}],mmm:[m.monthNames.slice(0,12).join("|"),function(e){var t=m.monthNames.slice(0,12).findIndex((function(t){return e.toLowerCase()===t.toLowerCase()}));return-1!==t&&Date.prototype.setMonth.call(this,t)},"month",function(){return m.monthNames.slice(0,12)[Date.prototype.getMonth.call(this)]}],mmmm:[m.monthNames.slice(12,24).join("|"),function(e){var t=m.monthNames.slice(12,24).findIndex((function(t){return e.toLowerCase()===t.toLowerCase()}));return-1!==t&&Date.prototype.setMonth.call(this,t)},"month",function(){return m.monthNames.slice(12,24)[Date.prototype.getMonth.call(this)]}],yy:["[0-9]{2}",function(e){var t=(new Date).getFullYear().toString().slice(0,2);Date.prototype.setFullYear.call(this,"".concat(t).concat(e))},"year",function(){return x(Date.prototype.getFullYear.call(this),2)},2],yyyy:["[0-9]{4}",Date.prototype.setFullYear,"year",function(){return x(Date.prototype.getFullYear.call(this),4)},4],h:["[1-9]|1[0-2]",Date.prototype.setHours,"hours",Date.prototype.getHours],hh:["0[1-9]|1[0-2]",Date.prototype.setHours,"hours",function(){return x(Date.prototype.getHours.call(this),2)}],hx:[function(e){return"[0-9]{".concat(e,"}")},Date.prototype.setHours,"hours",function(e){return Date.prototype.getHours}],H:["1?[0-9]|2[0-3]",Date.prototype.setHours,"hours",Date.prototype.getHours],HH:["0[0-9]|1[0-9]|2[0-3]",Date.prototype.setHours,"hours",function(){return x(Date.prototype.getHours.call(this),2)}],Hx:[function(e){return"[0-9]{".concat(e,"}")},Date.prototype.setHours,"hours",function(e){return function(){return x(Date.prototype.getHours.call(this),e)}}],M:["[1-5]?[0-9]",Date.prototype.setMinutes,"minutes",Date.prototype.getMinutes],MM:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setMinutes,"minutes",function(){return x(Date.prototype.getMinutes.call(this),2)}],s:["[1-5]?[0-9]",Date.prototype.setSeconds,"seconds",Date.prototype.getSeconds],ss:["0[0-9]|1[0-9]|2[0-9]|3[0-9]|4[0-9]|5[0-9]",Date.prototype.setSeconds,"seconds",function(){return x(Date.prototype.getSeconds.call(this),2)}],l:["[0-9]{3}",Date.prototype.setMilliseconds,"milliseconds",function(){return x(Date.prototype.getMilliseconds.call(this),3)},3],L:["[0-9]{2}",Date.prototype.setMilliseconds,"milliseconds",function(){return x(Date.prototype.getMilliseconds.call(this),2)},2],t:["[ap]",b,"ampm",_,1],tt:["[ap]m",b,"ampm",_,2],T:["[AP]",b,"ampm",_,1],TT:["[AP]M",b,"ampm",_,2],Z:[".*",void 0,"Z",function(){var e=this.toString().match(/\((.+)\)/)[1];return e.includes(" ")&&(e=(e=e.replace("-"," ").toUpperCase()).split(" ").map((function(e){return function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,a,s,o=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=a.call(n)).done)&&(o.push(i.value),o.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n.return&&(s=n.return(),Object(s)!==s))return}finally{if(u)throw r}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(e,1)[0]})).join("")),e}],o:[""],S:[""]},y={isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};function b(e){var t=this.getHours();e.toLowerCase().includes("p")?this.setHours(t+12):e.toLowerCase().includes("a")&&t>=12&&this.setHours(t-12)}function _(){var e=this.getHours();return(e=e||12)>=12?"PM":"AM"}function w(e){var t=/\d+$/.exec(e[0]);if(t&&void 0!==t[0]){var n=v[e[0][0]+"x"].slice("");return n[0]=n[0](t[0]),n[3]=n[3](t[0]),n}if(v[e[0]])return v[e[0]]}function M(e){if(!e.tokenizer){var t=[],n=[];for(var i in v)if(/\.*x$/.test(i)){var r=i[0]+"\\d+";-1===n.indexOf(r)&&n.push(r)}else-1===t.indexOf(i[0])&&t.push(i[0]);e.tokenizer="("+(n.length>0?n.join("|")+"|":"")+t.join("+|")+")+?|.",e.tokenizer=new RegExp(e.tokenizer,"g")}return e.tokenizer}function k(e,t,n){if(!g)return!0;if(void 0===e.rawday||!isFinite(e.rawday)&&new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day||"29"==e.day&&(!isFinite(e.rawyear)||void 0===e.rawyear||""===e.rawyear)||new Date(e.date.getFullYear(),isFinite(e.rawmonth)?e.month:e.date.getMonth()+1,0).getDate()>=e.day)return t;if("29"==e.day){var i=T.call(this,t.pos,n,this.maskset);if(i.targetMatch&&"yyyy"===i.targetMatch[0]&&t.pos-i.targetMatchIndex==2)return t.remove=t.pos+1,t}else if(2==e.date.getMonth()&&"30"==e.day&&void 0!==t.c)return e.day="03",e.date.setDate(3),e.date.setMonth(1),t.insert=[{pos:t.pos,c:"0"},{pos:t.pos+1,c:t.c}],t.caret=s.seekNext.call(this,t.pos+1),t;return!1}function S(e,t,n,r){var a,s,o="",l=0,u={};for(M(n).lastIndex=0;a=M(n).exec(e);){if(void 0===t)if(s=w(a))o+="("+s[0]+")",n.placeholder&&""!==n.placeholder?(u[l]=n.placeholder[a.index%n.placeholder.length],u[n.placeholder[a.index%n.placeholder.length]]=a[0].charAt(0)):u[l]=a[0].charAt(0);else switch(a[0]){case"[":o+="(";break;case"]":o+=")?";break;default:o+=(0,i.default)(a[0]),u[l]=a[0].charAt(0)}else(s=w(a))?!0!==r&&s[3]?o+=s[3].call(t.date):s[2]?o+=t["raw"+s[2]]:o+=a[0]:o+=a[0];l++}return void 0===t&&(n.placeholder=u),o}function x(e,t,n){for(e=String(e),t=t||2;e.length=e+1){i=r,r=M(t).exec(t.inputFormat);break}}return{targetMatchIndex:l-u,nextMatch:r,targetMatch:i}}r.default.extendAliases({datetime:{mask:function(e){return e.numericInput=!1,v.S=m.ordinalSuffix.join("|"),e.inputFormat=y[e.inputFormat]||e.inputFormat,e.displayFormat=y[e.displayFormat]||e.displayFormat||e.inputFormat,e.outputFormat=y[e.outputFormat]||e.outputFormat||e.inputFormat,e.regex=S(e.inputFormat,void 0,e),e.min=L(e.min,e.inputFormat,e),e.max=L(e.max,e.inputFormat,e),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:null,outputFormat:null,min:null,max:null,skipOptionalPartCharacter:"",preValidation:function(e,t,n,i,r,a,s,o){if(o)return!0;if(isNaN(n)&&e[t]!==n){var l=T.call(this,t,r,a);if(l.nextMatch&&l.nextMatch[0]===n&&l.targetMatch[0].length>1){var u=w(l.targetMatch)[0];if(new RegExp(u).test("0"+e[t-1]))return e[t]=e[t-1],e[t-1]="0",{fuzzy:!0,buffer:e,refreshFromBuffer:{start:t-1,end:t+1},pos:t+1}}}return!0},postValidation:function(e,t,n,i,r,a,s,l){var u,d,c=this;if(s)return!0;if(!1===i&&(((u=T.call(c,t+1,r,a)).targetMatch&&u.targetMatchIndex===t&&u.targetMatch[0].length>1&&void 0!==v[u.targetMatch[0]]||(u=T.call(c,t+2,r,a)).targetMatch&&u.targetMatchIndex===t+1&&u.targetMatch[0].length>1&&void 0!==v[u.targetMatch[0]])&&(d=w(u.targetMatch)[0]),void 0!==d&&(void 0!==a.validPositions[t+1]&&new RegExp(d).test(n+"0")?(e[t]=n,e[t+1]="0",i={pos:t+2,caret:t}):new RegExp(d).test("0"+n)&&(e[t]="0",e[t+1]=n,i={pos:t+2})),!1===i))return i;if(i.fuzzy&&(e=i.buffer,t=i.pos),(u=T.call(c,t,r,a)).targetMatch&&u.targetMatch[0]&&void 0!==v[u.targetMatch[0]]){var h=w(u.targetMatch);d=h[0];var p=e.slice(u.targetMatchIndex,u.targetMatchIndex+u.targetMatch[0].length);if(!1===new RegExp(d).test(p.join(""))&&2===u.targetMatch[0].length&&a.validPositions[u.targetMatchIndex]&&a.validPositions[u.targetMatchIndex+1]&&(a.validPositions[u.targetMatchIndex+1].input="0"),"year"==h[2])for(var m=o.getMaskTemplate.call(c,!1,1,void 0,!0),g=t+1;g=o.getTime())&&(e.date.setFullYear(f),e.year=i,t.insert=[{pos:t.pos+1,c:s[0]},{pos:t.pos+2,c:s[1]}])}}return t}(b,y,r)),y=function(e,t,n,i){if(!t)return t;if(t&&n.min&&!isNaN(n.min.date.getTime())){var r;for(e.reset(),M(n).lastIndex=0;r=M(n).exec(n.inputFormat);){var a;if((a=w(r))&&a[3]){for(var s=a[1],o=e[a[2]],l=n.min[a[2]],u=n.max?n.max[a[2]]:l+1,d=[],c=!1,h=0;hl[h]):(h+r.index==0&&o[h]e.date.getTime()&&(d[h]=u[h]));s.call(e._date,d.join(""))}}t=n.min.date.getTime()<=e.date.getTime(),e.reInit()}return t&&n.max&&(isNaN(n.max.date.getTime())||(t=n.max.date.getTime()>=e.date.getTime())),t}(b,y=k.call(c,b,y,r),r,a)),void 0!==t&&y&&i.pos!==t?{buffer:S(r.inputFormat,b,r).split(""),refreshFromBuffer:{start:t,end:i.pos},pos:i.caret||i.pos}:y},onKeyDown:function(e,t,n,i){e.ctrlKey&&e.key===a.keys.ArrowRight&&(this.inputmask._valueSet(C(new Date,i)),h(this).trigger("setvalue"))},onUnMask:function(e,t,n){return t?S(n.outputFormat,L.call(this,e,n.inputFormat,n),n,!0):t},casing:function(e,t,n,i){if(0==t.nativeDef.indexOf("[ap]"))return e.toLowerCase();if(0==t.nativeDef.indexOf("[AP]"))return e.toUpperCase();var r=o.getTest.call(this,[n-1]);return 0==r.match.def.indexOf("[AP]")||0===n||r&&r.input===String.fromCharCode(a.keyCode.Space)||r&&r.match.def===String.fromCharCode(a.keyCode.Space)?e.toUpperCase():e.toLowerCase()},onBeforeMask:function(e,t){return"[object Date]"===Object.prototype.toString.call(e)&&(e=C(e,t)),e},insertMode:!1,insertModeVisual:!1,shiftPositions:!1,keepStatic:!1,inputmode:"numeric",prefillYear:!0}})},1313:function(e,t,n){var i,r=(i=n(2394))&&i.__esModule?i:{default:i};r.default.dependencyLib.extend(!0,r.default.prototype.i18n,{dayNames:["Mon","Tue","Wed","Thu","Fri","Sat","Sun","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],monthNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec","January","February","March","April","May","June","July","August","September","October","November","December"],ordinalSuffix:["st","nd","rd","th"]})},3851:function(e,t,n){var i,r=(i=n(2394))&&i.__esModule?i:{default:i},a=n(8711),s=n(4713);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n-1&&"."!==t.buffer[n-1]?(e=t.buffer[n-1]+e,e=n-2>-1&&"."!==t.buffer[n-2]?t.buffer[n-2]+e:"0"+e):e="00"+e,r.greedy&&parseInt(e)>255&&l.test("00"+e.charAt(2))){var a=[].concat(function(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(t.buffer.slice(0,n)),[".",e.charAt(2)]);if(a.join("").match(/\./g).length<4)return{refreshFromBuffer:!0,buffer:a,caret:n+2}}return l.test(e)}r.default.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)://.*",autoUnmask:!1,keepStatic:!1,tabThrough:!0},ip:{mask:"i{1,3}.j{1,3}.k{1,3}.l{1,3}",definitions:{i:{validator:u},j:{validator:u},k:{validator:u},l:{validator:u}},onUnMask:function(e,t,n){return e},inputmode:"decimal",substitutes:{",":"."}},email:{mask:function(e){var t=e.separator,n=e.quantifier,i="*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",r=i;if(t)for(var a=0;a0&&t>0&&(!n.digitsOptional||i)){var r=e.indexOf(n.radixPoint),a=!1;n.negationSymbol.back===e[e.length-1]&&(a=!0,e.length--),-1===r&&(e.push(n.radixPoint),r=e.length-1);for(var s=1;s<=t;s++)isFinite(e[r+s])||(e[r+s]="0")}return a&&e.push(n.negationSymbol.back),e}function c(e,t){var n=0;for(var i in"+"===e&&(n=s.seekNext.call(this,t.validPositions.length-1)),t.tests)if((i=parseInt(i))>=n)for(var r=0,a=t.tests[i].length;r1&&(e.placeholder=e.placeholder.charAt(0)),"radixFocus"===e.positionCaretOnClick&&""===e.placeholder&&(e.positionCaretOnClick="lvp");var t="0",n=e.radixPoint;!0===e.numericInput&&void 0===e.__financeInput?(t="1",e.positionCaretOnClick="radixFocus"===e.positionCaretOnClick?"lvp":e.positionCaretOnClick,e.digitsOptional=!1,isNaN(e.digits)&&(e.digits=2),e._radixDance=!1,n=","===e.radixPoint?"?":"!",""!==e.radixPoint&&void 0===e.definitions[n]&&(e.definitions[n]={},e.definitions[n].validator="["+e.radixPoint+"]",e.definitions[n].placeholder=e.radixPoint,e.definitions[n].static=!0,e.definitions[n].generated=!0)):(e.__financeInput=!1,e.numericInput=!0);var r,a="[+]";if(a+=u(e.prefix,e),""!==e.groupSeparator?(void 0===e.definitions[e.groupSeparator]&&(e.definitions[e.groupSeparator]={},e.definitions[e.groupSeparator].validator="["+e.groupSeparator+"]",e.definitions[e.groupSeparator].placeholder=e.groupSeparator,e.definitions[e.groupSeparator].static=!0,e.definitions[e.groupSeparator].generated=!0),a+=e._mask(e)):a+="9{+}",void 0!==e.digits&&0!==e.digits){var s=e.digits.toString().split(",");isFinite(s[0])&&s[1]&&isFinite(s[1])?a+=n+t+"{"+e.digits+"}":(isNaN(e.digits)||parseInt(e.digits)>0)&&(e.digitsOptional||e.jitMasking?(r=a+n+t+"{0,"+e.digits+"}",e.keepStatic=!0):a+=n+t+"{"+e.digits+"}")}else e.inputmode="numeric";return a+=u(e.suffix,e),a+="[-]",r&&(a=[r+u(e.suffix,e)+"[-]",a]),e.greedy=!1,function(e){void 0===e.parseMinMaxOptions&&(null!==e.min&&(e.min=e.min.toString().replace(new RegExp((0,i.default)(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.min=e.min.replace(e.radixPoint,".")),e.min=isFinite(e.min)?parseFloat(e.min):NaN,isNaN(e.min)&&(e.min=Number.MIN_VALUE)),null!==e.max&&(e.max=e.max.toString().replace(new RegExp((0,i.default)(e.groupSeparator),"g"),""),","===e.radixPoint&&(e.max=e.max.replace(e.radixPoint,".")),e.max=isFinite(e.max)?parseFloat(e.max):NaN,isNaN(e.max)&&(e.max=Number.MAX_VALUE)),e.parseMinMaxOptions="done")}(e),""!==e.radixPoint&&e.substituteRadixPoint&&(e.substitutes["."==e.radixPoint?",":"."]=e.radixPoint),a},_mask:function(e){return"("+e.groupSeparator+"999){+|1}"},digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",_radixDance:!0,groupSeparator:"",allowMinus:!0,negationSymbol:{front:"-",back:""},prefix:"",suffix:"",min:null,max:null,SetMaxOnOverflow:!1,step:1,inputType:"text",unmaskAsNumber:!1,roundingFN:Math.round,inputmode:"decimal",shortcuts:{k:"1000",m:"1000000"},placeholder:"0",greedy:!1,rightAlign:!0,insertMode:!0,autoUnmask:!1,skipOptionalPartCharacter:"",usePrototypeDefinitions:!1,stripLeadingZeroes:!0,substituteRadixPoint:!0,definitions:{0:{validator:p},1:{validator:p,definitionSymbol:"9"},9:{validator:"[0-90-9٠-٩۰-۹]",definitionSymbol:"*"},"+":{validator:function(e,t,n,i,r){return r.allowMinus&&("-"===e||e===r.negationSymbol.front)}},"-":{validator:function(e,t,n,i,r){return r.allowMinus&&e===r.negationSymbol.back}}},preValidation:function(e,t,n,i,r,a,s,o){var l=this;if(!1!==r.__financeInput&&n===r.radixPoint)return!1;var u=e.indexOf(r.radixPoint),d=t;if(t=function(e,t,n,i,r){return r._radixDance&&r.numericInput&&t!==r.negationSymbol.back&&e<=n&&(n>0||t==r.radixPoint)&&(void 0===i.validPositions[e-1]||i.validPositions[e-1].input!==r.negationSymbol.back)&&(e-=1),e}(t,n,u,a,r),"-"===n||n===r.negationSymbol.front){if(!0!==r.allowMinus)return!1;var p=!1,f=h("+",a),m=h("-",a);return-1!==f&&(p=[f],-1!==m&&p.push(m)),!1!==p?{remove:p,caret:d-r.negationSymbol.back.length}:{insert:[{pos:c.call(l,"+",a),c:r.negationSymbol.front,fromIsValid:!0},{pos:c.call(l,"-",a),c:r.negationSymbol.back,fromIsValid:void 0}],caret:d+r.negationSymbol.back.length}}if(n===r.groupSeparator)return{caret:d};if(o)return!0;if(-1!==u&&!0===r._radixDance&&!1===i&&n===r.radixPoint&&void 0!==r.digits&&(isNaN(r.digits)||parseInt(r.digits)>0)&&u!==t){var g=c.call(l,r.radixPoint,a);return a.validPositions[g]&&(a.validPositions[g].generatedInput=a.validPositions[g].generated||!1),{caret:r._radixDance&&t===u-1?u+1:u}}if(!1===r.__financeInput)if(i){if(r.digitsOptional)return{rewritePosition:s.end};if(!r.digitsOptional){if(s.begin>u&&s.end<=u)return n===r.radixPoint?{insert:{pos:u+1,c:"0",fromIsValid:!0},rewritePosition:u}:{rewritePosition:u+1};if(s.begin0&&""===this.__valueGet.call(this.el))return{rewritePosition:u};return{rewritePosition:t}},postValidation:function(e,t,n,i,r,a,s){if(!1===i)return i;if(s)return!0;if(null!==r.min||null!==r.max){var o=r.onUnMask(e.slice().reverse().join(""),void 0,l.extend({},r,{unmaskAsNumber:!0}));if(null!==r.min&&or.min.toString().length||o<0))return!1;if(null!==r.max&&o>r.max)return!!r.SetMaxOnOverflow&&{refreshFromBuffer:!0,buffer:d(r.max.toString().replace(".",r.radixPoint).split(""),r.digits,r).reverse()}}return i},onUnMask:function(e,t,n){if(""===t&&!0===n.nullable)return t;var r=e.replace(n.prefix,"");return r=(r=r.replace(n.suffix,"")).replace(new RegExp((0,i.default)(n.groupSeparator),"g"),""),""!==n.placeholder.charAt(0)&&(r=r.replace(new RegExp(n.placeholder.charAt(0),"g"),"0")),n.unmaskAsNumber?(""!==n.radixPoint&&-1!==r.indexOf(n.radixPoint)&&(r=r.replace(i.default.call(this,n.radixPoint),".")),r=(r=r.replace(new RegExp("^"+(0,i.default)(n.negationSymbol.front)),"-")).replace(new RegExp((0,i.default)(n.negationSymbol.back)+"$"),""),Number(r)):r},isComplete:function(e,t){var n=(t.numericInput?e.slice().reverse():e).join("");return n=(n=(n=(n=(n=n.replace(new RegExp("^"+(0,i.default)(t.negationSymbol.front)),"-")).replace(new RegExp((0,i.default)(t.negationSymbol.back)+"$"),"")).replace(t.prefix,"")).replace(t.suffix,"")).replace(new RegExp((0,i.default)(t.groupSeparator)+"([0-9]{3})","g"),"$1"),","===t.radixPoint&&(n=n.replace((0,i.default)(t.radixPoint),".")),isFinite(n)},onBeforeMask:function(e,t){var n;e=null!==(n=e)&&void 0!==n?n:"";var r=t.radixPoint||",";isFinite(t.digits)&&(t.digits=parseInt(t.digits)),"number"!=typeof e&&"number"!==t.inputType||""===r||(e=e.toString().replace(".",r));var a="-"===e.charAt(0)||e.charAt(0)===t.negationSymbol.front,s=e.split(r),o=s[0].replace(/[^\-0-9]/g,""),l=s.length>1?s[1].replace(/[^0-9]/g,""):"",u=s.length>1;e=o+(""!==l?r+l:l);var c=0;if(""!==r&&(c=t.digitsOptional?t.digitst.max&&(e=t.max.toString().replace(".",r))}return a&&"-"!==e.charAt(0)&&(e="-"+e),d(e.toString().split(""),c,t,u).join("")},onBeforeWrite:function(e,t,n,r){function a(e,t){if(!1!==r.__financeInput||t){var n=e.indexOf(r.radixPoint);-1!==n&&e.splice(n,1)}if(""!==r.groupSeparator)for(;-1!==(n=e.indexOf(r.groupSeparator));)e.splice(n,1);return e}var s,o;if(r.stripLeadingZeroes&&(o=function(e,t){var n=new RegExp("(^"+(""!==t.negationSymbol.front?(0,i.default)(t.negationSymbol.front)+"?":"")+(0,i.default)(t.prefix)+")(.*)("+(0,i.default)(t.suffix)+(""!=t.negationSymbol.back?(0,i.default)(t.negationSymbol.back)+"?":"")+"$)").exec(e.slice().reverse().join("")),r=n?n[2]:"",a=!1;return r&&(r=r.split(t.radixPoint.charAt(0))[0],a=new RegExp("^[0"+t.groupSeparator+"]*").exec(r)),!(!a||!(a[0].length>1||a[0].length>0&&a[0].length0;h--)this.maskset.validPositions.splice(u+h,1),delete t[u+h];if(e)switch(e.type){case"blur":case"checkval":if(null!==r.min){var p=r.onUnMask(t.slice().reverse().join(""),void 0,l.extend({},r,{unmaskAsNumber:!0}));if(null!==r.min&&p1)return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())*parseInt(o)),s.trigger("setvalue"),!1}if(e.ctrlKey)switch(e.key){case a.keys.ArrowUp:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())+parseInt(i.step)),s.trigger("setvalue"),!1;case a.keys.ArrowDown:return this.inputmask.__valueSet.call(this,parseFloat(this.inputmask.unmaskedvalue())-parseInt(i.step)),s.trigger("setvalue"),!1}if(!e.shiftKey&&(e.key===a.keys.Delete||e.key===a.keys.Backspace||e.key===a.keys.BACKSPACE_SAFARI)&&n.begin!==t.length){if(t[e.key===a.keys.Delete?n.begin-1:n.end]===i.negationSymbol.front)return r=t.slice().reverse(),""!==i.negationSymbol.front&&r.shift(),""!==i.negationSymbol.back&&r.pop(),s.trigger("setvalue",[r.join(""),n.begin]),!1;if(!0===i._radixDance){var c,h=t.indexOf(i.radixPoint);if(i.digitsOptional){if(0===h)return(r=t.slice().reverse()).pop(),s.trigger("setvalue",[r.join(""),n.begin>=r.length?r.length:n.begin]),!1}else if(-1!==h&&(n.begin=r.length?h+1:n.begin]),!1}}}},currency:{prefix:"",groupSeparator:",",alias:"numeric",digits:2,digitsOptional:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",inputmode:"numeric",digits:0},percentage:{alias:"numeric",min:0,max:100,suffix:" %",digits:0,allowMinus:!1},indianns:{alias:"numeric",_mask:function(e){return"("+e.groupSeparator+"99){*|1}("+e.groupSeparator+"999){1|1}"},groupSeparator:",",radixPoint:".",placeholder:"0",digits:2,digitsOptional:!1}})},9380:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=!("undefined"==typeof window||!window.document||!window.document.createElement);t.default=n?window:{}},7760:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.HandleNativePlaceholder=function(e,t){var n=e?e.inputmask:this;if(i.ie){if(e.inputmask._valueGet()!==t&&(e.placeholder!==t||""===e.placeholder)){var r=s.getBuffer.call(n).slice(),a=e.inputmask._valueGet();if(a!==t){var o=s.getLastValidPosition.call(n);-1===o&&a===s.getBufferTemplate.call(n).join("")?r=[]:-1!==o&&d.call(n,r),h(e,r)}}}else e.placeholder!==t&&(e.placeholder=t,""===e.placeholder&&e.removeAttribute("placeholder"))},t.applyInputValue=u,t.checkVal=c,t.clearOptionalTail=d,t.unmaskedvalue=function(e){var t=e?e.inputmask:this,n=t.opts,i=t.maskset;if(e){if(void 0===e.inputmask)return e.value;e.inputmask&&e.inputmask.refreshValue&&u(e,e.inputmask._valueGet(!0))}for(var r=[],a=i.validPositions,o=0,l=a.length;o0&&" "===n[i-1];)i--;var r=0===i&&!s.isMask.call(d,e)&&(l.getTest.call(d,e).match.nativeDef===t.charAt(0)||!0===l.getTest.call(d,e).match.static&&l.getTest.call(d,e).match.nativeDef==="'"+t.charAt(0)||" "===l.getTest.call(d,e).match.nativeDef&&(l.getTest.call(d,e+1).match.nativeDef===t.charAt(0)||!0===l.getTest.call(d,e+1).match.static&&l.getTest.call(d,e+1).match.nativeDef==="'"+t.charAt(0)));if(!r&&i>0&&!s.isMask.call(d,e,!1,!0)){var a=s.seekNext.call(d,e);d.caretPos.begin0){var w,M,k=s.seekNext.call(d,-1,void 0,!1);if(!o.isComplete.call(d,s.getBuffer.call(d))&&b.length<=k||o.isComplete.call(d,s.getBuffer.call(d))&&b.length>0&&b.length!==k&&0===b[0])for(var S=k;void 0!==(w=b.shift());)if(wi&&!c.isMask.call(this,r);r--);return n.splice(i,r+1-i),h.isComplete.call(this,n)&&e===(this.isRTL?c.getBuffer.call(this).slice().reverse().join(""):c.getBuffer.call(this).join(""))},format:function(e,t){this.maskset=this.maskset||(0,d.generateMaskSet)(this.opts,this.noMasksCache);var n=("function"==typeof this.opts.onBeforeMask&&this.opts.onBeforeMask.call(this,e,this.opts)||e).split("");l.checkVal.call(this,void 0,!0,!1,n);var i=this.isRTL?c.getBuffer.call(this).slice().reverse().join(""):c.getBuffer.call(this).join("");return t?{value:i,metadata:this.getmetadata()}:i},setValue:function(e){this.el&&(0,a.default)(this.el).trigger("setvalue",[e])},analyseMask:d.analyseMask},y.extendDefaults=function(e){a.default.extend(!0,y.prototype.defaults,e)},y.extendDefinitions=function(e){a.default.extend(!0,y.prototype.definitions,e)},y.extendAliases=function(e){a.default.extend(!0,y.prototype.aliases,e)},y.format=function(e,t,n){return y(t).format(e,n)},y.unmask=function(e,t){return y(t).unmaskedvalue(e)},y.isValid=function(e,t){return y(t).isValid(e)},y.remove=function(e){"string"==typeof e&&(e=g.getElementById(e)||g.querySelectorAll(e)),(e=e.nodeName?[e]:e).forEach((function(e){e.inputmask&&e.inputmask.remove()}))},y.setValue=function(e,t){"string"==typeof e&&(e=g.getElementById(e)||g.querySelectorAll(e)),(e=e.nodeName?[e]:e).forEach((function(e){e.inputmask?e.inputmask.setValue(t):(0,a.default)(e).trigger("setvalue",[t])}))},y.dependencyLib=a.default,o.default.Inputmask=y,t.default=y},5296:function(e,t,n){function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var r=p(n(9380)),a=p(n(2394));function s(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,i=new Array(t);n0){if(b(u=g[g.length-1],r),u.isAlternator){d=g.pop();for(var e=0;e0?(u=g[g.length-1]).matches.push(d):m.matches.push(d)}}else b(m,r)}function w(e){var t=new s.default(!0);return t.openGroup=!1,t.matches=e,t}function M(){if((l=g.pop()).openGroup=!1,void 0!==l)if(g.length>0){if((u=g[g.length-1]).matches.push(l),u.isAlternator){d=g.pop();for(var e=0;e0?(u=g[g.length-1]).matches.push(d):m.matches.push(d)}}else m.matches.push(l);else _()}function k(e){var t=e.pop();return t.isQuantifier&&(t=w([e.pop(),t])),t}for(t&&(n.optionalmarker[0]=void 0,n.optionalmarker[1]=void 0);i=t?p.exec(e):h.exec(e);){if(r=i[0],t){switch(r.charAt(0)){case"?":r="{0,1}";break;case"+":case"*":r="{"+r+"}";break;case"|":if(0===g.length){var S=w(m.matches);S.openGroup=!0,g.push(S),m.matches=[],y=!0}}switch(r){case"\\d":r="[0-9]";break;case"\\p":r+=p.exec(e)[0],r+=p.exec(e)[0]}}if(f)_();else switch(r.charAt(0)){case"$":case"^":t||_();break;case n.escapeChar:f=!0,t&&_();break;case n.optionalmarker[1]:case n.groupmarker[1]:M();break;case n.optionalmarker[0]:g.push(new s.default(!1,!0));break;case n.groupmarker[0]:g.push(new s.default(!0));break;case n.quantifiermarker[0]:var x=new s.default(!1,!1,!0),L=(r=r.replace(/[{}?]/g,"")).split("|"),C=L[0].split(","),T=isNaN(C[0])?C[0]:parseInt(C[0]),E=1===C.length?T:isNaN(C[1])?C[1]:parseInt(C[1]),A=isNaN(L[1])?L[1]:parseInt(L[1]);"*"!==T&&"+"!==T||(T="*"===E?0:1),x.quantifier={min:T,max:E,jit:A};var D=g.length>0?g[g.length-1].matches:m.matches;(i=D.pop()).isGroup||(i=w([i])),D.push(i),D.push(x);break;case n.alternatormarker:if(g.length>0){var P=(u=g[g.length-1]).matches[u.matches.length-1];c=u.openGroup&&(void 0===P.matches||!1===P.isGroup&&!1===P.isAlternator)?g.pop():k(u.matches)}else c=k(m.matches);if(c.isAlternator)g.push(c);else if(c.alternatorGroup?(d=g.pop(),c.alternatorGroup=!1):d=new s.default(!1,!1,!1,!0),d.matches.push(c),g.push(d),c.openGroup){c.openGroup=!1;var O=new s.default(!0);O.alternatorGroup=!0,g.push(O)}break;default:_()}}for(y&&M();g.length>0;)l=g.pop(),m.matches.push(l);return m.matches.length>0&&(function e(i){i&&i.matches&&i.matches.forEach((function(r,a){var s=i.matches[a+1];(void 0===s||void 0===s.matches||!1===s.isQuantifier)&&r&&r.isGroup&&(r.isGroup=!1,t||(b(r,n.groupmarker[0],0),!0!==r.openGroup&&b(r,n.groupmarker[1]))),e(r)}))}(m),v.push(m)),(n.numericInput||n.isRTL)&&function e(t){for(var i in t.matches=t.matches.reverse(),t.matches)if(Object.prototype.hasOwnProperty.call(t.matches,i)){var r=parseInt(i);if(t.matches[i].isQuantifier&&t.matches[r+1]&&t.matches[r+1].isGroup){var a=t.matches[i];t.matches.splice(i,1),t.matches.splice(r+1,0,a)}void 0!==t.matches[i].matches?t.matches[i]=e(t.matches[i]):t.matches[i]=((s=t.matches[i])===n.optionalmarker[0]?s=n.optionalmarker[1]:s===n.optionalmarker[1]?s=n.optionalmarker[0]:s===n.groupmarker[0]?s=n.groupmarker[1]:s===n.groupmarker[1]&&(s=n.groupmarker[0]),s)}var s;return t}(v[0]),v},t.generateMaskSet=function(e,t){var n;function s(e,t){var n=t.repeat,i=t.groupmarker,a=t.quantifiermarker,s=t.keepStatic;if(n>0||"*"===n||"+"===n){var o="*"===n?0:"+"===n?1:n;if(o!=n)e=i[0]+e+i[1]+a[0]+o+","+n+a[1];else for(var u=e,d=1;d1){null===e.keepStatic&&(e.keepStatic=!0);var d=e.groupmarker[0];return(e.isRTL?e.mask.reverse():e.mask).forEach((function(t){d.length>1&&(d+=e.alternatormarker),void 0!==t.mask&&"function"!=typeof t.mask?d+=t.mask:d+=t})),u(d+=e.groupmarker[1],e.mask,e)}e.mask=e.mask.pop()}return n=e.mask&&void 0!==e.mask.mask&&"function"!=typeof e.mask.mask?u(e.mask.mask,e.mask,e):u(e.mask,e.mask,e),null===e.keepStatic&&(e.keepStatic=!1),n};var i=u(n(4963)),r=u(n(7184)),a=u(n(2394)),s=u(n(9695));function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n>>0;if(0===i)return!1;for(var r=0|t,a=Math.max(r>=0?r:i-Math.abs(r),0);athis.length)&&-1!==this.indexOf(e,t)})},8711:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.caret=function(e,t,n,i,a){var s,o=this,l=this.opts;if(void 0===t)return"selectionStart"in e&&"selectionEnd"in e?(t=e.selectionStart,n=e.selectionEnd):r.default.getSelection?(s=r.default.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==e&&s.commonAncestorContainer!==e||(t=s.startOffset,n=s.endOffset):document.selection&&document.selection.createRange&&(n=(t=0-(s=document.selection.createRange()).duplicate().moveStart("character",-e.inputmask._valueGet().length))+s.text.length),{begin:i?t:c.call(o,t),end:i?n:c.call(o,n)};if(Array.isArray(t)&&(n=o.isRTL?t[0]:t[1],t=o.isRTL?t[1]:t[0]),void 0!==t.begin&&(n=o.isRTL?t.begin:t.end,t=o.isRTL?t.end:t.begin),"number"==typeof t){t=i?t:c.call(o,t),n="number"==typeof(n=i?n:c.call(o,n))?n:t;var u=parseInt(((e.ownerDocument.defaultView||r.default).getComputedStyle?(e.ownerDocument.defaultView||r.default).getComputedStyle(e,null):e.currentStyle).fontSize)*n;if(e.scrollLeft=u>e.scrollWidth?u:0,e.inputmask.caretPos={begin:t,end:n},l.insertModeVisual&&!1===l.insertMode&&t===n&&(a||n++),e===(e.inputmask.shadowRoot||e.ownerDocument).activeElement){if("setSelectionRange"in e)e.setSelectionRange(t,n);else if(r.default.getSelection){if(s=document.createRange(),void 0===e.firstChild||null===e.firstChild){var d=document.createTextNode("");e.appendChild(d)}s.setStart(e.firstChild,tu&&((n=d[t]).match.optionality||n.match.optionalQuantifier&&n.match.newBlockMarker||m&&(m!==d[t].locator[c.alternation]&&!0!==n.match.static||!0===n.match.static&&n.locator[c.alternation]&&a.checkAlternationMatch.call(i,n.locator[c.alternation].toString().split(","),m.toString().split(","))&&""!==s.getTests.call(i,t)[0].def))&&h[t]===s.getPlaceholder.call(i,t,n.match);t--)p--;return e?{l:p,def:d[p]?d[p].match:void 0}:p},t.determineNewCaretPosition=function(e,t,n){var i,r,a,c=this,h=c.maskset,p=c.opts;if(t&&(c.isRTL?e.end=e.begin:e.begin=e.end),e.begin===e.end){switch(n=n||p.positionCaretOnClick){case"none":break;case"select":e={begin:0,end:o.call(c).length};break;case"ignore":e.end=e.begin=d.call(c,l.call(c));break;case"radixFocus":if(c.clicked>1&&0===h.validPositions.length)break;if(function(e){if(""!==p.radixPoint&&0!==p.digits){var t=h.validPositions;if(void 0===t[e]||void 0===t[e].input){if(e=y||i===a)&&(a=y)}e.end=e.begin=a}}return e}},t.getBuffer=o,t.getBufferTemplate=function(){var e=this.maskset;return void 0===e._buffer&&(e._buffer=s.getMaskTemplate.call(this,!1,1),void 0===e.buffer&&(e.buffer=e._buffer.slice())),e._buffer},t.getLastValidPosition=l,t.isMask=u,t.resetMaskSet=function(e){var t=this.maskset;t.buffer=void 0,!0!==e&&(t.validPositions=[],t.p=0),!1===e&&(t.tests={},t.jitOffset={})},t.seekNext=d,t.seekPrevious=function(e,t){var n=this,i=e-1;if(e<=0)return 0;for(;i>0&&(!0===t&&(!0!==s.getTest.call(n,i).match.newBlockMarker||!u.call(n,i,void 0,!0))||!0!==t&&!u.call(n,i,void 0,!0));)i--;return i},t.translatePosition=c;var i,r=(i=n(9380))&&i.__esModule?i:{default:i},a=n(7215),s=n(4713);function o(e){var t=this,n=t.maskset;return void 0!==n.buffer&&!0!==e||(n.buffer=s.getMaskTemplate.call(t,!0,l.call(t),!0),void 0===n._buffer&&(n._buffer=n.buffer.slice())),n.buffer}function l(e,t,n){var i=this.maskset,r=-1,a=-1,s=n||i.validPositions;void 0===e&&(e=-1);for(var o=0,l=s.length;o=e&&(a=o));return-1===r||r===e?a:-1===a||e-r-1){if(n){var o=s.getTests.call(i,e);return o.length>1+(""===o[o.length-1].match.def?1:0)}var l=s.determineTestTemplate.call(i,e,s.getTests.call(i,e)),u=s.getPlaceholder.call(i,e,l.match);return l.match.def!==u}return!1}function d(e,t,n){var i=this;void 0===n&&(n=!0);for(var r=e+1;""!==s.getTest.call(i,r).match.def&&(!0===t&&(!0!==s.getTest.call(i,r).match.newBlockMarker||!u.call(i,r,void 0,!0))||!0!==t&&!u.call(i,r,void 0,n));)r++;return r}function c(e){var t=this.opts,n=this.el;return!this.isRTL||"number"!=typeof e||t.greedy&&""===t.placeholder||!n||(e=this._valueGet().length-e)<0&&(e=0),e}},4713:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.determineTestTemplate=c,t.getDecisionTaker=l,t.getMaskTemplate=function(e,t,n,i,r){var a=this,s=this.opts,o=this.maskset,l=s.greedy;r&&s.greedy&&(s.greedy=!1,a.maskset.tests={}),t=t||0;var h,p,m,g,v=[],y=0;do{if(!0===e&&o.validPositions[y])p=(m=r&&o.validPositions[y].match.optionality&&void 0===o.validPositions[y+1]&&(!0===o.validPositions[y].generatedInput||o.validPositions[y].input==s.skipOptionalPartCharacter&&y>0)?c.call(a,y,f.call(a,y,h,y-1)):o.validPositions[y]).match,h=m.locator.slice(),v.push(!0===n?m.input:!1===n?p.nativeDef:u.call(a,y,p));else{p=(m=d.call(a,y,h,y-1)).match,h=m.locator.slice();var b=!0!==i&&(!1!==s.jitMasking?s.jitMasking:p.jit);(g=(g||o.validPositions[y-1])&&p.static&&p.def!==s.groupSeparator&&null===p.fn)||!1===b||void 0===b||"number"==typeof b&&isFinite(b)&&b>y?v.push(!1===n?p.nativeDef:u.call(a,v.length,p)):g=!1}y++}while(!0!==p.static||""!==p.def||t>y);return""===v[v.length-1]&&v.pop(),!1===n&&void 0!==o.maskLength||(o.maskLength=y-1),s.greedy=l,v},t.getPlaceholder=u,t.getTest=h,t.getTestTemplate=d,t.getTests=f,t.isSubsetOf=p;var i,r=(i=n(2394))&&i.__esModule?i:{default:i},a=n(8711);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function o(e,t){var n=(null!=e.alternation?e.mloc[l(e)]:e.locator).join("");if(""!==n)for(n=n.split(":")[0];n.length0&&(t=t.split(",")[0]),void 0!==t?t.toString():""}function u(e,t,n){var i=this,r=this.opts,o=this.maskset;if(void 0!==(t=t||h.call(i,e).match).placeholder||!0===n){if(""!==t.placeholder&&!0===t.static&&!0!==t.generated){var l=a.getLastValidPosition.call(i,e),u=a.seekNext.call(i,l);return(n?e<=u:e-1&&void 0===o.validPositions[e]){var d,c=f.call(i,e),p=[];if("string"==typeof r.placeholder&&c.length>1+(""===c[c.length-1].match.def?1:0))for(var m=0;m1&&/[0-9a-bA-Z]/.test(p[0].match.def)))return r.placeholder.charAt(e%r.placeholder.length)}return t.def}return"object"===s(r.placeholder)?t.def:r.placeholder.charAt(e%r.placeholder.length)}function d(e,t,n){return this.maskset.validPositions[e]||c.call(this,e,f.call(this,e,t?t.slice():t,n))}function c(e,t){var n=this.opts,i=0,r=function(e,t){var n=0,i=!1;return t.forEach((function(e){e.match.optionality&&(0!==n&&n!==e.match.optionality&&(i=!0),(0===n||n>e.match.optionality)&&(n=e.match.optionality))})),n&&(0==e||1==t.length?n=0:i||(n=0)),n}(e,t);e=e>0?e-1:0;var a,s,l,u=o(h.call(this,e));n.greedy&&t.length>1&&""===t[t.length-1].match.def&&(i=1);for(var d=0;d0&&"master"===l.match.newBlockMarker&&(!c.match.optionality||c.match.optionality-r<1||!c.match.newBlockMarker)||l&&!n.greedy&&l.match.optionalQuantifier&&!c.match.optionalQuantifier)&&(s=p,l=c)}return l}function h(e,t){var n=this.maskset;return n.validPositions[e]?n.validPositions[e]:(t||f.call(this,e))[0]}function p(e,t,n){function i(e){for(var t,n=[],i=-1,r=0,a=e.length;rt.alternation)for(var r=0;rn&&(e.alternation=n),!0}return e.alternation=void 0,!1}(n)}function x(e,t){if(e.locator.length!==t.locator.length)return!1;for(var n=e.alternation+1;ne+u._maxTestPos)throw new Error("Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. ".concat(l.mask));if(f===e&&void 0===a.matches){if(g.push({match:a,locator:o.reverse(),cd:y,mloc:{}}),!a.optionality||void 0!==h||!(u.definitions&&u.definitions[a.nativeDef]&&u.definitions[a.nativeDef].optional||r.default.prototype.definitions[a.nativeDef]&&r.default.prototype.definitions[a.nativeDef].optional))return!0;v=!0,f=e}else if(void 0!==a.matches){if(a.isGroup&&h!==a)return function(){if(a=c(t.matches[t.matches.indexOf(a)+1],o,h))return!0}();if(a.isOptional)return function(){var t=a,r=g.length;if(a=_(a,n,o,h),g.length>0){if(g.forEach((function(e,t){t>=r&&(e.match.optionality=e.match.optionality?e.match.optionality+1:1)})),i=g[g.length-1].match,void 0!==h||!m(i,t))return a;v=!0,f=e}}();if(a.isAlternator)return function(){function i(e){for(var t,n=e.matches[0].matches?e.matches[0].matches.length:1,i=0;i0?n.shift():-1;if(-1===L||"string"==typeof L){var C,T=f,E=n.slice(),A=[];if("string"==typeof L)A=L.split(",");else for(C=0;C=u.keepStatic)&&(A=A.slice(0,1));for(var I=0;Im.matches[0].matches.length)break;r=g.slice(),f=T,g=[];for(var F=0;F0&&b,a=y.length>0&&!b,b&&v&&!a&&g.forEach((function(e,t){e.unMatchedAlternationStopped=!0})),n=E.slice()}else a=c(m.matches[L]||t.matches[L],[L].concat(o),h);if(a)return!0}();if(a.isQuantifier&&h!==t.matches[t.matches.indexOf(a)-1])return function(){for(var r=a,s=!1,d=n.length>0?n.shift():0;d<(isNaN(r.quantifier.max)?d+1:r.quantifier.max)&&f<=e;d++){var h=t.matches[t.matches.indexOf(r)-1];if(a=c(h,[d].concat(o),h)){if(g.forEach((function(t,n){(i=w(h,t.match)?t.match:g[g.length-1].match).optionalQuantifier=d>=r.quantifier.min,i.jit=(d+1)*(h.matches.indexOf(i)+1)>r.quantifier.jit,i.optionalQuantifier&&m(i,h)&&(v=!0,f=e,u.greedy&&null==l.validPositions[e-1]&&d>r.quantifier.min&&-1!=["*","+"].indexOf(r.quantifier.max)&&(g.pop(),y=void 0),s=!0,a=!1),!s&&i.jit&&(l.jitOffset[e]=h.matches.length-h.matches.indexOf(i))})),s)break;return!0}}}();if(a=_(a,n,o,h))return!0}else f++}for(var h=n.length>0?n.shift():0;he)break}}function w(e,t){var n=-1!=e.matches.indexOf(t);return n||e.matches.forEach((function(e,i){void 0===e.matches||n||(n=w(e,t))})),n}if(e>-1){if(void 0===t){for(var M,k=e-1;void 0===(M=l.validPositions[k]||l.tests[k])&&k>-1;)k--;void 0!==M&&k>-1&&(m=function(e,t){var n,i=[];return Array.isArray(t)||(t=[t]),t.length>0&&(void 0===t[0].alternation||!0===u.keepStatic?0===(i=c.call(s,e,t.slice()).locator.slice()).length&&(i=t[0].locator.slice()):t.forEach((function(e){""!==e.def&&(0===i.length?(n=e.alternation,i=e.locator.slice()):e.locator[n]&&-1===i[n].toString().indexOf(e.locator[n])&&(i[n]+=","+e.locator[n]))}))),i}(k,M),y=m.join(""),f=k)}if(l.tests[e]&&l.tests[e][0].cd===y)return l.tests[e];for(var S=m.shift();Se);S++);}return(0===g.length||v)&&g.push({match:{fn:null,static:!0,optionality:!1,casing:null,def:"",placeholder:""},locator:b&&0===g.filter((function(e){return!0!==e.unMatchedAlternationStopped})).length?[0]:[],mloc:{},cd:y}),void 0!==t&&l.tests[e]?a=o.extend(!0,[],g):(l.tests[e]=o.extend(!0,[],g),a=l.tests[e]),g.forEach((function(e){e.match.optionality=e.match.defOptionality||!1})),a}},7215:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.alternate=o,t.checkAlternationMatch=function(e,t,n){for(var i,r=this.opts.greedy?t:t.slice(0,1),a=!1,s=void 0!==n?n.split(","):[],o=0;o=a.getBuffer.call(u).length&&f>=n.end&&(n.end=f+1),t===r.keys.Backspace?n.end-n.begin<1&&(n.begin=a.seekPrevious.call(u,n.begin)):t===r.keys.Delete&&n.begin===n.end&&(n.end=a.isMask.call(u,n.end,!0,!0)?n.end+1:a.seekNext.call(u,n.end)+1),!1!==(p=m.call(u,n))&&((!0!==i&&!1!==c.keepStatic||null!==c.regex&&-1!==s.getTest.call(u,n.begin).match.def.indexOf("|"))&&o.call(u,!0),!0!==i&&(d.p=t===r.keys.Delete?n.begin+p:n.begin,d.p=a.determineNewCaretPosition.call(u,{begin:d.p,end:d.p},!1,!1===c.insertMode&&t===r.keys.Backspace?"none":void 0).begin))},t.isComplete=u,t.isSelection=d,t.isValid=c,t.refreshFromBuffer=p,t.revalidateMask=m;var i=n(6030),r=n(2839),a=n(8711),s=n(4713);function o(e,t,n,i,r,l){var u=this,d=this.dependencyLib,h=this.opts,p=u.maskset;if(!u.hasAlternator)return!1;var f,m,g,v,y,b,_,w,M,k,S,x=d.extend(!0,[],p.validPositions),L=d.extend(!0,{},p.tests),C=!1,T=!1,E=void 0!==r?r:a.getLastValidPosition.call(u);if(l&&(k=l.begin,S=l.end,l.begin>l.end&&(k=l.end,S=l.begin)),-1===E&&void 0===r)f=0,m=(v=s.getTest.call(u,f)).alternation;else for(;E>=0;E--)if((g=p.validPositions[E])&&void 0!==g.alternation){if(E<=(e||0)&&v&&v.locator[g.alternation]!==g.locator[g.alternation])break;f=E,m=p.validPositions[f].alternation,v=g}if(void 0!==m){_=parseInt(f),p.excludes[_]=p.excludes[_]||[],!0!==e&&p.excludes[_].push((0,s.getDecisionTaker)(v)+":"+v.alternation);var A=[],D=-1;for(y=_;_=S)&&A.push(b.input),p.validPositions.splice(_,1);for(-1===D&&void 0!==t&&(A.push(t),D=A.length-1);void 0!==p.excludes[_]&&p.excludes[_].length<10;){for(p.tests={},a.resetMaskSet.call(u,!0),C=!0,y=0;yt:e.end-e.begin>t}function c(e,t,n,i,r,h,g){var v=this,y=this.dependencyLib,b=this.opts,_=v.maskset;n=!0===n;var w=e;function M(e){if(void 0!==e){if(void 0!==e.remove&&(Array.isArray(e.remove)||(e.remove=[e.remove]),e.remove.sort((function(e,t){return v.isRTL?e.pos-t.pos:t.pos-e.pos})).forEach((function(e){m.call(v,{begin:e,end:e+1})})),e.remove=void 0),void 0!==e.insert&&(Array.isArray(e.insert)||(e.insert=[e.insert]),e.insert.sort((function(e,t){return v.isRTL?t.pos-e.pos:e.pos-t.pos})).forEach((function(e){""!==e.c&&c.call(v,e.pos,e.c,void 0===e.strict||e.strict,void 0!==e.fromIsValid?e.fromIsValid:i)})),e.insert=void 0),e.refreshFromBuffer&&e.buffer){var t=e.refreshFromBuffer;p.call(v,!0===t?t:t.start,t.end,e.buffer),e.refreshFromBuffer=void 0}void 0!==e.rewritePosition&&(w=e.rewritePosition,e=!0)}return e}function k(t,n,r){var o=!1;return s.getTests.call(v,t).every((function(u,c){var h=u.match;if(a.getBuffer.call(v,!0),!1!==(o=(!h.jit||void 0!==_.validPositions[a.seekPrevious.call(v,t)])&&(null!=h.fn?h.fn.test(n,_,t,r,b,d.call(v,e)):(n===h.def||n===b.skipOptionalPartCharacter)&&""!==h.def&&{c:s.getPlaceholder.call(v,t,h,!0)||h.def,pos:t}))){var p=void 0!==o.c?o.c:n,f=t;return p=p===b.skipOptionalPartCharacter&&!0===h.static?s.getPlaceholder.call(v,t,h,!0)||h.def:p,!0!==(o=M(o))&&void 0!==o.pos&&o.pos!==t&&(f=o.pos),!0!==o&&void 0===o.pos&&void 0===o.c||!1===m.call(v,e,y.extend({},u,{input:l.call(v,p,h,f)}),i,f)&&(o=!1),!1}return!0})),o}void 0!==e.begin&&(w=v.isRTL?e.end:e.begin);var S=!0,x=y.extend(!0,[],_.validPositions);if(!1===b.keepStatic&&void 0!==_.excludes[w]&&!0!==r&&!0!==i)for(var L=w;L<(v.isRTL?e.begin:e.end);L++)void 0!==_.excludes[L]&&(_.excludes[L]=void 0,delete _.tests[L]);if("function"==typeof b.preValidation&&!0!==i&&!0!==h&&(S=M(S=b.preValidation.call(v,a.getBuffer.call(v),w,t,d.call(v,e),b,_,e,n||r))),!0===S){if(S=k(w,t,n),(!n||!0===i)&&!1===S&&!0!==h){var C=_.validPositions[w];if(!C||!0!==C.match.static||C.match.def!==t&&t!==b.skipOptionalPartCharacter){if(b.insertMode||void 0===_.validPositions[a.seekNext.call(v,w)]||e.end>w){var T=!1;if(_.jitOffset[w]&&void 0===_.validPositions[a.seekNext.call(v,w)]&&!1!==(S=c.call(v,w+_.jitOffset[w],t,!0,!0))&&(!0!==r&&(S.caret=w),T=!0),e.end>w&&(_.validPositions[w]=void 0),!T&&!a.isMask.call(v,w,b.keepStatic&&0===w))for(var E=w+1,A=a.seekNext.call(v,w,!1,0!==w);E<=A;E++)if(!1!==(S=k(E,t,n))){S=f.call(v,w,void 0!==S.pos?S.pos:E)||S,w=E;break}}}else S={caret:a.seekNext.call(v,w)}}v.hasAlternator&&!0!==r&&!n&&(r=!0,!1===S&&b.keepStatic&&(u.call(v,a.getBuffer.call(v))||0===w)?S=o.call(v,w,t,n,i,void 0,e):(d.call(v,e)&&_.tests[w]&&_.tests[w].length>1&&b.keepStatic||1==S&&!0!==b.numericInput&&_.tests[w]&&_.tests[w].length>1&&a.getLastValidPosition.call(v,void 0,!0)>w)&&(S=o.call(v,!0))),!0===S&&(S={pos:w})}if("function"==typeof b.postValidation&&!0!==i&&!0!==h){var D=b.postValidation.call(v,a.getBuffer.call(v,!0),void 0!==e.begin?v.isRTL?e.end:e.begin:e,t,S,b,_,n,g);void 0!==D&&(S=!0===D?S:D)}S&&void 0===S.pos&&(S.pos=w),!1===S||!0===h?(a.resetMaskSet.call(v,!0),_.validPositions=y.extend(!0,[],x)):f.call(v,void 0,w,!0);var P=M(S);return void 0!==v.maxLength&&a.getBuffer.call(v).length>v.maxLength&&!i&&(a.resetMaskSet.call(v,!0),_.validPositions=y.extend(!0,[],x),P=!1),P}function h(e,t,n){for(var i=this.maskset,r=!1,a=s.getTests.call(this,e),o=0;o0&&!r.validPositions[e];e--);for(var l=e;le+1?t[e+1]&&!0===t[e+1].match.static&&t[e+1]:t[e+1];return r&&a}return!1}var f=0,m=void 0!==e.begin?e.begin:e,g=void 0!==e.end?e.end:e,v=!0;if(e.begin>e.end&&(m=e.end,g=e.begin),i=void 0!==i?i:m,void 0===n&&(m!==g||l.insertMode&&void 0!==o.validPositions[i]||void 0===t||t.match.optionalQuantifier||t.match.optionality)){var y,b=u.extend(!0,[],o.validPositions),_=a.getLastValidPosition.call(r,void 0,!0);o.p=m;var w=d.call(r,e)?m:i;for(y=_;y>=w;y--)o.validPositions.splice(y,1),void 0===t&&delete o.tests[y+1];var M,k,S=i,x=S;for(t&&(o.validPositions[i]=u.extend(!0,{},t),x++,S++),null==b[g]&&o.jitOffset[g]&&(g+=o.jitOffset[g]+1),y=t?g:g-1;y<=_;y++){if(void 0!==(M=b[y])&&!0!==M.generatedInput&&(y>=g||y>=m&&p(y,b,{begin:m,end:g}))){for(;""!==s.getTest.call(r,x).match.def;){if(!1!==(k=h.call(r,x,M,l))||"+"===M.match.def){"+"===M.match.def&&a.getBuffer.call(r,!0);var L=c.call(r,x,M.input,"+"!==M.match.def,!0);if(v=!1!==L,S=(L.pos||x)+1,!v&&k)break}else v=!1;if(v){void 0===t&&M.match.static&&y===e.begin&&f++;break}if(!v&&a.getBuffer.call(r),x>o.maskLength)break;x++}""==s.getTest.call(r,x).match.def&&(v=!1),x=S}if(!v)break}if(!v)return o.validPositions=u.extend(!0,[],b),a.resetMaskSet.call(r,!0),!1}else t&&s.getTest.call(r,i).match.cd===t.match.cd&&(o.validPositions[i]=u.extend(!0,{},t));return a.resetMaskSet.call(r,!0),f}}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,n),a.exports}var i={};return function(){var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n(7149),n(3194),n(9302),n(4013),n(3851),n(219),n(207),n(5296);var t,r=(t=n(2394))&&t.__esModule?t:{default:t};e.default=r.default}(),i}()},41734:function(e,t,n){!function(e){"use strict";e.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(95093))},41767:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=s(n(17389)),l=n(78443),u=s(n(41660)),d=a(n(34600)),c=s(n(2543));class h extends o.default{static schema(...e){return o.default.schema({label:"Text Field",key:"textField",type:"textfield",mask:!1,inputType:"text",inputFormat:"plain",inputMask:"",displayMask:"",tableView:!0,spellcheck:!0,truncateMultipleSpaces:!1,validate:{minLength:"",maxLength:"",pattern:""}},...e)}static get builderInfo(){return{title:"Text Field",icon:"terminal",group:"basic",documentation:"/userguide/form-building/form-components#text-field",weight:0,schema:h.schema()}}static get serverConditionSettings(){return h.conditionOperatorsSettings}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{operators:[...super.conditionOperatorsSettings.operators,"includes","notIncludes","endsWith","startsWith"],valueComponent:e=>Object.assign(Object.assign({},e),{type:"textfield"})})}static savedValueTypes(e){return d.getComponentSavedTypes(e)||[d.componentValueTypes.string]}get defaultSchema(){return h.schema()}get inputInfo(){const e=super.inputInfo;return e.type="input",this.component.hasOwnProperty("spellcheck")&&(e.attr.spellcheck=this.component.spellcheck),this.component.mask?e.attr.type="password":e.attr.type="password"===this.component.inputType?"password":"text",e.changeEvent="blur"===this.component.applyMaskOn?"blur":"input",e}get emptyValue(){return""}constructor(e,t,n){var i,r,a;super(e,t,n);const s=(null===(i=this.component.widget)||void 0===i?void 0:i.timezone)||this.options.timezone,o=(null===(r=this.component.widget)||void 0===r?void 0:r.displayInTimezone)||"viewer";"calendar"===(null===(a=this.component.widget)||void 0===a?void 0:a.type)&&(this.component.widget=Object.assign(Object.assign({},this.component.widget),{readOnly:this.options.readOnly,timezone:s,displayInTimezone:o,locale:this.component.widget.locale||this.options.language,saveAs:"text"}))}attach(e){return this.loadRefs(e,{valueMaskInput:"single"}),super.attach(e)}maskValue(e,t={}){if(e&&"object"==typeof e||(e={value:e,maskName:this.component.inputMasks[0].label}),!e.value){const n=t.noDefault?this.emptyValue:this.defaultValue;e.value=Array.isArray(n)?n[0]:n}return e}normalizeValue(e,t={}){return this.isMultipleMasksField?Array.isArray(e)?super.normalizeValue(e.map((e=>this.maskValue(e,t)))):super.normalizeValue(this.maskValue(e,t)):super.normalizeValue(e)}setValueAt(e,t,n={}){if(!this.isMultipleMasksField)return super.setValueAt(e,t,n);const i=(t=this.maskValue(t,n)).value||"",r=this.refs.mask?this.refs.mask[e]:null,a=this.refs.select?this.refs.select[e]:null,s=this.getMaskPattern(t.maskName);if(!(r&&a&&s))return super.setValueAt(e,i,n);if(a.value=t.maskName,r.inputmask)this.setInputMask(r,s),r.inputmask.setValue(i);else{const e=this.placeholderChar;r.value=(0,l.conformToMask)(i,d.getInputMask(s),{placeholderChar:e}).conformedValue}}unmaskValue(e,t=this.component.displayMask){const n=d.getInputMask(t,this.placeholderChar);return d.unmaskValue(e,n,this.placeholderChar)}getValueAt(e){var t,n;if(!this.isMultipleMasksField){const i=super.getValueAt(e),r=this.component.inputMask,a=this.component.displayMask;return r&&!a||a===r?i:a&&!r?this.unmaskValue(i,a):a&&a!==r?u.default.format(u.default.unmask(i,a),r):(null===(t=this.refs.valueMaskInput)||void 0===t?void 0:t.mask)&&this.refs.valueMaskInput.mask.textMaskInputElement?(this.refs.valueMaskInput.mask.textMaskInputElement.update(i),null===(n=this.refs.valueMaskInput)||void 0===n?void 0:n.value):i}const i=this.refs.mask?this.refs.mask[e]:null,r=this.refs.select?this.refs.select[e]:null;return{value:i?i.value:void 0,maskName:r?r.value:void 0}}checkInputMaskValue(e){let t=!0;const n=c.default.values(e.split("").reduce(((e,n,i,r)=>{var a;return"{"!==n&&"}"!==n||("{"!==r[i+1]&&"}"!==r[i+1]||(t=!1),e[n]=(null!==(a=e[n])&&void 0!==a?a:0)+1),e}),{}));return n[0]!==n[1]&&(t=!1),t}setInputMask(e,t,n){if("textfield"!==this.type)return void super.setInputMask(e,t,n);t=t||this.component.displayMask||this.component.inputMask;const i=d.getInputMask(t,this.placeholderChar);if(this.defaultMask=i,e&&t){try{e.mask&&e.mask.remove(),this.checkInputMaskValue(t)&&(e.mask=new u.default(t,{clearMaskOnLostFocus:!!this.component.placeholder,showMaskOnHover:!this.component.placeholder,placeholder:this.placeholderChar||""}).mask(e))}catch(e){console.warn(e)}i.numeric&&e.setAttribute("pattern","\\d*"),this.component.placeholder&&e.setAttribute("placeholder",this.component.placeholder)}}isHtmlRenderMode(){return super.isHtmlRenderMode()||(this.options.readOnly||this.disabled)&&"html"===this.component.inputFormat&&"textfield"===this.type}isEmpty(e=this.dataValue){return this.isMultipleMasksField?super.isEmpty(e)||(this.component.multiple?0===e.length:!e.maskName||!e.value):super.isEmpty((e||"").toString().trim())}truncateMultipleSpaces(e){return e?e.trim().replace(/\s{2,}/g," "):e}get validationValue(){const e=super.validationValue;return e&&this.component.truncateMultipleSpaces?this.truncateMultipleSpaces(e):e}beforeSubmit(){let e=this.dataValue;return this.component.truncateMultipleSpaces&&e?(e=this.truncateMultipleSpaces(e),this.dataValue=e,Promise.resolve(e).then((()=>super.beforeSubmit()))):Promise.resolve(e)}getValueAsString(e,t){return(null==t?void 0:t.email)&&this.visible&&!this.skipInEmail&&c.default.isObject(e)?`\n \n \n \n \n \n \n \n
${e.maskName}${e.value}
\n `:(e&&"plain"===this.component.inputFormat&&/<[^<>]+>/g.test(e)&&(e=e.replaceAll("<","<").replaceAll(">",">")),super.getValueAsString(e,t))}}t.default=h},41794:function(e,t,n){!function(e){"use strict";e.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(e){return e.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(e,t,n){return"ი"===n?t+"ში":t+n+"ში"}))},past:function(e){return/(წამი|წუთი|საათი|დღე|თვე)/.test(e)?e.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(e)?e.replace(/წელი$/,"წლის წინ"):e},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(e){return 0===e?e:1===e?e+"-ლი":e<20||e<=100&&e%20==0||e%100==0?"მე-"+e:e+"-ე"},week:{dow:1,doy:7}})}(n(95093))},41799:(e,t,n)=>{var i=n(37217),r=n(60270);e.exports=function(e,t,n,a){var s=n.length,o=s,l=!a;if(null==e)return!o;for(e=Object(e);s--;){var u=n[s];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++s{const{component:t,value:n}=e;return!!(e=>e&&"day"===e.type&&e.hasOwnProperty("maxDate"))(t)&&!(0,a.isPartialDay)(t,n)&&!!(0,a.getDateSetting)(t.maxDate)},t.validateMaximumDay=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateMaximumDaySync)(e)})),t.validateMaximumDaySync=e=>{const{component:n,value:i}=e;if(!(0,t.shouldValidate)(e))return null;if("string"!=typeof i)throw new r.ProcessorError(`Cannot validate day value ${i} because it is not a string`,e,"validate:validateMaximumDay");const s=(0,a.getDateValidationFormat)(n),o=(0,a.dayjs)(i,s),l=(0,a.getDateSetting)(n.maxDate);if(null===l)return null;l.setHours(0,0,0,0);const u=new r.FieldError("maxDate",Object.assign(Object.assign({},e),{maxDate:(0,a.dayjs)(l).format((0,a.getDayFormat)(n)),setting:String(l)}));return o.isBefore((0,a.dayjs)(l))||o.isSame((0,a.dayjs)(l))?null:u},t.validateMaximumDayInfo={name:"validateMaximumDay",process:t.validateMaximumDay,processSync:t.validateMaximumDaySync,shouldProcess:t.shouldValidate}},42054:e=>{var t="\\ud800-\\udfff",n="["+t+"]",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",r="\\ud83c[\\udffb-\\udfff]",a="[^"+t+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",o="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+i+"|"+r+")?",u="[\\ufe0e\\ufe0f]?",d=u+l+"(?:\\u200d(?:"+[a,s,o].join("|")+")"+u+l+")*",c="(?:"+[a+i+"?",i,s,o,n].join("|")+")",h=RegExp(r+"(?="+r+")|"+c+d,"g");e.exports=function(e){return e.match(h)||[]}},42248:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(33844)),a=n(34600);t.default=[{type:"panel",title:"Simple",key:"simple-conditional",theme:"default",weight:105,components:[{type:"select",input:!0,label:"This component should Display:",key:"conditional.show",dataSrc:"values",data:{values:[{label:"True",value:"true"},{label:"False",value:"false"}]}},{type:"select",input:!0,label:"When the form component:",key:"conditional.when",dataSrc:"custom",valueProperty:"value",data:{custom:e=>(0,a.getContextComponents)(e)}},{type:"textfield",input:!0,label:"Has the value:",key:"conditional.eq"}]},r.default.javaScriptValue("Advanced Conditions","customConditional","conditional.json",110,"

You must assign the show variable a boolean result.

Note: Advanced Conditional logic will override the results of the Simple Conditional logic.

Example
show = !!data.showMe;
",'

Click here for an example

')]},42264:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponentDataAsync=void 0;const r=n(2543),a=n(96690),s=n(83736);t.eachComponentDataAsync=(e,n,o,...l)=>i(void 0,[e,n,o,...l],void 0,(function*(e,n,o,l="",u,d,c=!1){if(e)return yield(0,s.eachComponentAsync)(e,((e,s,d,h)=>i(void 0,void 0,void 0,(function*(){var i;const p=(0,a.getContextualRowData)(e,s,n);if(!0===(yield o(e,n,p,s,d,u,h)))return!0;if((0,a.isComponentNestedDataType)(e)){const d=(0,r.get)(n,s,n);if(Array.isArray(d)){for(let i=0;i=3&&e%100<=10?3:e%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(t,r,a,s){var o=n(t),l=i[e][n(t)];return 2===o&&(l=l[r?0:1]),l.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar-ly",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(95093))},42492:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s});class i{constructor(e,t,n,i){if(isNaN(e)||isNaN(t))throw new Error(`Point is invalid: (${e}, ${t})`);this.x=+e,this.y=+t,this.pressure=n||0,this.time=i||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}}class r{static fromPoints(e,t){const n=this.calculateControlPoints(e[0],e[1],e[2]).c2,i=this.calculateControlPoints(e[1],e[2],e[3]).c1;return new r(e[1],n,i,e[2],t.start,t.end)}static calculateControlPoints(e,t,n){const r=e.x-t.x,a=e.y-t.y,s=t.x-n.x,o=t.y-n.y,l=(e.x+t.x)/2,u=(e.y+t.y)/2,d=(t.x+n.x)/2,c=(t.y+n.y)/2,h=Math.sqrt(r*r+a*a),p=Math.sqrt(s*s+o*o),f=p/(h+p),m=d+(l-d)*f,g=c+(u-c)*f,v=t.x-m,y=t.y-g;return{c1:new i(l+v,u+y),c2:new i(d+v,c+y)}}constructor(e,t,n,i,r,a){this.startPoint=e,this.control2=t,this.control1=n,this.endPoint=i,this.startWidth=r,this.endWidth=a}length(){let e,t,n=0;for(let i=0;i<=10;i+=1){const r=i/10,a=this.point(r,this.startPoint.x,this.control1.x,this.control2.x,this.endPoint.x),s=this.point(r,this.startPoint.y,this.control1.y,this.control2.y,this.endPoint.y);if(i>0){const i=a-e,r=s-t;n+=Math.sqrt(i*i+r*r)}e=a,t=s}return n}point(e,t,n,i,r){return t*(1-e)*(1-e)*(1-e)+3*n*(1-e)*(1-e)*e+3*i*(1-e)*e*e+r*e*e*e}}class a{constructor(){try{this._et=new EventTarget}catch(e){this._et=document}}addEventListener(e,t,n){this._et.addEventListener(e,t,n)}dispatchEvent(e){return this._et.dispatchEvent(e)}removeEventListener(e,t,n){this._et.removeEventListener(e,t,n)}}class s extends a{constructor(e,t={}){super(),this.canvas=e,this._drawingStroke=!1,this._isEmpty=!0,this._lastPoints=[],this._data=[],this._lastVelocity=0,this._lastWidth=0,this._handleMouseDown=e=>{1===e.buttons&&this._strokeBegin(e)},this._handleMouseMove=e=>{this._strokeMoveUpdate(e)},this._handleMouseUp=e=>{1===e.buttons&&this._strokeEnd(e)},this._handleTouchStart=e=>{if(e.cancelable&&e.preventDefault(),1===e.targetTouches.length){const t=e.changedTouches[0];this._strokeBegin(t)}},this._handleTouchMove=e=>{e.cancelable&&e.preventDefault();const t=e.targetTouches[0];this._strokeMoveUpdate(t)},this._handleTouchEnd=e=>{if(e.target===this.canvas){e.cancelable&&e.preventDefault();const t=e.changedTouches[0];this._strokeEnd(t)}},this._handlePointerStart=e=>{e.preventDefault(),this._strokeBegin(e)},this._handlePointerMove=e=>{this._strokeMoveUpdate(e)},this._handlePointerEnd=e=>{this._drawingStroke&&(e.preventDefault(),this._strokeEnd(e))},this.velocityFilterWeight=t.velocityFilterWeight||.7,this.minWidth=t.minWidth||.5,this.maxWidth=t.maxWidth||2.5,this.throttle="throttle"in t?t.throttle:16,this.minDistance="minDistance"in t?t.minDistance:5,this.dotSize=t.dotSize||0,this.penColor=t.penColor||"black",this.backgroundColor=t.backgroundColor||"rgba(0,0,0,0)",this.compositeOperation=t.compositeOperation||"source-over",this.canvasContextOptions="canvasContextOptions"in t?t.canvasContextOptions:{},this._strokeMoveUpdate=this.throttle?function(e,t=250){let n,i,r,a=0,s=null;const o=()=>{a=Date.now(),s=null,n=e.apply(i,r),s||(i=null,r=[])};return function(...l){const u=Date.now(),d=t-(u-a);return i=this,r=l,d<=0||d>t?(s&&(clearTimeout(s),s=null),a=u,n=e.apply(i,r),s||(i=null,r=[])):s||(s=window.setTimeout(o,d)),n}}(s.prototype._strokeUpdate,this.throttle):s.prototype._strokeUpdate,this._ctx=e.getContext("2d",this.canvasContextOptions),this.clear(),this.on()}clear(){const{_ctx:e,canvas:t}=this;e.fillStyle=this.backgroundColor,e.clearRect(0,0,t.width,t.height),e.fillRect(0,0,t.width,t.height),this._data=[],this._reset(this._getPointGroupOptions()),this._isEmpty=!0}fromDataURL(e,t={}){return new Promise(((n,i)=>{const r=new Image,a=t.ratio||window.devicePixelRatio||1,s=t.width||this.canvas.width/a,o=t.height||this.canvas.height/a,l=t.xOffset||0,u=t.yOffset||0;this._reset(this._getPointGroupOptions()),r.onload=()=>{this._ctx.drawImage(r,l,u,s,o),n()},r.onerror=e=>{i(e)},r.crossOrigin="anonymous",r.src=e,this._isEmpty=!1}))}toDataURL(e="image/png",t){return"image/svg+xml"===e?("object"!=typeof t&&(t=void 0),`data:image/svg+xml;base64,${btoa(this.toSVG(t))}`):("number"!=typeof t&&(t=void 0),this.canvas.toDataURL(e,t))}on(){this.canvas.style.touchAction="none",this.canvas.style.msTouchAction="none",this.canvas.style.userSelect="none";const e=/Macintosh/.test(navigator.userAgent)&&"ontouchstart"in document;window.PointerEvent&&!e?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._handlePointerStart),this.canvas.removeEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.removeEventListener("pointerup",this._handlePointerEnd),this.canvas.removeEventListener("mousedown",this._handleMouseDown),this.canvas.removeEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.removeEventListener("mouseup",this._handleMouseUp),this.canvas.removeEventListener("touchstart",this._handleTouchStart),this.canvas.removeEventListener("touchmove",this._handleTouchMove),this.canvas.removeEventListener("touchend",this._handleTouchEnd)}isEmpty(){return this._isEmpty}fromData(e,{clear:t=!0}={}){t&&this.clear(),this._fromData(e,this._drawCurve.bind(this),this._drawDot.bind(this)),this._data=this._data.concat(e)}toData(){return this._data}_getPointGroupOptions(e){return{penColor:e&&"penColor"in e?e.penColor:this.penColor,dotSize:e&&"dotSize"in e?e.dotSize:this.dotSize,minWidth:e&&"minWidth"in e?e.minWidth:this.minWidth,maxWidth:e&&"maxWidth"in e?e.maxWidth:this.maxWidth,velocityFilterWeight:e&&"velocityFilterWeight"in e?e.velocityFilterWeight:this.velocityFilterWeight,compositeOperation:e&&"compositeOperation"in e?e.compositeOperation:this.compositeOperation}}_strokeBegin(e){if(!this.dispatchEvent(new CustomEvent("beginStroke",{detail:e,cancelable:!0})))return;this._drawingStroke=!0;const t=this._getPointGroupOptions(),n=Object.assign(Object.assign({},t),{points:[]});this._data.push(n),this._reset(t),this._strokeUpdate(e)}_strokeUpdate(e){if(!this._drawingStroke)return;if(0===this._data.length)return void this._strokeBegin(e);this.dispatchEvent(new CustomEvent("beforeUpdateStroke",{detail:e}));const t=e.clientX,n=e.clientY,i=void 0!==e.pressure?e.pressure:void 0!==e.force?e.force:0,r=this._createPoint(t,n,i),a=this._data[this._data.length-1],s=a.points,o=s.length>0&&s[s.length-1],l=!!o&&r.distanceTo(o)<=this.minDistance,u=this._getPointGroupOptions(a);if(!o||!o||!l){const e=this._addPoint(r,u);o?e&&this._drawCurve(e,u):this._drawDot(r,u),s.push({time:r.time,x:r.x,y:r.y,pressure:r.pressure})}this.dispatchEvent(new CustomEvent("afterUpdateStroke",{detail:e}))}_strokeEnd(e){this._drawingStroke&&(this._strokeUpdate(e),this._drawingStroke=!1,this.dispatchEvent(new CustomEvent("endStroke",{detail:e})))}_handlePointerEvents(){this._drawingStroke=!1,this.canvas.addEventListener("pointerdown",this._handlePointerStart),this.canvas.addEventListener("pointermove",this._handlePointerMove),this.canvas.ownerDocument.addEventListener("pointerup",this._handlePointerEnd)}_handleMouseEvents(){this._drawingStroke=!1,this.canvas.addEventListener("mousedown",this._handleMouseDown),this.canvas.addEventListener("mousemove",this._handleMouseMove),this.canvas.ownerDocument.addEventListener("mouseup",this._handleMouseUp)}_handleTouchEvents(){this.canvas.addEventListener("touchstart",this._handleTouchStart),this.canvas.addEventListener("touchmove",this._handleTouchMove),this.canvas.addEventListener("touchend",this._handleTouchEnd)}_reset(e){this._lastPoints=[],this._lastVelocity=0,this._lastWidth=(e.minWidth+e.maxWidth)/2,this._ctx.fillStyle=e.penColor,this._ctx.globalCompositeOperation=e.compositeOperation}_createPoint(e,t,n){const r=this.canvas.getBoundingClientRect();return new i(e-r.left,t-r.top,n,(new Date).getTime())}_addPoint(e,t){const{_lastPoints:n}=this;if(n.push(e),n.length>2){3===n.length&&n.unshift(n[0]);const e=this._calculateCurveWidths(n[1],n[2],t),i=r.fromPoints(n,e);return n.shift(),i}return null}_calculateCurveWidths(e,t,n){const i=n.velocityFilterWeight*t.velocityFrom(e)+(1-n.velocityFilterWeight)*this._lastVelocity,r=this._strokeWidth(i,n),a={end:r,start:this._lastWidth};return this._lastVelocity=i,this._lastWidth=r,a}_strokeWidth(e,t){return Math.max(t.maxWidth/(e+1),t.minWidth)}_drawCurveSegment(e,t,n){const i=this._ctx;i.moveTo(e,t),i.arc(e,t,n,0,2*Math.PI,!1),this._isEmpty=!1}_drawCurve(e,t){const n=this._ctx,i=e.endWidth-e.startWidth,r=2*Math.ceil(e.length());n.beginPath(),n.fillStyle=t.penColor;for(let n=0;n0?t.dotSize:(t.minWidth+t.maxWidth)/2;n.beginPath(),this._drawCurveSegment(e.x,e.y,i),n.closePath(),n.fillStyle=t.penColor,n.fill()}_fromData(e,t,n){for(const r of e){const{points:e}=r,a=this._getPointGroupOptions(r);if(e.length>1)for(let n=0;n{const n=document.createElement("path");if(!(isNaN(e.control1.x)||isNaN(e.control1.y)||isNaN(e.control2.x)||isNaN(e.control2.y))){const i=`M ${e.startPoint.x.toFixed(3)},${e.startPoint.y.toFixed(3)} C ${e.control1.x.toFixed(3)},${e.control1.y.toFixed(3)} ${e.control2.x.toFixed(3)},${e.control2.y.toFixed(3)} ${e.endPoint.x.toFixed(3)},${e.endPoint.y.toFixed(3)}`;n.setAttribute("d",i),n.setAttribute("stroke-width",(2.25*e.endWidth).toFixed(3)),n.setAttribute("stroke",t),n.setAttribute("fill","none"),n.setAttribute("stroke-linecap","round"),a.appendChild(n)}}),((e,{penColor:t,dotSize:n,minWidth:i,maxWidth:r})=>{const s=document.createElement("circle"),o=n>0?n:(i+r)/2;s.setAttribute("r",o.toString()),s.setAttribute("cx",e.x.toString()),s.setAttribute("cy",e.y.toString()),s.setAttribute("fill",t),a.appendChild(s)})),a.outerHTML}}},42574:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96877)),a=i(n(39142)),s=i(n(2543)),o=n(34600);class l extends a.default{hasChanged(e,t){return null!=e&&!this.hasValue()||!s.default.isEqual(e,t)}static savedValueTypes(e){return(0,o.getComponentSavedTypes)(e)||[o.componentValueTypes.object]}get allowData(){return!0}get emptyValue(){return{}}componentContext(){return this.dataValue}getValueAsString(e,t){if(null==t?void 0:t.email){let e='\n \n \n ';return this.everyComponent((n=>{n.isInputComponent&&n.visible&&!n.skipInEmail&&(e+=`\n \n \n \n \n `)}),Object.assign(Object.assign({},t),{fromRoot:!0})),e+="\n \n
${n.label}${n.getView(n.dataValue,t)}
\n ",e}return s.default.isEmpty(e)?"":(null==t?void 0:t.modalPreview)?(delete t.modalPreview,this.getDataValueAsTable(e,t)):"[Complex Data]"}getDataValueAsTable(e,t){let n='\n \n \n ';const i=new RegExp("<(.*?)>");return this.everyComponent((e=>{if(e.isInputComponent&&e.visible&&!e.skipInEmail){const r=e.getView(e.dataValue,t);n+=`\n \n \n \n \n `}}),Object.assign(Object.assign({},t),{fromRoot:!0})),n+="\n \n
${e.label}${e.component&&"html"===e.component.inputFormat&&i.test(r)?r:``}
\n ",n}everyComponent(e,t={}){if(null==t?void 0:t.email){if(!t.fromRoot)return;delete t.fromRoot}return super.everyComponent(e,t)}getValue(){return this.dataValue}updateValue(e,t={}){return r.default.prototype.updateValue.call(this,e,t)}setValue(e,t={}){let n=!1;const i=this.hasValue();return i&&s.default.isEmpty(this.dataValue)&&(t.noValidate=!0),e&&s.default.isObject(e)&&i||(n=!0,this.dataValue=this.defaultValue),n=super.setValue(e,t)||n,this.updateOnChange(t,n),n}}t.default=l},42584:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(33844));t.default=[{label:"Strength Levels",reorder:!1,addAnotherPosition:"bottom",layoutFixed:!1,enableRowGroups:!1,initEmpty:!1,tableView:!1,defaultValue:[{}],key:"levels",type:"editgrid",input:!0,components:[{label:"Name",tableView:!0,validate:{required:!0},key:"name",type:"textfield",input:!0},{label:"Max Entropy",description:"Specifies the top boundary of the password's entropy(strength) which belongs to this level.\nCommon entropy values are:\n
    \n
  • < 28 bits = Very Weak;
  • \n
  • 28 - 35 bits = Weak; should keep out most people;
  • \n
  • 36 - 59 bits = Reasonable; fairly secure passwords for network and company passwords;
  • \n
  • 60 - 127 bits = Strong; can be good for guarding financial information;
  • \n
  • > 128 bits = Very Strong; often overkill;
  • \n
\n",mask:!1,spellcheck:!0,tableView:!1,delimiter:!1,requireDecimal:!1,inputFormat:"plain",validate:{required:!0,min:1,max:128},key:"maxEntropy",type:"number",input:!0},{label:"Style",tooltip:"Specifies the background color style using bootstrap classes",tableView:!0,data:{values:[{label:"Danger",value:"danger"},{label:"Warning",value:"warning"},{label:"Info",value:"info"},{label:"Success",value:"success"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"style",type:"select",indexeddb:{filter:{}},input:!0},{label:"Color",placeholder:"#0079c0",tooltip:"Specifies a color of the indicator element",tableView:!0,key:"color",type:"textfield",input:!0}]},{label:"Update On",tableView:!0,data:{values:[{label:"Strength Level Change",value:"levelChange"},{label:"Entropy Change",value:"entropyChange"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"updateOn",type:"select",indexeddb:{filter:{}},input:!0},{label:"Rules",reorder:!1,addAnotherPosition:"bottom",layoutFixed:!1,enableRowGroups:!1,initEmpty:!1,tableView:!1,defaultValue:[{}],key:"rulesSettings",type:"datagrid",input:!0,components:[{label:"Name",tableView:!0,data:{values:[{label:"Length",value:"length"},{label:"Lower Case",value:"lowerCase"},{label:"Upper Case",value:"upperCase"},{label:"Numeric",value:"numeric"},{label:"Symbols",value:"symbols"}]},selectThreshold:.3,validate:{required:!0,onlyAvailableItems:!1},key:"name",type:"select",indexeddb:{filter:{}},input:!0},{label:"Error Message",tableView:!0,key:"errorMessage",type:"textfield",input:!0},{label:"Required",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1}]},{label:"Custom Rules",tableView:!1,rowDrafts:!1,key:"customRules",type:"editgrid",input:!0,components:[{label:"Name",tableView:!0,validate:{required:!0},key:"name",type:"textfield",input:!0},r.default.javaScriptValue("Check","check","",1100,'

Example:

valid = !value.includes(data.email) ? true : "Password should not be variation of the email";

',"","",!0),{label:"Increase Characters Pool Size",description:"Set this to amount of characters that may be used in the password if there is a specific group of characters is used.\nE.g., if your validation checks if there is any numeric symbol in the password, then you should set it to 10 (there are 10 possible numbers).\n",mask:!1,spellcheck:!0,tableView:!1,delimiter:!1,requireDecimal:!1,inputFormat:"plain",key:"increaseCharactersPoolSize",type:"number",input:!0},{label:"Required",tooltip:"Check if this check is required to proceed",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1}]},r.default.javaScriptValue("Is Valid","isValid","",1100,"

Example:

valid = entropy > maxEntropy / 2 ;

","","entropyCurrent entropy bits of the password.levelCurrent strength level of the password.",!0),{label:"Required",description:"Check this if you don't want to allow submitting password which does not correspond to the minimal strength requirements.",tableView:!1,key:"required",type:"checkbox",input:!0,defaultValue:!1},{label:"Black List",tooltip:"Add words to search in the password. If there are some words from that list were found, the entropy of the password will be recalculated.\n",tableView:!0,multiple:!0,key:"blackList",type:"textfield",input:!0},r.default.javaScriptValue("Custom Blacklisted Words","customBlackListedWords","",1100,"

Example:

values = [ data.name, data.dataOfBirth, data.favoriteColor ];

","","",!0),{label:"Disable Blacklisted Words",tooltip:"Check if you want to disable submitting passwords containing words form the clack list",tableView:!1,key:"disableBlacklistedWords",type:"checkbox",input:!0,defaultValue:!1},{label:"Location",hideLabel:!1,tableView:!1,key:"location",type:"container",input:!0,components:[{label:"Insert",tooltip:"Specifies where the indicator will be inserted: before or aftre an element",tableView:!0,data:{values:[{label:"Before",value:"before"},{label:"After",value:"after"}]},selectThreshold:.3,validate:{onlyAvailableItems:!1},key:"insert",type:"select",indexeddb:{filter:{}},input:!0},{label:"Selector",placeholder:"[ref='element']",description:"Specifies the selector of the element which will be used as a reference to insert the indicator template",tableView:!0,key:"selector",type:"textfield",input:!0}]},{label:"Template",editor:"ace",tableView:!0,key:"template",type:"textarea",input:!0,as:"html"}]},42589:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(38717);t.default={form:i.default}},42681:function(e,t,n){var i;!function(r){"use strict";function a(e){var n=e&&e.Promise||r.Promise,i=e&&e.XMLHttpRequest||r.XMLHttpRequest;return function(){var e=Object.create(r,{fetch:{value:void 0,writable:!0}});return function(t){var r=void 0!==e&&e||"undefined"!=typeof self&&self||void 0!==r&&r,a="URLSearchParams"in r,s="Symbol"in r&&"iterator"in Symbol,o="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),l="FormData"in r,u="ArrayBuffer"in r;if(u)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(e){return e&&d.indexOf(Object.prototype.toString.call(e))>-1};function h(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function f(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return s&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function g(e){if(e.bodyUsed)return n.reject(new TypeError("Already read"));e.bodyUsed=!0}function v(e){return new n((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function y(e){var t=new FileReader,n=v(t);return t.readAsArrayBuffer(e),n}function b(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:l&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:a&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():u&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=b(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):u&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=b(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):a&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=g(this);if(e)return e;if(this._bodyBlob)return n.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return n.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return n.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?g(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?n.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):n.resolve(this._bodyArrayBuffer)):this.blob().then(y)}),this.text=function(){var e,t,i,r=g(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,i=v(t),t.readAsText(e),i;if(this._bodyArrayBuffer)return n.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),i=0;i-1?i:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var a=/([?&])_=[^&]*/;if(a.test(this.url))this.url=this.url.replace(a,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function k(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}})),t}function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}M.prototype.clone=function(){return new M(this,{body:this._bodyInit})},_.call(M.prototype),_.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:0,statusText:""});return e.type="error",e};var x=[301,302,303,307,308];S.redirect=function(e,t){if(-1===x.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function L(e,a){return new n((function(n,s){var l=new M(e,a);if(l.signal&&l.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var d=new i;function c(){d.abort()}d.onload=function(){var e,t,i={status:d.status,statusText:d.statusText,headers:(e=d.getAllResponseHeaders()||"",t=new m,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),i=n.shift().trim();if(i){var r=n.join(":").trim();t.append(i,r)}})),t)};i.url="responseURL"in d?d.responseURL:i.headers.get("X-Request-URL");var r="response"in d?d.response:d.responseText;setTimeout((function(){n(new S(r,i))}),0)},d.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},d.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},d.onabort=function(){setTimeout((function(){s(new t.DOMException("Aborted","AbortError"))}),0)},d.open(l.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(l.url),!0),"include"===l.credentials?d.withCredentials=!0:"omit"===l.credentials&&(d.withCredentials=!1),"responseType"in d&&(o?d.responseType="blob":u&&l.headers.get("Content-Type")&&-1!==l.headers.get("Content-Type").indexOf("application/octet-stream")&&(d.responseType="arraybuffer")),!a||"object"!=typeof a.headers||a.headers instanceof m?l.headers.forEach((function(e,t){d.setRequestHeader(t,e)})):Object.getOwnPropertyNames(a.headers).forEach((function(e){d.setRequestHeader(e,p(a.headers[e]))})),l.signal&&(l.signal.addEventListener("abort",c),d.onreadystatechange=function(){4===d.readyState&&l.signal.removeEventListener("abort",c)}),d.send(void 0===l._bodyInit?null:l._bodyInit)}))}L.polyfill=!0,r.fetch||(r.fetch=L,r.Headers=m,r.Request=M,r.Response=S),t.Headers=m,t.Request=M,t.Response=S,t.fetch=L,Object.defineProperty(t,"__esModule",{value:!0})}(t),{fetch:e.fetch,Headers:e.Headers,Request:e.Request,Response:e.Response,DOMException:e.DOMException}}()}void 0===(i=function(){return a}.call(t,n,t,e))||(e.exports=i)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:void 0!==n.g?n.g:this)},42787:(e,t,n)=>{"use strict";var i=n(39297),r=n(94901),a=n(48981),s=n(66119),o=n(12211),l=s("IE_PROTO"),u=Object,d=u.prototype;e.exports=o?u.getPrototypeOf:function(e){var t=a(e);if(i(t,l))return t[l];var n=t.constructor;return r(n)&&t instanceof n?n.prototype:t instanceof u?d:null}},42906:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
\n
\n \n
\n ",e.component.components.forEach((function(i,r){n+='\n \n '+(null==(t=e.tabComponents[r])?"":t)+"\n
\n "})),n+="\n\n"}},42913:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(57692)),a=i(n(97567)),s=i(n(87338)),o=i(n(2543)),l=n(34600);class u extends r.default{constructor(){let e,t;arguments[0]instanceof HTMLElement||arguments[1]?(e=arguments[0],t=arguments[1]):t=arguments[0],t.skipInit=!1,t.display="wizard",super(e,t),this._form={components:[this.getPageConfig(1)]},this.page=0;for(const e in this.groups)this.groups[e]&&this.groups[e].components&&(this.groups[e].componentOrder=Object.keys(this.groups[e].components).map((t=>this.groups[e].components[t])).filter((e=>e&&!e.ignore)).sort(((e,t)=>e.weight-t.weight)).map((e=>e.key)));const n=this.options.hooks.renderComponents;this.options.hooks.renderComponents=(e,{components:t,self:i})=>"form"!==i.type||i.root?n(e,{components:t,self:i}):e;const i=this.options.hooks.attachComponents;this.options.hooks.attachComponents=(e,t,n,r)=>"form"!==r.type||r.root?i(e,t,n,r):e,this.on("saveComponent",((e,t)=>{const n=this.webform.components.map((({component:e})=>e));if(this._form.components.includes(t))this._form.components[this._form.components.indexOf(t)]=e,this.rebuild();else if(n.includes(t))this._form.components.push(e),this.rebuild();else{const n=this._form.components.findIndex((e=>t.key===e.key));-1!==n&&(this._form.components[n]=e,this.rebuild())}}),!0)}removeComponent(e,t,n){const i=super.removeComponent(e,t,n);if(i&&"panel"===e.type){const t=this.pages.findIndex((t=>t.key===e.key)),n=this._form.components.findIndex((t=>t.key===e.key));-1!==t&&this.removePage(t,n)}return i}allowDrop(e){return!this.webform||!this.webform.refs||this.webform.refs.webform!==e}get pages(){return o.default.filter(this._form.components,{type:"panel"})}get currentPage(){const e=this.pages;return e&&e.length>=this.page?e[this.page]:null}setForm(e){if(this._form=e,this._form.components&&Array.isArray(this._form.components)||(this._form.components=[]),0===this.pages.length){const e=this._form.components.filter((e=>"button"!==e.type));this._form.components=[this.getPageConfig(1,e)]}else{const e=this._form.components.filter((e=>"button"!==e.type||"submit"!==e.action));this._form.components=e}this.rebuild()}set form(e){this.setForm(e)}get form(){return this._form}get schema(){o.default.assign(this.currentPage,this.webform._form.components[0]);const e=new a.default(this.options);return e.setForm(this._form,{noEmit:!0}),e.schema}render(){return this.renderTemplate("builderWizard",{sidebar:this.renderTemplate("builderSidebar",{scrollEnabled:this.sideBarScroll,groupOrder:this.groupOrder,groupId:`builder-sidebar-${this.id}`,groups:this.groupOrder.map((e=>this.renderTemplate("builderSidebarGroup",{group:this.groups[e],groupKey:e,groupId:`builder-sidebar-${this.id}`,subgroups:this.groups[e].subgroups.map((t=>this.renderTemplate("builderSidebarGroup",{group:t,groupKey:t.key,groupId:`group-container-${e}`,subgroups:[]})))})))}),pages:this.pages,form:this.webform.render()})}attach(e){return this.loadRefs(e,{addPage:"multiple",gotoPage:"multiple"}),this.refs.gotoPage.forEach(((e,t)=>{e.parentNode.dragInfo={index:t}})),this.dragulaLib&&(this.navigationDragula=this.dragulaLib([this.element.querySelector(".wizard-pages")],{moves:e=>!e.classList.contains("wizard-add-page"),accepts:(e,t,n,i)=>!!i}).on("drop",this.onReorder.bind(this))),this.refs.addPage.forEach((e=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.addPage()}))})),this.refs.gotoPage.forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.setPage(t)}))})),super.attach(e)}detach(){this.navigationDragula&&this.navigationDragula.destroy(),this.navigationDragula=null,super.detach()}rebuild(){var e;const t=this.currentPage;return this.webform.setForm({display:"form",type:"form",components:t?[t]:[],controller:(null===(e=this._form)||void 0===e?void 0:e.controller)||""},{keepAsReference:!0}),this.redraw()}addPage(e){const t=e&&e.schema?(0,l.fastCloneDeep)(e.schema):this.getPageConfig(this.pages.length+1);return s.default.uniquify(this._form.components,t),this._form.components.push(t),this.emitSaveComponentEvent(t,t,this._form,"components",this._form.components.length-1,!0,t),this.emit("change",this._form),this.rebuild()}removePage(e,t){return this._form.components.splice(t,1),this.emit("change",this._form),e===this.pages.length?0===e?(this._form.components.push(this.getPageConfig(1)),this.rebuild()):this.setPage(e-1):this.rebuild()}onReorder(e,t,n,i){const r=null==i?void 0:i.classList.contains("wizard-add-page");if(!e.dragInfo||i&&!i.dragInfo&&!r)return void console.warn("There is no Drag Info available for either dragged or sibling element");const a=e.dragInfo.index,s=i&&i.dragInfo?i.dragInfo.index:this.pages.length,o=s>a,u=(0,l.fastCloneDeep)(this._form.components),d=this._form.components[a];return u.splice(s,0,d),u.splice(o?a:a+1,1),this._form.components=(0,l.fastCloneDeep)(u),this.rebuild().then((()=>{this.emit("change",this._form)}))}setPage(e){if(e!==this.page)return this.page=e,this.rebuild()}getPageConfig(e,t=[]){return{title:`Page ${e}`,label:`Page ${e}`,type:"panel",key:`page${e}`,components:t}}pasteComponent(e){if(!(e instanceof u))return this._form.components.find((t=>o.default.isEqual(e.component,t)))?void this.addPage(e):super.pasteComponent(e)}}t.default=u},42955:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t,n)=>{let i=t;switch(t){case"cog":i="gear";break;case"copy":i="back";break;case"bars":i="list";break;case"remove":i="trash";break;case"font":i="type";break;case"hashtag":i="hash";break;case"th-list":i="menu-button-wide";break;case"dot-circle-o":i="ui-radios";break;case"plus-square-o":i="plus-square";break;case"minus-square-o":i="dash-square";break;case"plus-square":i="ui-checks";break;case"phone-square":i="phone";break;case"home":i="house";break;case"clock-o":case"time":i="clock";break;case"usd":i="currency-dollar";break;case"html5":i="file-richtext";break;case"pencil-square-o":i="pencil-square";break;case"columns":i="layout-three-columns";break;case"list-alt":i="window";break;case"th-large":i="grid-fill";break;case"folder-o":i="folder";break;case"square-o":i="square";break;case"user-secret":i="person-fill-slash";break;case"folder-open":case"folder-open":i="folder2-open";break;case"th":i="grid-3x3-gap-fill";break;case"tasks":i="view-stacked";break;case"indent":i="text-indent-left";break;case"refresh":i="arrow-repeat";break;case"files-o":i="files";break;case"wpforms":i="window-stack";break;case"cube":i="box";break;case"cubes":i="boxes";break;case"check-square-o":i="check-square";break;case"plus":i="plus-lg";break;case"question-sign":t="question-circle",i="question-circle";break;case"remove-circle":i="x-circle";break;case"new-window":t="window-restore",i="window-plus";break;case"move":t="arrows",i="arrows-move";break;case"edit":i="pencil";break;case"video":i="camera-video";break;case"microphone":i="mic";break;case"check-circle":i="check-circle-fill";break;case"times-circle":i="x-circle-fill";break;case"pencil":i="pencil-fill";break;case"minus":i="dash";break;case"circle":i="circle-fill";break;case"search-plus":i="zoom-in";break;case"search-minus":i="zoom-out";break;case"hand-paper-o":i="hand-index";break;case"undo":i="arrow-counterclockwise";break;case"repeat":i="arrow-clockwise"}return n?"spinner-border spinner-border-sm":`fa fa-${t} bi bi-${i}`}},43004:function(e,t,n){!function(e){"use strict";e.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},43168:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3607),r=n(42906);t.default={flat:i.default,form:r.default}},43279:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(99903),r=n(62724);t.default={form:i.default,html:r.default}},43360:(e,t,n)=>{var i=n(93243);e.exports=function(e,t,n){"__proto__"==t&&i?i(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},43385:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,r=(i=n(34025))&&"object"==typeof i&&"default"in i?i.default:i;function a(e){if(e===window)return function(){var e={top:{value:0,enumerable:!0},left:{value:0,enumerable:!0},right:{value:window.innerWidth,enumerable:!0},bottom:{value:window.innerHeight,enumerable:!0},width:{value:window.innerWidth,enumerable:!0},height:{value:window.innerHeight,enumerable:!0},x:{value:0,enumerable:!0},y:{value:0,enumerable:!0}};if(Object.create)return Object.create({},e);var t={};return Object.defineProperties(t,e),t}();try{var t=e.getBoundingClientRect();return void 0===t.x&&(t.x=t.left,t.y=t.top),t}catch(t){throw new TypeError("Can't call getBoundingClientRect on "+e)}}t.createPointCB=r,t.getClientRect=a,t.pointInside=function(e,t){var n=a(t);return e.y>n.top&&e.yn.left&&e.x({type:"number"});return Object.assign(Object.assign({},super.conditionOperatorsSettings),{valueComponent(e){const t=Object.assign(Object.assign({},e),{type:"select"});return(0,u.isSelectResourceWithObjectValue)(e)&&(t.reference=!1,t.onSetItems="\n var templateKeys = utils.getItemTemplateKeys(component.template) || [];\n items = _.map(items || [], i => {\n var item = {};\n _.each(templateKeys, k => _.set(item, k, _.get(i, k)));\n return item;\n })\n "),t},dataTypeOperators:{number:["lessThan","greaterThan","lessThanOrEqual","greaterThanOrEqual"]},dataTypeValueComponents:{number:{lessThan:e,greaterThan:e,lessThanOrEqual:e,greaterThanOrEqual:e}}})}static savedValueTypes(e){const{boolean:t,string:n,number:i,object:r,array:a}=u.componentValueTypes,{dataType:s,reference:o}=e;return(0,u.getComponentSavedTypes)(e)||(o?[r]:"object"===s?[r,a]:u.componentValueTypes[s]?[u.componentValueTypes[s]]:[t,n,i,r,a])}init(){super.init(),this.templateData={};let e=[];const t=r.default.debounce(((...t)=>(e=[],this.updateItems.apply(this,t))),100);this.triggerUpdate=(...n)=>("function"==typeof this.itemsLoadedResolve&&this.itemsLoadedResolve(),this.itemsLoaded=new Promise((e=>{this.itemsLoadedResolve=e})),n.length&&(e=n),t(...e)),this.selectOptions=[],this.itemsFromUrl&&(this.isFromSearch=!1,this.searchServerCount=null,this.defaultServerCount=null,this.isScrollLoading=!1,this.searchDownloadedResources=[],this.defaultDownloadedResources=[]),this.activated=!1,this.itemsLoaded=new Promise((e=>{this.itemsLoadedResolve=e})),this.shouldPositionDropdown=this.hasDataGridAncestor(),this.isHtmlRenderMode()&&this.activate(),this.getTemplateKeys()}get defaultSchema(){return c.schema()}get emptyValue(){if(this.component.multiple)return[];if("json"===this.component.dataSrc&&this.component.data.json){const e=this.component.data.json[0];let t;return t=this.valueProperty?r.default.get(e,this.valueProperty):e,t&&"string"==typeof t?"":{}}return this.valueProperty?"":{}}get valueProperty(){return this.component.valueProperty?this.component.valueProperty:"values"===this.component.dataSrc?"value":""}get inputInfo(){const e=super.elementInfo();return e.type="select",e.changeEvent="change",e}get isSelectResource(){return"resource"===this.component.dataSrc}get itemsFromUrl(){return this.isSelectResource||this.isSelectURL}get isInfiniteScrollProvided(){return this.itemsFromUrl}get shouldDisabled(){return super.shouldDisabled||this.parentDisabled}get shouldInitialLoad(){return!("html5"===this.component.widget&&this.isEntireObjectDisplay()&&this.component.searchField&&this.dataValue)&&super.shouldLoad}get selectMetadata(){return super.selectData}get selectData(){return this.selectMetadata||this.component.selectData}isEntireObjectDisplay(){return"resource"===this.component.dataSrc&&"data"===this.valueProperty}selectValueAndLabel(e){const t=this.getOptionValue(this.isEntireObjectDisplay()&&!this.itemValue(e)?e:this.itemValue(e));return{value:t,label:this.itemTemplate(this.isEntireObjectDisplay()&&!r.default.isObject(e.data)?{data:e}:e,t)}}itemTemplate(e,t){if(!r.default.isNumber(e)&&r.default.isEmpty(e))return"";if(this.options.readOnly&&this.component.readOnlyValue)return this.itemValue(e);if(e&&!this.component.template){const t=e.label||e,n="string"==typeof t?this.t(t,{_userInput:!0}):t;return this.sanitize(n,this.shouldSanitizeValue)}if((this.component.multiple&&r.default.isArray(this.dataValue)?this.dataValue.find((e=>this.normalizeSingleValue(t)===e)):this.dataValue===this.normalizeSingleValue(t))||this.inDataTable){const n=this.selectData;if(n){const i=this.component.reference&&(null==t?void 0:t._id)?t._id.toString():t;this.templateData&&this.templateData[i]||this.getOptionTemplate(e,t),this.component.multiple?n[i]&&(e=n[i]):e=n}}if("string"==typeof e||"number"==typeof e)return this.sanitize(this.t(e,{_userInput:!0}),this.shouldSanitizeValue);if(Array.isArray(e))return e.map((e=>"string"==typeof e||"number"==typeof e?this.sanitize(this.t(e,{_userInput:!0}),this.shouldSanitizeValue):e));if(e.data){const t=/item\.data\.\w*/g.test(this.component.template);e.data=this.isEntireObjectDisplay()&&r.default.isObject(e.data)&&!t?JSON.stringify(e.data):e.data}return super.itemTemplate(e,t)}addOption(e,t,n={},i=(0,u.getRandomComponentId)()){if(r.default.isNil(t))return;const a=this.component.idPath?this.component.idPath.split(".").reduceRight(((e,t)=>({[t]:e})),i):{},s=Object.assign({value:this.getOptionValue(e),label:t},a);if((!this.component.uniqueOptions||!this.selectOptions.find((e=>r.default.isEqual(e.value,s.value))))&&(e&&this.selectOptions.push(s),this.refs.selectContainer&&"html5"===this.component.widget)){s.value&&r.default.isObject(s.value)&&r.default.isEmpty(s.value)&&(s.value="");const t=document.createElement("div");t.innerHTML=this.sanitize(this.renderTemplate("selectOption",{selected:r.default.isEqual(this.getOptionValue(this.dataValue),s.value),option:s,attrs:n,id:i,useId:(""===this.valueProperty||this.isEntireObjectDisplay())&&r.default.isObject(e)&&i}),this.shouldSanitizeValue).trim(),s.element=t.firstChild,this.refs.selectContainer.appendChild(s.element)}}addValueOptions(e){e=e||[];let t=!1,n=this.dataValue;if(this.options.pdf&&!e.length&&"url"===this.component.dataSrc&&this.valueProperty&&(n=Array.isArray(n)?n.map((e=>r.default.set({},this.valueProperty,e))):r.default.set({},this.valueProperty,n)),!this.selectOptions.length){const i=Array.isArray(n)&&this.component.multiple?n:[n];t=this.addCurrentChoices(i,e),t||this.component.multiple||this.addPlaceholder()}return t}disableInfiniteScroll(){this.downloadedResources&&(this.downloadedResources.serverCount=this.downloadedResources.length,this.serverCount=this.downloadedResources.length)}setItems(e,t){var n,i;if(this.selectItems=e,"string"==typeof e)try{e=JSON.parse(e)}catch(t){console.warn(t.message),e=[]}if(this.component.onSetItems){const t="function"==typeof this.component.onSetItems?this.component.onSetItems(this,e):this.evaluate(this.component.onSetItems,{items:e},"items");t&&(e=t)}let a;if(!this.choices&&this.refs.selectContainer&&this.empty(this.refs.selectContainer),this.component.selectValues&&(e=r.default.get(e,this.component.selectValues,e)||[]),this.itemsFromUrl){a=!!this.isSelectURL&&r.default.isEqual(e,this.downloadedResources);const t=this.component.limit>e.length,n=a&&this.downloadedResources&&this.downloadedResources.length===e.length;t?this.disableInfiniteScroll():n?this.selectOptions=[]:this.serverCount=e.serverCount}if(this.isScrollLoading&&e)a||(this.downloadedResources=this.downloadedResources?this.downloadedResources.concat(e):e),this.downloadedResources.serverCount=e.serverCount||this.downloadedResources.serverCount;else if(this.downloadedResources=e||[],this.selectOptions=[],!r.default.isEmpty(this.dataValue)&&this.component.idPath){const t=r.default.get(this.dataValue,this.component.idPath,null),n=!r.default.isNil(t)&&e.find((e=>r.default.get(e,this.component.idPath)===t));n&&this.setValue(n)}if(t||this.addValueOptions(e),"html5"!==this.component.widget||this.component.placeholder||this.addOption(null,""),r.default.each(e,((e,t)=>{if(this.root&&this.root.options.editForm&&this.root.options.editForm._id&&this.root.options.editForm._id===e._id)return;const n=this.selectValueAndLabel(e);this.addOption(n.value,n.label,{},r.default.get(e,this.component.idPath,String(t)))})),this.choices?this.choices.setChoices(this.selectOptions,"value","label",!0):this.loading,this.isScrollLoading=!1,this.loading=!1,!t||!(null===(i=null===(n=this.choices)||void 0===n?void 0:n.input)||void 0===i?void 0:i.isFocussed))if(!this.isEmpty()||this.isRemoveButtonPressed)this.setValue(this.dataValue,{noUpdateEvent:!0});else if(this.shouldAddDefaultValue&&!this.options.readOnly){const e=this.defaultValue;this.isEmpty(e)||this.setValue(e)}this.itemsLoadedResolve()}getSingleItemValueForHTMLMode(e){var t;const n=null===(t=this.selectOptions)||void 0===t?void 0:t.find((({value:t})=>r.default.isEqual(t,e)));return n&&n.label||e}itemValueForHTMLMode(e){return this.isHtmlRenderMode()?Array.isArray(e)?e.map((e=>Array.isArray(e)?this.itemValueForHTMLMode(e):this.getSingleItemValueForHTMLMode(e))).join(", "):this.getSingleItemValueForHTMLMode(e):super.itemValueForHTMLMode(e)}get defaultValue(){let e=super.defaultValue;return e||!1!==this.component.defaultValue&&0!==this.component.defaultValue||(e=this.component.defaultValue),e}get loadingError(){return!this.component.refreshOn&&!this.component.refreshOnBlur&&this.networkError}loadItems(e,t,n,i,s,o){if(i=i||{},!this.shouldLoad||!this.itemsFromUrl&&this.options.readOnly)return this.isScrollLoading=!1,this.loading=!1,void this.itemsLoadedResolve();const l=parseInt(this.component.minSearch,10);if(this.component.searchField&&l>0&&(!t||t.lengththis.interpolate(e)))),this.component.filter&&(e+=(e.includes("?")?"&":"?")+this.interpolate(this.component.filter)),i.ignoreCache=this.component.ignoreCache,i.header=n,this.loading=!0,a.Formio.makeRequest(this.options.formio,"select",e,s,o,i).then((e=>{this.loading=!1,this.setItems(e,!!t)})).catch((e=>{this.itemsFromUrl&&(this.setItems([]),this.disableInfiniteScroll()),this.isScrollLoading=!1,this.handleLoadingError(e)}))}handleLoadingError(e){this.loading=!1,e.networkError&&(this.networkError=!0),this.itemsLoadedResolve(),this.emit("componentError",{component:this.component,message:e.toString()}),console.warn(`Unable to load resources for ${this.key}`)}get requestHeaders(){const e=new a.Formio.Headers;if(this.component.data&&this.component.data.headers)try{r.default.each(this.component.data.headers,(t=>{t.key&&e.set(t.key,this.interpolate(t.value))}))}catch(e){console.warn(e.message)}return e}getCustomItems(){const e=this.evaluate(this.component.data.custom,{values:[]},"values");return this.asyncValues=(0,u.isPromise)(e),e}asyncCustomValues(){return r.default.isBoolean(this.asyncValues)||this.getCustomItems(),this.asyncValues}updateCustomItems(e){if(this.asyncCustomValues()){if(!e&&!this.active)return void this.itemsLoadedResolve();this.loading=!0,this.getCustomItems().then((e=>{this.loading=!1,this.setItems(e||[])})).catch((e=>{this.handleLoadingError(e)}))}else this.setItems(this.getCustomItems()||[])}isEmpty(e=this.dataValue){return super.isEmpty(e)||void 0===e}refresh(e,{instance:t}){this.component.clearOnRefresh&&t&&!t.pristine&&this.setValue(this.emptyValue),this.updateItems(null,!0)}get additionalResourcesAvailable(){return r.default.isNil(this.serverCount)||this.serverCount>this.downloadedResources.length}get serverCount(){return this.isFromSearch?this.searchServerCount:this.defaultServerCount}set serverCount(e){this.isFromSearch?this.searchServerCount=e:this.defaultServerCount=e}get downloadedResources(){return this.isFromSearch?this.searchDownloadedResources:this.defaultDownloadedResources}set downloadedResources(e){this.isFromSearch?this.searchDownloadedResources=e:this.defaultDownloadedResources=e}addPlaceholder(){this.component.placeholder&&this.addOption("",this.component.placeholder,{placeholder:!0})}activate(){!this.loading&&this.active||this.setLoadingItem(),this.active||(this.activated=!0,this.triggerUpdate())}setLoadingItem(e=!1){this.choices?e?this.choices.setChoices([{value:`${this.id}-loading`,label:"Loading...",disabled:!0}],"value","label"):this.choices.setChoices([{value:"",label:``,disabled:!0}],"value","label",!0):"url"!==this.component.dataSrc&&"resource"!==this.component.dataSrc||this.addOption("",this.t("loading..."))}get active(){return!this.component.lazyLoad||this.activated}render(){const e=this.inputInfo;return e.attr=e.attr||{},e.multiple=this.component.multiple,super.render(this.wrapElement(this.renderTemplate("select",{input:e,selectOptions:"",index:null})))}wrapElement(e){return this.component.addResource&&!this.options.readOnly?this.renderTemplate("resourceAdd",{element:e}):e}choicesOptions(){const e=!this.component.hasOwnProperty("searchEnabled")||this.component.searchEnabled,t=this.t(this.component.placeholder,{_userInput:!0});let n=this.component.customOptions||{};if("string"==typeof n)try{n=JSON.parse(n)}catch(e){console.warn(e.message),n={}}const i={maxPatternLength:1e3,distance:1e3};return Object.assign({removeItemButton:!this.component.disabled&&r.default.get(this.component,"removeItemButton",!0),itemSelectText:"",classNames:{containerOuter:"choices form-group formio-choices",containerInner:this.transform("class","form-control ui fluid selection dropdown")},addItemText:!1,allowHTML:!0,placeholder:!!this.component.placeholder,placeholderValue:t,noResultsText:this.t("No results found"),noChoicesText:this.t("No choices to choose from"),searchPlaceholderValue:this.t("Type to search"),shouldSort:!1,position:this.component.dropdown||"auto",searchEnabled:e,searchChoices:!this.component.searchField,searchFields:r.default.get(this,"component.searchFields",["label"]),shadowRoot:this.root?this.root.shadowRoot:null,fuseOptions:this.component.useExactSearch?Object.assign({tokenize:!0,matchAllTokens:!0},i):Object.assign({},r.default.get(this,"component.fuseOptions",{}),Object.assign({include:"score",threshold:r.default.get(this,"component.selectThreshold",.3)},i)),valueComparer:r.default.isEqual,resetScrollPosition:!1},n)}attach(e){var t,n,i;const s=super.attach(e);this.loadRefs(e,{selectContainer:"single",addResource:"single",autocompleteInput:"single"});const u=this.refs.autocompleteInput;u&&this.addEventListener(u,"change",(e=>{this.setValue(e.target.value)}));const c=this.refs.selectContainer;if(!c)return;if(this.addEventListener(c,this.inputInfo.changeEvent,(()=>this.updateValue(null,{modified:!0}))),this.attachRefreshOnBlur(),"html5"===this.component.widget)return this.addFocusBlurEvents(c),this.triggerUpdate(null,!0),this.visible&&this.setItems(this.selectItems||[]),this.focusableElement=c,"custom"===this.component.dataSrc&&this.addEventListener(c,"focus",(()=>this.updateCustomItems())),void this.addEventListener(c,"keydown",(e=>{const{key:t}=e;["Backspace","Delete"].includes(t)&&this.setValue(this.emptyValue)}));const h=c.tabIndex;this.addPlaceholder(),this.i18next&&c.setAttribute("dir",this.i18next.dir()),(null===(i=null===(n=null===(t=this.choices)||void 0===t?void 0:t.containerOuter)||void 0===n?void 0:n.element)||void 0===i?void 0:i.parentNode)&&this.choices.destroy();const p=this.choicesOptions();if(d.default&&(this.choices=new d.default(c,p),this.selectOptions&&this.selectOptions.length&&this.choices.setChoices(this.selectOptions,"value","label",!0),this.component.multiple?this.focusableElement=this.choices.input.element:(this.focusableElement=this.choices.containerInner.element,this.choices.containerOuter.element.setAttribute("tabIndex","-1"),this.addEventListener(this.choices.containerOuter.element,"focus",(()=>this.focusableElement.focus()))),o.default.prototype.addFocusBlurEvents.call(this,this.focusableElement),this.itemsFromUrl&&!this.component.noRefreshOnScroll&&(this.scrollList=this.choices.choiceList.element,this.addEventListener(this.scrollList,"scroll",(()=>this.onScroll()))),p.removeItemButton&&this.addEventListener(c,"removeItem",(()=>{this.isRemoveButtonPressed=!0}))),window&&this.choices&&this.shouldPositionDropdown&&this.addEventListener(window.document,"scroll",(()=>{this.positionDropdown(!0)}),!1,!0),this.focusableElement.setAttribute("tabIndex",h),this.component.searchField){this.choices&&this.choices.input&&this.choices.input.element&&this.addEventListener(this.choices.input.element,"input",(e=>{this.isFromSearch=!!e.target.value,e.target.value?(this.serverCount=null,this.downloadedResources=[]):this.triggerUpdate()})),this.addEventListener(c,"choice",(()=>{this.component.multiple&&"resource"===this.component.dataSrc&&this.isFromSearch&&this.triggerUpdate(),this.isFromSearch=!1}));const e=this.component.searchField&&(this.isSelectResource||this.isSelectURL)?1e3*(0===this.component.searchDebounce?0:this.component.searchDebounce||this.defaultSchema.searchDebounce):0,t=e=>{this.triggerUpdate(e.detail.value)};this.addEventListener(c,"search",r.default.debounce((e=>{t(e),this.positionDropdown()}),e)),this.addEventListener(c,"stopSearch",(()=>this.triggerUpdate())),this.addEventListener(c,"hideDropdown",(()=>{this.choices&&this.choices.input&&this.choices.input.element&&(this.choices.input.element.value=""),this.updateItems(null,!0)}))}return this.addEventListener(c,"showDropdown",(()=>{this.update(),this.positionDropdown()})),this.shouldPositionDropdown&&this.addEventListener(c,"highlightChoice",(()=>{this.positionDropdown()})),this.choices&&p.placeholderValue&&this.choices._isSelectOneElement&&(this.addPlaceholderItem(p.placeholderValue),this.addEventListener(c,"removeItem",(()=>{this.addPlaceholderItem(p.placeholderValue)}))),this.addValueOptions(),this.setChoicesValue(this.dataValue),this.isSelectResource&&this.refs.addResource&&this.addEventListener(this.refs.addResource,"click",(e=>{e.preventDefault();const t=this.ce("div"),n=this.createModal(t),i=`${r.default.get(this.root,"formio.projectUrl",a.Formio.getProjectUrl())}/form/${this.component.data.resource}`;new l.default(t,i,{}).ready.then((e=>{e.on("submit",(e=>{let t=this.valueProperty?r.default.get(e,this.valueProperty):e;this.component.multiple&&(t=[...this.dataValue,t]),this.setValue(t),this.triggerUpdate(),n.close()}))}))})),this.disabled=this.shouldDisabled,this.triggerUpdate(),s}setDropdownPosition(){var e,t,n,i;const a=null===(t=null===(e=this.choices)||void 0===e?void 0:e.dropdown)||void 0===t?void 0:t.element,s=null===(i=null===(n=this.choices)||void 0===n?void 0:n.containerOuter)||void 0===i?void 0:i.element;if(!a||!s)return;const o=s.getBoundingClientRect(),l=s.classList.contains("is-flipped");r.default.assign(a.style,{top:`${l?o.top-a.offsetHeight:o.top+o.height}px`,left:`${o.left}px`,width:`${o.width}px`,position:"fixed",bottom:"unset",right:"unset"})}hasDataGridAncestor(e){return!(!(e=e||this).inDataGrid&&"datagrid"!==e.type)||!!e.parent&&this.hasDataGridAncestor(e.parent)}positionDropdown(e){var t;this.shouldPositionDropdown&&this.choices&&((null===(t=this.choices.dropdown)||void 0===t?void 0:t.isActive)||!e)&&(this.setDropdownPosition(),this.itemsLoaded.then((()=>{this.setDropdownPosition()})))}get isLoadingAvailable(){return!this.isScrollLoading&&this.additionalResourcesAvailable}onScroll(){this.isLoadingAvailable&&(this.isScrollLoading=!0,this.setLoadingItem(!0),this.triggerUpdate(this.choices.input.element.value))}attachRefreshOnBlur(){this.component.refreshOnBlur&&this.on("blur",(e=>{this.checkRefreshOn([{instance:e,value:e.dataValue}],{fromBlur:!0})}))}addPlaceholderItem(e){this.choices._store.activeItems.length||this.choices._addItem({value:"",label:e,choiceId:0,groupId:-1,customProperties:null,placeholder:!0,keyCode:null})}update(){"custom"===this.component.dataSrc&&this.updateCustomItems(),this.activate()}set disabled(e){super.disabled=e,this.choices&&(e?(this.setDisabled(this.choices.containerInner.element,!0),this.focusableElement.removeAttribute("tabIndex"),this.choices.disable()):(this.setDisabled(this.choices.containerInner.element,!1),this.focusableElement.setAttribute("tabIndex",this.component.tabindex||0),this.choices.enable()))}get disabled(){return super.disabled}set visible(e){e&&!this._visible!=!e&&this.triggerUpdate(),super.visible=e}get visible(){return super.visible}addCurrentChoices(e,t,n){if(!e)return!1;const i=[],a=e.reduce(((e,a)=>{if(!a||r.default.isEmpty(a))return e;let s=!1;const o=t===this.selectOptions;return t&&t.length&&r.default.each(t,(e=>{if(e._id&&a._id&&e._id===a._id)return s=!0,!1;const t=n?e.value:this.itemValue(e,o);return s|=r.default.isEqual(t,a),!s})),s?s||e:(i.push(this.selectValueAndLabel(a)),!0)}),!1);return i.length&&(this.choices&&this.choices.setChoices(i,"value","label"),i.map((e=>{this.addOption(e.value,e.label)}))),a}getValueAsString(e,t){return this.component.multiple&&Array.isArray(e)?e.map((e=>this.asString(e,t))).join(", "):this.asString(e,t)}getValue(){if(this.viewOnly||this.loading||!this.component.lazyLoad&&!this.selectOptions.length||!this.element)return this.dataValue;let e=this.emptyValue;if(this.choices)e=this.choices.getValue(!0),!this.component.multiple&&this.component.placeholder&&e===this.t(this.component.placeholder,{_userInput:!0})&&(e=this.emptyValue);else if(this.refs.selectContainer){if(e=this.refs.selectContainer.value,""===this.valueProperty||this.isEntireObjectDisplay()){if(""===e)return{};const t=this.selectOptions[e]||this.selectOptions.find((t=>t.id===e));t&&r.default.isObject(t.value)&&(e=t.value)}}else e=this.dataValue;return null==e&&(e=""),e}redraw(){const e=super.redraw();return this.triggerUpdate(),e}normalizeSingleValue(e){if(r.default.isNil(e))return;if(r.default.isObject(e)&&0===Object.keys(e).length)return e;const t=this.component.dataType||"auto",n={value:e,number(){const t=Number(this.value),n=e.toString()===t.toString();return!Number.isNaN(t)&&Number.isFinite(t)&&""!==e&&n&&(this.value=t),this},boolean(){return!r.default.isString(this.value)||"true"!==this.value.toLowerCase()&&"false"!==this.value.toLowerCase()||(this.value="true"===this.value.toLowerCase()),this},string(){return this.value=String(this.value),this},object(){return this},auto(){return r.default.isObject(this.value)?this.value=this.object().value:this.value=this.string().number().boolean().value,this}};try{return n[t]().value}catch(t){return console.warn("Failed to normalize value",t),e}}normalizeValue(e){return this.component.multiple&&Array.isArray(e)?e.map((e=>this.normalizeSingleValue(e))):super.normalizeValue(this.normalizeSingleValue(e))}setMetadata(e,t={}){var n,i;if(r.default.isNil(e))return;const a=r.default.isObject(e);if(a&&0===Object.keys(e).length)return e;const s=this.component.reference&&(null==e?void 0:e._id)?e._id.toString():e,o=(!a||this.component.reference)&&!this.inDataTable;if(!r.default.isNil(s)&&o&&this.templateData&&this.templateData[s]&&(null===(n=this.root)||void 0===n?void 0:n.submission)){const t=this.root.submission;t.metadata||(t.metadata={}),t.metadata.selectData||(t.metadata.selectData={});let n=this.templateData[s];if(this.component.multiple){n={};const t=this.dataValue;t&&r.default.isArray(t)&&t.length&&t.forEach((e=>{const t=this.component.reference?e._id.toString():e;n[t]=this.templateData[t]})),n[e]=this.templateData[e]}r.default.set(t.metadata.selectData,this.path,n)}if(t.resetValue&&(null===(i=this.root)||void 0===i?void 0:i.submission)&&!this.options.readOnly){const e=this.root.submission;e.metadata||(e.metadata={}),e.metadata.selectData={}}}updateValue(e,t){const n=super.updateValue(e,t);return(n||!this.selectMetadata||t.resetValue)&&(this.component.multiple&&Array.isArray(this.dataValue)?this.dataValue.forEach((e=>this.setMetadata(e,t))):this.setMetadata(this.dataValue,t)),n}undoValueTyping(e){let t=e;return this.component.multiple&&Array.isArray(e)?t=e.map((e=>"boolean"==typeof e||"number"==typeof e?e.toString():e)):"boolean"!=typeof e&&"number"!=typeof e||(t=e.toString()),t}setValue(e,t={}){const n=this.dataValue,i=this.updateValue(e,t);if("html5"===this.component.widget&&(r.default.isEqual(e,n)||r.default.isEqual(n,{})&&r.default.isEqual(t,{}))&&!t.fromSubmission)return!1;e=this.dataValue;const a=!this.isEmpty(n),s=!this.isEmpty(e);if(e=this.undoValueTyping(e),this.isHtmlRenderMode()&&t&&t.fromSubmission&&i)return this.itemsLoaded.then((()=>{this.redraw()})),i;if(this.loading)return i;if(this.isInitApiCallNeeded(s)){this.loading=!0,this.lazyLoadInit=!0;const t=this.component.searchField||this.component.valueProperty;return this.triggerUpdate(r.default.get(e.data||e,t,e),!0),i}return this.itemsLoaded.then((()=>{this.addValueOptions(),this.setChoicesValue(e,a,t)})),i}isInitApiCallNeeded(e){return this.component.lazyLoad&&!this.lazyLoadInit&&!this.active&&!this.selectOptions.length&&e&&this.shouldInitialLoad&&this.visible&&(this.component.searchField||this.component.valueProperty)}setChoicesValue(e,t,n={}){const i=!this.isEmpty(e)||n.fromSubmission;if(t=void 0===t||t,this.choices)if(i){this.choices.removeActiveItems();const t=Array.isArray(e)&&this.component.multiple?e:[e];this.addCurrentChoices(t,this.selectOptions,!0)||this.choices.setChoices(this.selectOptions,"value","label",!0),this.choices.setChoiceByValue(t)}else(t||n.resetValue)&&this.choices.removeActiveItems();else if(i){const t=Array.isArray(e)?e:[e];if(!r.default.isEqual(this.dataValue,this.defaultValue)&&this.selectOptions.length<2||this.selectData&&n.fromSubmission){const{value:e,label:t}=this.selectValueAndLabel(this.dataValue);this.addOption(e,t)}r.default.each(this.selectOptions,(e=>{r.default.each(t,(t=>{if(""===e.value&&(e.value={}),r.default.isEqual(t,e.value)&&e.element)return e.element.selected=!0,e.element.setAttribute("selected","selected"),!1}))}))}else r.default.each(this.selectOptions,(e=>{e.element&&(e.element.selected=!1,e.element.removeAttribute("selected"))}))}validateValueAvailability(e,t){if(!(0,u.boolValue)(e)||!t)return!0;const n=this.getOptionsValues();if(n){if(r.default.isObject(t)){const e=e=>{const n=this.normalizeSingleValue(e);if(!r.default.isObject(n))return!1;try{return JSON.stringify(n)===JSON.stringify(t)}catch(e){return console.warn.error("Error while comparing items",e),!1}};return-1!==n.findIndex((t=>e(t)))}return-1!==n.findIndex((e=>this.normalizeSingleValue(e)===t))}return!1}getOptionValue(e){return r.default.isObject(e)&&this.isEntireObjectDisplay()?this.normalizeSingleValue(e):r.default.isObject(e)&&(this.valueProperty||"resource"!==this.component.key)?e:r.default.isObject(e)&&!this.valueProperty?this.interpolate(this.component.template,{item:e}).replace(/<\/?[^>]+(>|$)/g,""):r.default.isNull(e)?this.emptyValue:String(this.normalizeSingleValue(e))}getOptionsValues(){let e=[];switch(this.component.dataSrc){case"values":e=this.component.data.values;break;case"json":e=this.component.data.json;break;case"custom":e=this.getCustomItems();break;case"url":e=this.selectItems}if("string"==typeof e)try{e=JSON.parse(e)}catch(t){console.warn(t.message),e=[]}if(Array.isArray(e))return e.map((e=>this.getOptionValue(this.itemValue(e))))}deleteValue(){this.setValue("",{noUpdateEvent:!0}),this.unset()}validateMultiple(){return!1}isBooleanOrNumber(e){return"number"==typeof e||"boolean"==typeof e}getNormalizedValues(){if(this.component&&this.component.data&&this.component.data.values)return this.component.data.values.map((e=>({label:e.label,value:String(this.normalizeSingleValue(e.value))})))}asString(e,t={}){var n;if(e=null!=e?e:this.getValue(),t.modalPreview||this.inDataTable){this.inDataTable&&(e=this.undoValueTyping(e));const n=this.isEntireObjectDisplay()&&!r.default.isObject(e.data)?{data:e}:e;return this.itemTemplate(n,e,t)}const i=(e,t)=>t?(Array.isArray(e)?e.forEach((e=>e[t]=e[t].toString())):r.default.isObject(e)&&(e[t]=e[t].toString()),e):(this.isBooleanOrNumber(e)&&(e=e.toString()),Array.isArray(e)&&e.some((e=>this.isBooleanOrNumber(e)))&&(e=e.map((e=>this.isBooleanOrNumber(e)?e.toString():e))),e);if(e=i(e),["values","custom"].includes(this.component.dataSrc)&&!this.asyncCustomValues()){const{items:t,valueProperty:a}="values"===this.component.dataSrc?{items:i(this.getNormalizedValues(),"value"),valueProperty:"value"}:{items:i(this.getCustomItems(),this.valueProperty),valueProperty:this.valueProperty},s=()=>{const n=r.default.find(t,[a,e]),i=this.defaultSchema.data.values||[];return r.default.isEqual(n,i[0])?"-":n};e=this.component.multiple&&Array.isArray(e)?r.default.filter(t,(t=>e.includes(t.value))):a&&t?null!==(n=s())&&void 0!==n?n:{value:e,label:e}:e}if(r.default.isString(e))return e;const a=e=>{const n=this.itemTemplate(e);return t.csv&&n?(0,u.removeHTML)(n):n};if(Array.isArray(e)){const t=[];return e.forEach((e=>t.push(a(e)))),"resource"===this.component.dataSrc&&t.length>0?t.join(", "):t.length>0?t.join("
"):"-"}return this.isEntireObjectDisplay()&&r.default.isObject(e)?JSON.stringify(e):r.default.isNil(e)?"-":a(e)}detach(){var e,t;this.off("blur"),this.choices&&((null===(t=null===(e=this.choices.containerOuter)||void 0===e?void 0:e.element)||void 0===t?void 0:t.parentNode)&&this.choices.destroy(),this.choices=null),super.detach()}focus(){super.focus.call(this),this.focusableElement&&this.focusableElement.focus()}setErrorClasses(e,t,n,i,r=this.element){super.setErrorClasses(e,t,n,i,r),this.choices?super.setErrorClasses([this.choices.containerInner.element],t,n,i,r):super.setErrorClasses([this.refs.selectContainer],t,n,i,r)}}t.default=c},43603:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Component=void 0;const o=n(2543),l=n(13614),u=n(26131),d=n(70678),c=a(n(55223)),h=n(29688),p=n(74418);function f(e={}){(e=(0,o.merge)({type:"component",template:!1,schema:{persistent:!0,protected:!1}},e)).schema.type=e.type;const t=e.model||p.Model;return function(n){return class extends(t(e)(n)){constructor(){super(...arguments),this.attached=!1,this.refs={},this.template=e.template,this.attachedListeners=[]}get defaultOptions(){return{language:"en",namespace:"formio"}}get defaultTemplate(){return e=>`${e.t("Unknown Component")}`}interpolate(e,t){return d.Evaluator.interpolate(e,t)}renderContext(e={}){return super.renderContext?super.renderContext(e):e}evaluate(e,t={},n="",i=!1){return d.Evaluator.evaluate(e,this.evalContext(t),n,i)}render(e={}){return super.render?super.render(e):this.renderTemplate(this.template||this.component.type,this.renderContext(e))}getRefs(){return super.getRefs?super.getRefs():{}}loadRefs(e){const t=this.getRefs();for(const n in t)"single"===t[n]?this.refs[n]=e.querySelector(`[ref="${n}"]`):this.refs[n]=e.querySelectorAll(`[ref="${n}"]`)}attach(e){const t=Object.create(null,{attach:{get:()=>super.attach}});return s(this,void 0,void 0,(function*(){if(this.element&&!e&&(e=this.element),!e)return this;const n=e.parentNode;if(!n)return this;const i=Array.prototype.indexOf.call(n.children,e);return e.outerHTML=String(this.sanitize(this.render())),e=n.children[i],this.element=e,this.loadRefs(this.element),t.attach&&(yield t.attach.call(this,e)),this.attached=!0,this}))}redraw(){return s(this,void 0,void 0,(function*(){if(this.element)return this.clear(),this.attach()}))}sanitize(e){return(0,h.sanitize)(e,this.options)}get translations(){return this.options.language&&this.options.i18n&&this.options.i18n[this.options.language]?this.options.i18n[this.options.language]:{}}t(e){return this.translations[e]?this.translations[e]:e}evalContext(e={}){return Object.assign({instance:this,component:this.component,options:this.options,row:this.data,data:this.root?this.root.data:this.data,rowIndex:this.rowIndex,value:()=>this.dataValue,t:e=>this.t(e)},e)}renderTemplate(e,t={}){return u.Template.render(e,this.evalContext(t),"html",this.defaultTemplate)}isValueRedacted(){return this.component.protected||!this.component.persistent||"client-only"===this.component.persistent}setValue(e){let t=!1;return super.setValue&&(t=super.setValue(e)),this.updateValue(e)||t}getElement(){return this.element}detach(){this.refs={},this.attached=!1,this.removeAttachedListeners(),super.detach&&super.detach()}clear(){this.detach(),c.empty(this.getElement()),super.clear&&super.clear()}append(e){c.appendTo(e,this.element)}prepend(e){c.prependTo(e,this.element)}removeChild(e){c.removeChildFrom(e,this.element)}addEventListener(e,t,n){if(e)return"addEventListener"in e?e.addEventListener(t,n,!1):"attachEvent"in e&&e.attachEvent(`on${t}`,n),this.attachedListeners.push({obj:e,type:t,func:n}),this}removeAttachedListeners(){this.attachedListeners.forEach((e=>this.removeEventListener(e.obj,e.type,e.func))),this.attachedListeners=[]}removeEventListener(e,t,n){return e&&e.removeEventListener(t,n),this}}}}t.Component=f,l.Components.addDecorator(f,"component"),l.Components.addComponent(f()(),"component")},43724:(e,t,n)=>{"use strict";var i=n(79039);e.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},43762:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateMaximumYearInfo=t.validateMaximumYearSync=t.validateMaximumYear=t.shouldValidate=void 0;const r=n(54008);t.shouldValidate=e=>{const{component:t}=e;return!(!(e=>{var t,n;return e&&"day"===e.type&&(e.hasOwnProperty("maxYear")||(null===(n=null===(t=e.fields)||void 0===t?void 0:t.year)||void 0===n?void 0:n.hasOwnProperty("maxYear")))})(t)||!t.maxYear&&!t.fields.year.maxYear)},t.validateMaximumYear=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateMaximumYearSync)(e)})),t.validateMaximumYearSync=e=>{var n,i;const{component:a,value:s}=e;if(!(0,t.shouldValidate)(e))return null;if("string"!=typeof s&&"number"!=typeof s)throw new r.ProcessorError(`Cannot validate maximum year for value ${s}`,e,"validate:validateMaximumYear");const o="string"==typeof s?s:String(s),l=/\d{4}$/.exec(o),u=l?l[0]:null;if(a.maxYear&&(null===(i=null===(n=a.fields)||void 0===n?void 0:n.year)||void 0===i?void 0:i.maxYear)&&a.maxYear!==a.fields.year.maxYear)throw new r.ProcessorError("Cannot validate maximum year, component.maxYear and component.fields.year.maxYear are not equal",e,"validate:validateMaximumYear");const d=a.maxYear||a.fields.year.maxYear;return d&&u?+u<=+d?null:new r.FieldError("maxYear",Object.assign(Object.assign({},e),{maxYear:String(d),setting:String(d)})):null},t.validateMaximumYearInfo={name:"validateMaximumYear",process:t.validateMaximumYear,processSync:t.validateMaximumYearSync,shouldProcess:t.shouldValidate}},43784:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(95093))},43838:(e,t,n)=>{var i=n(21791),r=n(37241);e.exports=function(e,t){return e&&i(t,r(t),e)}},43861:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},i=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i];e.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:i,longMonthsParse:i,shortMonthsParse:[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(e,t){return 12===e&&(e=0),"रात"===t?e<4?e:e+12:"सुबह"===t?e:"दोपहर"===t?e>=10?e:e+12:"शाम"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"रात":e<10?"सुबह":e<17?"दोपहर":e<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(95093))},43922:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
\n \n
\n ',e.groups.forEach((function(e){n+="\n "+(null==(t=e)?"":t)+"\n "})),n+="\n
\n
\n"}},44085:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(58697),r=n(26101),a=n(77029),s=n(37242);t.default={[i.AzureAddressProvider.name]:i.AzureAddressProvider,[r.CustomAddressProvider.name]:r.CustomAddressProvider,[a.GoogleAddressProvider.name]:a.GoogleAddressProvider,[s.NominatimAddressProvider.name]:s.NominatimAddressProvider}},44103:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(94259)),a=i(n(99878)),s=i(n(11998)),o=i(n(9157));t.default=function(...e){return(0,r.default)([{key:"data",components:s.default},{key:"display",components:a.default},{key:"validation",components:o.default}],...e)}},44209:(e,t,n)=>{"use strict";var i=n(78227),r=n(26269),a=i("iterator"),s=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||s[a]===e)}},44219:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(5939),r=n(84850);t.default={form:i.default,builder:r.default}},44383:(e,t,n)=>{var i=n(76001),r=n(38816)((function(e,t){return null==e?{}:i(e,t)}));e.exports=r},44394:(e,t,n)=>{var i=n(72552),r=n(40346);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==i(e)}},44426:(e,t,n)=>{"use strict";const{Components:i}=n(92595),r=i.components.field;class a extends r{static schema(...e){return r.schema({type:"supertitle",label:"",key:"supertitle",input:!1,content:"My Super Title Custom",tag:"h2",...e})}static get builderInfo(){return{title:"Super Title",group:"basic",icon:"heading",weight:5,documentation:"",schema:a.schema()}}get defaultSchema(){return a.schema()}render(){const e=this.component.tag||"h2",t=this.component.content||"Super Title";return super.render(`<${e} ref="title" class="super-title">${t}`)}attach(e){return this.loadRefs(e,{title:`${this.component.tag}`}),super.attach(e)}}e.exports=a},44429:function(e,t,n){!function(e){"use strict";function t(e,t,n){var i=e+" ";switch(n){case"ss":return i+(1===e?"sekunda":2===e||3===e||4===e?"sekunde":"sekundi");case"mm":return i+(1===e?"minuta":2===e||3===e||4===e?"minute":"minuta");case"h":return"jedan sat";case"hh":return i+(1===e?"sat":2===e||3===e||4===e?"sata":"sati");case"dd":return i+(1===e?"dan":"dana");case"MM":return i+(1===e?"mjesec":2===e||3===e||4===e?"mjeseca":"mjeseci");case"yy":return i+(1===e?"godina":2===e||3===e||4===e?"godine":"godina")}}e.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:t,m:function(e,t,n,i){if("m"===n)return t?"jedna minuta":i?"jednu minutu":"jedne minute"},mm:t,h:t,hh:t,d:"dan",dd:t,M:"mjesec",MM:t,y:"godinu",yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},44435:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=n(34600),s=i(n(96877)),o=i(n(71961)),l=i(n(42574));class u extends l.default{static schema(...e){return l.default.schema({label:"Container",type:"container",key:"container",clearOnHide:!0,input:!0,tree:!0,hideLabel:!0,components:[]},...e)}static get builderInfo(){return{title:"Container",icon:"folder-open",group:"data",documentation:"/userguide/form-building/data-components#container",showPreview:!1,weight:10,schema:u.schema()}}constructor(...e){super(...e),this.type="container"}static savedValueTypes(e){return(0,a.getComponentSavedTypes)(e)||[a.componentValueTypes.object]}addComponents(e,t){return super.addComponents(this.dataValue,t)}get defaultSchema(){return u.schema()}get emptyValue(){return{}}get templateName(){return"container"}componentContext(){return this.dataValue}checkData(e,t,n,i){e=e||this.rootValue,t=t||{},n=n||this.data,i=i&&r.default.isArray(i)?i:this.getComponents(),s.default.prototype.checkData.call(this,e,t,n),i.forEach((n=>n.checkData(e,t,this.dataValue)))}focus(){const e=(0,a.getFocusableElements)(this.element);e&&e[0]&&e[0].focus()}checkConditions(e,t,n){const i=o.default.prototype.checkConditions.call(this,e,t,n);return this.getComponents().forEach((n=>n.checkConditions(e,t,this.dataValue))),i}}t.default=u},44508:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FieldError=void 0;const i=n(47499);t.FieldError=class{constructor(e,t,n=e){var r;const{component:a,hasLabel:s=!0,field:o=(0,i.getComponentErrorField)(a,t),level:l="error"}=t;this.ruleName=n,(null===(r=t.component.validate)||void 0===r?void 0:r.customMessage)?(this.errorKeyOrMessage=t.component.validate.customMessage,this.context=Object.assign(Object.assign({},t),{hasLabel:!1,field:o,level:l})):(this.errorKeyOrMessage=e,this.context=Object.assign(Object.assign({},t),{hasLabel:s,field:o}),this.level=l)}}},44576:(e,t,n)=>{"use strict";var i=n(79504),r=i({}.toString),a=i("".slice);e.exports=function(e){return a(r(e),8,-1)}},44619:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";if(Array.prototype.join,e.mode.autocomplete){for(var i in n+='\n
\n \n ',e.component.disableClearIcon||(n+='\n \n '),n+="\n
\n"}return n+="\n",e.self.manualModeEnabled&&(n+='\n
\n \n
\n"),n+="\n",e.self.manualMode&&(n+='\n
\n '+(null==(t=e.children)?"":t)+"\n
\n"),n+"\n"}},44826:(e,t,n)=>{var i=n(77556),r=n(54128),a=n(28754),s=n(23875),o=n(28380),l=n(63912),u=n(13222);e.exports=function(e,t,n){if((e=u(e))&&(n||void 0===t))return r(e);if(!e||!(t=i(t)))return e;var d=l(e),c=l(t),h=o(d,c),p=s(d,c)+1;return a(d,h,p).join("")}},44909:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"validateOn",ignore:!0}]},44952:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayComponent=void 0;const i=n(13614),r=n(74418),a=n(64652);function s(e={}){return e.type||(e.type="array"),e.model||(e.model=r.NestedArrayModel),function(t){return class extends((0,a.NestedComponent)(e)(t)){}}}t.ArrayComponent=s,i.Components.addDecorator(s,"array"),i.Components.addComponent(s()(),"array")},45073:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=s(n(46140)),r=s(n(2858)),a=n(49910);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){if(i.default.randomUUID&&!t&&!e)return i.default.randomUUID();const s=(e=e||{}).random||(e.rng||r.default)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=s[e];return t}return(0,a.unsafeStringify)(s)}},45083:(e,t,n)=>{var i=n(1882),r=n(87296),a=n(23805),s=n(47473),o=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,d=l.toString,c=u.hasOwnProperty,h=RegExp("^"+d.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!a(e)||r(e))&&(i(e)?h:o).test(s(e))}},45468:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},45563:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(10196);t.default=[{type:"textarea",label:"Header Template",key:"templates.header",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the Lodash Template used to render the header of the Edit grid.",customConditional:({data:e})=>(!i.Evaluator.noeval||i.Evaluator.protectedEval)&&!e.displayAsTable},{type:"textarea",label:"Table Header Template",key:"templates.tableHeader",rows:6,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the Lodash Template used to render the header of the Edit grid.",customConditional:({data:e})=>(!i.Evaluator.noeval||i.Evaluator.protectedEval)&&e.displayAsTable},{type:"textarea",label:"Row Template",key:"templates.row",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Three available variables. "row" is an object of one row\'s data, "components" is the array of components in the grid and "state" is current row\'s state (can be "draft" or "saved"). To add click events, add the classes "editRow" and "removeRow" to elements.',tooltip:"This is the Lodash Template used to render each row of the Edit grid.",customConditional:({data:e})=>(!i.Evaluator.noeval||i.Evaluator.protectedEval)&&!e.displayAsTable},{type:"textarea",label:"Table Row Template",key:"templates.tableRow",rows:5,editor:"ace",as:"handlebars",clearOnHide:!1,input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Three available variables. "row" is an object of one row\'s data, "components" is the array of components in the grid and "state" is current row\'s state (can be "draft" or "saved"). To add click events, add the classes "editRow" and "removeRow" to elements.',tooltip:"This is the Lodash Template used to render each row of the Edit grid.",customConditional:({data:e})=>(!i.Evaluator.noeval||i.Evaluator.protectedEval)&&e.displayAsTable},{type:"textarea",label:"Footer Template",key:"templates.footer",rows:5,editor:"ace",as:"handlebars",input:!0,placeholder:"/*** Lodash Template Code ***/",description:'Two available variables. "value" is the array of row data and "components" is the array of components in the grid.',tooltip:"This is the Lodash Template used to render the footer of the Edit grid.",customConditional:()=>!i.Evaluator.noeval||i.Evaluator.protectedEval},{type:"textfield",input:!0,key:"rowClass",label:"Row CSS Class",placeholder:"Row CSS Class",tooltip:"CSS class to add to the edit row wrapper."},{type:"textfield",input:!0,key:"addAnother",label:"Add Another Text",placeholder:"Add Another",tooltip:"Set the text of the Add Another button."},{weight:70,type:"checkbox",label:"Display as Modal",tooltip:"Display a modal to add or edit entries in the table",key:"modal",input:!0},{type:"textfield",input:!0,key:"saveRow",label:"Save Row Text",placeholder:"Save",tooltip:"Set the text of the Save Row button."},{type:"textfield",input:!0,key:"removeRow",label:"Remove Row Text",placeholder:"Remove",tooltip:"Set the text of the remove Row button."}]},45719:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(e,t){return e%10>=1&&e%10<=4&&(e%100<10||e%100>=20)?e%10==1?t[0]:t[1]:t[2]},translate:function(e,n,i,r){var a,s=t.words[i];return 1===i.length?"y"===i&&n?"jedna godina":r||n?s[0]:s[1]:(a=t.correctGrammaticalCase(e,s),"yy"===i&&n&&"godinu"===a?e+" godina":e+" "+a)}};e.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:t.translate,dd:t.translate,M:t.translate,MM:t.translate,y:t.translate,yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},45753:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n \n '+(null==(t=e.rows)?"":t)+"\n ",e.disabled||(n+='\n \n \n \n "),n+"\n \n
\n \n
\n"}},45766:function(e,t,n){!function(e){"use strict";var t={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(e,t,n,i){return t?r(n)[0]:i?r(n)[1]:r(n)[2]}function i(e){return e%10==0||e>10&&e<20}function r(e){return t[e].split("_")}function a(e,t,a,s){var o=e+" ";return 1===e?o+n(0,t,a[0],s):t?o+(i(e)?r(a)[1]:r(a)[0]):s?o+r(a)[1]:o+(i(e)?r(a)[1]:r(a)[2])}e.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(e,t,n,i){return t?"kelios sekundės":i?"kelių sekundžių":"kelias sekundes"},ss:a,m:n,mm:a,h:n,hh:a,d:n,dd:a,M:n,MM:a,y:n,yy:a},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(e){return e+"-oji"},week:{dow:1,doy:4}})}(n(95093))},45891:(e,t,n)=>{var i=n(51873),r=n(72428),a=n(56449),s=i?i.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||r(e)||!!(s&&e&&e[s])}},46043:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(69628));t.default=r.default},46103:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AddressComponentMode=void 0;const r=i(n(78609)),a=i(n(2543)),s=n(29857),o=n(77029),l=i(n(71961)),u=i(n(39142)),d=i(n(44435)),c=n(34600);t.AddressComponentMode={Autocomplete:"autocomplete",Manual:"manual"};const h="address-autocomplete-remove-value-icon--hidden",p="show = _.get(instance, 'parent.manualMode', false);";class f extends d.default{static schema(...e){return d.default.schema({type:"address",label:"Address",key:"address",switchToManualModeLabel:"Can't find address? Switch to manual mode.",provider:"",providerOptions:{},manualModeViewString:"",hideLabel:!1,disableClearIcon:!1,enableManualMode:!1,components:[{label:"Address 1",tableView:!1,key:"address1",type:"textfield",input:!0,customConditional:p},{label:"Address 2",tableView:!1,key:"address2",type:"textfield",input:!0,customConditional:p},{label:"City",tableView:!1,key:"city",type:"textfield",input:!0,customConditional:p},{label:"State",tableView:!1,key:"state",type:"textfield",input:!0,customConditional:p},{label:"Country",tableView:!1,key:"country",type:"textfield",input:!0,customConditional:p},{label:"Zip Code",tableView:!1,key:"zip",type:"textfield",input:!0,customConditional:p}]},...e)}static savedValueTypes(e){return e=e||{},(0,c.getComponentSavedTypes)(e)||[c.componentValueTypes.object]}static get builderInfo(){return{title:"Address",group:"advanced",icon:"home",documentation:"/userguide/form-building/advanced-components#address",weight:35,schema:f.schema()}}static get serverConditionSettings(){return f.conditionOperatorsSettings}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{operators:["isEmpty","isNotEmpty"]})}mergeSchema(e={}){let{defaultSchema:t}=this;return e.components&&(t=a.default.omit(t,"components")),a.default.defaultsDeep(e,t)}init(){if(this.components=this.components||[],(this.builderMode||this.manualModeEnabled)&&u.default.prototype.addComponents.call(this,this.manualMode?this.address:{}),l.default.prototype.init.call(this),!this.builderMode)if(this.component.provider){const{provider:e,providerOptions:t}=this.component;a.default.get(t,"params.subscriptionKey")&&(a.default.set(t,"params['subscription-key']",a.default.get(t,"params.subscriptionKey")),a.default.unset(t,"params.subscriptionKey")),this.provider=this.initializeProvider(e,t)}else if(this.component.map){this.component.provider=o.GoogleAddressProvider.name,this.component.providerOptions=this.component.providerOptions||{};const{map:e,provider:t,providerOptions:n}=this.component,{key:i,region:r}=e;i&&a.default.set(n,"params.key",i),r&&a.default.set(n,"params.region",r),this.provider=this.initializeProvider(t,n)}}initializeProvider(e,t={}){const n=this.interpolate(t.url);return new(s.Formio.Providers.getProvider("address",e))(Object.assign(Object.assign({},t),{url:n}))}get emptyValue(){return this.manualModeEnabled?{mode:t.AddressComponentMode.Autocomplete,address:{}}:{}}get mode(){var e,n;return this.manualModeEnabled&&null!==(n=null===(e=this.dataValue)||void 0===e?void 0:e.mode)&&void 0!==n?n:t.AddressComponentMode.Autocomplete}set mode(e){this.manualModeEnabled&&(this.dataValue.mode=e)}get autocompleteMode(){return this.mode===t.AddressComponentMode.Autocomplete}get manualMode(){return this.mode===t.AddressComponentMode.Manual}get manualModeEnabled(){return!this.isMultiple&&Boolean(this.component.enableManualMode)}restoreComponentsContext(){this.getComponents().forEach((e=>{e.data=this.address,e.setValue(e.dataValue,{noUpdateEvent:!0})}))}get isMultiple(){return Boolean(this.component.multiple)}get address(){return this.isMultiple?a.default.isArray(this.dataValue)?this.dataValue:[this.dataValue]:this.manualModeEnabled&&this.dataValue?this.dataValue.address:this.dataValue}set address(e){!this.manualModeEnabled||this.isMultiple||a.default.isEqual(e,this.emptyValue)?this.dataValue=e:this.dataValue.address=e}get defaultValue(){let e=super.defaultValue;return this.isMultiple&&(e=a.default.isArray(e)?e:[e]),e}get defaultSchema(){return f.schema()}isValueInLegacyFormat(e){return e&&!e.mode}set dataValue(e){super.dataValue=e}get dataValue(){const e=a.default.get(this._data,this.component.path);return!a.default.isArray(e)&&this.component.multiple?[e]:super.dataValue}normalizeValue(e){return this.manualModeEnabled&&this.isValueInLegacyFormat(e)?{mode:t.AddressComponentMode.Autocomplete,address:e}:e}setValue(e,t={}){const n=l.default.prototype.setValue.call(this,e,t);return this.manualMode&&this.restoreComponentsContext(),(n||!a.default.isEmpty(e)&&t.fromSubmission)&&this.redraw(),n}static get modeSwitcherRef(){return"modeSwitcher"}static get removeValueIconRef(){return"removeValueIcon"}static get searchInputRef(){return"searchInput"}static get addRowButtonRef(){return"addButton"}static get removeRowButtonRef(){return"removeRow"}get modeSwitcher(){return this.refs&&this.refs[f.modeSwitcherRef]||null}get removeValueIcon(){return this.refs&&this.refs[f.removeValueIconRef]||null}get searchInput(){return this.refs&&this.refs[f.searchInputRef]||null}get addRowButton(){return this.refs&&this.refs[f.addRowButtonRef]||null}get removeRowButton(){return this.refs&&this.refs[f.removeRowButtonRef]||null}get searchInputAttributes(){const e={name:this.options.name,type:"text",class:"form-control",lang:this.options.language,tabindex:this.component.tabindex||0};return this.component.placeholder&&(e.placeholder=this.t(this.component.placeholder)),this.disabled&&(e.disabled="disabled"),a.default.defaults(e,this.component.attributes),e}get templateName(){return"address"}get gridTemplateName(){return"multiValueTable"}get rowTemplateName(){return"multiValueRow"}get hasChildren(){return!this.isMultiple&&(this.builderMode||this.manualModeEnabled)}get addAnother(){return this.t(this.component.addAnother||"Add Another")}renderElement(e){return this.renderTemplate(this.templateName,{children:this.hasChildren?this.renderComponents():"",nestedKey:this.nestedKey,inputAttributes:this.searchInputAttributes,ref:{modeSwitcher:f.modeSwitcherRef,removeValueIcon:f.removeValueIconRef,searchInput:f.searchInputRef},displayValue:this.getDisplayValue(e),mode:{autocomplete:this.autocompleteMode,manual:this.manualMode}})}renderRow(e,t){return this.renderTemplate(this.rowTemplateName,{index:t,disabled:this.disabled,element:`${this.renderElement(e,t)}`})}renderGrid(){return this.renderTemplate(this.gridTemplateName,{rows:this.address.map(this.renderRow.bind(this)).join(""),disabled:this.disabled,addAnother:this.addAnother})}render(){return this.isMultiple?super.render(this.renderGrid()):super.render(this.renderElement())}onSelectAddress(e,t,n){this.isMultiple?(this.address[n]=e,this.address=[...this.address]):this.address=e,this.triggerChange({modified:!0}),t&&(t.value=this.getDisplayValue(this.isMultiple?this.address[n]:this.address)),this.updateRemoveIcon(n)}addRow(){this.address=this.address.concat(this.emptyValue),super.redraw()}attach(e){const n=(this.builderMode||this.manualMode?super.attach:l.default.prototype.attach).call(this,e);if(!this.builderMode&&!this.provider&&this.component.provider){const{provider:e,providerOptions:t}=this.component;this.provider=this.initializeProvider(e,t)}return this.loadRefs(e,{[f.addRowButtonRef]:"single",[f.modeSwitcherRef]:"single",[f.removeRowButtonRef]:"multiple",[f.removeValueIconRef]:"multiple",[f.searchInputRef]:"multiple"}),this.searchInput.forEach(((e,t)=>{!this.builderMode&&e&&this.provider&&("google"===this.component.provider?this.provider.attachAutocomplete(e,t,this.onSelectAddress.bind(this)):(0,r.default)({input:e,debounceWaitMs:300,fetch:(e,t)=>{const n=e;this.provider.search(n).then(t)},render:e=>{const t=this.ce("div");return t.textContent=this.getDisplayValue(e),t},onSelect:n=>{this.onSelectAddress(n,e,t)}}),this.addEventListener(e,"blur",(()=>{e&&e.value&&(e.value=this.getDisplayValue(this.isMultiple?this.address[t]:this.address))})),this.addEventListener(e,"keyup",(()=>{e&&(e.value||this.clearAddress(e,t))})))})),this.addRowButton&&this.addEventListener(this.addRowButton,"click",(e=>{e.preventDefault(),this.addRow()})),this.removeRowButton.forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.removeValue(t)}))})),this.modeSwitcher&&this.addEventListener(this.modeSwitcher,"change",(()=>{this.modeSwitcher&&(this.dataValue=this.emptyValue,this.mode=this.modeSwitcher.checked?t.AddressComponentMode.Manual:t.AddressComponentMode.Autocomplete,this.builderMode||(this.manualMode&&this.restoreComponentsContext(),this.triggerChange({modified:!0})),this.redraw())})),this.builderMode||(this.removeValueIcon.forEach(((e,t)=>{this.updateRemoveIcon(t);const n=()=>{var e;const n=null===(e=this.searchInput)||void 0===e?void 0:e[t];this.clearAddress(n,t),n&&n.focus()};this.addEventListener(e,"click",n),this.addEventListener(e,"keydown",(({key:e})=>{"Enter"===e&&n()}))})),a.default.each(this.refs.searchInput||[],(e=>this.addFocusBlurEvents(e)))),n}addChildComponent(e){e.customConditional=p}redraw(){const e=this.modeSwitcher&&document.activeElement===this.modeSwitcher;return super.redraw().then((t=>(e&&this.modeSwitcher&&this.modeSwitcher.focus(),t)))}clearAddress(e,t){var n;this.isEmpty()||this.triggerChange(),(null===(n=this.address)||void 0===n?void 0:n[t])?this.address[t]=this.emptyValue:this.address=this.emptyValue,e&&(e.value=""),this.updateRemoveIcon(t)}getDisplayValue(e=this.address){return this.provider&&!this.manualMode?this.provider.getDisplayValue(e):""}validateMultiple(){return this.isMultiple}updateRemoveIcon(e){var t;const n=null===(t=this.removeValueIcon)||void 0===t?void 0:t[e];if(n){const t=this.isMultiple?this.address[e]:this.address;this.isEmpty(t)||this.disabled?this.addClass(n,h):this.removeClass(n,h)}}getValueAsString(e,n){if(!e)return"";const i=this.normalizeValue(e),{address:r,mode:s}=this.manualModeEnabled?i:{address:i,mode:t.AddressComponentMode.Autocomplete},o=s===t.AddressComponentMode.Manual;return this.provider&&!o?this.getDisplayValue(r):o?this.component.manualModeViewString?this.interpolate(this.component.manualModeViewString,{address:r,data:this.data,component:this.component}):this.getComponents().filter((e=>e.hasValue(r))).map((e=>[e,a.default.get(r,e.key)])).filter((([e,t])=>!e.isEmpty(t))).map((([e,t])=>e.getValueAsString(t,n))).join(", "):super.getValueAsString(r,n)}focus(){this.searchInput&&this.searchInput[0]&&this.searchInput[0].focus()}}t.default=f},46140:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};t.default=n},46218:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{key:"hideLabel",ignore:!0},{weight:0,type:"textfield",input:!0,key:"label",label:"Label",placeholder:"Field Label",tooltip:"The label for this field.",validate:{required:!0},autofocus:!0,overrideEditForm:!0},{type:"number",label:"Number of Rows",key:"numRows",input:!0,weight:1,placeholder:"Number of Rows",tooltip:"Enter the number or rows that should be displayed by this table."},{type:"number",label:"Number of Columns",key:"numCols",input:!0,weight:2,placeholder:"Number of Columns",tooltip:"Enter the number or columns that should be displayed by this table."},{type:"checkbox",label:"Clone Row Components",key:"cloneRows",input:!0,weight:3,tooltip:"Check this if you would like to 'clone' the first row of components to all additional empty rows of the table."},{type:"select",label:"Cell Alignment",key:"cellAlignment",input:!0,tooltip:"Horizontal alignment for cells of the table.",dataSrc:"values",data:{values:[{label:"Left",value:"left"},{label:"Center",value:"center"},{label:"Right",value:"right"}]},defaultValue:"left",weight:3},{type:"checkbox",label:"Striped",key:"striped",tooltip:"This will stripe the table if checked.",input:!0,weight:701},{type:"checkbox",label:"Bordered",key:"bordered",input:!0,tooltip:"This will border the table if checked.",weight:702},{type:"checkbox",label:"Hover",key:"hover",input:!0,tooltip:"Highlight a row on hover.",weight:703},{type:"checkbox",label:"Condensed",key:"condensed",input:!0,tooltip:"Condense the size of the table.",weight:704},{key:"hideLabel",ignore:!0}]},46251:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n"}},46460:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(67262);t.default={form:i.default}},46518:(e,t,n)=>{"use strict";var i=n(22195),r=n(77347).f,a=n(66699),s=n(36840),o=n(39433),l=n(77740),u=n(92796);e.exports=function(e,t){var n,d,c,h,p,f=e.target,m=e.global,g=e.stat;if(n=m?i:g?i[f]||o(f,{}):i[f]&&i[f].prototype)for(d in t){if(h=t[d],c=e.dontCallGetSet?(p=r(n,d))&&p.value:n[d],!u(m?d:f+(g?".":"#")+d,e.forced)&&void 0!==c){if(typeof h==typeof c)continue;l(h,c)}(e.sham||c&&c.sham)&&a(h,"sham",!0),s(n,d,h,e)}}},46637:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"nekaj sekund":"nekaj sekundami";case"ss":return r+(1===e?t?"sekundo":"sekundi":2===e?t||i?"sekundi":"sekundah":e<5?t||i?"sekunde":"sekundah":"sekund");case"m":return t?"ena minuta":"eno minuto";case"mm":return r+(1===e?t?"minuta":"minuto":2===e?t||i?"minuti":"minutama":e<5?t||i?"minute":"minutami":t||i?"minut":"minutami");case"h":return t?"ena ura":"eno uro";case"hh":return r+(1===e?t?"ura":"uro":2===e?t||i?"uri":"urama":e<5?t||i?"ure":"urami":t||i?"ur":"urami");case"d":return t||i?"en dan":"enim dnem";case"dd":return r+(1===e?t||i?"dan":"dnem":2===e?t||i?"dni":"dnevoma":t||i?"dni":"dnevi");case"M":return t||i?"en mesec":"enim mesecem";case"MM":return r+(1===e?t||i?"mesec":"mesecem":2===e?t||i?"meseca":"mesecema":e<5?t||i?"mesece":"meseci":t||i?"mesecev":"meseci");case"y":return t||i?"eno leto":"enim letom";case"yy":return r+(1===e?t||i?"leto":"letom":2===e?t||i?"leti":"letoma":e<5?t||i?"leta":"leti":t||i?"let":"leti")}}e.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},46677:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
\n
\n '+(null==(t=e.children)?"":t)+"\n
\n
\n"}},46706:(e,t,n)=>{"use strict";var i=n(79504),r=n(79306);e.exports=function(e,t,n){try{return i(r(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},46712:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.processOneSync=t.processOne=t.dataValue=void 0;const r=n(2543),a=n(71059),s=n(96690),o=n(84679);t.dataValue=function(e,t){const n=(0,s.getComponentKey)(e);return n?(0,r.get)(t,n):void 0},t.processOne=function(e){return i(this,void 0,void 0,(function*(){const{processors:t,component:n,path:i}=e;if(void 0===e.value&&Object.defineProperty(e,"value",{enumerable:!0,get:()=>(0,r.get)(e.data,e.path),set(t){(0,r.set)(e.data,e.path,t)}}),Object.defineProperty(n,"path",{enumerable:!1,writable:!0,value:i}),(0,o.resetEphermalState)(n),e.row){e.processor=a.ProcessorType.Custom;for(const n of t)(null==n?void 0:n.process)&&(yield n.process(e))}}))},t.processOneSync=function(e){const{processors:t,component:n,path:i}=e;if(void 0===e.value&&Object.defineProperty(e,"value",{enumerable:!0,get:()=>(0,r.get)(e.data,e.path),set(t){(0,r.set)(e.data,e.path,t)}}),Object.defineProperty(n,"path",{enumerable:!1,writable:!0,value:i}),(0,o.resetEphermalState)(n),e.row){e.processor=a.ProcessorType.Custom;for(const n of t)(null==n?void 0:n.processSync)&&n.processSync(e)}}},47055:(e,t,n)=>{"use strict";var i=n(79504),r=n(79039),a=n(44576),s=Object,o=i("".split);e.exports=r((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"===a(e)?o(e,""):s(e)}:s},47102:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},47237:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},47422:(e,t,n)=>{var i=n(31769),r=n(77797);e.exports=function(e,t){for(var n=0,a=(t=i(t,e)).length;null!=e&&n{if(e.defaultValue){const t=e.defaultValue.split("/");e.fields.month.hide||3===t.length||(t.push("0000"),r.default.set(e,"defaultValue",t.join("/")))}},input:!0}]},47473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},47499:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.doesArrayDataHaveValue=t.hasValue=t.interpolateErrors=t.isObject=t.isPromise=t.toBoolean=t.getComponentErrorField=t.isEmptyObject=t.isComponentProtected=t.isComponentPersistent=void 0;const r=n(84679),a=n(9740),s=i(n(62193)),o=i(n(23805)),l=i(n(11331));t.isComponentPersistent=function(e){return!e.persistent||e.persistent},t.isComponentProtected=function(e){return!!e.protected&&e.protected},t.isEmptyObject=function(e){return!!e&&0===Object.keys(e).length&&e.constructor===Object},t.getComponentErrorField=function(e,t){const n=e.errorLabel||e.label||e.placeholder||e.key;return r.Evaluator.interpolate(n,t)},t.toBoolean=function(e){switch(typeof e){case"string":if("true"===e||"1"===e)return!0;if("false"===e||"0"===e)return!1;throw`Cannot coerce string ${e} to boolean}`;case"boolean":return e;default:return!!e}},t.isPromise=function(e){return e&&e.then&&"function"==typeof e.then&&"[object Promise]"===Object.prototype.toString.call(e)},t.isObject=function(e){return null!=e&&("object"==typeof e||"function"==typeof e)},t.interpolateErrors=(e,t="en")=>e.map((e=>{const{errorKeyOrMessage:n,context:i}=e,s=a.VALIDATION_ERRORS[t]||{},o=(({errorKeyOrMessage:e,context:t})=>{var n,i;return(null===(i=null===(n=t.component)||void 0===n?void 0:n.errors)||void 0===i?void 0:i[e])||""})(e)||s[n]||n,l=[];return i.path.split(".").forEach((e=>{const t=e.match(/\[([0-9]+)\]$/);t?(l.push(e.substring(0,t.index)),l.push(parseInt(t[1]))):l.push(e)})),{message:(0,r.unescapeHTML)(r.Evaluator.interpolateString(o,i)),level:e.level,path:l,context:{validator:e.ruleName,hasLabel:i.hasLabel,key:i.component.key,label:i.component.label||i.component.placeholder||i.component.key,path:i.path,value:i.value,setting:i.setting,index:i.index||0}}})),t.hasValue=e=>(0,o.default)(e)?!(0,s.default)(e):"number"==typeof e&&!Number.isNaN(e)||!!e,t.doesArrayDataHaveValue=(e=[])=>Array.isArray(e)?!!e.length&&(e.every(l.default)?e.some((e=>Object.values(e).some(t.hasValue))):e.some(t.hasValue)):!!e},47633:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(10280)),a=i(n(18618));t.default=function(...e){return(0,r.default)([{key:"display",components:a.default}],...e)}},47762:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
    \n ',e.header&&(n+='\n
  • \n '+(null==(t=e.header)?"":t)+"\n
  • \n "),n+="\n ",e.rows.forEach((function(i,r){n+='\n
  • \n '+(null==(t=i)?"":t)+"\n ",e.openRows[r]&&!e.readOnly&&(n+='\n
    \n \n ",e.component.removeRow&&(n+='\n \n "),n+="\n
    \n "),n+='\n
    \n
    \n '+(null==(t=e.errors[r])?"":t)+"\n
    \n
    \n
  • \n "})),n+="\n ",e.footer&&(n+='\n \n "),n+="\n
\n"}},47777:function(e,t,n){!function(e){"use strict";e.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(e){var t=e%10,n=e%100;return 0===e?e+"-ев":0===n?e+"-ен":n>10&&n<20?e+"-ти":1===t?e+"-ви":2===t?e+"-ри":7===t||8===t?e+"-ми":e+"-ти"},week:{dow:1,doy:7}})}(n(95093))},48264:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"disabled",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0},{weight:700,type:"checkbox",label:"Refresh On Change",tooltip:"Rerender the field whenever a value on the form changes.",key:"refreshOnChange",input:!0}]},48303:function(e,t,n){!function(e){"use strict";e.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(n(95093))},48414:function(e,t,n){!function(e){"use strict";e.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(e,t){return 12===e&&(e=0),"يېرىم كېچە"===t||"سەھەر"===t||"چۈشتىن بۇرۇن"===t?e:"چۈشتىن كېيىن"===t||"كەچ"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"يېرىم كېچە":i<900?"سەھەر":i<1130?"چۈشتىن بۇرۇن":i<1230?"چۈش":i<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"-كۈنى";case"w":case"W":return e+"-ھەپتە";default:return e}},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(95093))},48421:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(3577)),a=i(n(95093));class s extends r.default{static get operatorKey(){return"dateGreaterThan"}static get displayedName(){return"Greater Than"}getFormattedDates({value:e,comparedValue:t,conditionTriggerComponent:n}){const i=n?n.getValidationFormat:null;return{date:i?(0,a.default)(e,n.getValidationFormat()):(0,a.default)(e),comparedDate:i?(0,a.default)(t,n.getValidationFormat()):(0,a.default)(t)}}execute(e,t="isAfter"){var n;const{value:i,instance:r,conditionComponentPath:a}=e;if(!i)return!1;let s=null;if((null===(n=null==r?void 0:r.root)||void 0===n?void 0:n.getComponent)&&(s=r.root.getComponent(a)),s&&s.isPartialDay&&s.isPartialDay(i))return!1;const{date:o,comparedDate:l}=this.getFormattedDates(Object.assign(Object.assign({},e),{conditionTriggerComponent:s}));return o[t](l)}}t.default=s},48550:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NestedDataModel=void 0;const i=n(2543),r=n(39646);t.NestedDataModel=function(e={}){return function(t){return class extends((0,r.NestedModel)(e)(t)){get emptyValue(){return{}}get defaultValue(){return{}}componentData(){if(!this.component.key)return this.data;const e=(0,i.get)(this.data,this.component.key,this.defaultValue);return Object.keys(e).length||(0,i.set)(this.data,this.component.key,e),e}get dataValue(){return this.component.key?(0,i.get)(this.data,this.component.key):this.data}set dataValue(e){this.eachComponentValue(e,((e,t)=>e.dataValue=t))}}}}},48621:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NestedArrayModel=void 0;const i=n(2543),r=n(48550);t.NestedArrayModel=function(e={}){return function(t){return class extends((0,r.NestedDataModel)(e)(t)){get defaultValue(){return[]}row(e){return ethis.removeComponent(e))),this.dataValue.splice(e,1),this.rows.splice(e,1)}addRow(e={},t=0){const n=e;this.dataValue[t]=n,this.createRowComponents(n,t)}setRowData(e,t){var n;this.dataValue[t]=e,null===(n=this.row(t))||void 0===n||n.forEach((t=>t.data=e))}rowChanged(e,t){var n;let r=!1;return null===(n=this.row(t))||void 0===n||n.forEach((t=>{const n=t.hasChanged((0,i.get)(e,t.component.key));r=n||r,n&&t.bubble("change",t)})),r}createComponents(e){this.rows=[];let t=[];return this.eachRowValue(e,((e,n)=>{t=t.concat(this.createRowComponents(e,n))})),t}createRowComponents(e,t=0){const n=super.createComponents(e,(e=>{e.rowIndex=t}));return this.rows[t]=n,n}getIndexes(e){return super.getIndexes?super.getIndexes(e):{min:0,max:e.length-1}}eachRowValue(e,t){if(!e||!e.length)return;const n=this.getIndexes(e);for(let i=n.min;i<=n.max;i++)t(e[i],i)}get emptyValue(){return[]}get dataValue(){return this.component.key?(0,i.get)(this.data,this.component.key):this.data}set dataValue(e){if(Array.isArray(e)){const t=this.dataValue;if(this.eachRowValue(e,((e,n)=>{n>=t.length&&this.addRow(e,n),this.setRowData(e,n)})),t.length>e.length)for(let n=t.length-1;n>=e.length;n--)this.removeRow(n)}}hasChanged(e){const t=this.dataValue;if(e.length!==t.length)return this.emit("changed",this),!0;let n=!1;return this.eachRowValue(e,((e,t)=>{n=this.rowChanged(e,t)||n})),n}setValue(e){var t=!1;return this.eachComponentValue(e,((e,n)=>{t=e.setValue(n)||t})),t}}}}},48645:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.calculateProcessInfo=t.calculateProcess=t.calculateProcessSync=t.shouldCalculate=void 0;const r=n(79092),a=n(2543);t.shouldCalculate=e=>{const{component:t,config:n}=e;return!(!t.calculateValue||(null==n?void 0:n.server)&&!t.calculateServer)},t.calculateProcessSync=e=>{const{component:n,data:i,evalContext:s,scope:o,path:l,value:u}=e;if(!(0,t.shouldCalculate)(e))return;const d=s?s(e):e;d.value=u||null,o.calculated||(o.calculated=[]);const c=r.JSONLogicEvaluator.evaluate(n.calculateValue,d,"value");null!==c&&(o.calculated.push({path:l,value:c}),(0,a.set)(i,l,c))},t.calculateProcess=e=>i(void 0,void 0,void 0,(function*(){return(0,t.calculateProcessSync)(e)})),t.calculateProcessInfo={name:"calculate",process:t.calculateProcess,processSync:t.calculateProcessSync,shouldProcess:t.shouldCalculate}},48655:(e,t,n)=>{var i=n(26025);e.exports=function(e){return i(this.__data__,e)>-1}},48686:(e,t,n)=>{"use strict";var i=n(43724),r=n(79039);e.exports=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},48773:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);t.f=r?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},48885:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(75509);t.default={form:i.default}},48948:(e,t,n)=>{var i=n(21791),r=n(86375);e.exports=function(e,t){return i(e,r(e),t)}},48949:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"validate.minWords",ignore:!0},{key:"validate.maxWords",ignore:!0},{type:"panel",label:"Kickbox",title:"Kickbox",weight:102,key:"kickbox",components:[{type:"checkbox",label:"Enable",tooltip:"Enable Kickbox validation for this email field.",description:"Validate this email using the Kickbox email validation service.",key:"kickbox.enabled"}]}]},48981:(e,t,n)=>{"use strict";var i=n(67750),r=Object;e.exports=function(e){return r(i(e))}},49210:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataComponent=void 0;const i=n(13614),r=n(74418),a=n(64652);function s(e={}){return e.type||(e.type="data"),e.model||(e.model=r.NestedDataModel),function(t){return class extends((0,a.NestedComponent)(e)(t)){}}}t.DataComponent=s,i.Components.addDecorator(s,"data"),i.Components.addComponent(s()(),"data")},49326:(e,t,n)=>{var i=n(31769),r=n(72428),a=n(56449),s=n(30361),o=n(30294),l=n(77797);e.exports=function(e,t,n){for(var u=-1,d=(t=i(t,e)).length,c=!1;++ue.dayFirst?"DD-MM-YYYY":"MM-DD-YYYY",t.isPartialDay=(e,t)=>{if(!t)return!0;const[n,i,r]=e.dayFirst?[0,1,2]:[1,0,2],a=t.split("/");return"00"===a[n]||"00"===a[i]||"0000"===a[r]}},49653:(e,t,n)=>{var i=n(37828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new i(t).set(new i(e)),t}},49698:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},49753:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(14728));class a extends r.default{static get operatorKey(){return"dateGreaterThanOrEqual"}static get displayedName(){return"Greater Than Or Equal To"}execute(e){return super.execute(e,"isSameOrAfter")}}t.default=a},49910:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.unsafeStringify=s;var i,r=(i=n(37037))&&i.__esModule?i:{default:i};const a=[];for(let e=0;e<256;++e)a.push((e+256).toString(16).slice(1));function s(e,t=0){return a[e[t+0]]+a[e[t+1]]+a[e[t+2]]+a[e[t+3]]+"-"+a[e[t+4]]+a[e[t+5]]+"-"+a[e[t+6]]+a[e[t+7]]+"-"+a[e[t+8]]+a[e[t+9]]+"-"+a[e[t+10]]+a[e[t+11]]+a[e[t+12]]+a[e[t+13]]+a[e[t+14]]+a[e[t+15]]}t.default=function(e,t=0){const n=s(e,t);if(!(0,r.default)(n))throw TypeError("Stringified UUID is invalid");return n}},50002:(e,t,n)=>{var i=n(82199),r=n(4664),a=n(95950);e.exports=function(e){return i(e,a,r)}},50098:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},50104:(e,t,n)=>{var i=n(53661);function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],a=n.cache;if(a.has(r))return a.get(r);var s=e.apply(this,i);return n.cache=a.set(r,s)||a,s};return n.cache=new(r.Cache||i),n}r.Cache=i,e.exports=r},50283:(e,t,n)=>{"use strict";var i=n(79504),r=n(79039),a=n(94901),s=n(39297),o=n(43724),l=n(10350).CONFIGURABLE,u=n(33706),d=n(91181),c=d.enforce,h=d.get,p=String,f=Object.defineProperty,m=i("".slice),g=i("".replace),v=i([].join),y=o&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),b=String(String).split("String"),_=e.exports=function(e,t,n){"Symbol("===m(p(t),0,7)&&(t="["+g(p(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!s(e,"name")||l&&e.name!==t)&&(o?f(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&s(n,"arity")&&e.length!==n.arity&&f(e,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?o&&f(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=c(e);return s(i,"source")||(i.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=_((function(){return a(this)&&h(this).source||u(this)}),"toString")},50304:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"中午"===t?e>=11?e:e+12:"下午"===t||"晚上"===t?e+12:void 0},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"週";default:return e}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(95093))},50493:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(10280)),a=i(n(77946));t.default=function(...e){return(0,r.default)([{key:"display",components:a.default}],...e)}},50505:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},50583:(e,t,n)=>{var i=n(47237),r=n(17255),a=n(28586),s=n(77797);e.exports=function(e){return a(e)?i(s(e)):r(e)}},50689:(e,t,n)=>{var i=n(50002),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,o){var l=1&n,u=i(e),d=u.length;if(d!=i(t).length&&!l)return!1;for(var c=d;c--;){var h=u[c];if(!(l?h in t:r.call(t,h)))return!1}var p=o.get(e),f=o.get(t);if(p&&f)return p==t&&f==e;var m=!0;o.set(e,t),o.set(t,e);for(var g=l;++c{"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var r=i(n(58089)),a=i(n(17749)),s=i(n(7152)),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},l=function(e){return null!=e&&"object"===(void 0===e?"undefined":o(e))&&1===e.nodeType&&"object"===o(e.style)&&"object"===o(e.ownerDocument)};function u(e){if("string"==typeof e)try{return document.querySelector(e)}catch(e){throw e}else if(s(e))return e}function d(e,t){if(t=p(t,!0),!l(t))return-1;for(var n=0;n0;)t[n]=arguments[n+1];return function(e,t){for(var n=0;n0;)t[n]=arguments[n+1];return t.map(p).reduce((function(t,n){var i=d(e,n);return-1!==i?t.concat(e.splice(i,1)):t}),[])},t.resolveElement=p,t.select=u,t.selectAll=function(e){return"string"==typeof e?Array.prototype.slice.apply(document.querySelectorAll(e)):a(e)?e.map(u):"length"in e?r(e).map(u):void 0}},50813:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(89480)),a=n(2543);class s extends r.default{static get operatorKey(){return"greaterThanOrEqual"}static get displayedName(){return"Greater Than Or Equal To"}execute({value:e,comparedValue:t}){return(0,a.isNumber)(e)&&(e>t||(0,a.isEqual)(e,t))}}t.default=s},50851:(e,t,n)=>{"use strict";var i=n(36955),r=n(55966),a=n(64117),s=n(26269),o=n(78227)("iterator");e.exports=function(e){if(!a(e))return r(e,o)||r(e,"@@iterator")||s[i(e)]}},50957:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(60333);t.default={form:i.default}},50983:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),a=i(n(21026)),s=i(n(16022));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:a.default},{key:"data",ignore:!0},{key:"validation",ignore:!0},{key:"logic",components:s.default}],...e)}},51088:(e,t,n)=>{"use strict";var i=n(46518),r=n(69565),a=n(96395),s=n(10350),o=n(94901),l=n(33994),u=n(42787),d=n(52967),c=n(10687),h=n(66699),p=n(36840),f=n(78227),m=n(26269),g=n(57657),v=s.PROPER,y=s.CONFIGURABLE,b=g.IteratorPrototype,_=g.BUGGY_SAFARI_ITERATORS,w=f("iterator"),M="keys",k="values",S="entries",x=function(){return this};e.exports=function(e,t,n,s,f,g,L){l(n,t,s);var C,T,E,A=function(e){if(e===f&&I)return I;if(!_&&e&&e in O)return O[e];switch(e){case M:case k:case S:return function(){return new n(this,e)}}return function(){return new n(this)}},D=t+" Iterator",P=!1,O=e.prototype,j=O[w]||O["@@iterator"]||f&&O[f],I=!_&&j||A(f),R="Array"===t&&O.entries||j;if(R&&(C=u(R.call(new e)))!==Object.prototype&&C.next&&(a||u(C)===b||(d?d(C,b):o(C[w])||p(C,w,x)),c(C,D,!0,!0),a&&(m[D]=x)),v&&f===k&&j&&j.name!==k&&(!a&&y?h(O,"name",k):(P=!0,I=function(){return r(j,this)})),f)if(T={values:A(k),keys:g?I:A(M),entries:A(S)},L)for(E in T)(_||P||!(E in O))&&p(O,E,T[E]);else i({target:t,proto:!0,forced:_||P},T);return a&&!L||O[w]===I||p(O,w,I,{name:f}),m[t]=I,T}},51202:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
',e.value?n+=null==(t=e.self.itemValueForHTMLMode(e.value))?"":t:n+="-",n+"
\n"}},51299:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(34600),a=i(n(17389)),s=i(n(76644));class o extends a.default{static schema(...e){return a.default.schema({type:"tags",label:"Tags",key:"tags",delimeter:",",storeas:"string",maxTags:0},...e)}static get builderInfo(){return{title:"Tags",icon:"tags",group:"advanced",documentation:"/userguide/form-building/advanced-components#tags",weight:30,schema:o.schema()}}static get serverConditionSettings(){return o.conditionOperatorsSettings}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{operators:[...super.conditionOperatorsSettings.operators,"includes","notIncludes"]})}static savedValueTypes(e){return e=e||{},(0,r.getComponentSavedTypes)(e)||[r.componentValueTypes[e.storeas]||r.componentValueTypes.string]}init(){super.init()}get emptyValue(){return"string"===this.component.storeas?"":[]}get defaultSchema(){return o.schema()}get inputInfo(){const e=super.inputInfo;return e.type="input",e.attr.type="text",e.changeEvent="change",e}get delimiter(){return this.component.delimeter||","}attachElement(e,t){if(super.attachElement(e,t),!e)return;if(this.i18next&&e.setAttribute("dir",this.i18next.dir()),this.choices&&this.choices.destroy(),!s.default)return;const n=!!this.component.placeholder;this.choices=new s.default(e,{delimiter:this.delimiter,editItems:!0,allowHTML:!0,maxItemCount:this.component.maxTags,removeItemButton:!0,duplicateItemsAllowed:!1,shadowRoot:this.root?this.root.shadowRoot:null,placeholder:n,placeholderValue:n?this.t(this.component.placeholder,{_userInput:!0}):null}),this.choices.itemList.element.tabIndex=e.tabIndex,this.addEventListener(this.choices.input.element,"blur",(()=>{e.dispatchEvent(new Event("blur"));const t=this.choices.input.value,n=this.component.maxTags,i=this.choices.getValue(!0).length,r=this.choices.getValue(!0).some((e=>e.trim()===t.trim()));t&&(n&&i===n?(this.choices.addItems=!1,this.choices.clearInput()):r?this.choices.clearInput():(this.choices.setValue([t]),this.choices.clearInput(),this.choices.hideDropdown(!0),this.updateValue(null,{modified:!0})))}))}detach(){this.choices&&(this.choices.destroy(),this.choices=null),super.detach()}normalizeValue(e){return"string"===this.component.storeas&&Array.isArray(e)?super.normalizeValue(e.join(this.delimiter)):"array"===this.component.storeas&&"string"==typeof e?super.normalizeValue(e.split(this.delimiter).filter((e=>e))):super.normalizeValue(e)}setValue(e,t={}){const n=super.setValue(e,t);if(this.choices){let e=this.dataValue;if(this.choices.removeActiveItems(),e){"string"==typeof e&&(e=e.split(this.delimiter).filter((e=>e)));const t=Array.isArray(e)?e:[e];this.choices.setValue(t.map((e=>this.sanitize(e,this.shouldSanitizeValue))))}}return n}set disabled(e){super.disabled=e,this.choices&&(e?this.choices.disable():this.choices.enable())}get disabled(){return super.disabled}focus(){this.refs.input&&this.refs.input.length&&this.refs.input[0].parentNode.lastChild.focus()}getValueAsString(e){if(!e)return"";if(Array.isArray(e))return e.join(`${this.delimiter||","} `);const t=e.toString();return this.sanitize(t,this.shouldSanitizeValue)}}t.default=o},51420:(e,t,n)=>{var i=n(80079);e.exports=function(){this.__data__=new i,this.size=0}},51444:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"showWordCount",ignore:!0},{key:"showCharCount",ignore:!0}]},51459:e=>{e.exports=function(e){return this.__data__.has(e)}},51637:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={unsavedRowsError:"Please save all rows before proceeding.",invalidRowsError:"Please correct invalid rows before proceeding.",invalidRowError:"Invalid row. Please correct it or delete.",invalidOption:"{{field}} is an invalid value.",invalidDay:"{{field}} is not a valid day.",alertMessageWithLabel:"{{label}}: {{message}}",alertMessage:"{{message}}",complete:"Submission Complete",error:"Please fix the following errors before submitting.",errorListHotkey:"Press Ctrl + Alt + X to go back to the error list.",errorsListNavigationMessage:"Click to navigate to the field with following error.",submitError:"Please check the form and correct all errors before submitting.",required:"{{field}} is required",unique:"{{field}} must be unique",array:"{{field}} must be an array",array_nonempty:"{{field}} must be a non-empty array",nonarray:"{{field}} must not be an array",select:"{{field}} contains an invalid selection",pattern:"{{field}} does not match the pattern {{pattern}}",minLength:"{{field}} must have at least {{length}} characters.",maxLength:"{{field}} must have no more than {{length}} characters.",minWords:"{{field}} must have at least {{length}} words.",maxWords:"{{field}} must have no more than {{length}} words.",min:"{{field}} cannot be less than {{min}}.",max:"{{field}} cannot be greater than {{max}}.",maxDate:"{{field}} should not contain date after {{maxDate}}",minDate:"{{field}} should not contain date before {{minDate}}",maxYear:"{{field}} should not contain year greater than {{maxYear}}",minYear:"{{field}} should not contain year less than {{minYear}}",minSelectedCount:"You must select at least {{minCount}} items",maxSelectedCount:"You may only select up to {{maxCount}} items",invalid_email:"{{field}} must be a valid email.",invalid_url:"{{field}} must be a valid url.",invalid_regex:"{{field}} does not match the pattern {{regex}}.",invalid_date:"{{field}} is not a valid date.",invalid_day:"{{field}} is not a valid day.",invalidValueProperty:"Invalid Value Property",mask:"{{field}} does not match the mask.",valueIsNotAvailable:"{{ field }} is an invalid value.",stripe:"{{stripe}}",month:"Month",day:"Day",year:"Year",january:"January",february:"February",march:"March",april:"April",may:"May",june:"June",july:"July",august:"August",september:"September",october:"October",november:"November",december:"December",next:"Next",previous:"Previous",cancel:"Cancel",submit:"Submit Form",confirmCancel:"Are you sure you want to cancel?",saveDraftInstanceError:"Cannot save draft because there is no formio instance.",saveDraftAuthError:"Cannot save draft unless a user is authenticated.",restoreDraftInstanceError:"Cannot restore draft because there is no formio instance.",saveDraftError:"Unable to save draft.",restoreDraftError:"Unable to restore draft.",time:"Invalid time",cancelButtonAriaLabel:"Cancel button. Click to reset the form",previousButtonAriaLabel:"Previous button. Click to go back to the previous tab",nextButtonAriaLabel:"Next button. Click to go to the next tab",submitButtonAriaLabel:"Submit Form button. Click to submit the form",reCaptchaTokenValidationError:"ReCAPTCHA: Token validation error",reCaptchaTokenNotSpecifiedError:"ReCAPTCHA: Token is not specified in submission",apiKey:"API Key is not unique: {{key}}",typeRemaining:"{{ remaining }} {{ type }} remaining.",typeCount:"{{ count }} {{ type }}",requiredDayField:"{{ field }} is required",requiredDayEmpty:"{{ field }} is required",requiredMonthField:"{{ field }} is required",requiredYearField:"{{ field }} is required"}},51707:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
    \n ',e.buttonOrder.forEach((function(i){n+="\n ","cancel"===i&&e.buttons.cancel&&(n+='\n
  • \n \n
  • \n "),n+="\n ","previous"===i&&e.buttons.previous&&(n+='\n
  • \n \n
  • \n "),n+="\n ","next"===i&&e.buttons.next&&(n+='\n
  • \n \n
  • \n "),n+="\n ","submit"===i&&e.buttons.submit&&(n+="\n
  • \n ",e.disableWizardSubmit?n+='\n \n ":n+='\n \n ",n+="\n
  • \n "),n+="\n "})),n+="\n
\n"}},51811:e=>{var t=Date.now;e.exports=function(e){var n=0,i=0;return function(){var r=t(),a=16-(r-i);if(i=r,a>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},51873:(e,t,n)=>{var i=n(9325).Symbol;e.exports=i},51970:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(13716);t.default={form:i.default}},52167:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),a=i(n(80238)),s=i(n(5558)),o=i(n(53109));t.default=function(...e){return r.default.baseEditForm([{key:"data",components:a.default},{key:"display",components:s.default},{key:"validation",components:o.default}],...e)}},52297:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(3577)),a=i(n(2543));class s extends r.default{static get operatorKey(){return"greaterThan"}static get displayedName(){return"Greater Than"}execute({value:e,comparedValue:t}){return a.default.isNumber(e)&&e>t}}t.default=s},52388:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProcessorError=void 0;class n extends Error{constructor(e,t,n="unknown"){super(e),this.message=`${e}\nin ${n} at ${t.path}`;const{component:i,path:r,data:a,row:s}=t;this.context={component:i,path:r,data:a,row:s}}}t.ProcessorError=n},52477:function(e,t,n){!function(e){"use strict";e.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},52648:function(e,t,n){!function(e){"use strict";e.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(e,t){return 12===e&&(e=0),"凌晨"===t||"早上"===t||"上午"===t?e:"下午"===t||"晚上"===t?e+12:e>=11?e:e+12},meridiem:function(e,t,n){var i=100*e+t;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(e){return e.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(e){return this.week()!==e.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"日";case"M":return e+"月";case"w":case"W":return e+"周";default:return e}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(95093))},52679:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.databaseRules=void 0;const i=n(6154),r=n(27500);t.databaseRules=[i.validateUniqueInfo,r.validateResourceSelectValueInfo]},52749:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n \n '+(null==(t=e.element)?"":t)+"\n \n ",e.disabled||(n+='\n \n \n \n '),n+"\n\n"}},52850:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),a=i(n(22261));t.default=function(...e){return r.default.baseEditForm([{key:"data",components:a.default}],...e)}},52951:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},52967:(e,t,n)=>{"use strict";var i=n(46706),r=n(20034),a=n(67750),s=n(73506);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=i(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return a(n),s(i),r(n)?(t?e(n,i):n.__proto__=i,n):n}}():void 0)},53026:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.filterProcessInfo=t.filterPostProcess=t.filterProcess=t.filterProcessSync=void 0;const r=n(2543),a=n(84679),s=n(2543),o=n(96690);t.filterProcessSync=e=>{const{scope:t,component:n,path:i}=e,{value:r}=e,s=(0,o.getComponentAbsolutePath)(n)||i;if(t.filter||(t.filter={}),void 0!==r){const e=a.Utils.getModelType(n);switch(e){case"dataObject":t.filter[s]={compModelType:e,include:!0,value:{data:{}}};break;case"nestedArray":t.filter[s]={compModelType:e,include:!0,value:[]};break;case"nestedDataArray":t.filter[s]={compModelType:e,include:!0,value:Array.isArray(r)?r.map((e=>Object.assign(Object.assign({},e),{data:{}}))):[]};break;case"object":t.filter[s]={compModelType:e,include:!0,value:"address"!==n.type&&{}};break;default:t.filter[s]={compModelType:e,include:!0}}}},t.filterProcess=e=>i(void 0,void 0,void 0,(function*(){return(0,t.filterProcessSync)(e)})),t.filterPostProcess=e=>{var t;const{scope:n,submission:i}=e,a={};for(const e in n.filter)if(n.filter[e].include){let o=(0,s.get)(null==i?void 0:i.data,e);n.filter[e].value&&(o=(0,s.isObject)(o)&&(null===(t=n.filter[e].value)||void 0===t?void 0:t.data)?Object.assign(Object.assign({},o),n.filter[e].value):n.filter[e].value),(0,r.set)(a,e,o)}e.data=a},t.filterProcessInfo={name:"filter",process:t.filterProcess,processSync:t.filterProcessSync,postProcess:t.filterPostProcess,shouldProcess:()=>!0}},53067:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=i(n(39142));class s extends a.default{static schema(...e){return a.default.schema({label:"Columns",key:"columns",type:"columns",columns:[{components:[],width:6,offset:0,push:0,pull:0,size:"md"},{components:[],width:6,offset:0,push:0,pull:0,size:"md"}],clearOnHide:!1,input:!1,tableView:!1,persistent:!1,autoAdjust:!1},...e)}static get builderInfo(){return{title:"Columns",icon:"columns",group:"layout",documentation:"/userguide/form-building/layout-components#columns",showPreview:!1,weight:10,schema:s.schema()}}static savedValueTypes(){return[]}constructor(e,t,n){super(e,t,n),this.rows=[]}get schema(){var e;const t=r.default.omit(super.schema,["components"]);return null===(e=t.columns)||void 0===e||e.map(((e,n)=>{e.components.map(((e,i)=>{const a=r.default.clone(e);a.internal=!0;const s=this.createComponent(a);delete s.component.internal,t.columns[n].components[i]=s.schema}))})),t}get defaultSchema(){return s.schema()}get className(){return`row ${super.className}`}get columnKey(){return`column-${this.id}`}init(){super.init(),this.columns=[],r.default.each(this.component.columns,((e,t)=>{this.columns[t]=[],e.size||(e.size="md"),e.currentWidth=this.options.condensedMode?this.gridSize:e.width||0,Array.isArray(e.components)||(e.components=[]),r.default.each(e.components,(e=>{const n=this.createComponent(e);n.column=t,this.columns[t].push(n)}))})),this.component.autoAdjust&&"pdf"!==this.options.display&&this.justify(),this.rows=this.groupByRow()}labelIsHidden(){return!0}render(){return super.render(this.renderTemplate("columns",{columnKey:this.columnKey,columnComponents:this.columns.map((e=>this.renderComponents(e)))}))}justifyColumn(e,t){const n=r.default.every(e,(e=>!e.visible)),i=this.component.columns[t],a=n&&e.length?0:i.width,s=!r.default.isEqual(a,i.currentWidth);return i.currentWidth=a,s}justify(){return this.columns.reduce(((e,t,n)=>this.justifyColumn(t,n)||e),!1)}attach(e){this.loadRefs(e,{[this.columnKey]:"multiple"});const t=super.attach(e);return this.refs[this.columnKey]&&this.refs[this.columnKey].forEach(((e,t)=>this.attachComponents(e,this.columns[t],this.component.columns[t].components))),t}get gridSize(){return 12}groupByRow(){const e=e=>e.component.width,t=r.default.reduce(this.components,((t,n)=>{const i=[...t.stack,n];return r.default.sumBy(i,e)<=this.gridSize?(t.stack=i,t):(t.rows=[...t.rows,t.stack],t.stack=[n],t)}),{stack:[],rows:[]});return r.default.concat(t.rows,[t.stack])}checkData(e,t,n,i){super.checkData(e,t,n,i),this.component.autoAdjust&&"pdf"!==this.options.display&&this.justify()&&this.redraw()}detach(e){super.detach(e)}destroy(e=!1){super.destroy(e),this.columns=[]}}t.default=s},53109:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"validateOn",ignore:!0},{key:"unique",ignore:!0}]},53138:(e,t,n)=>{var i=n(11331);e.exports=function(e){return i(e)?void 0:e}},53166:e=>{var t,n,i,r;e.exports=(t=function(e){return"function"==typeof e},n=Math.pow(2,53)-1,i=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),n)},r=function(e){var t=e.next();return!Boolean(t.done)&&t},function(e){"use strict";var n,a,s,o=this,l=arguments.length>1?arguments[1]:void 0;if(void 0!==l){if(!t(l))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(n=arguments[2])}var u=function(e,n){if(null!=e&&null!=n){var i=e[n];if(null==i)return;if(!t(i))throw new TypeError(i+" is not a function");return i}}(e,function(e){if(null!=e){if(["string","number","boolean","symbol"].indexOf(typeof e)>-1)return Symbol.iterator;if("undefined"!=typeof Symbol&&"iterator"in Symbol&&Symbol.iterator in e)return Symbol.iterator;if("@@iterator"in e)return"@@iterator"}}(e));if(void 0!==u){a=t(o)?Object(new o):[];var d,c,h=u.call(e);if(null==h)throw new TypeError("Array.from requires an array-like or iterable object");for(s=0;;){if(!(d=r(h)))return a.length=s,a;c=d.value,a[s]=l?l.call(n,c,s):c,s++}}else{var p=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var f,m=i(p.length);for(a=t(o)?Object(new o(m)):new Array(m),s=0;s{"use strict";var t={};function n(e){var n=t[e];return n?n.lastIndex=0:t[e]=n=new RegExp("(?:^|\\s)"+e+"(?:\\s|$)","g"),n}e.exports={add:function(e,t){var i=e.className;i.length?n(t).test(i)||(e.className+=" "+t):e.className=t},rm:function(e,t){e.className=e.className.replace(n(t)," ").trim()}}},53661:(e,t,n)=>{var i=n(63040),r=n(17670),a=n(90289),s=n(4509),o=n(72949);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{"use strict";const{Components:i}=n(92595),r=i.components.field,a=n(80748);a.GlobalWorkerOptions.workerSrc="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js";class s extends r{constructor(e,t,n){super(e,t,n)}static schema(...e){return r.schema({type:"pdfpreview",label:"PDF Preview",key:"pdfpreview",sourceField:"",input:!0,...e})}static get builderInfo(){return{title:"PDF Preview",group:"basic",icon:"file-pdf",weight:80,schema:s.schema()}}render(){const e=`pdfPreview_${this.id}`;return this.pdfCanvasId=`${e}_canvas`,this.pdfInputId=`${e}_input`,super.render(`\n
\n \n
\n \n
\n
\n `)}attach(e){const t=document.getElementById(this.pdfInputId);return document.getElementById(this.pdfCanvasId),t&&this.addEventListener(t,"change",this.handleFileChange.bind(this)),this.root?.on("change",(e=>{if(e.changed?.component?.key===this.component.sourceField){const e=this.getPdfBase64FromSource();e&&this.loadPdfFromSource(e)}})),setTimeout((()=>{const e=this.getPdfBase64FromSource();e&&this.loadPdfFromSource(e)}),0),this.injectCss(),super.attach(e)}getPdfBase64FromSource(){const e=this.component.sourceField;if(!e)return"";const t=(this.root?this.root.data:{})[e];if(Array.isArray(t)&&t.length>0){const e=t[0];if(e.base64)return e.base64;if(e.url&&e.url.startsWith("data:application/pdf"))return e.url}return"string"==typeof t&&t.startsWith("data:application/pdf")?t:""}handleFileChange(e){const t=e.target.files[0];if(t&&"application/pdf"===t.type){const e=new FileReader;e.onload=async e=>{try{const t=new Uint8Array(e.target.result),n=await a.getDocument({data:t}).promise,i=await n.getPage(1),r=document.getElementById(this.pdfCanvasId);if(!r)return;const s=r.getContext("2d"),o=i.getViewport({scale:1.5});r.height=o.height,r.width=o.width,await i.render({canvasContext:s,viewport:o}).promise}catch(e){console.error("Error rendering PDF:",e)}},e.readAsArrayBuffer(t)}else alert("Please select a valid PDF file.")}async loadPdfFromSource(e){const t=document.getElementById(this.pdfCanvasId);if(!t)return;const n=t.getContext("2d"),i=a.getDocument({url:e});try{const e=await i.promise,r=await e.getPage(1),a=r.getViewport({scale:1.5});t.height=a.height,t.width=a.width,await r.render({canvasContext:n,viewport:a}).promise}catch(e){console.error("Error loading PDF:",e)}}injectCss(){const e=document.createElement("style");e.textContent="\n .pdf-preview-component {\n display: flex;\n flex-direction: column;\n }\n .pdf-preview-box {\n margin-top: 10px;\n border: 1px dashed #ccc;\n padding: 10px;\n text-align: center;\n }\n .pdf-preview-canvas {\n max-width: 100%;\n max-height: 400px;\n }\n ",document.head.appendChild(e)}}e.exports=s},53872:function(e,t,n){!function(e){"use strict";e.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:0,doy:4}})}(n(95093))},53873:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.node.isRoot?n+='\n
\n':n+='\n
  • \n',n+="\n ",e.content&&(n+='\n
    \n '+(null==(t=e.content)?"":t)+"\n
    \n "),n+="\n ",e.childNodes&&e.childNodes.length&&(n+='\n
      \n '+(null==(t=e.childNodes.join(""))?"":t)+"\n
    \n "),n+="\n",e.node.isRoot?n+="\n
  • \n":n+="\n \n",n+"\n"}},53921:(e,t,n)=>{"use strict";var i=n(46518),r=n(72652),a=n(97040);i({target:"Object",stat:!0},{fromEntries:function(e){var t={};return r(e,(function(e,n){a(t,e,n)}),{AS_ENTRIES:!0}),t}})},54008:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(44508),t),r(n(52388),t)},54065:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=r(n(71961)),s=n(34600),o=r(n(38140)),l=r(n(2543)),u=r(n(70103)),d=r(n(18092));let c,h,p="undefined"!=typeof window?navigator.camera:c;"undefined"!=typeof window?h=window.HTMLCanvasElement:void 0!==n.g&&(h=n.g.HTMLCanvasElement),h&&!h.prototype.toBlob&&Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(e,t,n){var i=this;setTimeout((function(){for(var r=atob(i.toDataURL(t,n).split(",")[1]),a=r.length,s=new Uint8Array(a),o=0;oe.url))}get emptyValue(){return[]}getValueAsString(e){return l.default.isArray(e)?l.default.map(e,"originalName").join(", "):l.default.get(e,"originalName","")}getValue(){return this.dataValue}get defaultValue(){const e=super.defaultValue;return Array.isArray(e)?e:[]}get hasTypes(){return this.component.fileTypes&&Array.isArray(this.component.fileTypes)&&0!==this.component.fileTypes.length&&(""!==this.component.fileTypes[0].label||""!==this.component.fileTypes[0].value)}get fileDropHidden(){return this._fileBrowseHidden}set fileDropHidden(e){"boolean"!=typeof e||this.component.multiple||(this._fileBrowseHidden=e)}get shouldSyncFiles(){return Boolean(this.filesToSync.filesToDelete.length||this.filesToSync.filesToUpload.length)}get autoSync(){return!1}get columnsSize(){const e=this.disabled?0:this.autoSync?2:1,t=this.hasTypes?2:0;return{name:12-e-t-2,size:2,type:t,actions:e}}render(){const{filesToDelete:e,filesToUpload:t}=this.filesToSync;return super.render(this.renderTemplate("file",{fileSize:this.fileSize,files:this.dataValue||[],filesToDelete:e,filesToUpload:t,disabled:this.disabled,support:this.support,fileDropHidden:this.fileDropHidden,showSyncButton:this.autoSync&&(e.length||t.length),isSyncing:this.isSyncing,columns:this.columnsSize}))}getVideoStream(e){return navigator.mediaDevices.getUserMedia({video:Object.assign({width:{min:640,ideal:1920},height:{min:360,ideal:1080},aspectRatio:{ideal:16/9}},e),audio:!1})}stopVideoStream(e){e.getVideoTracks().forEach((e=>e.stop()))}getFrame(e){return new Promise((t=>{const n=document.createElement("canvas");n.height=e.videoHeight,n.width=e.videoWidth,n.getContext("2d").drawImage(e,0,0),n.toBlob(t)}))}startVideo(){this.getVideoStream().then((e=>{this.videoStream=e;const{videoPlayer:t}=this.refs;if(!t)return console.warn("Video player not found in template."),this.cameraMode=!1,void this.redraw();t.srcObject=e;const n=parseInt(this.component.webcamSize)||320;t.setAttribute("width",n),t.play()})).catch((e=>{console.error(e),this.cameraMode=!1,this.redraw()}))}stopVideo(){this.videoStream&&(this.stopVideoStream(this.videoStream),this.videoStream=null)}takePicture(){const{videoPlayer:e}=this.refs;if(!e)return console.warn("Video player not found in template."),this.cameraMode=!1,void this.redraw();this.getFrame(e).then((e=>{e.name=`photo-${Date.now()}.png`,this.handleFilesToUpload([e]),this.cameraMode=!1,this.redraw()}))}browseFiles(e={}){return new Promise((t=>{const n=this.ce("input",Object.assign({type:"file",style:"height: 0; width: 0; visibility: hidden;",tabindex:"-1"},e));document.body.appendChild(n),n.addEventListener("change",(()=>{t(n.files),document.body.removeChild(n)}),!0),"function"==typeof n.trigger?n.trigger("click"):n.click()}))}set cameraMode(e){this._cameraMode=e,e?this.startVideo():this.stopVideo()}get cameraMode(){return this._cameraMode}get useWebViewCamera(){return this.imageUpload&&p}get imageUpload(){return Boolean(this.component.image)}get browseOptions(){const e={};this.component.multiple&&(e.multiple=!0),this.component.capture&&(e.capture=this.component.capture);const t=this.component.filePattern.trim()||"";if(this.isMobile.any)this.component.capture&&(t.includes("video")?e.accept="video/*":t.includes("audio")?e.accept="audio/*":e.accept="image/*");else{const n="image/*";!this.imageUpload||t&&"*"!==t?this.imageUpload&&!t.includes(n)?e.accept=`${n},${t}`:e.accept=t:e.accept=n}return e}get actions(){return{abort:this.abortRequest.bind(this)}}attach(e){this.loadRefs(e,{fileDrop:"single",fileBrowse:"single",galleryButton:"single",cameraButton:"single",takePictureButton:"single",toggleCameraMode:"single",videoPlayer:"single",fileLink:"multiple",removeLink:"multiple",fileToSyncRemove:"multiple",fileImage:"multiple",fileType:"multiple",fileProcessingLoader:"single",syncNow:"single",restoreFile:"multiple",progress:"multiple"}),this.refs.input=[];const t=super.attach(e);if(this.refs.fileDrop){const e=this;this.addEventListener(this.refs.fileDrop,"dragover",(function(e){this.className="fileSelector fileDragOver",e.preventDefault()})),this.addEventListener(this.refs.fileDrop,"dragleave",(function(e){this.className="fileSelector",e.preventDefault()})),this.addEventListener(this.refs.fileDrop,"drop",(function(t){this.className="fileSelector",t.preventDefault(),e.handleFilesToUpload(t.dataTransfer.files)}))}if(this.addEventListener(e,"click",(e=>{this.handleAction(e)})),this.refs.fileBrowse&&this.addEventListener(this.refs.fileBrowse,"click",(e=>{e.preventDefault(),this.browseFiles(this.browseOptions).then((e=>{this.handleFilesToUpload(e)}))})),this.refs.fileLink.forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.getFile(this.dataValue[t])}))})),this.refs.removeLink.forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{e.preventDefault();const n=this.dataValue[t];this.handleFileToRemove(n)}))})),this.refs.fileToSyncRemove.forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.filesToSync.filesToUpload.splice(t,1),this.redraw()}))})),this.refs.restoreFile.forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{e.preventDefault();const n=this.filesToSync.filesToDelete[t];delete n.status,delete n.message,this.filesToSync.filesToDelete.splice(t,1),this.dataValue.push(n),this.triggerChange(),this.redraw()}))})),this.refs.galleryButton&&p&&this.addEventListener(this.refs.galleryButton,"click",(e=>{e.preventDefault(),p.getPicture((e=>{window.resolveLocalFileSystemURL(e,(e=>{e.file((e=>{const t=new FileReader;t.onloadend=t=>{const n=new Blob([new Uint8Array(t.target.result)],{type:e.type});n.name=e.name,this.handleFilesToUpload([n])},t.readAsArrayBuffer(e)}))}))}),(e=>{console.error(e)}),{sourceType:p.PictureSourceType.PHOTOLIBRARY})})),this.refs.cameraButton&&p&&this.addEventListener(this.refs.cameraButton,"click",(e=>{e.preventDefault(),p.getPicture((e=>{window.resolveLocalFileSystemURL(e,(e=>{e.file((e=>{const t=new FileReader;t.onloadend=t=>{const n=new Blob([new Uint8Array(t.target.result)],{type:e.type});n.name=e.name,this.handleFilesToUpload([n])},t.readAsArrayBuffer(e)}))}))}),(e=>{console.error(e)}),{sourceType:p.PictureSourceType.CAMERA,encodingType:p.EncodingType.PNG,mediaType:p.MediaType.PICTURE,saveToPhotoAlbum:!0,correctOrientation:!1})})),this.refs.takePictureButton&&this.addEventListener(this.refs.takePictureButton,"click",(e=>{e.preventDefault(),this.takePicture()})),this.refs.toggleCameraMode&&this.addEventListener(this.refs.toggleCameraMode,"click",(e=>{e.preventDefault(),this.cameraMode=!this.cameraMode,this.redraw()})),this.refs.fileType.forEach(((e,t)=>{this.dataValue[t]&&(this.dataValue[t].fileType=this.dataValue[t].fileType||this.component.fileTypes[0].label,this.addEventListener(e,"change",(e=>{e.preventDefault();const n=this.component.fileTypes.find((t=>t.value===e.target.value));this.dataValue[t].fileType=n.label})))})),this.addEventListener(this.refs.syncNow,"click",(e=>{e.preventDefault(),this.syncFiles()})),this.fileService){const e=[];this.filesReady=new Promise(((e,t)=>{this.filesReadyResolve=e,this.filesReadyReject=t})),this.refs.fileImage.forEach(((t,n)=>{e.push(this.loadImage(this.dataValue[n]).then((e=>t.src=e)))})),e.length?Promise.all(e).then((()=>{this.filesReadyResolve()})).catch((()=>this.filesReadyReject())):this.filesReadyResolve()}return t}fileSize(e,t,n,i,r){return`${(t=Math,n=t.log,r=n(e)/n(1024)|0,e/t.pow(1024,r)).toFixed(2)} ${r?`${"kMGTPEZY"[--r]}B`:"Bytes"}`}globStringToRegex(e){let t="",n=[];if((e=e.replace(/\s/g,"")).length>2&&"/"===e[0]&&"/"===e[e.length-1])t=e.substring(1,e.length-1);else{const i=e.split(",");if(i.length>1)for(let e=0;e|:\\-]","g"),"\\$&")}$`,t=t.replace(/\\\*/g,".*").replace(/\\\?/g,"."))}return{regexp:t,excludes:n}}translateScalars(e){if("string"==typeof e){if(e.search(/kb/i)===e.length-2)return parseFloat(1024*e.substring(0,e.length-2));if(e.search(/mb/i)===e.length-2)return parseFloat(1024*e.substring(0,e.length-2)*1024);if(e.search(/gb/i)===e.length-2)return parseFloat(1024*e.substring(0,e.length-2)*1024*1024);if(e.search(/b/i)===e.length-1)return parseFloat(e.substring(0,e.length-1));if(e.search(/s/i)===e.length-1)return parseFloat(e.substring(0,e.length-1));if(e.search(/m/i)===e.length-1)return parseFloat(60*e.substring(0,e.length-1));if(e.search(/h/i)===e.length-1)return parseFloat(3600*e.substring(0,e.length-1))}return e}validatePattern(e,t){if(!t)return!0;const n=this.globStringToRegex(t);let i=!0;if(n.regexp&&n.regexp.length){const t=new RegExp(n.regexp,"i");i=!l.default.isNil(e.type)&&t.test(e.type)||!l.default.isNil(e.name)&&t.test(e.name)}return i=n.excludes.reduce(((t,n)=>{const i=new RegExp(n,"i");return t&&(l.default.isNil(e.type)||i.test(e.type))&&(l.default.isNil(e.name)||i.test(e.name))}),i),i}validateMinSize(e,t){return e.size+.1>=this.translateScalars(t)}validateMaxSize(e,t){return e.size-.1<=this.translateScalars(t)}abortRequest(e){const t=this.abortUploads.find((t=>t.id===e));t&&t.abort()}handleAction(e){const t=e.target;if(!t.id)return;const[n,i]=t.id.split("-");n&&i&&this.actions[n]&&this.actions[n](i)}getFileName(e){return(0,s.uniqueName)(e.name,this.component.fileNameTemplate,this.evalContext())}getInitFileToSync(e){const t=e.name?e.name.replaceAll("<","<").replaceAll(">",">"):e.name;return{id:Math.random().toString(36).substring(2,15),dir:this.interpolate(this.component.dir||""),name:this.getFileName(e),originalName:t,fileKey:this.component.fileKey||"file",storage:this.component.storage,options:this.component.options,file:e,size:e.size,status:"info",message:this.t("Processing file. Please wait..."),hash:""}}handleSubmissionRevisions(e){return i(this,void 0,void 0,(function*(){if("true"!==this.root.form.submissionRevisions)return"";const t=new d.default,n=yield new Promise(((n,i)=>{this.emit("fileUploadingStart"),t.md5(e,((e,t)=>e?i(e):n(t)))}));return this.emit("fileUploadingEnd"),n}))}validateFileName(e){const t=this.filesToSync.filesToUpload.some((t=>{var n;return(null===(n=t.file)||void 0===n?void 0:n.name)===e.name}));return l.default.some(this.dataValue,(t=>t.originalName===e.name))||t?{status:"error",message:this.t(`File with the same name is already ${t?"being ":""}uploaded`)}:{}}validateFileSettings(e){return this.component.filePattern&&!this.validatePattern(e,this.component.filePattern)?{status:"error",message:this.t("File is the wrong type; it must be {{ pattern }}",{pattern:this.component.filePattern})}:this.component.fileMinSize&&!this.validateMinSize(e,this.component.fileMinSize)?{status:"error",message:this.t("File is too small; it must be at least {{ size }}",{size:this.component.fileMinSize})}:this.component.fileMaxSize&&!this.validateMaxSize(e,this.component.fileMaxSize)?{status:"error",message:this.t("File is too big; it must be at most {{ size }}",{size:this.component.fileMaxSize})}:{}}validateFileService(){const{fileService:e}=this;return e?{}:{status:"error",message:this.t("File Service not provided.")}}validateFile(e){const t=this.validateFileService();if("error"===t.status)return t;const n=this.validateFileName(e);return"error"===n.status?n:this.validateFileSettings(e)}getGroupPermissions(){let e=null,t=null;return this.root.everyComponent((n=>{var i,r;((null===(i=n.component)||void 0===i?void 0:i.submissionAccess)||(null===(r=n.component)||void 0===r?void 0:r.defaultPermission))&&(t=n.component.submissionAccess?n.component.submissionAccess:[{type:n.component.defaultPermission,roles:[]}],t.forEach((t=>{e=["admin","write","create"].includes(t.type)?n.component.key:null})))})),{groupKey:e,groupPermissions:t}}triggerFileProcessor(e){return i(this,void 0,void 0,(function*(){let t=null;if(this.root.options.fileProcessor)try{this.refs.fileProcessingLoader&&(this.refs.fileProcessingLoader.style.display="block");const n=(0,u.default)(this.fileService,this.root.options.fileProcessor);t=yield n(e,this.component.properties)}catch(e){return this.fileDropHidden=!1,{status:"error",message:this.t("File processing has been failed.")}}finally{this.refs.fileProcessingLoader&&(this.refs.fileProcessingLoader.style.display="none")}return{file:t}}))}prepareFileToUpload(e){return i(this,void 0,void 0,(function*(){const t=this.getInitFileToSync(e);t.hash=yield this.handleSubmissionRevisions(e);const{status:n,message:i}=this.validateFile(e);if("error"===n)return t.isValidationError=!0,t.status=n,t.message=i,this.filesToSync.filesToUpload.push(t);this.component.privateDownload&&(e.private=!0);const{groupKey:r,groupPermissions:a}=this.getGroupPermissions(),s=yield this.triggerFileProcessor(e);if("error"===s.status)return t.status,t.message=s.message,this.filesToSync.filesToUpload.push(t);this.autoSync&&(t.message=this.t("Ready to be uploaded into storage")),this.filesToSync.filesToUpload.push(Object.assign(Object.assign({},t),{message:t.message,file:s.file||e,url:this.interpolate(this.component.url,{file:t}),groupPermissions:a,groupResourceId:r?this.currentForm.submission.data[r]._id:null}))}))}prepareFilesToUpload(e){return i(this,void 0,void 0,(function*(){return this.component.multiple||(e=Array.prototype.slice.call(e,0,1)),this.component.storage&&e&&e.length?(this.fileDropHidden=!0,Promise.all([...e].map((e=>i(this,void 0,void 0,(function*(){yield this.prepareFileToUpload(e),this.redraw()})))))):Promise.resolve()}))}handleFilesToUpload(e){return i(this,void 0,void 0,(function*(){yield this.prepareFilesToUpload(e),this.autoSync||(yield this.syncFiles())}))}prepareFileToDelete(e){this.filesToSync.filesToDelete.push(Object.assign(Object.assign({},e),{status:"info",message:this.autoSync?this.t("Ready to be removed from storage"):this.t("Preparing file to remove")}));const t=this.dataValue.findIndex((t=>t.name===e.name));this.splice(t),this.redraw()}handleFileToRemove(e){this.prepareFileToDelete(e),this.autoSync||this.syncFiles()}deleteFile(e){return i(this,void 0,void 0,(function*(){const{options:t={}}=this.component;if(e&&["url","indexeddb","s3","azure","googledrive"].includes(this.component.storage)){const{fileService:n}=this;if(n&&"function"==typeof n.deleteFile)return yield n.deleteFile(e,t);{const t=this.options.formio||this.root&&this.root.formio;if(t)return yield t.makeRequest("",e.url,"delete")}}}))}delete(){return i(this,void 0,void 0,(function*(){return this.filesToSync.filesToDelete.length?yield Promise.all(this.filesToSync.filesToDelete.map((e=>i(this,void 0,void 0,(function*(){try{if(e.isValidationError)return{fileToSync:e};yield this.deleteFile(e),e.status="success",e.message=this.t("Succefully removed")}catch(t){e.status="error",e.message="string"==typeof t?t:t.toString()}finally{this.redraw()}return{fileToSync:e}}))))):Promise.resolve()}))}updateProgress(e,t){if(e.progress=parseInt(100*t.loaded/t.total),"progress"!==e.status)e.status="progress",delete e.message,this.redraw();else{const t=Array.prototype.find.call(this.refs.progress,(t=>t.id===e.id));t.innerHTML=`${e.progress}% ${this.t("Complete")}`,t.style.width=`${e.progress}%`,t.ariaValueNow=e.progress.toString()}}getMultipartOptions(e){let t=0;return!(!this.component.useMultipartUpload||!this.component.multipart)&&Object.assign(Object.assign({},this.component.multipart),{progressCallback:n=>{t++,e.status="progress",e.progress=parseInt(100*t/n),delete e.message,this.redraw()},changeMessage:t=>{e.message=t,this.redraw()}})}uploadFile(e){return i(this,void 0,void 0,(function*(){return yield this.fileService.uploadFile(e.storage,e.file,e.name,e.dir,this.updateProgress.bind(this,e),e.url,e.options,e.fileKey,e.groupPermissions,e.groupResourceId,(()=>{}),(t=>this.abortUploads.push({id:e.id,abort:t})),this.getMultipartOptions(e))}))}upload(){return i(this,void 0,void 0,(function*(){return this.filesToSync.filesToUpload.length?yield Promise.all(this.filesToSync.filesToUpload.map((e=>i(this,void 0,void 0,(function*(){let t=null;try{if(e.isValidationError)return{fileToSync:e,fileInfo:t};t=yield this.uploadFile(e),e.status="success",e.message=this.t("Succefully uploaded"),t.originalName=e.originalName,t.hash=e.hash}catch(t){e.status="error",delete e.progress,e.message="string"==typeof t?t:"abort"===t.type?this.t("Request was aborted"):t.toString(),this.emit("fileUploadError",{fileToSync:e,response:t})}finally{delete e.progress,this.redraw()}return{fileToSync:e,fileInfo:t}}))))):Promise.resolve()}))}syncFiles(){return i(this,void 0,void 0,(function*(){this.isSyncing=!0,this.fileDropHidden=!0,this.redraw();try{const[e=[],t=[]]=yield Promise.all([this.delete(),this.upload()]);this.filesToSync.filesToDelete=e.filter((e=>{var t;return"error"===(null===(t=e.fileToSync)||void 0===t?void 0:t.status)})).map((e=>e.fileToSync)),this.filesToSync.filesToUpload=t.filter((e=>{var t;return"error"===(null===(t=e.fileToSync)||void 0===t?void 0:t.status)})).map((e=>e.fileToSync)),this.hasValue()||(this.dataValue=[]);const n=t.filter((e=>{var t;return"success"===(null===(t=e.fileToSync)||void 0===t?void 0:t.status)})).map((e=>e.fileInfo));return this.dataValue.push(...n),this.triggerChange(),Promise.resolve()}catch(e){return Promise.reject()}finally{this.isSyncing=!1,this.fileDropHidden=!1,this.abortUploads=[],this.redraw()}}))}getFile(e){const{options:t={}}=this.component,{fileService:n}=this;if(!n)return alert("File Service not provided");this.component.privateDownload&&(e.private=!0),n.downloadFile(e,t).then((e=>{e&&(["base64","indexeddb"].includes(e.storage)?(0,o.default)(e.url,e.originalName||e.name,e.type):window.open(e.url,"_blank"))})).catch((e=>{alert(e)}))}focus(){"beforeFocus"in this.parent&&this.parent.beforeFocus(this),this.refs.fileBrowse&&this.refs.fileBrowse.focus()}beforeSubmit(){return i(this,void 0,void 0,(function*(){try{return this.autoSync?(yield this.syncFiles(),this.shouldSyncFiles?Promise.reject("Synchronization is failed"):Promise.resolve()):Promise.resolve()}catch(e){return Promise.reject(e.message)}}))}destroy(e){this.stopVideo(),super.destroy(e)}}t.default=f},54128:(e,t,n)=>{var i=n(31800),r=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(r,""):e}},54165:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},54221:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.InputComponent=t.Input=t.DataValueComponent=t.DataTableComponent=t.DataTable=t.HTMLContainerComponent=t.HTMLContainer=t.HTMLComponent=t.HTML=void 0;const r=i(n(18113)),a=n(10728),s=n(37513),o=n(21149),l=n(73052),u=n(63294);var d=n(10728);Object.defineProperty(t,"HTML",{enumerable:!0,get:function(){return d.HTML}}),Object.defineProperty(t,"HTMLComponent",{enumerable:!0,get:function(){return d.HTMLComponent}});var c=n(37513);Object.defineProperty(t,"HTMLContainer",{enumerable:!0,get:function(){return c.HTMLContainer}}),Object.defineProperty(t,"HTMLContainerComponent",{enumerable:!0,get:function(){return c.HTMLContainerComponent}});var h=n(21149);Object.defineProperty(t,"DataTable",{enumerable:!0,get:function(){return h.DataTable}}),Object.defineProperty(t,"DataTableComponent",{enumerable:!0,get:function(){return h.DataTableComponent}});var p=n(73052);Object.defineProperty(t,"DataValueComponent",{enumerable:!0,get:function(){return p.DataValueComponent}});var f=n(63294);Object.defineProperty(t,"Input",{enumerable:!0,get:function(){return f.Input}}),Object.defineProperty(t,"InputComponent",{enumerable:!0,get:function(){return f.InputComponent}}),t.default={components:{html:a.HTMLComponent,htmlcontainer:s.HTMLContainerComponent,datatable:o.DataTableComponent,datavalue:l.DataValueComponent,input:u.InputComponent},templates:r.default}},54455:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(65063);t.default={form:i.default}},54464:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var i in Array.prototype.join,n+='\n '+(null==(t=e.label)?"":t)+"\n "})),n+='\n \n {var i,r;(r=function(){"use strict";var e={DAY:864e5,HOUR:36e5,MINUTE:6e4,SECOND:1e3,BASELINE_YEAR:2014,MAX_SCORE:864e6,AMBIGUITIES:{"America/Denver":["America/Mazatlan"],"America/Chicago":["America/Mexico_City"],"America/Asuncion":["America/Campo_Grande","America/Santiago"],"America/Montevideo":["America/Sao_Paulo","America/Santiago"],"Asia/Beirut":["Asia/Amman","Asia/Jerusalem","Europe/Helsinki","Asia/Damascus","Africa/Cairo","Asia/Gaza","Europe/Minsk","Africa/Windhoek"],"Pacific/Auckland":["Pacific/Fiji"],"America/Los_Angeles":["America/Santa_Isabel"],"America/New_York":["America/Havana"],"America/Halifax":["America/Goose_Bay"],"America/Godthab":["America/Miquelon"],"Asia/Dubai":["Asia/Yerevan"],"Asia/Jakarta":["Asia/Krasnoyarsk"],"Asia/Shanghai":["Asia/Irkutsk","Australia/Perth"],"Australia/Sydney":["Australia/Lord_Howe"],"Asia/Tokyo":["Asia/Yakutsk"],"Asia/Dhaka":["Asia/Omsk"],"Asia/Baku":["Asia/Yerevan"],"Australia/Brisbane":["Asia/Vladivostok"],"Pacific/Noumea":["Asia/Vladivostok"],"Pacific/Majuro":["Asia/Kamchatka","Pacific/Fiji"],"Pacific/Tongatapu":["Pacific/Apia"],"Asia/Baghdad":["Europe/Minsk","Europe/Moscow"],"Asia/Karachi":["Asia/Yekaterinburg"],"Africa/Johannesburg":["Asia/Gaza","Africa/Cairo"]}},t=function(e){var t=-e.getTimezoneOffset();return null!==t?t:0},n=function(){for(var n=[],i=0;i<=11;i++)for(var r=1;r<=28;r++){var a=t(new Date(e.BASELINE_YEAR,i,r));n?n&&n[n.length-1]!==a&&n.push(a):n.push()}return n},i=function(e){for(var t=new Date(e,0,1,0,0,1,0).getTime(),n=new Date(e,12,31,23,59,59).getTime(),i=t,r=new Date(i).getTimezoneOffset(),s=null,o=null;ir&&(o=l),r=u),i+=864e5}return!(!s||!o)&&{s:a(s).getTime(),e:a(o).getTime()}},a=function t(n,i,r){void 0===i&&(i=e.DAY,r=e.HOUR);for(var a=new Date(n.getTime()-i).getTime(),s=n.getTime()+i,o=new Date(a).getTimezoneOffset(),l=a,u=null;l=i.rules[a].s&&t[a].e<=i.rules[a].e)){r="N/A";break}if(r=0,r+=Math.abs(t[a].s-i.rules[a].s),(r+=Math.abs(i.rules[a].e-t[a].e))>e.MAX_SCORE){r="N/A";break}}return function(e,t,n,i){if("N/A"!==n)return n;if("Asia/Beirut"===t){if("Africa/Cairo"===i.name&&13983768e5===e[6].s&&14116788e5===e[6].e)return 0;if("Asia/Jerusalem"===i.name&&13959648e5===e[6].s&&14118588e5===e[6].e)return 0}else if("America/Santiago"===t){if("America/Asuncion"===i.name&&14124816e5===e[6].s&&1397358e6===e[6].e)return 0;if("America/Campo_Grande"===i.name&&14136912e5===e[6].s&&13925196e5===e[6].e)return 0}else if("America/Montevideo"===t){if("America/Sao_Paulo"===i.name&&14136876e5===e[6].s&&1392516e6===e[6].e)return 0}else if("Pacific/Auckland"===t&&"Pacific/Fiji"===i.name&&14142456e5===e[6].s&&13961016e5===e[6].e)return 0;return n}(t,n,r,i)},a={},s=r.olson.dst_rules.zones,o=s.length,l=e.AMBIGUITIES[n],u=0;u1&&(e=t[0]-t[1]),t.length>3?t[0]+",1,weird":e<0?t[0]+",1":e>0?t[1]+",1,s":t[0]+",0"}();return(t||void 0===t)&&(i=function(){var e,t;if(Intl&&"undefined"!=typeof Intl&&void 0!==Intl.DateTimeFormat&&void 0!==(e=Intl.DateTimeFormat())&&void 0!==e.resolvedOptions)return(t=e.resolvedOptions().timeZone)&&(t.indexOf("/")>-1||"UTC"===t)?t:void 0}()),i||(i=r.olson.timezones[a],void 0!==e.AMBIGUITIES[i]&&(i=s(i))),{name:function(){return i},using_intl:t||void 0===t,needle:a,offsets:n()}}}}()).olson=r.olson||{},r.olson.timezones={"-720,0":"Etc/GMT+12","-660,0":"Pacific/Pago_Pago","-660,1,s":"Pacific/Apia","-600,1":"America/Adak","-600,0":"Pacific/Honolulu","-570,0":"Pacific/Marquesas","-540,0":"Pacific/Gambier","-540,1":"America/Anchorage","-480,1":"America/Los_Angeles","-480,0":"Pacific/Pitcairn","-420,0":"America/Phoenix","-420,1":"America/Denver","-360,0":"America/Guatemala","-360,1":"America/Chicago","-360,1,s":"Pacific/Easter","-300,0":"America/Bogota","-300,1":"America/New_York","-270,0":"America/Caracas","-240,1":"America/Halifax","-240,0":"America/Santo_Domingo","-240,1,s":"America/Asuncion","-210,1":"America/St_Johns","-180,1":"America/Godthab","-180,0":"America/Buenos_Aires","-180,1,s":"America/Montevideo","-120,0":"America/Noronha","-120,1":"America/Noronha","-60,1":"Atlantic/Azores","-60,0":"Atlantic/Cape_Verde","0,0":"UTC","0,1":"Europe/London","0,1,weird":"Africa/Casablanca","60,1":"Europe/Berlin","60,0":"Africa/Lagos","60,1,weird":"Africa/Casablanca","120,1":"Asia/Beirut","120,1,weird":"Africa/Cairo","120,0":"Africa/Johannesburg","180,0":"Asia/Baghdad","180,1":"Europe/Moscow","210,1":"Asia/Tehran","240,0":"Asia/Dubai","240,1":"Asia/Baku","270,0":"Asia/Kabul","300,1":"Asia/Yekaterinburg","300,0":"Asia/Karachi","330,0":"Asia/Calcutta","345,0":"Asia/Katmandu","360,0":"Asia/Dhaka","360,1":"Asia/Omsk","390,0":"Asia/Rangoon","420,1":"Asia/Krasnoyarsk","420,0":"Asia/Jakarta","480,0":"Asia/Shanghai","480,1":"Asia/Irkutsk","525,0":"Australia/Eucla","525,1,s":"Australia/Eucla","540,1":"Asia/Yakutsk","540,0":"Asia/Tokyo","570,0":"Australia/Darwin","570,1,s":"Australia/Adelaide","600,0":"Australia/Brisbane","600,1":"Asia/Vladivostok","600,1,s":"Australia/Sydney","630,1,s":"Australia/Lord_Howe","660,1":"Asia/Kamchatka","660,0":"Pacific/Noumea","690,0":"Pacific/Norfolk","720,1,s":"Pacific/Auckland","720,0":"Pacific/Majuro","765,1,s":"Pacific/Chatham","780,0":"Pacific/Tongatapu","780,1,s":"Pacific/Apia","840,0":"Pacific/Kiritimati"},r.olson.dst_rules={years:[2008,2009,2010,2011,2012,2013,2014],zones:[{name:"Africa/Cairo",rules:[{e:12199572e5,s:12090744e5},{e:1250802e6,s:1240524e6},{e:12858804e5,s:12840696e5},!1,!1,!1,{e:14116788e5,s:1406844e6}]},{name:"America/Asuncion",rules:[{e:12050316e5,s:12243888e5},{e:12364812e5,s:12558384e5},{e:12709548e5,s:12860784e5},{e:13024044e5,s:1317528e6},{e:1333854e6,s:13495824e5},{e:1364094e6,s:1381032e6},{e:13955436e5,s:14124816e5}]},{name:"America/Campo_Grande",rules:[{e:12032172e5,s:12243888e5},{e:12346668e5,s:12558384e5},{e:12667212e5,s:1287288e6},{e:12981708e5,s:13187376e5},{e:13302252e5,s:1350792e6},{e:136107e7,s:13822416e5},{e:13925196e5,s:14136912e5}]},{name:"America/Goose_Bay",rules:[{e:122559486e4,s:120503526e4},{e:125704446e4,s:123648486e4},{e:128909886e4,s:126853926e4},{e:13205556e5,s:129998886e4},{e:13520052e5,s:13314456e5},{e:13834548e5,s:13628952e5},{e:14149044e5,s:13943448e5}]},{name:"America/Havana",rules:[{e:12249972e5,s:12056436e5},{e:12564468e5,s:12364884e5},{e:12885012e5,s:12685428e5},{e:13211604e5,s:13005972e5},{e:13520052e5,s:13332564e5},{e:13834548e5,s:13628916e5},{e:14149044e5,s:13943412e5}]},{name:"America/Mazatlan",rules:[{e:1225008e6,s:12074724e5},{e:12564576e5,s:1238922e6},{e:1288512e6,s:12703716e5},{e:13199616e5,s:13018212e5},{e:13514112e5,s:13332708e5},{e:13828608e5,s:13653252e5},{e:14143104e5,s:13967748e5}]},{name:"America/Mexico_City",rules:[{e:12250044e5,s:12074688e5},{e:1256454e6,s:12389184e5},{e:12885084e5,s:1270368e6},{e:1319958e6,s:13018176e5},{e:13514076e5,s:13332672e5},{e:13828572e5,s:13653216e5},{e:14143068e5,s:13967712e5}]},{name:"America/Miquelon",rules:[{e:12255984e5,s:12050388e5},{e:1257048e6,s:12364884e5},{e:12891024e5,s:12685428e5},{e:1320552e6,s:12999924e5},{e:13520016e5,s:1331442e6},{e:13834512e5,s:13628916e5},{e:14149008e5,s:13943412e5}]},{name:"America/Santa_Isabel",rules:[{e:12250116e5,s:1207476e6},{e:12564612e5,s:12389256e5},{e:12891204e5,s:12685608e5},{e:132057e7,s:13000104e5},{e:13520196e5,s:133146e7},{e:13834692e5,s:13629096e5},{e:14149188e5,s:13943592e5}]},{name:"America/Santiago",rules:[{e:1206846e6,s:1223784e6},{e:1237086e6,s:12552336e5},{e:127035e7,s:12866832e5},{e:13048236e5,s:13138992e5},{e:13356684e5,s:13465584e5},{e:1367118e6,s:13786128e5},{e:13985676e5,s:14100624e5}]},{name:"America/Sao_Paulo",rules:[{e:12032136e5,s:12243852e5},{e:12346632e5,s:12558348e5},{e:12667176e5,s:12872844e5},{e:12981672e5,s:1318734e6},{e:13302216e5,s:13507884e5},{e:13610664e5,s:1382238e6},{e:1392516e6,s:14136876e5}]},{name:"Asia/Amman",rules:[{e:1225404e6,s:12066552e5},{e:12568536e5,s:12381048e5},{e:12883032e5,s:12695544e5},{e:13197528e5,s:13016088e5},!1,!1,{e:14147064e5,s:13959576e5}]},{name:"Asia/Damascus",rules:[{e:12254868e5,s:120726e7},{e:125685e7,s:12381048e5},{e:12882996e5,s:12701592e5},{e:13197492e5,s:13016088e5},{e:13511988e5,s:13330584e5},{e:13826484e5,s:1364508e6},{e:14147028e5,s:13959576e5}]},{name:"Asia/Dubai",rules:[!1,!1,!1,!1,!1,!1,!1]},{name:"Asia/Gaza",rules:[{e:12199572e5,s:12066552e5},{e:12520152e5,s:12381048e5},{e:1281474e6,s:126964086e4},{e:1312146e6,s:130160886e4},{e:13481784e5,s:13330584e5},{e:13802292e5,s:1364508e6},{e:1414098e6,s:13959576e5}]},{name:"Asia/Irkutsk",rules:[{e:12249576e5,s:12068136e5},{e:12564072e5,s:12382632e5},{e:12884616e5,s:12697128e5},!1,!1,!1,!1]},{name:"Asia/Jerusalem",rules:[{e:12231612e5,s:12066624e5},{e:1254006e6,s:1238112e6},{e:1284246e6,s:12695616e5},{e:131751e7,s:1301616e6},{e:13483548e5,s:13330656e5},{e:13828284e5,s:13645152e5},{e:1414278e6,s:13959648e5}]},{name:"Asia/Kamchatka",rules:[{e:12249432e5,s:12067992e5},{e:12563928e5,s:12382488e5},{e:12884508e5,s:12696984e5},!1,!1,!1,!1]},{name:"Asia/Krasnoyarsk",rules:[{e:12249612e5,s:12068172e5},{e:12564108e5,s:12382668e5},{e:12884652e5,s:12697164e5},!1,!1,!1,!1]},{name:"Asia/Omsk",rules:[{e:12249648e5,s:12068208e5},{e:12564144e5,s:12382704e5},{e:12884688e5,s:126972e7},!1,!1,!1,!1]},{name:"Asia/Vladivostok",rules:[{e:12249504e5,s:12068064e5},{e:12564e8,s:1238256e6},{e:12884544e5,s:12697056e5},!1,!1,!1,!1]},{name:"Asia/Yakutsk",rules:[{e:1224954e6,s:120681e7},{e:12564036e5,s:12382596e5},{e:1288458e6,s:12697092e5},!1,!1,!1,!1]},{name:"Asia/Yekaterinburg",rules:[{e:12249684e5,s:12068244e5},{e:1256418e6,s:1238274e6},{e:12884724e5,s:12697236e5},!1,!1,!1,!1]},{name:"Asia/Yerevan",rules:[{e:1224972e6,s:1206828e6},{e:12564216e5,s:12382776e5},{e:1288476e6,s:12697272e5},{e:13199256e5,s:13011768e5},!1,!1,!1]},{name:"Australia/Lord_Howe",rules:[{e:12074076e5,s:12231342e5},{e:12388572e5,s:12545838e5},{e:12703068e5,s:12860334e5},{e:13017564e5,s:1317483e6},{e:1333206e6,s:13495374e5},{e:13652604e5,s:1380987e6},{e:139671e7,s:14124366e5}]},{name:"Australia/Perth",rules:[{e:12068136e5,s:12249576e5},!1,!1,!1,!1,!1,!1]},{name:"Europe/Helsinki",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Europe/Minsk",rules:[{e:12249792e5,s:12068352e5},{e:12564288e5,s:12382848e5},{e:12884832e5,s:12697344e5},!1,!1,!1,!1]},{name:"Europe/Moscow",rules:[{e:12249756e5,s:12068316e5},{e:12564252e5,s:12382812e5},{e:12884796e5,s:12697308e5},!1,!1,!1,!1]},{name:"Pacific/Apia",rules:[!1,!1,!1,{e:13017528e5,s:13168728e5},{e:13332024e5,s:13489272e5},{e:13652568e5,s:13803768e5},{e:13967064e5,s:14118264e5}]},{name:"Pacific/Fiji",rules:[!1,!1,{e:12696984e5,s:12878424e5},{e:13271544e5,s:1319292e6},{e:1358604e6,s:13507416e5},{e:139005e7,s:1382796e6},{e:14215032e5,s:14148504e5}]},{name:"Europe/London",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Africa/Windhoek",rules:[{e:12207492e5,s:120744e7},{e:12521988e5,s:12388896e5},{e:12836484e5,s:12703392e5},{e:1315098e6,s:13017888e5},{e:13465476e5,s:13332384e5},{e:13779972e5,s:13652928e5},{e:14100516e5,s:13967424e5}]}]},void 0!==e.exports?e.exports=r:null!==n.amdD&&null!=n.amdO?void 0===(i=function(){return r}.apply(t,[]))||(e.exports=i):window.jstz=r},54496:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
    \n
    \n
    \n \n '+(null==(t=e.t("Close"))?"":t)+'\n \n
    \n
    \n
    \n'}},54566:function(e,t,n){!function(e){"use strict";e.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},54610:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.ProcessTargets=t.ProcessorMap=t.processSync=t.process=void 0;const r=n(96690),a=n(46712),s=n(85650),o=n(77172),l=n(48645),u=n(98206),d=n(3234),c=n(22595),h=n(53026),p=n(64283),f=n(14780),m=n(54958),g=n(65360);t.process=function(e){return i(this,void 0,void 0,(function*(){const{instances:t,components:n,data:s,scope:o,flat:l,processors:u}=e;yield(0,r.eachComponentDataAsync)(n,s,((n,r,s,u,d,c,h)=>i(this,void 0,void 0,(function*(){if(s)return yield(0,a.processOne)(Object.assign(Object.assign({},e),{data:r,component:n,components:d,path:u,row:s,index:c,instance:t?t[u]:void 0,parent:h})),!!l||(o.noRecurse?(o.noRecurse=!1,!0):void 0)}))));for(let t=0;t<(null==u?void 0:u.length);t++){const n=u[t];n.postProcess&&n.postProcess(e)}return o}))},t.processSync=function(e){const{instances:t,components:n,data:i,scope:s,flat:o,processors:l}=e;(0,r.eachComponentData)(n,i,((n,i,r,l,u,d,c)=>{if(r)return(0,a.processOneSync)(Object.assign(Object.assign({},e),{data:i,component:n,components:u,path:l,row:r,index:d,instance:t?t[l]:void 0,parent:c})),!!o||(s.noRecurse?(s.noRecurse=!1,!0):void 0)}));for(let t=0;t<(null==l?void 0:l.length);t++){const n=l[t];n.postProcess&&n.postProcess(e)}return s},t.ProcessorMap={filter:h.filterProcessInfo,defaultValue:s.defaultValueProcessInfo,serverDefaultValue:s.serverDefaultValueProcessInfo,customDefaultValue:s.customDefaultValueProcessInfo,calculate:l.calculateProcessInfo,conditions:d.conditionProcessInfo,customConditions:d.customConditionProcessInfo,simpleConditions:d.simpleConditionProcessInfo,normalize:p.normalizeProcessInfo,dereference:f.dereferenceProcessInfo,clearHidden:m.clearHiddenProcessInfo,fetch:o.fetchProcessInfo,logic:u.logicProcessInfo,validate:c.validateProcessInfo,validateCustom:c.validateCustomProcessInfo,validateServer:c.validateServerProcessInfo,hideChildren:g.hideChildrenProcessorInfo},t.ProcessTargets={submission:[h.filterProcessInfo,s.serverDefaultValueProcessInfo,p.normalizeProcessInfo,f.dereferenceProcessInfo,o.fetchProcessInfo,d.simpleConditionProcessInfo,c.validateServerProcessInfo],evaluator:[s.customDefaultValueProcessInfo,l.calculateProcessInfo,u.logicProcessInfo,d.conditionProcessInfo,g.hideChildrenProcessorInfo,m.clearHiddenProcessInfo,c.validateProcessInfo]}},54676:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateTimeInfo=t.validateTime=t.validateTimeSync=t.shouldValidate=void 0;const a=n(96690),s=n(54008),o=n(49599),l=r(n(90445));o.dayjs.extend(l.default),t.shouldValidate=e=>{const{component:t}=e;return!(!(n=t)||"time"!==n.type);var n},t.validateTimeSync=e=>{const{component:n,data:i,path:r,value:l}=e;if(!(0,t.shouldValidate)(e))return null;try{if(!l||(0,a.isComponentDataEmpty)(n,i,r))return null;const t=n.dataFormat||"HH:mm:ss";return(0,o.dayjs)(String(l),t,!0).isValid()?null:new s.FieldError("time",e)}catch(t){throw new s.ProcessorError(`Could not validate time component ${n.key} with value ${l}`,e,"validate:validateTime")}},t.validateTime=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateTimeSync)(e)})),t.validateTimeInfo={name:"validateTime",process:t.validateTime,processSync:t.validateTimeSync,shouldProcess:t.shouldValidate}},54691:function(e,t,n){!function(e){"use strict";e.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(e,t){return e?"string"==typeof t&&/D/.test(t.substring(0,t.indexOf("MMMM")))?this._monthsGenitiveEl[e.month()]:this._monthsNominativeEl[e.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(e,t,n){return e>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(e){return"μ"===(e+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){return 6===this.day()?"[το προηγούμενο] dddd [{}] LT":"[την προηγούμενη] dddd [{}] LT"},sameElse:"L"},calendar:function(e,t){var n,i=this._calendarEl[e],r=t&&t.hours();return n=i,("undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(i=i.apply(t)),i.replace("{}",r%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(95093))},54697:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},54715:(e,t,n)=>{"use strict";var i=n(40470);e.exports=i},54903:function(e,t,n){!function(e){"use strict";e.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(95093))},54924:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},54949:(e,t,n)=>{"use strict";n.r(t),n.d(t,{JsonPatchError:()=>g,_areEquals:()=>C,applyOperation:()=>M,applyPatch:()=>k,applyReducer:()=>S,compare:()=>I,deepClone:()=>d,default:()=>R,escapePathComponent:()=>h,generate:()=>O,getValueByPointer:()=>w,observe:()=>P,unescapePathComponent:()=>p,unobserve:()=>D,validate:()=>L,validator:()=>x});var i={};n.r(i),n.d(i,{JsonPatchError:()=>v,_areEquals:()=>C,applyOperation:()=>M,applyPatch:()=>k,applyReducer:()=>S,deepClone:()=>y,getValueByPointer:()=>w,validate:()=>L,validator:()=>x});var r={};n.r(r),n.d(r,{compare:()=>I,generate:()=>O,observe:()=>P,unobserve:()=>D});var a,s=(a=function(e,t){return a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},a(e,t)},function(e,t){function n(){this.constructor=e}a(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=Object.prototype.hasOwnProperty;function l(e,t){return o.call(e,t)}function u(e){if(Array.isArray(e)){for(var t=new Array(e.length),n=0;n=48&&t<=57))return!1;n++}return!0}function h(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function p(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function f(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,n=e.length;t0&&"constructor"==o[u-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&void 0===f&&(void 0===l[m]?f=o.slice(0,u).join("/"):u==h-1&&(f=t.path),void 0!==f&&g(t,0,e,f)),u++,Array.isArray(l)){if("-"===m)m=l.length;else{if(n&&!c(m))throw new v("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,t,e);c(m)&&(m=~~m)}if(u>=h){if(n&&"add"===t.op&&m>l.length)throw new v("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,t,e);if(!1===(s=_[t.op].call(t,l,m,e)).test)throw new v("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return s}}else if(u>=h){if(!1===(s=b[t.op].call(t,l,m,e)).test)throw new v("Test operation failed","TEST_OPERATION_FAILED",a,t,e);return s}if(l=l[m],n&&u0)throw new v('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,n);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new v("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new v("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,n);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&f(e.value))throw new v("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,n);if(n)if("add"==e.op){var r=e.path.split("/").length,a=i.split("/").length;if(r!==a+1&&r!==a)throw new v("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,n)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==i)throw new v("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,n)}else if("move"===e.op||"copy"===e.op){var s=L([{op:"_get",path:e.from,value:void 0}],n);if(s&&"OPERATION_PATH_UNRESOLVABLE"===s.name)throw new v("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,n)}}function L(e,t,n){try{if(!Array.isArray(e))throw new v("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)k(d(t),d(e),n||!0);else{n=n||x;for(var i=0;i0&&(e.patches=[],e.callback&&e.callback(i)),i}function j(e,t,n,i,r){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var a=u(t),s=u(e),o=!1,c=s.length-1;c>=0;c--){var p=e[m=s[c]];if(!l(t,m)||void 0===t[m]&&void 0!==p&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(r&&n.push({op:"test",path:i+"/"+h(m),value:d(p)}),n.push({op:"remove",path:i+"/"+h(m)}),o=!0):(r&&n.push({op:"test",path:i,value:e}),n.push({op:"replace",path:i,value:t}));else{var f=t[m];"object"==typeof p&&null!=p&&"object"==typeof f&&null!=f&&Array.isArray(p)===Array.isArray(f)?j(p,f,n,i+"/"+h(m),r):p!==f&&(r&&n.push({op:"test",path:i+"/"+h(m),value:d(p)}),n.push({op:"replace",path:i+"/"+h(m),value:d(f)}))}}if(o||a.length!=s.length)for(c=0;c{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clearHiddenProcessInfo=t.clearHiddenProcess=void 0;const i=n(2543),r=n(96690);t.clearHiddenProcess=e=>{var t,n;const{component:a,data:s,value:o,scope:l,path:u}=e,d=(0,r.getComponentAbsolutePath)(a)||u;if(void 0===o)return;l.clearHidden||(l.clearHidden={});const c=null===(t=l.conditionals)||void 0===t?void 0:t.find((e=>d===e.path&&e.conditionallyHidden));(!a.hasOwnProperty("clearOnHide")||a.clearOnHide)&&(c||a.hidden||(null===(n=a.ephermalState)||void 0===n?void 0:n.conditionallyHidden))&&((0,i.unset)(s,d),l.clearHidden[d]=!0)},t.clearHiddenProcessInfo={name:"clearHidden",shouldProcess:()=>!0,processSync:t.clearHiddenProcess}},55220:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
    \n
    '+(null==(t=e.children)?"":t)+"
    \n ",e.readOnly||(n+='\n
    \n \n \n
    \n "),n+"\n
    \n"}},55223:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.empty=t.removeChildFrom=t.prependTo=t.appendTo=void 0,t.appendTo=function(e,t){t&&e&&(null==t||t.appendChild(e))},t.prependTo=function(e,t){if(t&&e)if(t.firstChild)try{t.insertBefore(e,t.firstChild)}catch(n){console.warn(n),t.appendChild(e)}else t.appendChild(e)},t.removeChildFrom=function(e,t){if(t&&e&&t.contains(e))try{t.removeChild(e)}catch(e){console.warn(e)}},t.empty=function(e){if(e)for(;e.firstChild;)e.removeChild(e.firstChild)}},55400:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateNumberInfo=t.validateNumberSync=t.validateNumber=t.shouldValidate=void 0;const r=n(44508);t.shouldValidate=e=>{const{component:t,value:n}=e;return!(!n||t.multiple&&Array.isArray(n)&&0===n.length||!(e=>e&&"number"===e.type)(t))},t.validateNumber=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateNumberSync)(e)})),t.validateNumberSync=e=>{const t=new r.FieldError("number",e),{value:n}=e;return n&&"number"!=typeof n?t:null},t.validateNumberInfo={name:"validateNumber",process:t.validateNumber,processSync:t.validateNumberSync,shouldProcess:t.shouldValidate}},55459:e=>{"use strict";e.exports=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0}},55481:(e,t,n)=>{var i=n(9325)["__core-js_shared__"];e.exports=i},55527:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},55580:(e,t,n)=>{var i=n(56110)(n(9325),"DataView");e.exports=i},55709:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(48421));class a extends r.default{static get operatorKey(){return"dateLessThanOrEqual"}static get displayedName(){return"Less Than Or Equal To"}execute(e){return super.execute(e,"isSameOrBefore")}}t.default=a},55784:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},55802:function(e,t,n){!function(e){"use strict";e.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(e){return"หลังเที่ยง"===e},meridiem:function(e,t,n){return e<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(95093))},55836:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(52951),t)},55966:(e,t,n)=>{"use strict";var i=n(79306),r=n(64117);e.exports=function(e,t){var n=e[t];return r(n)?void 0:i(n)}},56e3:function(e,t,n){!function(e){"use strict";e.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(e,t,n){return e<11?"ekuseni":e<15?"emini":e<19?"entsambama":"ebusuku"},meridiemHour:function(e,t){return 12===e&&(e=0),"ekuseni"===t?e:"emini"===t?e>=11?e:e+12:"entsambama"===t||"ebusuku"===t?0===e?0:e+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(95093))},56088:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"autofocus",ignore:!0},{key:"tabindex",ignore:!0},{key:"disabled",ignore:!0},{key:"tableView",ignore:!0},{key:"hideLabel",ignore:!0},{weight:0,type:"textfield",input:!0,key:"label",label:"Label",placeholder:"Field Label",tooltip:"The label for this field.",validate:{required:!0},autofocus:!0,overrideEditForm:!0},{weight:150,type:"datagrid",input:!0,key:"columns",label:"Column Properties",addAnother:"Add Column",tooltip:"The size and width settings for each column. One row is equal to 12. (e.g., a row with two columns spanning the entire page should be 6 and 6)",reorder:!0,components:[{type:"hidden",key:"components",defaultValue:[]},{type:"select",key:"size",defaultValue:"md",label:"Size",data:{values:[{label:"xs",value:"xs"},{label:"sm",value:"sm"},{label:"md",value:"md"},{label:"lg",value:"lg"},{label:"xl",value:"xl"}]}},{type:"number",key:"width",defaultValue:6,label:"Width"}]},{weight:160,type:"checkbox",label:"Auto adjust columns",tooltip:"Will automatically adjust columns based on if nested components are hidden.",key:"autoAdjust",input:!0},{key:"hideLabel",ignore:!0}]},56110:(e,t,n)=>{var i=n(45083),r=n(10392);e.exports=function(e,t){var n=r(e,t);return i(n)?n:void 0}},56129:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(15193),r=n(51202);t.default={form:i.default,html:r.default}},56195:function(e,t,n){!function(e){"use strict";e.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},56449:e=>{var t=Array.isArray;e.exports=t},56464:function(e,t,n){!function(e){"use strict";var t={standalone:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),format:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_"),isFormat:/DD?[o.]?(\[[^\[\]]*\]|\s)+MMMM/},n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),i=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],r=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function a(e){return e>1&&e<5&&1!=~~(e/10)}function s(e,t,n,i){var r=e+" ";switch(n){case"s":return t||i?"pár sekund":"pár sekundami";case"ss":return t||i?r+(a(e)?"sekundy":"sekund"):r+"sekundami";case"m":return t?"minuta":i?"minutu":"minutou";case"mm":return t||i?r+(a(e)?"minuty":"minut"):r+"minutami";case"h":return t?"hodina":i?"hodinu":"hodinou";case"hh":return t||i?r+(a(e)?"hodiny":"hodin"):r+"hodinami";case"d":return t||i?"den":"dnem";case"dd":return t||i?r+(a(e)?"dny":"dní"):r+"dny";case"M":return t||i?"měsíc":"měsícem";case"MM":return t||i?r+(a(e)?"měsíce":"měsíců"):r+"měsíci";case"y":return t||i?"rok":"rokem";case"yy":return t||i?r+(a(e)?"roky":"let"):r+"lety"}}e.defineLocale("cs",{months:t,monthsShort:n,monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},56575:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(95093))},56639:function(e,t,n){var i,r,a;!function(s,o){"use strict";e.exports?e.exports=o(n(95093)):(r=[n(95093)],void 0===(a="function"==typeof(i=o)?i.apply(t,r):i)||(e.exports=a))}(0,(function(e){"use strict";void 0===e.version&&e.default&&(e=e.default);var t,n={},i={},r={},a={},s={};e&&"string"==typeof e.version||T("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var o=e.version.split("."),l=+o[0],u=+o[1];function d(e){return e>96?e-87:e>64?e-29:e-48}function c(e){var t=0,n=e.split("."),i=n[0],r=n[1]||"",a=1,s=0,o=1;for(45===e.charCodeAt(0)&&(t=1,o=-1);t= 2.6.0. You are using Moment.js "+e.version+". See momentjs.com"),m.prototype={_set:function(e){this.name=e.name,this.abbrs=e.abbrs,this.untils=e.untils,this.offsets=e.offsets,this.population=e.population},_index:function(e){var t;if((t=function(e,t){var n,i=t.length;if(e1&&t[i-1]===1/0&&e>=t[i-2])return i-1;if(e>=t[i-1])return-1;for(var r=0,a=i-1;a-r>1;)t[n=Math.floor((r+a)/2)]<=e?r=n:a=n;return a}(+e,this.untils))>=0)return t},countries:function(){var e=this.name;return Object.keys(r).filter((function(t){return-1!==r[t].zones.indexOf(e)}))},parse:function(e){var t,n,i,r,a=+e,s=this.offsets,o=this.untils,l=o.length-1;for(r=0;ri&&E.moveInvalidForward&&(t=i),a3){var t=a[k(e)];if(t)return t;T("Moment Timezone found "+e+" from the Intl api, but did not have that data loaded.")}}catch(e){}var n,i,r,s=function(){var e,t,n,i,r=(new Date).getFullYear()-2,a=new v(new Date(r,0,1)),s=a.offset,o=[a];for(i=1;i<48;i++)(n=new Date(r,i,1).getTimezoneOffset())!==s&&(e=b(a,t=new v(new Date(r,i,1))),o.push(e),o.push(new v(new Date(e.at+6e4))),a=t,s=n);for(i=0;i<4;i++)o.push(new v(new Date(r+i,0,1))),o.push(new v(new Date(r+i,6,1)));return o}(),o=s.length,l=M(s),u=[];for(i=0;i0?u[0].zone.name:void 0}()),t},E.names=function(){var e,t=[];for(e in a)a.hasOwnProperty(e)&&(n[e]||n[i[e]])&&a[e]&&t.push(a[e]);return t.sort()},E.Zone=m,E.unpack=f,E.unpackBase60=c,E.needsOffset=C,E.moveInvalidForward=!0,E.moveAmbiguousForward=!1,E.countries=function(){return Object.keys(r)},E.zonesForCountry=function(e,t){var n;if(n=(n=e).toUpperCase(),!(e=r[n]||null))return null;var i=e.zones.sort();return t?i.map((function(e){return{name:e,offset:x(e).utcOffset(new Date)}})):i};var A,D=e.fn;function P(e){return function(){return this._z?this._z.abbr(this):e.call(this)}}function O(e){return function(){return this._z=null,e.apply(this,arguments)}}e.tz=E,e.defaultZone=null,e.updateOffset=function(t,n){var i,r=e.defaultZone;if(void 0===t._z&&(r&&C(t)&&!t._isUTC&&t.isValid()&&(t._d=e.utc(t._a)._d,t.utc().add(r.parse(t),"minutes")),t._z=r),t._z)if(i=t._z.utcOffset(t),Math.abs(i)<16&&(i/=60),void 0!==t.utcOffset){var a=t._z;t.utcOffset(-i,n),t._z=a}else t.zone(i,n)},D.tz=function(t,n){if(t){if("string"!=typeof t)throw new Error("Time zone name must be a string, got "+t+" ["+typeof t+"]");return this._z=x(t),this._z?e.updateOffset(this,n):T("Moment Timezone has no data for "+t+". See http://momentjs.com/timezone/docs/#/data-loading/."),this}if(this._z)return this._z.name},D.zoneName=P(D.zoneName),D.zoneAbbr=P(D.zoneAbbr),D.utc=O(D.utc),D.local=O(D.local),D.utcOffset=(A=D.utcOffset,function(){return arguments.length>0&&(this._z=null),A.apply(this,arguments)}),e.tz.setDefault=function(t){return(l<2||2===l&&u<9)&&T("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+e.version+"."),e.defaultZone=t?x(t):null,e};var j=e.momentProperties;return"[object Array]"===Object.prototype.toString.call(j)?(j.push("_z"),j.push("_a")):j&&(j._z=null),e}))},56757:(e,t,n)=>{var i=n(91033),r=Math.max;e.exports=function(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var a=arguments,s=-1,o=r(a.length-t,0),l=Array(o);++s{"use strict";var i=n(72777),r=n(10757);e.exports=function(e){var t=i(e,"string");return r(t)?t:t+""}},57112:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.datatable=void 0,t.datatable=a(n(29243))},57150:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=n(29857);t.default=[{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0},{key:"mask",ignore:!0},{type:"number",input:!0,key:"rows",label:"Rows",weight:210,tooltip:"This allows control over how many rows are visible in the text area.",placeholder:"Enter the amount of rows"},{weight:1350,type:"checkbox",input:!0,key:"spellcheck",defaultValue:!0,label:"Allow Spellcheck"},{type:"select",input:!0,key:"editor",label:"Editor",tooltip:"Select the type of WYSIWYG editor to use for this text area.",dataSrc:"values",data:{values:[{label:"None",value:""},{label:"ACE",value:"ace"},{label:"CKEditor",value:"ckeditor"},{label:"Quill",value:"quill"}]},weight:415},{type:"checkbox",input:!0,key:"autoExpand",label:"Auto Expand",tooltip:"This will make the TextArea auto expand it's height as the user is typing into the area.",weight:415,conditional:{json:{"==":[{var:"data.editor"},""]}}},{type:"checkbox",input:!0,key:"isUploadEnabled",label:"Enable Image Upload",weight:415.1,conditional:{json:{or:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.editor"},"ckeditor"]}]}}},{type:"select",input:!0,key:"uploadStorage",label:"Image Upload Storage",placeholder:"Select your file storage provider",weight:415.2,tooltip:"Which storage to save the files in.",valueProperty:"value",dataSrc:"custom",data:{custom:()=>r.default.map(a.Formio.Providers.getProviders("storage"),((e,t)=>({label:e.title,value:t})))},conditional:{json:{"===":[{var:"data.isUploadEnabled"},!0]}}},{type:"textfield",input:!0,key:"uploadUrl",label:"Image Upload Url",weight:415.3,placeholder:"Enter the url to post the files to.",tooltip:"See https://github.com/danialfarid/ng-file-upload#server-side for how to set up the server.",conditional:{json:{"===":[{var:"data.uploadStorage"},"url"]}}},{type:"textarea",key:"uploadOptions",label:"Image Upload Custom request options",tooltip:"Pass your custom xhr options(optional)",rows:5,editor:"ace",input:!0,weight:415.4,placeholder:'{\n "withCredentials": true\n }',conditional:{json:{"===":[{var:"data.uploadStorage"},"url"]}}},{type:"textfield",input:!0,key:"uploadDir",label:"Image Upload Directory",placeholder:"(optional) Enter a directory for the files",tooltip:"This will place all the files uploaded in this field in the directory",weight:415.5,conditional:{json:{"===":[{var:"data.isUploadEnabled"},!0]}}},{type:"textfield",key:"fileKey",input:!0,label:"File form-data Key",tooltip:"Key name that you would like to modify for the file while calling API request.",rows:5,weight:415.6,placeholder:"Enter the key name of a file for form data.",conditional:{json:{and:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.isUploadEnabled"},!0]},{"===":[{var:"data.uploadStorage"},"url"]}]}}},{type:"select",input:!0,key:"as",label:"Save As",dataSrc:"values",tooltip:"This setting determines how the value should be entered and stored in the database.",clearOnHide:!0,data:{values:[{label:"String",value:"string"},{label:"JSON",value:"json"},{label:"HTML",value:"html"}]},conditional:{json:{or:[{"===":[{var:"data.editor"},"quill"]},{"===":[{var:"data.editor"},"ace"]}]}},weight:416},{type:"textarea",input:!0,editor:"ace",rows:10,as:"json",label:"Editor Settings",tooltip:"Enter the WYSIWYG editor JSON configuration.",key:"wysiwyg",customDefaultValue:(e,t,n,i,r)=>r?r.wysiwygDefault:"",conditional:{json:{or:[{"===":[{var:"data.editor"},"ace"]},{"===":[{var:"data.editor"},"ckeditor"]},{"===":[{var:"data.editor"},"quill"]}]}},weight:417}]},57171:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(38034));function a(e){return{uploadFile:(t,n,i,a,s,o,l,u,d,c)=>r.default.upload(e,"azure",((e,n)=>(e.openAndSetHeaders("PUT",n.url),e.setRequestHeader("Content-Type",t.type),e.setRequestHeader("x-ms-blob-type","BlockBlob"),t)),t,n,i,a,u,d,c).then((e=>({storage:"azure",name:r.default.path([i,n]),size:t.size,type:t.type,groupPermissions:u,groupId:d,key:e.key}))),downloadFile:t=>e.makeRequest("file",`${e.formUrl}/storage/azure?name=${r.default.trim(t.name)}`,"GET"),deleteFile:function(t){var n=`${e.formUrl}/storage/azure?name=${r.default.trim(t.name)}&key=${r.default.trim(t.key)}`;return e.makeRequest("",n,"delete")}}}a.title="Azure File Services",t.default=a},57330:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponentData=void 0;const i=n(2543),r=n(96690),a=n(5426);t.eachComponentData=(e,n,s,o="",l,u,d=!1)=>{if(e)return(0,a.eachComponent)(e,((e,a,u,c)=>{var h;const p=(0,r.getContextualRowData)(e,a,n);if(!0===s(e,n,p,a,u,l,c))return!0;if((0,r.isComponentNestedDataType)(e)){const u=(0,i.get)(n,a,n);if(Array.isArray(u)){for(let i=0;i(0,t.eachComponentData)(a.components,n,s,(0,r.componentFormPath)(i,o,i.path),l,e)))}else if(i.hasRows){const i=e;i.rows.forEach((a=>{Array.isArray(a)&&a.forEach((a=>(0,t.eachComponentData)(a.components,n,s,(0,r.componentFormPath)(i,o,i.path),l,e)))}))}else if(i.hasComps){const i=e;(0,t.eachComponentData)(i.components,n,s,(0,r.componentFormPath)(i,o,i.path),l,e)}return!0}return!1}),!0,o,u)}},57423:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
    \n ',e.util.eachComponent(e.components,(function(i){n+="\n ",i.hasOwnProperty("tableView")&&!i.tableView||(n+='\n
    '+(null==(t=e.t(i.label))?"":t)+"
    \n "),n+="\n "})),n+="\n
    \n"}},57441:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(39142));class a extends r.default{static schema(...e){return r.default.schema({label:"Field Set",key:"fieldSet",type:"fieldset",legend:"",components:[],input:!1,persistent:!1},...e)}static get builderInfo(){return{title:"Field Set",icon:"th-large",group:"layout",documentation:"/userguide/form-building/layout-components#field-set",showPreview:!1,weight:20,schema:a.schema()}}static savedValueTypes(){return[]}get defaultSchema(){return a.schema()}get className(){return`${this.transform("class","form-group")} ${super.className}`}get templateName(){return"fieldset"}constructor(...e){super(...e),this.noField=!0}}t.default=a},57609:function(e,t,n){!function(e){"use strict";e.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(95093))},57618:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543));t.default=[{wieght:200,type:"select",datasrc:"values",key:"fields.month.type",label:"Type of input",data:{values:[{label:"Number",value:"number"},{label:"Select",value:"select"}]}},{weight:210,type:"textfield",input:!0,key:"fields.month.placeholder",label:"Placeholder",placeholder:"Month Placeholder",tooltip:"The placeholder text that will appear when Month field is empty."},{weight:215,type:"checkbox",label:"Hidden",tooltip:"Hide the Month part of the component.",key:"fields.month.hide",onChange:({data:e})=>{if(e.defaultValue){const t=e.defaultValue.split("/");if(!e.fields.month.hide&&3!==t.length){const n=["00"];e.fields.day.hide||(e.dayFirst?n.unshift(t[0]):n.push(t[0])),e.fields.year.hide||n.push(t[1]),r.default.set(e,"defaultValue",n.join("/"))}}},input:!0}]},57657:(e,t,n)=>{"use strict";var i,r,a,s=n(79039),o=n(94901),l=n(20034),u=n(2360),d=n(42787),c=n(36840),h=n(78227),p=n(96395),f=h("iterator"),m=!1;[].keys&&("next"in(a=[].keys())?(r=d(d(a)))!==Object.prototype&&(i=r):m=!0),!l(i)||s((function(){var e={};return i[f].call(e)!==e}))?i={}:p&&(i=u(i)),o(i[f])||c(i,f,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:m}},57674:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{weight:20,type:"checkbox",input:!0,key:"enableManualMode",label:"Enable Manual Mode",tooltip:"Should Manual Mode be enabled for that component or not.",customConditional:({data:e})=>!e.multiple},{weight:30,type:"textfield",input:!0,key:"switchToManualModeLabel",label:"Switch To Manual Mode Label",placeholder:"Switch To Manual Mode Label",tooltip:"The label for the checkbox used to switch to manual mode.",validate:{required:!0},customConditional:({data:e})=>Boolean(e.enableManualMode)},{weight:40,type:"checkbox",input:!0,key:"disableClearIcon",label:"Disable Clear Icon",tooltip:"Clear Icon allows easily clear component's value."},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:({data:e})=>e.multiple}]},57692:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(97567)),a=i(n(96877)),s=i(n(79244)),o=i(n(87422)),l=n(29857),u=n(34600),d=n(30214),c=i(n(87338)),h=i(n(2543)),p=i(n(9866)),f=i(n(59452));n(1835),"undefined"!=typeof window&&void 0===window.global&&(window.global=window);const m=i(n(5427));class g extends a.default{constructor(){let e,t;arguments[0]instanceof HTMLElement||arguments[1]?(e=arguments[0],t=arguments[1]):t=arguments[0],t.skipInit=!1,t.display=t.display||"form",super(null,t),this.moveHandler=e=>{38!==e.keyCode&&40!==e.keyCode&&13!==e.keyCode||(e.stopPropagation(),e.preventDefault()),38===e.keyCode&&this.updateComponentPlacement(!0),40===e.keyCode&&this.updateComponentPlacement(!1),13===e.keyCode&&this.stopMoving(this.selectedComponent)},this.setElement(e),this.dragulaLib=m.default,this.builderHeight=0,this.schemas={},this.repeatablePaths=[],this.sideBarScroll=h.default.get(this.options,"sideBarScroll",!0),this.sideBarScrollOffset=h.default.get(this.options,"sideBarScrollOffset",0),this.dragDropEnabled=!0,this.builder=h.default.defaultsDeep({},this.options.builder,this.defaultGroups),h.default.each(this.defaultGroups,((e,t)=>{!1===e&&(this.builder[t]=!1)})),this.groups={},this.groupOrder=[];for(const e in this.builder)this.builder[e]&&(this.builder[e].key=e,this.groups[e]=this.builder[e],this.groups[e].components=this.groups[e].components||{},this.groups[e].componentOrder=this.groups[e].componentOrder||[],this.groups[e].subgroups=Object.keys(this.groups[e].groups||{}).map((t=>(this.groups[e].groups[t].componentOrder=Object.keys(this.groups[e].groups[t].components).map((e=>e)),this.groups[e].groups[t]))),this.groupOrder.push(this.groups[e]));this.groupOrder=this.groupOrder.filter((e=>e&&!e.ignore)).sort(((e,t)=>e.weight-t.weight)).map((e=>e.key));for(const e in o.default.components){const t=o.default.components[e];if(t.builderInfo&&t.builderInfo.schema){this.schemas[e]=t.builderInfo.schema,t.type=e;const n=t.builderInfo;n.key=t.type,this.addBuilderComponentInfo(n)}}for(const e in this.groups){const t=this.groups[e];for(const n in t.components){const i="resource"===e?`component-${n}`:n;let r=t.components[i];!0===r&&o.default.components[n]&&o.default.components[n].builderInfo&&(r=o.default.components[n].builderInfo),r&&r.schema?(this.schemas[n]=r.schema,t.components[i]=r,t.components[i].key=n):delete t.components[i]}this.orderComponents(t)}this.options.hooks=this.options.hooks||{},this.options.hooks.renderComponent=(e,{component:t,self:n})=>{var i,r;return"form"!==n.type||n.key?this.options.disabled&&this.options.disabled.includes(n.key)||n.parent.noDragDrop?e:this.renderTemplate("builderComponent",{html:e,disableBuilderActions:null===(i=null==n?void 0:n.component)||void 0===i?void 0:i.disableBuilderActions,childComponent:t,design:null===(r=null==n?void 0:n.options)||void 0===r?void 0:r.design}):this.hook("renderComponentFormTemplate",e.replace("formio-component-form",""))},this.options.hooks.renderComponents=(e,{components:t,self:n})=>"datagrid"===n.type&&t.length>0||n.noDragDrop?e:((!t||!t.length&&!t.nodrop||"form"===n.type&&t.length<=1&&(0===t.length||"button"===t[0].type))&&(e=this.renderTemplate("builderPlaceholder",{position:0})+e),this.renderTemplate("builderComponents",{key:n.key,type:n.type,html:e})),this.options.hooks.renderInput=(e,{self:t})=>"hidden"===t.type?e+t.name:e,this.options.hooks.renderLoading=(e,{self:t})=>"form"===t.type&&t.key?t.name:e,this.options.hooks.attachComponents=(e,t,n,i)=>{if(!e)return;if(i.noDragDrop)return e;const r=e.querySelector(`[${this._referenceAttributeName}="${i.component.key}-container"]`)||e;return r.formioContainer=n,r.formioComponent=i,this.dragula&&this.allowDrop(e)&&this.dragula.containers.push(r),("datagrid"===i.type||"datamap"===i.type)&&t.length>0?e:e.children[0]},this.options.hooks.attachDatagrid=(e,t)=>{t.loadRefs(e,{[`${t.key}-container`]:"single"});const n=t.refs[`${t.key}-container`];n&&t.attachComponents(n.parentNode,[],t.component.components)},this.options.hooks.attachComponent=this.attachComponent.bind(this);const n={params:{type:"resource",limit:1e6,select:"_id,title,name,components"}};this.options&&this.options.resourceTag?n.params.tags=[this.options.resourceTag]:this.options&&this.options.hasOwnProperty("resourceTag")||(n.params.tags=["builder"]);const i=new l.Formio(l.Formio.projectUrl),r=this.options.builder&&!1===this.options.builder.resource;if(i.loadProject().then((e=>{if(e&&(h.default.get(e,"settings.addConfigToForms",!1)||h.default.get(e,"addConfigToForms",!1))){const t=e.config||{};this.options.formConfig=t;const n="webform._form.config",i=h.default.get(this,n);this.webform&&!i&&h.default.set(this,n,t)}})).catch((e=>{console.warn(`Could not load project settings: ${e.message||e}`)})),!i.noProject&&!r&&i.formsUrl){const e=this.options.builder&&this.options.builder.resource;i.loadForms(n).then((t=>{t.length&&(this.builder.resource={title:e?e.title:"Existing Resource Fields",key:"resource",weight:e?e.weight:50,subgroups:[],components:[],componentOrder:[]},this.groups.resource={title:e?e.title:"Existing Resource Fields",key:"resource",weight:e?e.weight:50,subgroups:[],components:[],componentOrder:[]},this.groupOrder.includes("resource")||this.groupOrder.push("resource"),this.addExistingResourceFields(t))}))}this.options.attachMode="builder",this.webform=this.webform||this.createForm(this.options),this.pathComponentsMapping={},this.arrayDataComponentPaths=[],this.nestedDataComponents=[],this.arrayDataComponents=[]}allowDrop(){return!0}addExistingResourceFields(e){h.default.each(e,((e,t)=>{const n=`resource-${e.name}`,i={key:n,title:e.title,components:[],componentOrder:[],default:0===t};(0,d.eachComponent)(e.components,(t=>{if("button"===t.type)return;if(this.options&&this.options.resourceFilter&&(!t.tags||-1===t.tags.indexOf(this.options.resourceFilter)))return;let r=t.label;!r&&t.key&&(r=h.default.upperFirst(t.key)),i.componentOrder.push(`component-${t.key}`),i.components[`component-${t.key}`]=h.default.merge((0,u.fastCloneDeep)(o.default.components[t.type]?o.default.components[t.type].builderInfo:o.default.components.unknown.builderInfo),{key:t.key,title:r,group:"resource",subgroup:n},{schema:Object.assign(Object.assign({},t),{label:t.label,key:t.key,lockKey:!0,source:this.options.noSource?void 0:e._id,isNew:!0})})}),!0),this.groups.resource.subgroups.push(i)})),this.triggerRedraw()}attachTooltip(e,t){return(0,s.default)(e,{allowHTML:!0,trigger:"mouseenter focus",placement:"top",delay:[200,0],zIndex:1e4,content:t})}attachComponent(e,t){if(t instanceof g)return;if(e.formioComponent=t,t.loadRefs(e,{removeComponent:"single",editComponent:"single",moveComponent:"single",copyComponent:"single",pasteComponent:"single",editJson:"single"}),t.refs.copyComponent&&(this.attachTooltip(t.refs.copyComponent,this.t("Copy")),t.addEventListener(t.refs.copyComponent,"click",(()=>this.copyComponent(t)))),t.refs.pasteComponent){const e=this.attachTooltip(t.refs.pasteComponent,this.t("Paste below"));t.addEventListener(t.refs.pasteComponent,"click",(()=>{e.hide(),this.pasteComponent(t)}))}t.refs.moveComponent&&(this.attachTooltip(t.refs.moveComponent,this.t("Move")),this.keyboardActionsEnabled&&t.addEventListener(t.refs.moveComponent,"click",(()=>{this.moveComponent(t)})));const n=this.getParentElement(e);return t.refs.editComponent&&(this.attachTooltip(t.refs.editComponent,this.t("Edit")),t.addEventListener(t.refs.editComponent,"click",(()=>this.editComponent(t.schema,n,!1,!1,t.component,{inDataGrid:t.isInDataGrid})))),t.refs.editJson&&(this.attachTooltip(t.refs.editJson,this.t("Edit JSON")),t.addEventListener(t.refs.editJson,"click",(()=>this.editComponent(t.schema,n,!1,!0,t.component)))),t.refs.removeComponent&&(this.attachTooltip(t.refs.removeComponent,this.t("Remove")),t.addEventListener(t.refs.removeComponent,"click",(()=>this.removeComponent(t.schema,n,t.component,t)))),e}createForm(e){return this.webform=new r.default(this.element,e),this.element&&(this.loadRefs(this.element,{form:"single"}),this.refs.form&&(this.webform.element=this.refs.form)),this.webform}get ready(){return this.webform.ready}get defaultGroups(){return{basic:{title:"Basic",weight:0,default:!0},advanced:{title:"Advanced",weight:10},layout:{title:"Layout",weight:20},data:{title:"Data",weight:30},premium:{title:"Premium",weight:40}}}redraw(){return r.default.prototype.redraw.call(this)}get form(){return this.webform.form}get schema(){return this.webform.schema}set form(e){this.setForm(e)}get container(){return this.webform.form.components}findNamespaceRoot(e){const t=(0,u.getArrayFromComponentPath)(e.path);let n=this.webform.getComponent(t);n=Array.isArray(n)?n[0]:n;const i=this.recurseNamespace(n);if(!i||this.form.key===i)return this.form.components;const r=e.component;if(i===e.key)return[...r.components,r];const a=(0,d.getComponent)(this.form.components,i,!0);return a?a.components:n.components}recurseNamespace(e){return e?["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree?e.key:this.recurseNamespace(e.parent):null}render(){return this.renderTemplate("builder",{sidebar:this.renderTemplate("builderSidebar",{scrollEnabled:this.sideBarScroll,groupOrder:this.groupOrder,groupId:`builder-sidebar-${this.id}`,groups:this.groupOrder.map((e=>this.renderTemplate("builderSidebarGroup",{group:this.groups[e],groupKey:e,groupId:`builder-sidebar-${this.id}`,subgroups:this.groups[e].subgroups.map((t=>this.renderTemplate("builderSidebarGroup",{group:t,groupKey:t.key,groupId:`group-container-${e}`,subgroups:[]}))),keyboardActionsEnabled:this.keyboardActionsEnabled})))}),form:this.webform.render()})}attach(e){return this.on("change",(e=>{this.populateCaptchaSettings(e),this.webform.setAlert(!1)})),super.attach(e).then((()=>{if(this.loadRefs(e,{form:"single",sidebar:"single","sidebar-search":"single","sidebar-groups":"single",container:"multiple","sidebar-anchor":"multiple","sidebar-group":"multiple","sidebar-container":"multiple","sidebar-component":"multiple"}),this.sideBarScroll&&f.default.current.handleBuilderSidebarScroll&&f.default.current.handleBuilderSidebarScroll.call(this,this),"undefined"!=typeof window&&window.sessionStorage&&window.sessionStorage.getItem("formio.clipboard")&&this.addClass(this.refs.form,"builder-paste-mode"),!(0,u.bootstrapVersion)(this.options)){const e=(e,t)=>{let n=e.getAttribute(`data-${t}`);return n||(n=e.getAttribute(`data-bs-${t}`)),n},t=(e,t)=>{t?(e.classList.add(["show"]),e.style.display="inherit"):(e.classList.remove(["show"]),e.style.display="none")};this.refs["sidebar-group"].forEach((n=>{t(n,"true"===e(n,"default"))})),this.refs["sidebar-anchor"].forEach(((n,i)=>{this.addEventListener(n,"click",(()=>{const r=e(n,"parent").slice(17),a=e(n,"target").slice(7);this.refs["sidebar-group"].forEach(((n,s)=>{const o="true"===e(n,"default"),l=n.getAttribute("id").slice(6),u=e(n,"parent").slice(17);t(n,o&&u===a||l===r||s===i)}))}),!0)}))}this.keyboardActionsEnabled&&this.refs["sidebar-component"].forEach((e=>{this.addEventListener(e,"keydown",(t=>{13===t.keyCode&&this.addNewComponent(e)}))})),this.addEventListener(this.refs["sidebar-search"],"input",h.default.debounce((e=>{const t=e.target.value;this.searchFields(t)}),300)),this.dragDropEnabled&&this.initDragula();const t=this.dragula;if(this.refs.form)return(0,p.default)([window],{margin:20,maxSpeed:6,scrollWhenOutside:!0,autoScroll:function(){return this.down&&(null==t?void 0:t.dragging)}}),this.webform.attach(this.refs.form)}))}searchFields(e=""){const t=e.toLowerCase(),n=this.refs.sidebar,i=this.refs["sidebar-groups"];if(!n||!i)return;const r=(e,t="")=>{const n=h.default.toPlainObject(e),{subgroups:i=[],components:r}=n,a=[];for(const e in r){const n=this.t(r[e].title).toLowerCase().match(t),i=r[e].key.toLowerCase().match(t);(n||i)&&a.push(r[e])}return this.orderComponents(n,a),t&&(n.default=!0),n.componentOrder.length||i.length?n:null},a=(e,t)=>h.default.clone(e).map((e=>r(e,t))).filter((e=>!h.default.isNull(e))),s=e=>({group:r(this.groups[e],t),groupKey:e,groupId:n.id||i.id,subgroups:a(this.groups[e].subgroups,t).map((t=>this.renderTemplate("builderSidebarGroup",{group:t,groupKey:t.key,groupId:`group-container-${e}`,subgroups:[]})))});i.innerHTML=((e,t)=>h.default.cloneDeep(e).filter((e=>r(this.groups[e],t))))(this.groupOrder,t).map((e=>this.renderTemplate("builderSidebarGroup",s(e)))).join(""),this.loadRefs(this.element,{"sidebar-groups":"single","sidebar-anchor":"multiple","sidebar-group":"multiple","sidebar-container":"multiple"}),this.updateDragAndDrop(),""===t&&this.triggerRedraw()}orderComponents(e,t){const n=t||e.components,i=0===e.key.indexOf("resource-");n&&(e.componentOrder=Object.keys(n).map((e=>n[e])).filter((e=>e&&!e.ignore&&!e.ignoreForForm)).sort(((e,t)=>e.weight-t.weight)).map((e=>i?`component-${e.key}`:e.key)))}updateDragAndDrop(){if(this.dragDropEnabled&&this.initDragula(),this.refs.form)return this.webform.attach(this.refs.form)}initDragula(){const e=this.options;this.dragula&&this.dragula.destroy();const t=Array.prototype.slice.call(this.refs["sidebar-container"]).filter((e=>"group-container-resource"!==e.id));m.default&&(this.dragula=(0,m.default)(t,{moves(t){let n=!0;return Array.from(t.classList).filter((e=>0===e.indexOf("formio-component-"))).forEach((t=>{const i=t.slice(17);e.disabled&&e.disabled.includes(i)&&(n=!1)})),t.classList.contains("no-drag")&&(n=!1),n},copy:e=>e.classList.contains("drag-copy"),accepts:(e,t)=>!e.contains(t)&&!t.classList.contains("no-drop")}).on("drop",((e,t,n,i)=>this.onDrop(e,t,n,i))))}detach(){this.dragula&&this.dragula.destroy(),this.dragula=null,this.sideBarScroll&&f.default.current.clearBuilderSidebarScroll&&f.default.current.clearBuilderSidebarScroll.call(this,this),super.detach()}getComponentInfo(e,t){let n;if(t&&"resource"===t.slice(0,t.indexOf("-"))){const i=this.groups.resource.subgroups,r=h.default.find(i,{key:t});r&&r.components.hasOwnProperty(`component-${e}`)&&(n=(0,u.fastCloneDeep)(r.components[`component-${e}`].schema))}else if(this.schemas.hasOwnProperty(e))n=(0,u.fastCloneDeep)(this.schemas[e]);else if(this.groups.hasOwnProperty(t)){const i=this.groups[t].components;i.hasOwnProperty(e)&&(n=(0,u.fastCloneDeep)(i[e].schema))}else if("searchFields"===t){const t=this.groups.resource.subgroups;for(let i=0;it.some((t=>t.components.some((t=>t.key===e.key)))))),a=h.default.findIndex(t.rows[r],(t=>t.components.some((t=>t.key===e.key)))),n=`rows[${r}][${a}].components`;break;case"columns":i=h.default.findIndex(t.columns,(t=>t.components.some((t=>t.key===e.key)))),n=`columns[${i}].components`;break;case"tabs":s=h.default.findIndex(t.components,(t=>t.components.some((t=>t.key===e.key)))),n=`components[${s}].components`}return n}onDrop(e,t,n,i){var r;if(!t)return;if(e.contains(t))return;const a=e.getAttribute("data-key"),s=e.getAttribute("data-type"),o=e.getAttribute("data-group");let l,u,p,f;if(a&&o?(l=this.getComponentInfo(a,o),!l&&s&&(l=this.getComponentInfo(s,o)),u=!0):n.formioContainer&&(f=h.default.findIndex(n.formioContainer,{key:e.formioComponent.component.key}),-1!==f&&(l=n.formioContainer.splice(h.default.findIndex(n.formioContainer,{key:e.formioComponent.component.key}),1),l=l[0])),!l)return;const m="resource"===o?`component-${a}`:a,g=(null===(r=this.groups[o])||void 0===r?void 0:r.components[m])||{};if(g.disableSiblings){let e=!1;if((0,d.eachComponent)(this.webform.components,(t=>{t.type!==g.schema.type||(e=!0)}),!0),e)return this.webform.redraw(),void this.webform.setAlert("danger",`You cannot add more than one ${g.key} component to one page.`)}if(g.uniqueComponent){let e=!1;if((0,d.eachComponent)(this.webform.components,(t=>{t.key!==g.schema.key||(e=!0)}),!0),e)return this.webform.redraw(),void this.webform.setAlert("danger",`You cannot add more than one ${g.title} component to one page.`)}t!==n&&c.default.uniquify(this.findNamespaceRoot(t.formioComponent),l);const v=t.formioComponent;t.formioContainer&&(i?(i.getAttribute("data-noattach")?f=i.getAttribute("data-position"):(f=h.default.findIndex(t.formioContainer,{key:h.default.get(i,"formioComponent.component.key")}),f=-1===f?0:f),-1!==f&&t.formioContainer.splice(f,0,l)):t.formioContainer.push(l),p=this.getComponentsPath(l,v.component),f=h.default.findIndex(h.default.get(v.schema,p),{key:l.key}),-1===f&&(f=0)),v&&v.addChildComponent&&v.addChildComponent(l,e,t,n,i);const y="datagrid"===v.type;let b;return!u||this.options.noNewEdit||l.noNewEdit||this.options.design&&"reviewpage"===l.type||this.editComponent(l,t,u,null,null,{inDataGrid:y}),t!==n?n.formioContainer&&n.contains(t)?b=n.formioComponent.rebuild():(t.contains(n)||n.formioContainer&&(b=n.formioComponent.rebuild()),b=t.formioComponent.rebuild()):b=t.formioComponent.rebuild(),b||(b=Promise.resolve()),b.then((()=>{this.emit("addComponent",l,v,p,f,u&&!this.options.noNewEdit&&!l.noNewEdit),(!u||this.options.noNewEdit||l.noNewEdit)&&this.emit("change",this.form)}))}setForm(e){var t;e.components||(e.components=[]),e&&e.properties&&(this.options.properties=e.properties);let n=h.default.get(this.options,"keyboardBuilder",!1)||(null===(t=this.options.properties)||void 0===t?void 0:t.keyboardBuilder);"string"==typeof n&&(n="true"===n),this.keyboardActionsEnabled=n;const{display:i,noAddSubmitButton:r,noDefaultSubmitButton:a}=this.options,{_id:s,components:o}=e,l=o.some((({type:e,action:t})=>"button"===e&&("submit"===t||!t)));if(!a&&("wizard"===i&&!l||!r&&!s&&!l)&&e.components.push({type:"button",label:"Submit",key:"submit",size:"md",block:!1,action:"submit",disableOnInvalid:!0,theme:"primary"}),this.webform){const t=!this.webform.form.components||e.components.length!==this.webform.form.components.length;return this.webform.setForm(e,{keepAsReference:!0}).then((()=>(this.refs.form&&(this.builderHeight=this.refs.form.offsetHeight),t?this.rebuild().then((()=>this.form)):this.form)))}return Promise.resolve(e)}populateCaptchaSettings(e){let t=!1;this.form.components&&((0,d.eachComponent)(e.components,(e=>{if(!t)return"captcha"===e.type?(t=!0,!1):void 0})),t?h.default.set(e,"settings.captcha.isEnabled",!0):h.default.get(e,"settings.captcha.isEnabled")&&h.default.set(e,"settings.captcha.isEnabled",!1))}removeComponent(e,t,n,i){if(!t)return;let r=!0;const a=!e.skipRemoveConfirm&&(Array.isArray(e.components)&&e.components.length||Array.isArray(e.rows)&&e.rows.length||Array.isArray(e.columns)&&e.columns.length);if(this.options.alwaysConfirmComponentRemoval||a){const e=a?"Removing this component will also remove all of its children. Are you sure you want to do this?":"Are you sure you want to remove this component?";r=window.confirm(this.t(e))}n||(n=t.formioContainer.find((t=>t.id===e.id)));const s=t.formioContainer?t.formioContainer.indexOf(n):0;if(r&&-1!==s){const n=this.getComponentsPath(e,t.formioComponent.component);if(t.formioContainer?t.formioContainer.splice(s,1):t.formioComponent&&t.formioComponent.removeChildComponent&&t.formioComponent.removeChildComponent(e),e.input&&i&&t.formioComponent){const e=h.default.get(t.formioComponent,"component.defaultValue",null);Array.isArray(e)?e.forEach((e=>h.default.unset(e,i.key))):"object"==typeof e&&h.default.unset(e,i.key)}(t.formioComponent.rebuild()||Promise.resolve()).then((()=>{this.emit("removeComponent",e,t.formioComponent.schema,n,s),this.emit("change",this.form)}))}return r}replaceDoubleQuotes(e,t=[]){if(e)return t.forEach((t=>{e[t]&&(e[t]=e[t].replace(/"/g,"'"))})),e}updateComponent(e,t){const n=h.default.get(this.webform,"form.settings.sanitizeConfig")||h.default.get(this.webform,"form.globalSettings.sanitizeConfig");if(this.preview){this.preview.form={components:[h.default.omit(Object.assign({},e),["hidden","conditional","calculateValue","logic","autofocus","customConditional"])],config:this.options.formConfig||{},sanitizeConfig:n};const t=["label","tooltip"];this.preview.form.components.forEach((e=>this.replaceDoubleQuotes(e,t)));const i=this.componentEdit.querySelector(`[${this._referenceAttributeName}="preview"]`);i&&(this.setContent(i,this.preview.render(),null,n),this.preview.attach(i))}const i=(0,d.getComponent)(this.editForm.components,"defaultValue",!0);if(i&&"hidden"!==e.type)if(t&&(t.component&&"defaultValue"===t.component.key||t.instance&&i.hasComponent&&i.hasComponent(t.instance))){let n=t.instance._data.key;const i=(0,u.getArrayFromComponentPath)(t.instance.path);i.shift(),i.length&&(i.unshift(e.key),n=(0,u.getStringFromComponentPath)(i)),this.preview.defaultChanged=!0,h.default.set(this.preview._data,n,t.value),h.default.set(this.webform._data,n,t.value)}else{h.default.assign(i.component,h.default.omit(Object.assign({},e),["key","label","labelPosition","labelMargin","labelWidth","placeholder","tooltip","hidden","autofocus","validate","disabled","defaultValue","customDefaultValue","calculateValue","conditional","customConditional","id","logic","fields.day.required","fields.month.required","fields.year.required"]));const n=i.parent;let r=-1,a=-1;if(n.tabs.some(((e,t)=>{e.some(((e,n)=>e.id===i.id&&(r=t,a=n,!0)))})),-1!==r&&-1!==a&&t&&!h.default.isNil(t.value)){const e=n.tabs[r][a+1];n.removeComponent(i);const t=n.addComponent(i.component,i.data,e);if(h.default.pull(t.validators,"required"),n.tabs[r].splice(a,1,t),t.checkValidity=()=>!0,t.build(i.element),this.preview&&!this.preview.defaultChanged){const e=h.default.get(this.preview._data,this.editForm._data.key);h.default.isObject(e)&&!h.default.isArray(e)&&(this.editForm._data.defaultValue=e)}}}this.emit("updateComponent",e)}findRepeatablePaths(){const e=[],t=new Map;return(0,d.eachComponent)(this.form.components,((n,i)=>{n.key&&(t.has(n.key)?t.get(n.key).includes(i)?e.push(i):t.set(n.key,[...t.get(n.key),i]):t.set(n.key,[i]))}),!0),e}highlightInvalidComponents(){const e=this.findRepeatablePaths();let t=!1;this.webform.everyComponent((n=>{const i=n.path;e.includes(i)&&(n.setCustomValidity(this.t("apiKey",{key:n.key})),t=!0)})),this.emit("builderFormValidityChange",t)}saveComponent(e,t,n,i){this.editForm.detach();const r=t?t.formioContainer:this.container,a=t?t.formioComponent:this;this.dialog.close();const s=r?this.getComponentsPath(e,a.component):"";i||(i=t.formioContainer.find((t=>t.id===e.id)));const o=r?r.indexOf(i):0;if(-1!==o){let e=this.editForm.submission.data;e=e.componentJson||e;const l=["label","tooltip"];this.replaceDoubleQuotes(e,l),this.hook("beforeSaveComponentSettings",e);let u=null;a.getComponents().forEach((e=>{e.component.key===i.key&&(u=e)}));const d=null==u?void 0:u.component,c=null==u?void 0:u.schema,h=this.isParentSaveChildMethod(t.formioComponent);return r&&!h?(r[o]=e,u&&(u.component=e)):h&&t.formioComponent.saveChildComponent(e),(a.rebuild()||Promise.resolve()).then((()=>{a.resetValue();const e=r?r[o]:u?u.schema:[];if(this.emitSaveComponentEvent(e,d,a.schema,s,o,n,c),this.emit("change",this.form),this.highlightInvalidComponents(),this.isComponentCreated){const e=t.formioComponent.components[0];this.moveComponent(e),this.isComponentCreated=!1}}))}return this.highlightInvalidComponents(),Promise.resolve()}emitSaveComponentEvent(e,t,n,i,r,a,s){this.emit("saveComponent",e,t,n,i,r,a,s)}attachEditComponentControls(e,t,n,i,r){this.componentEdit.querySelectorAll(`[${this._referenceAttributeName}="cancelButton"]`).forEach((t=>{this.editForm.addEventListener(t,"click",(t=>{t.preventDefault(),this.editForm.detach(),this.emit("cancelComponent",e),this.dialog.close(),this.highlightInvalidComponents()}))})),this.componentEdit.querySelectorAll(`[${this._referenceAttributeName}="removeButton"]`).forEach((n=>{this.editForm.addEventListener(n,"click",(n=>{n.preventDefault(),this.saved=!0,this.editForm.detach(),this.removeComponent(e,t,i),this.dialog.close(),this.highlightInvalidComponents()}))})),this.componentEdit.querySelectorAll(`[${this._referenceAttributeName}="saveButton"]`).forEach((r=>{this.editForm.addEventListener(r,"click",(r=>{r.preventDefault();const a=this.editForm.validate(this.editForm.data,{dirty:!0});if(a.length)return this.editForm.setPristine(!1),this.editForm.showErrors(a),!1;this.saved=!0,this.saveComponent(e,t,n,i)}))})),this.componentEdit.querySelectorAll(`[${this._referenceAttributeName}="previewButton"]`).forEach((a=>{this.editForm.addEventListener(a,"click",(a=>{var s;a.preventDefault(),this.showPreview=!this.showPreview,this.editForm.detach(),this.setContent(this.componentEdit,this.renderTemplate("builderEditForm",{componentInfo:r.builderInfo,editForm:this.editForm.render(),preview:!!this.preview&&this.preview.render(),showPreview:this.showPreview,helplinks:this.helplinks})),this.editForm.attach(this.componentEdit.querySelector(`[${this._referenceAttributeName}="editForm"]`)),this.updateComponent(null!==(s=this.editForm.submission.data)&&void 0!==s?s:e),this.attachEditComponentControls(e,t,n,i,r)}))}))}editComponent(e,t,n,i,a,s={}){var l,d;if(!e.key)return;this.saved=!1;const p=(0,u.fastCloneDeep)(e);let f=o.default.components[p.type];const m=void 0===f;i=i||m,f=m?o.default.components.unknown:f,this.dialog&&(this.dialog.close(),this.highlightInvalidComponents());const g=h.default.clone(h.default.get(this,"options.editForm",{}));this.editForm&&this.editForm.destroy();const v=h.default.get(this.options,`editForm.${p.type}`,{});g.editForm=this.form,g.editComponent=e,g.flags=s,this.hook("editComponentParentInstance",g,t),this.editForm=new r.default(Object.assign(Object.assign(Object.assign(Object.assign({},h.default.omit(this.options,["hooks","builder","events","attachMode","skipInit"])),{language:this.options.language}),g),{evalContext:Object.assign(Object.assign({},(null==g?void 0:g.evalContext)||(null===(l=this.options)||void 0===l?void 0:l.evalContext)||{}),{buildingForm:this.form})})),this.hook("editFormProperties",t),this.editForm.form=i&&!m?{components:[{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"componentJson",label:"Component JSON",tooltip:"Edit the JSON for this component."},{type:"checkbox",key:"showFullSchema",label:"Full Schema"}]}:f.editForm(h.default.cloneDeep(v));const y={inFormBuilder:!0};this.hook("instanceOptionsPreview",y);const b=new f(p,y),_=this.hook("builderComponentSchema",e,b);this.editForm.submission=i?{data:{componentJson:_,showFullSchema:this.options.showFullJsonSchema}}:{data:b.component},this.preview&&this.preview.destroy(),f.builderInfo.hasOwnProperty("preview")&&!f.builderInfo.preview||(this.preview=new r.default(h.default.omit(Object.assign(Object.assign({},this.options),{preview:!0}),["hooks","builder","events","attachMode","calculateValue"])),this.hook("previewFormSettitngs",_,i)),this.showPreview=null===(d=f.builderInfo.showPreview)||void 0===d||d,this.componentEdit=this.ce("div",{class:"component-edit-container"}),this.setContent(this.componentEdit,this.renderTemplate("builderEditForm",{componentInfo:f.builderInfo,editForm:this.editForm.render(),preview:!!this.preview&&this.preview.render(),showPreview:this.showPreview,helplinks:this.helplinks})),this.dialog=this.createModal(this.componentEdit,h.default.get(this.options,"dialogAttr",{})),this.editForm.attach(this.componentEdit.querySelector(`[${this._referenceAttributeName}="editForm"]`)),this.hook("editFormWrapper"),this.updateComponent(p),this.editForm.on("change",(r=>{if(r.changed){if(r.changed.component&&"showFullSchema"===r.changed.component.key){const{value:t}=r.changed;return void(this.editForm.submission={data:{componentJson:t?b.component:e,showFullSchema:t}})}(r.changed.component&&"key"===r.changed.component.key||i)&&(p.keyModified=!0);let a,s=!1;if(r.changed.instance?s=["label","title"].includes(r.changed.instance.path):r.changed.component&&(s=["label","title"].includes(r.changed.component.key)),s&&n&&(r.data.keyModified||this.editForm.everyComponent((e=>{if("key"===e.key&&"tabs"===e.parent.component.key)return e.setValue(this.updateComponentKey(r.data)),!1})),this.form)){let e=this.findNamespaceRoot(t.formioComponent);e=e.filter((e=>g.editComponent.id!==e.id)),c.default.uniquify(e,r.data)}r.changed.instance&&r.changed.instance.root&&r.changed.instance.root.id!==this.editForm.id&&(a=this.editForm.data),this.updateComponent(r.data.componentJson||a||r.data,r.changed)}})),this.attachEditComponentControls(e,t,n,a,f);const w=()=>{this.editForm.destroy(!0),this.preview&&(this.preview.destroy(!0),this.preview=null),n&&!this.saved&&(this.removeComponent(e,t,a),this.highlightInvalidComponents()),this.removeEventListener(this.dialog,"close",w),this.dialog=null};this.addEventListener(this.dialog,"close",w),this.emit("editComponent",e)}updateComponentKey(e){return h.default.camelCase(e.title||e.label||e.placeholder||e.type).replace(/^[0-9]*/,"")}moveComponent(e){var t;this.selectedComponent&&(null===(t=this.selectedComponent.element)||void 0===t||t.classList.remove("builder-component-selected"),this.removeEventListener(document,"keydown")),e.element.focus(),e.element.classList.add("builder-component-selected"),this.selectedComponent=e,this.addEventListener(document,"keydown",this.moveHandler.bind(this))}updateComponentPlacement(e){const t=this.selectedComponent;let n,i;const r=e?-1:1;if(t){const a=t.element,s=e?a.previousElementSibling:a.nextElementSibling,o=a.parentNode,l=o.formioContainer.length;if(l&&l<=1)return;o.formioContainer&&(n=h.default.findIndex(o.formioContainer,{key:a.formioComponent.component.key}),-1!==n&&(i=o.formioContainer.splice(h.default.findIndex(o.formioContainer,{key:a.formioComponent.component.key}),1),i=i[0],o.removeChild(a)));const u=o.formioComponent.components.length;if(n=-1===n?0:n+r,-1===n)o.formioContainer.push(i),o.appendChild(a);else if(n===u){const e=o.formioContainer[0].key;n=h.default.findIndex(o.formioComponent.components,{key:e});const t=o.formioComponent.components[n].element;o.formioContainer.splice(0,0,i),o.insertBefore(a,t)}else-1!==n&&(o.formioContainer.splice(n,0,i),e?o.insertBefore(a,s):o.insertBefore(a,s.nextElementSibling));a.focus()}}stopMoving(e){const t=e.element.parentNode;this.removeEventListener(document,"keydown"),t.formioComponent.rebuild(),this.selectedComponent=null}addNewComponent(e){var t;const n=document.querySelector(".formio-builder-form"),i=e.getAttribute("data-key"),r=e.getAttribute("data-group");let a;i&&r&&(a=this.getComponentInfo(i,r)),this.options.noNewEdit||a.noNewEdit||(c.default.uniquify(this.findNamespaceRoot(n.formioComponent),a),this.editComponent(a,n,!0,null,null)),(null===(t=n.formioComponent.components[0])||void 0===t?void 0:t.element)?n.formioContainer.splice(0,0,a):n.formioContainer.push(a),n.formioComponent.rebuild().then((()=>{this.isComponentCreated=!0}))}copyComponent(e){if(!window.sessionStorage)return console.warn("Session storage is not supported in this browser.");this.addClass(this.refs.form,"builder-paste-mode"),window.sessionStorage.setItem("formio.clipboard",JSON.stringify(e.schema))}pasteComponent(e){if(!window.sessionStorage)return console.warn("Session storage is not supported in this browser.");if(this.removeClass(this.refs.form,"builder-paste-mode"),window.sessionStorage){const t=window.sessionStorage.getItem("formio.clipboard");if(t){const n=JSON.parse(t),i=this.getParentElement(e.element);if(i){c.default.uniquify(this.findNamespaceRoot(i.formioComponent),n);let t="",r=0;const a=this.isParentSaveChildMethod(i.formioComponent);i.formioContainer&&!a?(r=i.formioContainer.indexOf(e.component),t=this.getComponentsPath(n,i.formioComponent.component),i.formioContainer.splice(r+1,0,n)):a&&i.formioComponent.saveChildComponent(n,!1),i.formioComponent.rebuild(),this.emitSaveComponentEvent(n,n,i.formioComponent.component,t,r+1,!0,n)}this.emit("change",this.form)}}}isParentSaveChildMethod(e){return!(!e||!e.saveChildComponent)}getParentElement(e){let t=e;do{t=t.parentNode}while(t&&!t.formioComponent);return t}addBuilderComponentInfo(e){if(!e||!e.group||!this.groups[e.group])return;e=h.default.clone(e);const t=this.groups[e.group];return t.components.hasOwnProperty(e.key)||(t.components[e.key]=e),e}init(){return this.webform&&this.webform.init(),super.init()}clear(){this.webform.initialized&&this.webform.clear()}destroy(e=!1){this.webform.initialized&&this.webform.destroy(e),super.destroy(e)}addBuilderGroup(e,t){this.groups[e]?this.updateBuilderGroup(e,t):(this.groups[e]=t,this.groupOrder.push(e),this.triggerRedraw())}updateBuilderGroup(e,t){this.groups[e]&&(this.groups[e]=t,this.triggerRedraw())}generateKey(e){return e.key||h.default.camelCase(e.title||e.label||e.placeholder||e.type)}}t.default=g},57755:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(64480));class a extends r.default{static get operatorKey(){return"isNotEqual"}static get displayedName(){return"Is Not Equal To"}execute(e){return!super.execute(e)}}t.default=a},57777:function(e,t,n){!function(e){"use strict";var t=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];e.defineLocale("ur",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(e){return"شام"===e},meridiem:function(e,t,n){return e<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(95093))},58076:function(e,t,n){!function(e){"use strict";var t={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(e,t){return 1===e?t[0]:e>=2&&e<=4?t[1]:t[2]},translate:function(e,n,i){var r=t.words[i];return 1===i.length?n?r[0]:r[1]:e+" "+t.correctGrammaticalCase(e,r)}};e.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:t.translate,m:t.translate,mm:t.translate,h:t.translate,hh:t.translate,d:"dan",dd:t.translate,M:"mjesec",MM:t.translate,y:"godinu",yy:t.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(95093))},58089:(e,t,n)=>{e.exports="function"==typeof Array.from?Array.from:n(53166)},58156:(e,t,n)=>{var i=n(47422);e.exports=function(e,t,n){var r=null==e?void 0:i(e,t);return void 0===r?n:r}},58359:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateMinimumDayInfo=t.validateMinimumDaySync=t.validateMinimumDay=t.shouldValidate=void 0;const r=n(54008),a=n(49599);t.shouldValidate=e=>{const{component:t,value:n}=e;return!!(e=>e&&"day"===e.type&&e.hasOwnProperty("minDate"))(t)&&!(0,a.isPartialDay)(t,n)&&null!==(0,a.getDateSetting)(t.minDate)},t.validateMinimumDay=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateMinimumDaySync)(e)})),t.validateMinimumDaySync=e=>{const{component:n,value:i}=e;if(!(0,t.shouldValidate)(e))return null;if("string"!=typeof i)throw new r.ProcessorError(`Cannot validate day value ${i} because it is not a string`,e,"validate:validateMinimumDay");const s=(0,a.getDateValidationFormat)(n)?(0,a.dayjs)(i,(0,a.getDateValidationFormat)(n)):(0,a.dayjs)(i),o=(0,a.getDateSetting)(n.minDate);if(null===o)return null;o.setHours(0,0,0,0);const l=new r.FieldError("minDate",Object.assign(Object.assign({},e),{minDate:(0,a.dayjs)(o).format((0,a.getDayFormat)(n)),setting:String(o)}));return s.isAfter(o)||s.isSame(o)?null:l},t.validateMinimumDayInfo={name:"validateMinimumDay",process:t.validateMinimumDay,processSync:t.validateMinimumDaySync,shouldProcess:t.shouldValidate}},58613:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,(n+='
    \n ')+"\n "+(null==(t=e.values.filter((function(t){return e.value===t.value||"object"==typeof e.value&&e.value.hasOwnProperty(t.value)&&e.value[t.value]})).map((function(t){return e.t(t.label,{_userInput:!0})})).join(", "))?"":t)+"\n
    \n"}},58622:(e,t,n)=>{"use strict";var i=n(22195),r=n(94901),a=i.WeakMap;e.exports=r(a)&&/native code/.test(String(a))},58676:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(95093))},58697:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AzureAddressProvider=void 0;const i=n(21416);class r extends i.AddressProvider{static get name(){return"azure"}static get displayName(){return"Azure Maps"}get defaultOptions(){return{params:{"api-version":"1.0",typeahead:"true"}}}get responseProperty(){return"results"}get displayValueProperty(){return"address.freeformAddress"}getRequestUrl(e={}){const{params:t}=e;return`https://atlas.microsoft.com/search/address/json?${this.serialize(t)}`}}t.AzureAddressProvider=r},58739:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(14728));class a extends r.default{static get operatorKey(){return"dateLessThan"}static get displayedName(){return"Less Than"}execute(e){return super.execute(e,"isBefore")}}t.default=a},59013:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(48421));class a extends r.default{static get operatorKey(){return"isNotDateEqual"}static get displayedName(){return"Is Not Equal To"}execute(e){return!super.execute(e,"isSame")}}t.default=a},59025:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.URL=t.DNS=void 0,t.default=function(e,t,n){function i(e,i,s,o){var l;if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));const t=[];for(let n=0;n{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
    ',e.value?n+=null==(t=e.value)?"":t:n+="-",n+"
    \n"}},59287:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(52850)),a=i(n(73368)),s=i(n(9784)),o=i(n(66323));t.default=function(...e){return(0,r.default)([{key:"display",components:s.default},{key:"data",components:a.default},{key:"validation",components:o.default}],...e)}},59350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},59452:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(84591)),a=n(22812);a.Template.addTemplates(r.default),a.Template.defaultTemplates=a.Template.templates.bootstrap,t.default=a.Template},59527:function(e,t,n){!function(e){"use strict";var t={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};e.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'unjy";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(95093))},59880:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},60106:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(24348),r=n(66055);t.default={form:i.default,builder:r.default}},60126:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(48421));class a extends r.default{static get operatorKey(){return"dateGreaterThanOrEqual"}static get displayedName(){return"Greater Than Or Equal To"}execute(e){return super.execute(e,"isSameOrAfter")}}t.default=a},60270:(e,t,n)=>{var i=n(87068),r=n(40346);e.exports=function e(t,n,a,s,o){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!=t&&n!=n:i(t,n,a,s,e,o))}},60333:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
    \n

    '+(null==(t=e.t("Upload a PDF File"))?"":t)+'

    \n \n
    \n \n '+(null==(t=e.t("Drop pdf to start, or"))?"":t)+' '+(null==(t=e.t("browse"))?"":t)+'\n \n \n
    \n
    \n\n
    \n
    \n\n'}},60406:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(33844));t.default=[{weight:0,type:"checkbox",label:"Multiple Values",tooltip:"Allows multiple values to be entered for this field.",key:"multiple",input:!0},{type:"textfield",label:"Default Value",key:"defaultValue",weight:5,placeholder:"Default Value",tooltip:"The Default Value will be the value for this field, before user interaction. Having a default value will override the placeholder text.",input:!0},{weight:30,type:"radio",label:"Persistent",tooltip:"A persistent field will be stored in database when the form is submitted.",key:"persistent",input:!0,inline:!0,defaultValue:!0,values:[{label:"None",value:!1},{label:"Server",value:!0},{label:"Client",value:"client-only"}]},{weight:150,type:"checkbox",label:"Protected",tooltip:"A protected field will not be returned when queried via API.",key:"protected",input:!0},{type:"checkbox",input:!0,weight:200,key:"dbIndex",label:"Database Index",tooltip:"Set this field as an index within the database. Increases performance for submission queries."},{weight:400,type:"checkbox",label:"Encrypted",tooltip:"Encrypt this field on the server. This is two way encryption which is not suitable for passwords.",key:"encrypted",input:!0,logic:[{name:"disabled",trigger:{type:"javascript",javascript:"result = !instance.root.options.sac;"},actions:[{name:"disabled",type:"property",property:{label:"Disabled",value:"disabled",type:"boolean"},state:!0}]},{name:"disabledToolTip",trigger:{type:"javascript",javascript:"result = !instance.root.options.sac;"},actions:[{name:"addDisabledTooltip",type:"property",property:{label:"Tooltip",value:"tooltip",type:"string"},text:"Only available with Security Module. Contact sales@form.io for more information."}]}]},{type:"select",input:!0,key:"redrawOn",label:"Redraw On",weight:600,tooltip:"Redraw this component if another component changes. This is useful if interpolating parts of the component like the label.",dataSrc:"custom",valueProperty:"value",data:{custom(e){var t=[];return t.push({label:"Any Change",value:"data"}),e.utils.eachComponent(e.instance.options.editForm.components,(function(n,i){n.key!==e.data.key&&t.push({label:n.label||n.key,value:i})})),t}},conditional:{json:{"!":[{var:"data.dataSrc"}]}}},{weight:700,type:"checkbox",label:"Clear Value When Hidden",key:"clearOnHide",defaultValue:!0,tooltip:"When a field is hidden, clear the value.",input:!0},r.default.javaScriptValue("Custom Default Value","customDefaultValue","customDefaultValue",1e3,'

    Example:

    value = data.firstName + " " + data.lastName;

    ','

    Example:

    {"cat": [{"var": "data.firstName"}, " ", {"var": "data.lastName"}]}
    '),r.default.javaScriptValue("Calculated Value","calculateValue","calculateValue",1100,"

    Example:

    value = data.a + data.b + data.c;

    ",'

    Example:

    {"+": [{"var": "data.a"}, {"var": "data.b"}, {"var": "data.c"}]}

    Click here for an example

    ',"tokenThe decoded JWT token for the authenticated user."),{type:"checkbox",input:!0,weight:1100,key:"calculateServer",label:"Calculate Value on server",tooltip:"Checking this will run the calculation on the server. This is useful if you wish to override the values submitted with the calculations performed on the server."},{type:"checkbox",input:!0,weight:1200,key:"allowCalculateOverride",label:"Allow Manual Override of Calculated Value",tooltip:"When checked, this will allow the user to manually override the calculated value."}]},60554:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fastCloneDeep=void 0,t.fastCloneDeep=function(e){try{return JSON.parse(JSON.stringify(e))}catch(e){return console.log(`Clone Failed: ${e.message}`),null}}},60612:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(31667),r=n(14572),a=n(20663),s=n(32504),o=n(51970),l=n(9241),u=n(38296),d=n(22719),c=n(69295),h=n(66909),p=n(95828),f=n(144),m=n(82396),g=n(87733),v=n(37957),y=n(31179),b=n(85636),_=n(31373),w=n(77153),M=n(48885),k=n(23665),S=n(76383),x=n(28975),L=n(85153),C=n(27251),T=n(6268),E=n(46460),A=n(42955),D=n(25115),P=n(27025),O=n(60802),j=n(2879),I=n(42589),R=n(72776),F=n(37014),Y=n(83218),V=n(28178),N=n(71766),H=n(16557),z=n(83041),U=n(72057),B=n(61161),W=n(10348),$=n(50957),q=n(744),K=n(29256),G=n(56129),J=n(20880),X=n(84001),Z=n(43279),Q=n(43168),ee=n(54455),te=n(5497),ne=n(28832),ie=n(44219),re=n(17077),ae=n(60106),se=n(79059),oe=n(41449),le=n(37833),ue=n(68195),de=n(93751),ce=n(96034),he=n(85765);t.default=Object.assign(Object.assign({transform(e,t,n){if(!t)return t;if("class"===e){let e="";return"form-group"===t&&(e="mb-2 ",n&&n.component.block&&(e+="d-grid ")),`${e}${this.cssClasses.hasOwnProperty(t.toString())?this.cssClasses[t.toString()]:t}`}return t},defaultIconset:"bi",iconClass:A.default,cssClasses:de.default,address:i.default,builder:r.default,builderComponent:a.default,builderComponents:s.default,builderEditForm:o.default,builderPlaceholder:l.default,builderSidebar:u.default,builderSidebarGroup:d.default,builderWizard:c.default,button:h.default,checkbox:p.default,columns:f.default,component:m.default,componentModal:g.default,components:v.default,tableComponents:y.default,container:b.default,datagrid:_.default,day:w.default,dialog:M.default,editgrid:k.default,editgridTable:S.default,field:x.default,fieldset:L.default,file:C.default,html:T.default,icon:E.default,input:D.default,label:P.default,loader:O.default,loading:j.default,map:I.default,message:R.default,modaledit:Y.default,modaldialog:F.default,modalPreview:V.default,multipleMasksInput:N.default,multiValueRow:H.default,multiValueTable:z.default,panel:U.default,pdf:B.default,pdfBuilder:W.default,pdfBuilderUpload:$.default,radio:q.default,resourceAdd:K.default,select:G.default,selectOption:J.default,signature:X.default,survey:Z.default,tab:Q.default,table:ee.default,tree:te.default},ne.default),{webform:ie.default,well:re.default,wizard:ae.default,wizardHeader:se.default,wizardHeaderClassic:oe.default,wizardHeaderVertical:le.default,wizardNav:ue.default,errorsList:ce.default,alert:he.default})},60708:function(e,t,n){!function(e){"use strict";var t=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];e.defineLocale("dv",{months:t,monthsShort:t,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(e){return"މފ"===e},meridiem:function(e,t,n){return e<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(e){return e.replace(/،/g,",")},postformat:function(e){return e.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(95093))},60762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"checkbox",input:!0,weight:105,key:"inlineEdit",label:"Inline Editing",tooltip:"Check this if you would like your changes within 'edit' mode to be committed directly to the submission object as that row is being changed"},{key:"defaultValue",ignore:!0},{key:"multiple",ignore:!0}]},60802:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(37108);t.default={form:i.default}},60918:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=i(n(18975)),s=i(n(42584));class o extends a.default{static get info(){return{supportedComponents:["password"],name:"passwordStrength",components:s.default,label:"Password Strength",defaultSettings:{rulesSettings:[{name:"length",required:!1,message:"Value should be longer"},{name:"upperCase",required:!1,message:"Value should have uppercase letters"},{name:"numeric",required:!1,message:"Value should have numeric symbols"},{name:"lowerCase",required:!1,message:"Value should be have lowercase letters"},{name:"symbols",required:!1,message:"Value should have symbols"}],updateOn:"levelChange",required:!0,levels:[{name:"Low",maxEntropy:28,style:"danger"},{name:"Medium",maxEntropy:45,style:"warning"},{name:"High",maxEntropy:59,style:"info"},{name:"Very High",maxEntropy:85,style:"success"}],blackList:[],template:"\n
    \n {% if (!ctx.readOnly && !ctx.pristine) { %}\n
    \n {% } %}\n \n ",location:{insert:"after",selector:'[ref="element"]'}}}}get defaultSettings(){return o.info.defaultSettings}get rules(){return{length:{check:(e,t)=>{const n=t.minLength||this.component.component.validate.minLength||6;return!(e.length!!/[A-Z]/g.test(e)||"Value must contain uppercased alphabetical characters",increaseCharactersPoolSize:26},numeric:{check:e=>!!/[0-9]/g.test(e)||"Value must contain numeric characters",increaseCharactersPoolSize:10},lowerCase:{check:e=>!!/[a-z]/g.test(e)||"Value must contain lowercased alphabetical characters",increaseCharactersPoolSize:26},symbols:{check:e=>!!/[ `!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?~]/.test(e)||"Value must contain symbols",increaseCharactersPoolSize:32}}}get charactersPoolLength(){return this._charactersPoolLength}set charactersPoolLength(e){this._charactersPoolLength=e}get level(){return this._level||this.getLevel()}set level(e){this._level=e}get entropy(){return this._entropy}get dictionarySize(){return this.settings.dictionarySize||171476}set entropy(e){const t=this.getLevel(),n="entropyChange"===this.settings.updateOn&&this._entropy!==e;this._entropy=e,this.level=this.getLevel(),("levelChange"===this.settings.updateOn&&t.name!==this.level.name||n)&&this.updateView()}get template(){return this.settings.template}get tooltip(){var e,t;return(null===(e=this.level)||void 0===e?void 0:e.tooltip)||`${null===(t=this.level)||void 0===t?void 0:t.name} strongness`}get rulesSettings(){return this.settings.rulesSettings||[]}get customRules(){return this.settings.customRules||[]}log2(e){return"function"==typeof Math.log2?Math.log2(e):Math.log(e)*Math.LOG2E}calculatePasswordEntropy(e,t){return e&&t?this.log2(Math.pow(t,e)):0}calculatePasswordEntropyWords(e){return this.dictionarySize?this.log2(this.dictionarySize)*e:0}render(){const e=this.component.interpolate(this.template,{entropy:this.entropy,maxEntropy:this.maxEntropy,level:this.level,levelName:this.level.name.replace(" ","-").toLowerCase(),levels:this.levels,readOnly:this.component.options.readOnly,pristine:this.component.pristine,t:this.t.bind(this),tooltip:this.tooltip});return this.component.sanitize(e)}checkBlackList(e){const t=[...this.settings.blackList];let n=this.settings.customBlacklistedWords;n&&"string"==typeof n&&(n=this.evaluate(n,this.component.evalContext({value:e}),"values"),n&&n.length&&t.push(...n));let i=e;const r=[];for(let n=0;n=Math.round(this.maxEntropy/2)}handleRuleCheckResult(e,t,n,i){if(!0!==e)i.push({validation:t.name,message:n,level:t.required?"error":"warning"});else if(t.increaseCharactersPoolSize)return t.increaseCharactersPoolSize;return 0}performChecks(e){const t=[];let n=0;return this.rulesSettings.forEach((i=>{if(this.rules[i.name]){const a=r.default.merge({},this.rules[i.name],i),s=a.check(e,i.options||{}),o=i.message||s;n+=this.handleRuleCheckResult(s,a,o,t)}})),this.customRules.forEach((i=>{if(i.check&&"string"==typeof i.check){const r=this.evaluate(i.check,this.component.evalContext({value:e}),"valid"),a="string"==typeof r?r:`Password does not meet ${i.name} validation`;n+=this.handleRuleCheckResult(r,i,a,t)}})),{charactersPoolSize:n,errors:t}}checkValidity(e){var t;const n=e.length,{charactersPoolSize:i,errors:r}=this.performChecks(e),a=this.calculatePasswordEntropy(n,i),s=(null===(t=this.settings.blackList)||void 0===t?void 0:t.length)||this.settings.customBlacklistedWords?this.checkBlackList(e):null;return this.isValid()||r.push({message:"Password is not strong enough",level:this.settings.required?"error":"warning"}),s&&!0!==s?(this.handleBlackListCheckResult(s,r),this.entropy=Math.min(a,s.entropy)):this.entropy=a,!r.length}handleBlackListCheckResult(e,t){const n=e.blacklistedWords,i=this.settings.disableBlacklistedWords,r=`Password ${i?"must":"should"} not include common words: ${n.join(", ")}`,a={name:"blacklist",required:i};this.handleRuleCheckResult(!1,a,r,t)}constructor(e,t){super(e,t),this._entropy=0,this.levels=[...this.settings.levels||this.defaultSettings.levels],this.levels.sort(((e,t)=>e.maxEntropy-t.maxEntropy)),this.level=this.levels[0],this.maxEntropy=this.levels[this.levels.length-1].maxEntropy}attach(e){super.attach(e);const t=this.component.ce("div",{ref:"passwordStrengthIndicator"});this.insertContainer(e,t)||this.component.append(t),this._element=t,this.component.on("redraw",(()=>this.updateView())),this.component.on("componentError",(()=>this.updateView())),this.updateView()}insertContainer(e,t){var n,i;if(!e||!t)return!1;const r=null===(n=this.settings.location)||void 0===n?void 0:n.insert,a=null===(i=this.settings.location)||void 0===i?void 0:i.selector;let s;if(a&&(s=e.querySelector(a)),!s)return console.warn(`No elements found using selector: ${a}`),!1;{const e=s.parentNode;switch(r){case"after":return!!e&&(e.insertBefore(t,s.nextSibling||null),!0);case"before":return!!e&&(e.insertBefore(t,s),!0);default:return console.warn(`Unknown insert option: ${r}`),!1}}}destroy(){super.destroy()}getLevel(e=this.entropy){const t=this.levels[0];let n=t.maxEntropy;if(e<=t.maxEntropy)return t;if(e>=this.maxEntropy)return this.levels[this.levels.length-1];for(let t=1;tn&&e<=i.maxEntropy)return i;n=i.maxEntropy}return t}updateView(){if(!this.element)return;const e=this.render();this.element.innerHTML=e}}t.default=o},60924:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{label:"HTML Attributes",type:"datamap",input:!0,key:"attributes",keyLabel:"Attribute Name",valueComponent:{type:"textfield",key:"value",label:"Attribute Value",input:!0},tooltip:"Provide a map of HTML attributes for component's input element (attributes provided by other component settings or other attributes generated by form.io take precedence over attributes in this grid)",addAnother:"Add Attribute"},{type:"panel",legend:"PDF Overlay",title:"PDF Overlay",key:"overlay",tooltip:"The settings inside apply only to the PDF forms.",weight:2e3,collapsible:!0,collapsed:!0,components:[{type:"textfield",input:!0,key:"overlay.style",label:"Style",placeholder:"",tooltip:"Custom styles that should be applied to this component when rendered in PDF."},{type:"textfield",input:!0,key:"overlay.page",label:"Page",placeholder:"",tooltip:"The PDF page to place this component."},{type:"textfield",input:!0,key:"overlay.left",label:"Left",placeholder:"",tooltip:"The left margin within a page to place this component."},{type:"textfield",input:!0,key:"overlay.top",label:"Top",placeholder:"",tooltip:"The top margin within a page to place this component."},{type:"textfield",input:!0,key:"overlay.width",label:"Width",placeholder:"",tooltip:"The width of the component (in pixels)."},{type:"textfield",input:!0,key:"overlay.height",label:"Height",placeholder:"",tooltip:"The height of the component (in pixels)."}]}]},61074:e=>{e.exports=function(e){return e.split("")}},61161:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(66529);t.default={form:i.default}},61268:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(48421));class a extends r.default{static get operatorKey(){return"dateLessThan"}static get displayedName(){return"Less Than"}execute(e){return super.execute(e,"isBefore")}}t.default=a},61290:function(e,t,n){!function(e){"use strict";var t={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};e.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(e){return e.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(e,t){return 12===e&&(e=0),"রাত"===t&&e>=4||"দুপুর"===t&&e<5||"বিকাল"===t?e+12:e},meridiem:function(e,t,n){return e<4?"রাত":e<10?"সকাল":e<17?"দুপুর":e<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(95093))},61489:(e,t,n)=>{var i=n(17400);e.exports=function(e){var t=i(e),n=t%1;return t==t?n?t-n:t:0}},61509:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},r={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},a=function(e){return function(t,n,a,s){var o=i(t),l=r[e][i(t)];return 2===o&&(l=l[n?0:1]),l.replace(/%d/i,t)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:a("s"),ss:a("s"),m:a("m"),mm:a("m"),h:a("h"),hh:a("h"),d:a("d"),dd:a("d"),M:a("M"),MM:a("M"),y:a("y"),yy:a("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(95093))},61615:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateMaximumSelectedCountInfo=t.validateMaximumSelectedCountSync=t.validateMaximumSelectedCount=t.shouldValidate=void 0;const r=n(54008),a=e=>{var t;let n=null===(t=e.validate)||void 0===t?void 0:t.maxSelectedCount;return"string"==typeof n&&(n=parseFloat(n)),n};t.shouldValidate=e=>{const{component:t,value:n}=e;return!!(e=>{var t;return e&&(null===(t=e.validate)||void 0===t?void 0:t.hasOwnProperty("maxSelectedCount"))})(t)&&!!n&&!!a(t)},t.validateMaximumSelectedCount=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateMaximumSelectedCountSync)(e)})),t.validateMaximumSelectedCountSync=e=>{const{component:n,value:i}=e;try{if(!(0,t.shouldValidate)(e))return null;!function(e,t){if(null==e||"object"!=typeof e)throw new r.ProcessorError(`Cannot validate maximum selected count for value ${e} as it is not an object`,t,"validate:validateMaximumSelectedCount");if(!Object.values(e).every((e=>"boolean"==typeof e)))throw new r.ProcessorError(`Cannot validate maximum selected count for value ${e} because it has non-boolean members`,t,"validate:validateMaximumSelectedCount")}(i,e);const s=a(n);if(!s)return null;const o=Object.keys(i).reduce(((e,t)=>i[t]?++e:e),0);return o<=0?null:o>s?new r.FieldError(n.maxSelectedCountMessage||"maxSelectedCount",Object.assign(Object.assign({},e),{maxCount:String(s),setting:String(s)})):null}catch(t){throw new r.ProcessorError(t.message||t,e,"validate:validateMaximumSelectedCount")}},t.validateMaximumSelectedCountInfo={name:"validateMaximumSelectedCount",process:t.validateMaximumSelectedCount,processSync:t.validateMaximumSelectedCountSync,shouldProcess:t.shouldValidate}},61801:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n
    ',e.checked?n+="True":n+="False",n+"
    \n"}},61802:(e,t,n)=>{var i=n(62224),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,s=i((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,(function(e,n,i,r){t.push(i?r.replace(a,"$1"):n||e)})),t}));e.exports=s},61828:(e,t,n)=>{"use strict";var i=n(79504),r=n(39297),a=n(25397),s=n(19617).indexOf,o=n(30421),l=i([].push);e.exports=function(e,t){var n,i=a(e),u=0,d=[];for(n in i)!r(o,n)&&r(i,n)&&l(d,n);for(;t.length>u;)r(i,n=t[u++])&&(~s(d,n)||l(d,n));return d}},62006:(e,t,n)=>{var i=n(15389),r=n(64894),a=n(95950);e.exports=function(e){return function(t,n,s){var o=Object(t);if(!r(t)){var l=i(n,3);t=a(t),n=function(e){return l(o[e],e,o)}}var u=e(t,n,s);return u>-1?o[l?t[u]:u]:void 0}}},62130:(e,t,n)=>{"use strict";var i=n(29015),r=n(39801);e.exports=function(e,t){var n=t||{},a={};return void 0===e&&(e={}),e.on=function(t,n){return a[t]?a[t].push(n):a[t]=[n],e},e.once=function(t,n){return n._once=!0,e.on(t,n),e},e.off=function(t,n){var i=arguments.length;if(1===i)delete a[t];else if(0===i)a={};else{var r=a[t];if(!r)return e;r.splice(r.indexOf(n),1)}return e},e.emit=function(){var t=i(arguments);return e.emitterSnapshot(t.shift()).apply(this,t)},e.emitterSnapshot=function(t){var s=(a[t]||[]).slice(0);return function(){var a=i(arguments),o=this||e;if("error"===t&&!1!==n.throws&&!s.length)throw 1===a.length?a[0]:a;return s.forEach((function(i){n.async?r(i,a,o):i.apply(o,a),i._once&&e.off(t,i)})),e}},e}},62193:(e,t,n)=>{var i=n(88984),r=n(5861),a=n(72428),s=n(56449),o=n(64894),l=n(3656),u=n(55527),d=n(37167),c=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(o(e)&&(s(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||d(e)||a(e)))return!e.length;var t=r(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!i(e).length;for(var n in e)if(c.call(e,n))return!1;return!0}},62224:(e,t,n)=>{var i=n(50104);e.exports=function(e){var t=i(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}},62243:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.override=void 0,t.override=function(e,t){for(const n in t)if(t.hasOwnProperty(n)){const i=t[n];if("function"==typeof i)e.prototype[n]=i;else{const t=Object.getOwnPropertyDescriptor(e.prototype,n);for(const e in i)i.hasOwnProperty(e)&&(t[e]=i[e](t[e]));Object.defineProperty(e.prototype,n,t)}}}},62529:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},62627:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{weight:110,key:"validate.minLength",label:"Minimum Length",placeholder:"Minimum Length",type:"number",tooltip:"The minimum length requirement this field must meet.",input:!0},{weight:120,key:"validate.maxLength",label:"Maximum Length",placeholder:"Maximum Length",type:"number",tooltip:"The maximum length requirement this field must meet.",input:!0},{weight:125,key:"validate.minWords",label:"Minimum Word Length",placeholder:"Minimum Word Length",type:"number",tooltip:"The minimum amount of words that can be added to this field.",input:!0},{weight:126,key:"validate.maxWords",label:"Maximum Word Length",placeholder:"Maximum Word Length",type:"number",tooltip:"The maximum amount of words that can be added to this field.",input:!0},{weight:130,key:"validate.pattern",label:"Regular Expression Pattern",placeholder:"Regular Expression Pattern",type:"textfield",tooltip:"The regular expression pattern test that the field value must pass before the form can be submitted.",input:!0}]},62646:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.KEY_CODES=void 0;const r=i(n(76644));r.default.prototype._generatePlaceholderValue=function(){if(this._isSelectElement&&this.passedElement.placeholderOption){const{placeholderOption:e}=this.passedElement;return!!e&&e.text}const{placeholder:e,placeholderValue:t}=this.config,{element:{dataset:n}}=this.passedElement;if(e){if(t)return t;if(n.placeholder)return n.placeholder}return!1},t.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,TAB_KEY:9,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34};class a extends r.default{constructor(...e){super(...e),this._onTabKey=this._onTabKey.bind(this),this.isDirectionUsing=!1,this.shouldOpenDropDown=!0}_onTouchEnd(e){var t=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&((t===this.containerOuter.element||t===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&(this.input.focus(),this.showDropdown())),e.stopPropagation()),this._wasTap=!0}_handleButtonAction(e,t){if(!this._isSelectOneElement)return super._handleButtonAction(e,t);e&&t&&this.config.removeItems&&this.config.removeItemButton&&super._handleButtonAction(e,t)}_onEnterKey(e){"choices__button"===e.event.target.className&&(this.shouldOpenDropDown=!1),super._onEnterKey(e)}_onDirectionKey(...e){if(!this._isSelectOneElement)return super._onDirectionKey(...e);this.isDirectionUsing=!0,super._onDirectionKey(...e),this.onSelectValue(...e),clearTimeout(this.timeout),this.timeout=setTimeout((()=>{this.isDirectionUsing=!1}),250)}_onTabKey({activeItems:e,hasActiveDropdown:t}){t&&this._selectHighlightedChoice(e)}_selectHighlightedChoice(){const e=this.dropdown.getChild(`.${this.config.classNames.highlightedState}`);if(e){const t=e.dataset.id,n=t&&this._store.getChoiceById(t);this._addItem({value:n.value,label:n.label,choiceId:n.id,groupId:n.groupId,customProperties:n.customProperties,placeholder:n.placeholder,keyCode:n.keyCode}),this._triggerChange(n.value)}event.preventDefault()}_onKeyDown(e){if(!this._isSelectOneElement)return super._onKeyDown(e);const{target:n,keyCode:i,ctrlKey:r,metaKey:a}=e;if(n!==this.input.element&&!this.containerOuter.element.contains(n))return;const s=this._store.activeItems,o=this.input.isFocussed,l=this.dropdown.isActive,u=this.itemList.hasChildren,d=String.fromCharCode(i),{BACK_KEY:c,DELETE_KEY:h,TAB_KEY:p,ENTER_KEY:f,A_KEY:m,ESC_KEY:g,UP_KEY:v,DOWN_KEY:y,PAGE_UP_KEY:b,PAGE_DOWN_KEY:_}=t.KEY_CODES,w=r||a;if(!l&&!this._isTextElement&&/[a-zA-Z0-9-_ ]/.test(d)){const e=this.input.element.value;this.input.element.value=e?`${e}${d}`:d,this.showDropdown()}const M={[m]:this._onAKey,[p]:this._onTabKey,[f]:this._onEnterKey,[g]:this._onEscapeKey,[v]:this._onDirectionKey,[b]:this._onDirectionKey,[y]:this._onDirectionKey,[_]:this._onDirectionKey,[h]:this._onDeleteKey,[c]:this._onDeleteKey};M[i]&&M[i]({event:e,target:n,keyCode:i,metaKey:a,activeItems:s,hasFocusedInput:o,hasActiveDropdown:l,hasItems:u,hasCtrlDownKeyPressed:w})}onSelectValue({event:e,activeItems:t,hasActiveDropdown:n}){n?this._selectHighlightedChoice(t):this._isSelectOneElement&&(this.showDropdown(),e.preventDefault())}showDropdown(...e){this.shouldOpenDropDown?super.showDropdown(...e):this.shouldOpenDropDown=!0}hideDropdown(...e){this.isDirectionUsing||super.hideDropdown(...e)}_onBlur(...e){this._isScrollingOnIe||super._onBlur(...e)}}t.default=a},62724:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n \n ',e.component.questions.forEach((function(i){n+="\n \n \n \n \n "})),n+="\n \n
    "+(null==(t=e.t(i.label))?"":t)+"\n ",e.component.values.forEach((function(r){n+="\n ",e.value&&e.value.hasOwnProperty(i.value)&&e.value[i.value]===r.value&&(n+="\n "+(null==(t=e.t(r.label))?"":t)+"\n "),n+="\n "})),n+="\n
    \n"}},62953:(e,t,n)=>{"use strict";var i=n(22195),r=n(67400),a=n(79296),s=n(23792),o=n(66699),l=n(10687),u=n(78227)("iterator"),d=s.values,c=function(e,t){if(e){if(e[u]!==d)try{o(e,u,d)}catch(t){e[u]=d}if(l(e,t,!0),r[t])for(var n in s)if(e[n]!==s[n])try{o(e,n,s[n])}catch(t){e[n]=s[n]}}};for(var h in r)c(i[h]&&i[h].prototype,h);c(a,"DOMTokenList")},62980:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
    \n\n\n '+(null==(t=e.previewText)?"":t)+'\n\n
    \n '+(null==(t=e.messages)?"":t)+"\n
    \n"}},63040:(e,t,n)=>{var i=n(21549),r=n(80079),a=n(68223);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(a||r),string:new i}}},63164:function(e,t,n){!function(e){"use strict";e.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(e,t){switch(t){case"d":case"D":case"DDD":return e+"일";case"M":return e+"월";case"w":case"W":return e+"주";default:return e}},meridiemParse:/오전|오후/,isPM:function(e){return"오후"===e},meridiem:function(e,t,n){return e<12?"오전":"오후"}})}(n(95093))},63294:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,a=arguments.length,s=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(s=(a<3?r(s):a>3?r(t,n,s):r(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s},r=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.InputComponent=t.Input=void 0;const a=n(77644),s=n(10728);class o extends s.HTML{getAttributes(){const e=super.getAttributes(),t=`${this.component.type}-${this.component.key}`.toLowerCase().replace(/[^a-z0-9\-]+/g,"_");return` type="${this.component.inputType}" id="${t}" name="${t}"${e}`}onInput(){this.updateValue(this.element.value)}attach(e){return r(this,void 0,void 0,(function*(){return this.addEventListener(this.element,this.component.changeEvent,this.onInput.bind(this)),this}))}detach(){this.removeEventListener(this.element,this.component.changeEvent,this.onInput.bind(this))}setValue(e){this.element&&(this.element.value=e)}}t.Input=o;let l=class extends o{};t.InputComponent=l,t.InputComponent=l=i([(0,a.Component)({type:"input",template:s.HTMLProperties.template,schema:Object.assign(Object.assign({},s.HTMLProperties.schema),{tag:"input",ref:"input",changeEvent:"input",inputType:"text"})})],l)},63345:e=>{e.exports=function(){return[]}},63357:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(52850)),a=i(n(17938)),s=i(n(40770)),o=i(n(71465));t.default=function(...e){return(0,r.default)([{key:"display",components:s.default},{key:"data",components:a.default},{key:"validation",components:o.default}],...e)}},63468:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
    \n ',e.util.eachComponent(e.components,(function(i){n+="\n ",i.hasOwnProperty("tableView")&&!i.tableView||(n+='\n
    \n '+(null==(t=e.getView(i,e.row[i.key]))?"":t)+"\n
    \n "),n+="\n "})),n+="\n ",e.self.options.readOnly||(n+='\n
    \n
    \n \n \n
    \n
    \n '),n+="\n
    \n"}},63481:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
    \n "),n+="\n
    "+(null==(t=e.day)?"":t)+"
    \n
    \n "),n+="\n ",e.showMonth&&(n+='\n
    \n ',e.component.hideInputLabels||(n+='\n
    \n "),n+="\n ",!e.dayFirst&&e.showDay&&(n+='\n
    \n ',e.component.hideInputLabels||(n+='\n
    \n "),n+="\n ",e.showYear&&(n+='\n
    \n ',e.component.hideInputLabels||(n+='\n
    \n "),n+'\n\n\n'}},63565:(e,t)=>{"use strict";function n(e){function t(e,t){const n="string"==typeof e?JSON.parse(e):e;for(const e in n)if("headers"===e){const e=n.headers;for(const n in e)t.setRequestHeader(n,e[n])}else t[e]=n[e]}const n=(n,i,r,a,s,o,l)=>new Promise(((u,d)=>{const c=new XMLHttpRequest,h="string"==typeof a,p=new FormData;if("function"==typeof o&&(c.upload.onprogress=o),"function"==typeof l&&l((()=>c.abort())),!h)for(const e in a)p.append(e,a[e]);c.onload=()=>{if(c.status>=200&&c.status<300){let e={};try{e="string"==typeof c.response?JSON.parse(c.response):{},e=e&&e.data?e.data:e}catch(t){e={}}let t=e.hasOwnProperty("url")?e.url:`${c.responseURL}/${i}`;t&&"/"===t[0]&&(t=`${n}${t}`),u({url:t,data:e})}else d(c.response||"Unable to upload file")},c.onerror=()=>d(c),c.onabort=()=>d(c);let f=n+(n.indexOf("?")>-1?"&":"?");for(const e in r)f+=`${e}=${r[e]}&`;"&"===f[f.length-1]&&(f=f.substr(0,f.length-1)),c.open("POST",f),h&&c.setRequestHeader("Content-Type","application/json");const m=e.getToken();m&&c.setRequestHeader("x-jwt-token",m),s&&t(s,c),c.send(h?a:p)}));return{title:"Url",name:"url",uploadFile(t,i,r,a,s,o,l,u,d,c){const h=function(u){return n(s,i,{baseUrl:encodeURIComponent(e.projectUrl),project:u?u.project:"",form:u?u._id:""},{[l]:t,name:i,dir:r},o,a,c).then((n=>(n.data=n.data||{},n.data.baseUrl=e.projectUrl,n.data.project=u?u.project:"",n.data.form=u?u._id:"",{storage:"url",name:i,url:n.url,size:t.size,type:t.type,data:n.data})))};return t.private&&e.formId?e.loadForm().then((e=>h(e))):h()},deleteFile:(e,n)=>new Promise(((i,r)=>{const a=new XMLHttpRequest;a.open("DELETE",e.url,!0),a.onload=()=>{a.status>=200&&a.status<300?i("File deleted"):r(a.response||"Unable to delete file")},n&&t(n,a),a.send(null)})),downloadFile:t=>t.private?(e.submissionId&&t.data&&(t.data.submission=e.submissionId),n(t.url,t.name,{},JSON.stringify(t)).then((e=>e.data))):Promise.resolve(t)}}Object.defineProperty(t,"__esModule",{value:!0}),n.title="Url",t.default=n},63605:e=>{e.exports=function(e){return this.__data__.get(e)}},63691:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96877));class a extends r.default{static schema(){return{type:"custom",key:"custom",protected:!1,persistent:!0}}static get builderInfo(){return{title:"Custom",icon:"cubes",group:"premium",documentation:"/userguide/form-building/premium-components#custom",weight:120,schema:a.schema()}}get defaultSchema(){return a.schema()}}t.default=a},63696:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(3577)),a=i(n(2543));class s extends r.default{static get operatorKey(){return"lessThan"}static get displayedName(){return"Less Than"}execute({value:e,comparedValue:t}){return a.default.isNumber(e)&&e{e.exports=function(){this.__data__=[],this.size=0}},63862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},63900:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const l=o(n(38034)),u=n(7590);function d(e){return{uploadFile(t,i,r,o,d,c,h,p,f,m,g){return s(this,void 0,void 0,(function*(){const d=yield l.default.upload(e,"s3",((e,o,d)=>s(this,void 0,void 0,(function*(){if(o.data.fileName=i,o.data.key=l.default.path([o.data.key,r,i]),!o.signed){const n=new FormData;for(const e in o.data)n.append(e,o.data[e]);return n.append("file",t),e.openAndSetHeaders("POST",o.url),n}if(!g||!Array.isArray(o.signed))return e.openAndSetHeaders("PUT",o.signed),e.setRequestHeader("Content-Type",t.type),o.data.headers&&Object.keys(o.data.headers).forEach((t=>{e.setRequestHeader(t,o.data.headers[t])})),t;{yield s(void 0,void 0,void 0,(function*(){"undefined"==typeof AbortController&&(yield Promise.resolve().then((()=>a(n(24715)))))}));const e=new AbortController,i=e.signal;"function"==typeof d&&d((()=>e.abort()));try{const e=yield this.uploadParts(t,o.signed,o.data.headers,o.partSizeActual,g,i);return void(yield(0,u.withRetries)(this.completeMultipartUpload,[o,e,g],3))}catch(t){throw e.abort(),this.abortMultipartUpload(o),t}}}))),t,i,r,o,p,f,m,g);return{storage:"s3",name:i,bucket:d.bucket,key:d.data.key,url:l.default.path([d.url,d.data.key]),acl:d.data.acl,size:t.size,type:t.type}}))},completeMultipartUpload(t,n,i){return s(this,void 0,void 0,(function*(){const{changeMessage:r}=i;r("Completing AWS S3 multipart upload...");const a=e.getToken(),s=yield fetch(`${e.formUrl}/storage/s3/multipart/complete`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},a?{"x-jwt-token":a}:{}),body:JSON.stringify({parts:n,uploadId:t.uploadId,key:t.key})}),o=yield s.text();if(!s.ok)throw new Error(o);if(o.match(/Error/))throw new Error(o)}))},abortMultipartUpload(t){const{uploadId:n,key:i}=t,r=e.getToken();fetch(`${e.formUrl}/storage/s3/multipart/abort`,{method:"POST",headers:Object.assign({"Content-Type":"application/json"},r?{"x-jwt-token":r}:{}),body:JSON.stringify({uploadId:n,key:i})}).catch((e=>console.error("Error while aborting multipart upload:",e)))},uploadParts(e,t,n,i,r,a){const{changeMessage:s,progressCallback:o}=r;s("Chunking and uploading parts to AWS S3...");const l=[];for(let r=0;r{if(e.ok){o(t.length);const n=e.headers.get("etag");if(!n)throw new Error("ETag header not found; it must be exposed in S3 bucket CORS settings");return{ETag:n,PartNumber:r+1}}throw new Error(`Part no ${r} failed with status ${e.status}`)}));l.push(c)}return Promise.all(l)},downloadFile:t=>"public-read"!==t.acl?e.makeRequest("file",`${e.formUrl}/storage/s3?bucket=${l.default.trim(t.bucket)}&key=${l.default.trim(t.key)}`,"GET"):Promise.resolve(t),deleteFile(t){const n=`${e.formUrl}/storage/s3?bucket=${l.default.trim(t.bucket)}&key=${l.default.trim(t.key)}`;return e.makeRequest("",n,"delete")}}}d.title="S3",t.default=d},63912:(e,t,n)=>{var i=n(61074),r=n(49698),a=n(42054);e.exports=function(e){return r(e)?a(e):i(e)}},63983:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(41767)),a=i(n(2543));class s extends r.default{static schema(...e){return r.default.schema({type:"phoneNumber",label:"Phone Number",key:"phoneNumber",inputType:"tel",inputMask:"(999) 999-9999",inputMode:"decimal",displayMask:""},...e)}static get builderInfo(){return{title:"Phone Number",group:"advanced",icon:"phone-square",weight:30,documentation:"/userguide/form-building/advanced-components#phone-number",schema:s.schema()}}get defaultSchema(){return s.schema()}getValueAsString(e,t){return(null==t?void 0:t.email)&&this.visible&&!this.skipInEmail&&a.default.isObject(e)?`\n \n \n \n \n \n \n \n
    ${e.maskName}${e.value}
    \n `:super.getValueAsString(e,t)}}t.default=s},64051:function(e,t,n){!function(e){"use strict";e.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},64117:e=>{"use strict";e.exports=function(e){return null==e}},64142:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=i(n(28042)),s=i(n(57692)),o=i(n(42913));class l{static addBuilder(e,t){l.builders[e]=t}static addBuilders(e){l.builders=r.default.merge(l.builders,e)}static getBuilder(e){return l.builders[e]}static getBuilders(){return l.builders}}l.builders={pdf:a.default,webform:s.default,wizard:o.default},t.default=l},64226:function(e,t,n){!function(e){"use strict";e.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(e){var t="";return e>20?t=40===e||50===e||60===e||80===e||100===e?"fed":"ain":e>0&&(t=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][e]),e+t},week:{dow:1,doy:4}})}(n(95093))},64283:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeProcessInfo=t.normalizeProcessSync=t.normalizeProcess=void 0;const a=n(2543),s=r(n(74353)),o=r(n(90445));s.default.extend(o.default);const l=(e,t)=>{if((0,a.isNil)(t))return;if((0,a.isObject)(t)&&0===Object.keys(t).length)return t;const n=e.dataType||"auto",i={value:t,number(){const e=Number(this.value),n=t.toString()===e.toString();return!Number.isNaN(e)&&Number.isFinite(e)&&""!==t&&n&&(this.value=e),this},boolean(){return!(0,a.isString)(this.value)||"true"!==this.value.toLowerCase()&&"false"!==this.value.toLowerCase()||(this.value="true"===this.value.toLowerCase()),this},string(){return this.value=String(this.value),this},object(){return this},auto(){return(0,a.isObject)(this.value)?this.value=this.object().value:this.value=this.string().number().boolean().value,this}};try{return i[n]().value}catch(e){return console.warn("Failed to normalize value",e),t}},u=(e,t,n,i)=>{if(e.inputMasks&&e.inputMasks.length>0){if(!n||"object"!=typeof n)return{value:n,maskName:e.inputMasks[0].label};if(!n.value){const e=null==t?void 0:t.find((e=>e.path===i));n.value=Array.isArray(e)&&e.length>0?e[0]:e}}return n},d=(e,t)=>!isNaN(parseFloat(t))&&isFinite(t)?+t:t;t.normalizeProcess=e=>i(void 0,void 0,void 0,(function*(){return(0,t.normalizeProcessSync)(e)})),t.normalizeProcessSync=e=>{const{component:t,form:n,scope:i,path:r,data:o,value:c}=e;i.normalize||(i.normalize={});const{defaultValues:h}=i;i.normalize[r]={type:t.type,normalized:!1},(e=>"address"===e.type)(t)?((0,a.set)(o,r,((e,t)=>!e.multiple&&Boolean(e.enableManualMode)&&t&&!t.mode?{mode:"autocomplete",address:t}:t)(t,c)),i.normalize[r].normalized=!0):(e=>"day"===e.type)(t)?((0,a.set)(o,r,((e,t,n)=>{const i=((e,t)=>{var n;return e.useLocaleSettings?((e="en")=>{const t={},n=new Date(2017,11,21).toLocaleDateString(e);return t.dayFirst=n.slice(0,2)===21..toString(),t})(null===(n=t.options)||void 0===n?void 0:n.language).dayFirst:e.dayFirst})(e,t),r=!(0,a.get)(e,"fields.day.hide",!1),s=!(0,a.get)(e,"fields.month.hide",!1),o=!(0,a.get)(e,"fields.year.hide",!1);if(!n||/^\d{2}\/\d{2}\/\d{4}$/.test(n))return n;const l=[],u=n.split("/"),[d,c,h]=e.dayFirst?[0,1,2]:[1,0,2],p=e.defaultValue?e.defaultValue.split("/"):"";let f="",m="",g="";const v=t=>{let n,i,l;return[n,i,l]=e.dayFirst?[0,1,2]:[1,0,2],r||(i=0===i?0:i-1,l-=1,n=null),s||((0,a.isNull)(n)||(n=0===n?0:n-1),l-=1,i=null),o||(l=null),{month:(0,a.isNull)(i)?"":t[i],day:(0,a.isNull)(n)?"":t[n],year:(0,a.isNull)(l)?"":t[l]}},y=(e,t)=>{const n=e?u.shift():t;""!==n&&l.push(n)};if(p){const e=3!==p.length;f=e?v(p).day:p[d],m=e?v(p).month:p[c],g=e?v(p).year:p[h]}return i&&y(r,f),y(s,m),i||y(r,f),y(o,g),l.join("/")})(t,n,c)),i.normalize[r].normalized=!0):(e=>"email"===e.type)(t)?c&&"string"==typeof c&&((0,a.set)(o,r,c.toLowerCase()),i.normalize[r].normalized=!0):(e=>"radio"===e.type)(t)?((0,a.set)(o,r,((e,t)=>{switch(t){case"number":return+e;case"string":return"object"==typeof e?JSON.stringify(e):String(e);case"boolean":return!(!e||"false"===e.toString())}const n=(0,a.toString)(e)===Number(e).toString();return!isNaN(parseFloat(e))&&isFinite(e)&&n?+e:"true"===e||"false"!==e&&e})(c,t.dataType)),i.normalize[r].normalized=!0):(e=>"select"===e.type)(t)?((0,a.set)(o,r,((e,t)=>e.multiple&&Array.isArray(t)?t.map((t=>l(e,t))):l(e,t))(t,c)),i.normalize[r].normalized=!0):(e=>"selectboxes"===e.type)(t)?((0,a.set)(o,r,(e=>(e||(e={}),"object"!=typeof e?"string"==typeof e?{[e]:!0}:{}:Array.isArray(e)?e.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t]:!0})),{}):e))(c)),i.normalize[r].normalized=!0):(e=>"tags"===e.type)(t)?((0,a.set)(o,r,((e,t)=>{const n=e.delimeter||",";return e.hasOwnProperty("storeas")&&"string"!==e.storeas||!Array.isArray(t)?"array"===e.storeas&&"string"==typeof t?t.split(n).filter((e=>e)):t:t.join(n)})(t,c)),i.normalize[r].normalized=!0):(e=>"textfield"===e.type)(t)?((0,a.set)(o,r,((e,t,n,i)=>(e.truncateMultipleSpaces&&"string"==typeof n&&(n=n.trim().replace(/\s{2,}/g," ")),e.allowMultipleMasks&&e.inputMasks&&e.inputMasks.length>0?Array.isArray(n)?n.map((n=>u(e,t,n,i))):u(e,t,n,i):n))(t,h,c,r)),i.normalize[r].normalized=!0):(e=>"time"===e.type)(t)?((0,a.set)(o,r,((e,t)=>{const n="HH:mm";return(0,s.default)(t,e.format||n,!0).isValid()?(0,s.default)(t,e.format||n,!0).format(e.dataFormat||"HH:mm:ss"):t})(t,c)),i.normalize[r].normalized=!0):(e=>"number"===e.type)(t)&&((0,a.set)(o,r,((e,t)=>e.multiple&&Array.isArray(t)?t.map((e=>d(0,e))):d(0,t))(t,c)),i.normalize[r].normalized=!0),t.multiple&&!Array.isArray(c)&&((0,a.set)(o,r,c?[c]:[]),i.normalize[r].normalized=!0)},t.normalizeProcessInfo={name:"normalize",shouldProcess:()=>!0,process:t.normalizeProcess,processSync:t.normalizeProcessSync}},64480:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(96690),a=i(n(89480)),s=n(2543);class o extends a.default{static get operatorKey(){return"isEqual"}static get displayedName(){return"Is Equal To"}execute({value:e,comparedValue:t,conditionComponent:n}){if("selectboxes"===(null==n?void 0:n.type))return(0,s.get)(e,t,!1);if(e&&t&&typeof e!=typeof t&&(0,s.isString)(t))try{t=JSON.parse(t)}catch(e){}return n&&(0,r.isSelectResourceWithObjectValue)(n)&&n.template?(0,r.compareSelectResourceWithObjectTypeValues)(e,t,n):(0,s.isEqual)(e,t)}}t.default=o},64652:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.NestedComponent=void 0;const r=n(13614),a=n(43603),s=n(74418);function o(e={}){return e.type||(e.type="nested"),e.model||(e.model=s.NestedModel),e.factory||(e.factory=r.Components),function(t){return class extends((0,a.Component)(e)(t)){get defaultTemplate(){return e=>`
    ${e.instance.renderComponents()}
    `}attach(e){const t=Object.create(null,{attach:{get:()=>super.attach}});return i(this,void 0,void 0,(function*(){if(yield t.attach.call(this,e),this.element){const e=[],t=this.element.querySelectorAll(`[data-within="${this.id}"]`);Array.prototype.slice.call(t).forEach(((t,n)=>{e.push(this.components[n].attach(t))})),yield Promise.all(e)}return this}))}detach(){super.detach(),this.eachComponent((e=>e.detach()))}renderComponents(){return this.components.reduce(((e,t)=>e+t.render().replace(/(<[^\>]+)/,`$1 data-within="${this.id}"`)),"")}}}}t.NestedComponent=o,r.Components.addDecorator(o,"nested"),r.Components.addComponent(o()(),"nested")},64894:(e,t,n)=>{var i=n(1882),r=n(30294);e.exports=function(e){return null!=e&&r(e.length)&&!i(e)}},65012:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},65063:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n \n ",e.component.header&&e.component.header.length>0&&(n+="\n \n \n ",e.component.header.forEach((function(i){n+="\n \n "})),n+="\n \n \n "),n+="\n \n ",e.tableComponents.forEach((function(i,r){n+='\n \n ',i.forEach((function(i,a){n+='\n \n "})),n+="\n \n
    '+(null==(t=e.t(e.component.label))?"":t)+"
    "+(null==(t=e.t(i))?"":t)+"
    \n "})),n+="\n
    \n"}},65069:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n '+(null==(t=i.hideLabel?"":e.t(i.label||i.title,{_userInput:!0}))?"":t)+"\n ",i.tooltip&&(n+=' '),n+="\n \n "})),n+="\n ",e.hasExtraColumn&&(n+='\n \n "),n+="\n \n \n "),n+='\n \n ',e.rows.forEach((function(i,r){n+="\n ",e.hasGroups&&e.groups[r]&&(n+='\n \n '+(null==(t=e.groups[r].label)?"":t)+"\n \n "),n+='\n \n ',e.component.reorder&&(n+='\n \n '),n+="\n ",e.columns.forEach((function(r){n+='\n \n "})),n+="\n ",e.hasExtraColumn&&(n+="\n ",e.hasRemoveButtons&&(n+='\n \n '),n+="\n ",e.canAddColumn&&(n+='\n \n "),n+="\n "),n+="\n \n "})),n+="\n \n ",!e.builder&&e.hasAddButton&&e.hasBottomSubmit&&(n+='\n \n \n \n \n \n "),n+="\n
    \n '+(null==(t=e.t("Add/Remove"))?"":t)+"\n ",!e.builder&&e.hasAddButton&&e.hasTopSubmit&&(n+='\n \n "),n+="\n
    \n \n \n "+(null==(t=i[r.key])?"":t)+"\n \n \n \n '+(null==(t=e.placeholder)?"":t)+"\n
    \n \n
    \n"}},65360:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.hideChildrenProcessorInfo=t.hideChildrenProcessorAsync=t.hideChildrenProcessor=void 0;const r=n(84679),a=n(96690);t.hideChildrenProcessor=e=>{var t,n;const{component:i,path:s,parent:o,scope:l}=e,u=(0,a.getComponentAbsolutePath)(i)||s,d=null===(t=l.conditionals)||void 0===t?void 0:t.find((e=>u===e.path&&e.conditionallyHidden));l.conditionals||(l.conditionals=[]),(d||i.hidden||(null===(n=null==o?void 0:o.ephermalState)||void 0===n?void 0:n.conditionallyHidden))&&(0,r.registerEphermalState)(i,"conditionallyHidden",!0)},t.hideChildrenProcessorAsync=e=>i(void 0,void 0,void 0,(function*(){return(0,t.hideChildrenProcessor)(e)})),t.hideChildrenProcessorInfo={name:"hideChildren",shouldProcess:()=>!0,processSync:t.hideChildrenProcessor,process:t.hideChildrenProcessorAsync}},65543:function(e,t,n){!function(e){"use strict";e.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}})}(n(95093))},66024:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"select",label:"Input Format",key:"inputFormat",weight:105,placeholder:"Input Format",tooltip:"Force the output of this field to be sanitized in a specific format.",template:"{{ item.label }}",data:{values:[{value:"plain",label:"Plain"},{value:"html",label:"HTML"},{value:"raw",label:"Raw (Insecure)"}]},defaultValue:"plain",input:!0},{weight:200,type:"radio",label:"Text Case",key:"case",tooltip:"When data is entered, you can change the case of the value.",input:!0,values:[{value:"mixed",label:"Mixed (Allow upper and lower case)"},{value:"uppercase",label:"Uppercase"},{value:"lowercase",label:"Lowercase"}]},{weight:205,type:"checkbox",input:!0,key:"truncateMultipleSpaces",label:"Truncate Multiple Spaces"}]},66055:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
    '+(null==(t=e.t(e.component.title,{_userInput:!0}))?"":t)+"
    \n"}},66119:(e,t,n)=>{"use strict";var i=n(25745),r=n(33392),a=i("keys");e.exports=function(e){return a[e]||(a[e]=r(e))}},66245:(e,t,n)=>{var i=n(83915),r=n(83120),a=n(69302),s=n(83693),o=a((function(e,t){return s(e)?i(e,r(t,1,s,!0)):[]}));e.exports=o},66323:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"validateOn",ignore:!0},{key:"unique",ignore:!0},{weight:52,type:"checkbox",label:"Allow only available values",tooltip:"Check this if you would like to perform a validation check to ensure the selected value is an available option.",key:"validate.onlyAvailableItems",input:!0}]},66387:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(41767)),a=i(n(2543));class s extends r.default{static schema(...e){return r.default.schema({type:"password",label:"Password",key:"password",protected:!0,tableView:!1},...e)}static get builderInfo(){return{title:"Password",icon:"asterisk",group:"basic",documentation:"/userguide/form-building/form-components#password",weight:40,schema:s.schema()}}get defaultSchema(){return a.default.omit(s.schema(),["protected","tableView"])}get inputInfo(){const e=super.inputInfo;return e.attr.type="password",e}get autocompleteDisableAttrName(){return"new-password"}}t.default=s},66427:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(78940));class a extends r.default{static get operatorKey(){return"isNotEmpty"}static get displayedName(){return"Is Not Empty"}getResult(e){return!super.getResult(e)}}t.default=a},66529:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
    \n\t\n\t\t\n\t\n\t\n\t\t\n\t\n
    \n '+(null==(t=e.submitButton)?"":t)+"\n
    \n"}},66543:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"checkbox",input:!0,key:"enableTime",label:"Enable Time Input",tooltip:"Enables time input for this field.",weight:0},{type:"number",input:!0,key:"timePicker.hourStep",label:"Hour Step Size",tooltip:"The number of hours to increment/decrement in the time picker.",weight:10},{type:"number",input:!0,key:"timePicker.minuteStep",label:"Minute Step Size",tooltip:"The number of minutes to increment/decrement in the time picker.",weight:20},{type:"checkbox",input:!0,key:"timePicker.showMeridian",label:"12 Hour Time (AM/PM)",tooltip:"Display time in 12 hour time with AM/PM.",weight:30}]},66584:function(e,t,n){!function(e){"use strict";e.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},66655:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.label.hidden||"bottom"===e.label.labelPosition||(n+="\n "+(null==(t=e.labelMarkup)?"":t)+"\n"),n+="\n\n",e.label.hidden&&e.label.className&&e.component.validate.required&&(n+='\n \n'),n+="\n\n"+(null==(t=e.element)?"":t)+"\n\n",e.label.hidden||"bottom"!==e.label.labelPosition||(n+="\n "+(null==(t=e.labelMarkup)?"":t)+"\n"),n+="\n",e.component.description&&(n+='\n
    '+(null==(t=e.t(e.component.description,{_userInput:!0}))?"":t)+"
    \n"),n+"\n"}},66671:()=>{},66690:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n ',["left","top"].includes(e.component.optionsLabelPosition)&&(n+='\n \n "),n+="\n <"+(null==(t=e.input.type)?"":t)+'\n ref="input"\n ',e.input.attr)n+="\n "+(null==(t=a)?"":t)+'="'+(null==(t=e.input.attr[a])?"":t)+'"\n ';n+='\n value="'+(null==(t=i.value)?"":t)+'"\n ',e.value&&(e.value===i.value||"object"==typeof e.value&&e.value.hasOwnProperty(i.value)&&e.value[i.value])&&(n+="\n checked=true\n "),n+="\n ",i.disabled&&(n+="\n disabled=true\n "),n+='\n id="'+(null==(t=e.instance.root&&e.instance.root.id)?"":t)+"-"+(null==(t=e.id)?"":t)+"-"+(null==(t=e.row)?"":t)+"-"+(null==(t="object"==typeof i.value?i.value+"-"+r:i.value)?"":t)+'"\n role="'+(null==(t="selectboxes"===e.component.type?"checkbox":"radio")?"":t)+'"\n >\n ',e.component.optionsLabelPosition&&!["right","bottom"].includes(e.component.optionsLabelPosition)||(n+='\n \n "),n+="\n \n "})),n+="\n\n"}},66699:(e,t,n)=>{"use strict";var i=n(43724),r=n(24913),a=n(6980);e.exports=i?function(e,t,n){return r.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},66721:(e,t,n)=>{var i=n(81042),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(t,e)?t[e]:void 0}},66909:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(22461),r=n(71702);t.default={form:i.default,html:r.default}},66995:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},67002:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"customComponentDescription",label:"Custom component description",input:!1,tag:"p",content:'Custom components can be used to render special fields or widgets inside your app. For information on how to display in an app, see custom component documentation.',type:"htmlelement",weight:5},{type:"textarea",as:"json",editor:"ace",weight:10,input:!0,key:"componentJson",label:"Custom Element JSON",tooltip:"Enter the JSON for this custom element."}]},67098:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.populateProcessInfo=t.populateProcessSync=void 0;const i=n(2543),r=n(96690);t.populateProcessSync=e=>{const{component:t,path:n,scope:a}=e,{data:s}=a,o=(0,r.componentPath)(t,(0,r.getContextualRowPath)(t,n)),l=(0,i.get)(s,o);switch(a.populated||(a.populated=[]),(0,r.getModelType)(t)){case"nestedArray":l&&l.length||((0,i.set)(s,o,[{}]),a.row=(0,i.get)(s,o)[0],a.populated.push({path:n,row:(0,i.get)(s,o)[0]}));break;case"dataObject":case"object":l&&"object"==typeof l||((0,i.set)(s,o,{}),a.row=(0,i.get)(s,o),a.populated.push({path:n,row:(0,i.get)(s,o)}))}},t.populateProcessInfo={name:"populate",shouldProcess:()=>!0,processSync:t.populateProcessSync}},67100:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(30713),t),r(n(47102),t)},67166:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543));class a{static addLicense(e,t){a.licenses[e]=t}static getLicense(e){return a.licenses[e]}static removeLicense(e){r.default.unset(a.licenses,e)}static getLicenses(){return a.licenses}}a.licenses={},t.default=a},67197:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},67262:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+''+(null==(t=e.content)?"":t)+"\n"}},67400:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},67483:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),a=i(n(93794)),s=i(n(87378)),o=i(n(97625));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:s.default},{key:"data",components:a.default},{key:"validation",components:o.default}],...e)}},67750:(e,t,n)=>{"use strict";var i=n(64117),r=TypeError;e.exports=function(e){if(i(e))throw new r("Can't call method on "+e);return e}},68090:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},68195:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(51707);t.default={form:i.default}},68223:(e,t,n)=>{var i=n(56110)(n(9325),"Map");e.exports=i},68905:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(17389));class a extends r.default{static schema(...e){return r.default.schema({type:"hidden",tableView:!1,inputType:"hidden"},...e)}static get builderInfo(){return{title:"Hidden",group:"data",icon:"user-secret",weight:0,documentation:"/userguide/form-building/data-components#hidden",showPreview:!1,schema:a.schema()}}get defaultSchema(){return a.schema()}get inputInfo(){const e=super.elementInfo();return e.type="input",e.attr.type="hidden",e.changeEvent="change",e}get skipInEmail(){return!0}validateMultiple(){return!1}labelIsHidden(){return!0}get emptyValue(){return""}setValue(e,t={}){return this.updateValue(e,t)}getValue(){return this.dataValue}}t.default=a},68969:(e,t,n)=>{var i=n(47422),r=n(25160);e.exports=function(e,t){return t.length<2?e:i(e,r(t,0,-1))}},68991:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(94259)),a=i(n(7318)),s=i(n(48949));t.default=function(...e){return(0,r.default)([{key:"display",components:a.default},{key:"validation",components:s.default}],...e)}},69295:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(75359);t.default={form:i.default}},69302:(e,t,n)=>{var i=n(83488),r=n(56757),a=n(32865);e.exports=function(e,t){return a(r(e,t,i),e+"")}},69330:function(e,t,n){!function(e){"use strict";e.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(e,t){var n=1===e?"r":2===e?"n":3===e?"r":4===e?"t":"è";return"w"!==t&&"W"!==t||(n="a"),e+n},week:{dow:1,doy:4}})}(n(95093))},69354:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.component.columns.forEach((function(i,r){n+='\n
    \n '+(null==(t=e.columnComponents[r])?"":t)+"\n
    \n"})),n}},69532:function(e,t,n){!function(e){"use strict";var t={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(e,t,n){return n?t%10==1&&t%100!=11?e[2]:e[3]:t%10==1&&t%100!=11?e[0]:e[1]}function i(e,i,r){return e+" "+n(t[r],e,i)}function r(e,i,r){return n(t[r],e,i)}e.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(e,t){return t?"dažas sekundes":"dažām sekundēm"},ss:i,m:r,mm:i,h:r,hh:i,d:r,dd:i,M:r,MM:i,y:r,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},69565:(e,t,n)=>{"use strict";var i=n(40616),r=Function.prototype.call;e.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},69619:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(60612);t.default={framework:"bootstrap5",templates:{bootstrap5:i.default}}},69628:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=i(n(90177)),s=i(n(97567)),o=i(n(4212));class l{static addDisplay(e,t){l.displays[e]=t}static addDisplays(e){l.displays=r.default.merge(l.displays,e)}static getDisplay(e){return l.displays[e]}static getDisplays(){return l.displays}}l.displays={pdf:a.default,webform:s.default,wizard:o.default},t.default=l},69910:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.evaluationRules=void 0;const i=n(20734),r=n(17612);t.evaluationRules=[i.validateCustomInfo,r.validateAvailableItemsInfo]},69922:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"hideLabel",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0},{key:"label",hidden:!0,calculateValue:e=>e.data.legend},{weight:1,type:"textfield",input:!0,key:"legend",label:"Legend",placeholder:"Legend",tooltip:"The legend for this Fieldset."}]},70080:(e,t,n)=>{var i=n(26025),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=i(t,e);return!(n<0||(n==t.length-1?t.pop():r.call(t,n,1),--this.size,0))}},70081:(e,t,n)=>{"use strict";var i=n(69565),r=n(79306),a=n(28551),s=n(16823),o=n(50851),l=TypeError;e.exports=function(e,t){var n=arguments.length<2?o(e):t;if(r(n))return a(i(n,e));throw new l(s(e)+" is not iterable")}},70103:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=(e,t)=>(n,i)=>new Promise(((r,a)=>{const s=new XMLHttpRequest;s.onerror=e=>{e.networkError=!0,a(e)},s.onabort=e=>{e.networkError=!0,a(e)},s.onload=()=>{if(s.status>=200&&s.status<300){const e=s.getResponseHeader("Content-Type")||n.type;r(new File([s.response],n.name,{type:e}))}else a(s.response||"Unable to process file")},s.onabort=a,s.open("POST",t.url);const o=e.getToken();o&&s.setRequestHeader("x-jwt-token",o),s.responseType="arraybuffer";const l=new FormData;l.append("file",n),l.append("processorOptions",JSON.stringify(t.options||{})),l.append("options",JSON.stringify(i||{})),s.send(l)}))},70202:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"select",input:!0,key:"displayInTimezone",label:"Display in Timezone",tooltip:"This will display the captured date time in the select timezone.",weight:30,defaultValue:"viewer",dataSrc:"values",data:{values:[{label:"of Viewer",value:"viewer"},{label:"of Submission",value:"submission"},{label:"of Location",value:"location"},{label:"UTC",value:"utc"}]}},{type:"select",input:!0,key:"timezone",label:"Select Timezone",tooltip:"Select the timezone you wish to display this Date",weight:31,lazyLoad:!0,defaultValue:"",valueProperty:"name",dataSrc:"url",data:{url:"{{options.cdnUrl}}/timezones.json"},template:"{{ item.label }}",conditional:{json:{"===":[{var:"data.displayInTimezone"},"location"]}}},{type:"checkbox",input:!0,key:"useLocaleSettings",label:"Use Locale Settings",tooltip:"Use locale settings to display date and time.",weight:51},{type:"checkbox",input:!0,key:"allowInput",label:"Allow Manual Input",tooltip:"Check this if you would like to allow the user to manually enter in the date.",weight:51},{type:"textfield",input:!0,key:"format",label:"Format",placeholder:"Format",description:'Use formats provided by DateParser Codes',tooltip:"The date format for displaying the datetime value.",weight:52},{type:"editgrid",input:!0,key:"shortcutButtons",label:"Shortcut Buttons",description:"You can specify few buttons which will be shown above the calendar. Use Label to specify the name of the button and onClick to specify which date/time will be set when user clicks the button. E.g, date = new Date()",templates:{header:'
    \n
    Label
    \n
    onClick
    \n
    ',row:'
    \n
    \n {{ flattenedComponents.label.getView(row.label) }}\n
    \n
    \n {{ flattenedComponents.onClick.getView(row.onClick) }}\n
    \n {% if (!instance.disabled) { %}\n
    \n
    \n \n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n \n {% } %}\n
    \n
    \n {% } %}\n
    '},components:[{label:"Label",key:"label",type:"textfield",input:!0,validate:{required:!0}},{label:"onClick",key:"onClick",type:"textarea",editor:"ace",input:!0,validate:{required:!0}}],defaultValue:[]}]},70217:function(e,t,n){!function(e){"use strict";e.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(e){return e+(1===e?"d":e%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(95093))},70678:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Evaluator=t.BaseEvaluator=void 0;const i=n(2543);class r{static evaluator(e,...t){return a.noeval?(console.warn("No evaluations allowed for this renderer."),i.noop):"function"==typeof e?e:("object"==typeof t[0]&&(t=(0,i.keys)(t[0])),new Function(...t,e))}static interpolateString(e,t,n={}){return e?"string"!=typeof e?e.toString():e.replace(/({{\s*(.*?)\s*}})/g,((e,r,s)=>{if(-1===s.indexOf("(")||a.noeval||n.noeval){let e=s;-1!==s.indexOf("?")&&(e=s.replace(/\?\./g,"."));const r=e.split("||").map((e=>e.trim()));let a="",o="";for(let e=0;e{r=(0,i.trim)(r);const o=(0,i.get)(t,r);return o?(s&&(s=s.split(",").map((e=>0===(e=(0,i.trim)(e)).indexOf('"')||0===e.indexOf("'")?e.substring(1,e.length-1):(0,i.get)(t,e)))),a.evaluate(o,s,"",!1,t,n)):""}))})):""}static interpolate(e,t,n={}){if("function"==typeof e&&!a.noeval&&!n.noeval)try{return e(t)}catch(e){return console.warn("Error interpolating template",e,t),e.message}return a.interpolateString(String(e),t,n)}static evaluate(e,t={},n="",s=!1,o={},l={}){let u=null;l=(0,i.isObject)(l)?l:{noeval:l};const d=t.component?t.component:{key:"unknown"};!t.form&&t.instance&&(t.form=(0,i.get)(t.instance,"root._form",{}));const c=d.key;if("string"==typeof e){n&&(e=`var ${n};${e};return ${n}`),s&&(e=r.interpolate(e,t,l));try{e=a.noeval||l.noeval?i.noop:a.evaluator(e,t,o),t=(0,i.values)(t)}catch(t){console.warn(`An error occured within the custom function for ${c}`,t),u=null,e=!1}}if("function"==typeof e)try{u=a.execute(e,t,o,l)}catch(e){u=null,console.warn(`An error occured within custom function for ${c}`,e)}else e&&console.warn(`Unknown function type for ${c}`);return u}static execute(e,t,n={},r={}){if(r=(0,i.isObject)(r)?r:{noeval:r},!a.noeval&&!r.noeval)return Array.isArray(t)?e.apply(n,t):e.call(n,t);console.warn("No evaluations allowed for this renderer.")}}t.BaseEvaluator=r,r.templateSettings={interpolate:/{{([\s\S]+?)}}/g,evaluate:/\{%([\s\S]+?)%\}/g,escape:/\{\{\{([\s\S]+?)\}\}\}/g},r.noeval=!1;class a extends r{static registerEvaluator(e){Object.keys(e).forEach((t=>{a[t]=e[t]}))}}t.Evaluator=a},70695:(e,t,n)=>{var i=n(78096),r=n(72428),a=n(56449),s=n(3656),o=n(30361),l=n(37167),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=a(e),d=!n&&r(e),c=!n&&!d&&s(e),h=!n&&!d&&!c&&l(e),p=n||d||c||h,f=p?i(e.length,String):[],m=f.length;for(var g in e)!t&&!u.call(e,g)||p&&("length"==g||c&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||o(g,m))||f.push(g);return f}},71059:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(54924),t),r(n(33129),t),r(n(22267),t),r(n(82999),t),r(n(10085),t),r(n(82669),t),r(n(79197),t),r(n(55836),t),r(n(13253),t),r(n(8404),t),r(n(8053),t),r(n(80067),t),r(n(45468),t)},71072:(e,t,n)=>{"use strict";var i=n(61828),r=n(88727);e.exports=Object.keys||function(e){return i(e,r)}},71394:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(14728));class a extends r.default{static get operatorKey(){return"isNotDateEqual"}static get displayedName(){return"Is Not Equal To"}execute(e){return!super.execute(e,"isSame")}}t.default=a},71397:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=i(n(71961)),s=n(34600);class o extends a.default{static schema(...e){return a.default.schema({type:"survey",label:"Survey",key:"survey",questions:[],values:[]},...e)}static get builderInfo(){return{title:"Survey",group:"advanced",icon:"list",weight:110,documentation:"/userguide/form-building/advanced-components#survey",schema:o.schema()}}static get serverConditionSettings(){return o.conditionOperatorsSettings}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{operators:["isEmpty","isNotEmpty"]})}static savedValueTypes(e){return(0,s.getComponentSavedTypes)(e)||[s.componentValueTypes.object]}get defaultSchema(){return o.schema()}render(){return super.render(this.renderTemplate("survey"))}attach(e){this.loadRefs(e,{input:"multiple"});const t=super.attach(e);return this.refs.input.forEach((e=>{this.disabled?e.setAttribute("disabled","disabled"):this.addEventListener(e,"change",(()=>this.updateValue(null,{modified:!0})))})),this.setValue(this.dataValue),t}setValue(e,t={}){if(!e)return!1;r.default.each(this.component.questions,(t=>{r.default.each(this.refs.input,(n=>{n.name===this.getInputName(t)&&(n.checked=n.value===e[t.value])}))}));const n=this.updateValue(e,t);return n&&this.isHtmlRenderMode()&&this.redraw(),n}get emptyValue(){return{}}get defaultValue(){const e=super.defaultValue;if(e&&!r.default.isObject(e)&&this.component.values.some((t=>t.value===e))){const t={};return this.component.questions.forEach((n=>{t[n.value]=e})),t}return e}getValue(){if(this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;const e={};return r.default.each(this.component.questions,(t=>{r.default.each(this.refs.input,(n=>{if(n.checked&&n.name===this.getInputName(t))return e[t.value]=n.value,!1}))})),e}set disabled(e){super.disabled=e,r.default.each(this.refs.input,(e=>{e.disabled=!0}))}get disabled(){return super.disabled}validateRequired(e,t){return!(0,s.boolValue)(e)||this.component.questions.reduce(((e,n)=>e&&Boolean(t[n.value])),!0)}getInputName(e){return`${this.options.name}[${e.value}]`}getValueAsString(e,t){if(null==t?void 0:t.email){let t='\n \n \n \n \n \n \n \n \n ';return r.default.forIn(e,((e,n)=>{const i=r.default.find(this.component.questions,["value",n]),a=r.default.find(this.component.values,["value",e]);i&&a&&(t+=`\n \n \n \n \n `)})),t+="
    QuestionValue
    ${i.label}${a.label}
    ",t}if(r.default.isPlainObject(e)){const{values:t=[],questions:n=[]}=this.component;return r.default.isEmpty(e)?"":r.default.map(e,((e,i)=>{const a=r.default.get(r.default.find(t,(t=>r.default.isEqual(t.value,e))),"label",e);return`${r.default.get(r.default.find(n,(e=>r.default.isEqual(e.value,i))),"label",i)}: ${a}`})).join("; ")}return super.getValueAsString(e,t)}}t.default=o},71465:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{weight:50,type:"checkbox",label:"Perform server validation of remote value",tooltip:"Check this if you would like for the server to perform a validation check to ensure the selected value is an available option. This requires a Search query to ensure a record is found.",key:"validate.select",input:!0,conditional:{json:{var:"data.searchField"}}},{weight:52,type:"checkbox",label:"Allow only available values",tooltip:"Check this if you would like to perform a validation check to ensure the selected value is an available option (only for synchronous values).",key:"validate.onlyAvailableItems",input:!0,conditional:{json:{in:[{var:"data.dataSrc"},["values","json","custom","url"]]}}}]},71652:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(33844)),a=i(n(2404)),s=i(n(90179)),o=i(n(66245)),l=i(n(95950)),u=r.default.javaScriptValue("Advanced Next Page","nextPage","nextPage",110,"\n

    You must assign the next variable with the API key of the next page.

    \n

    The global variable data is provided, and allows you to access the data of any form component, by using its API key.

    \n

    Also moment library is available, and allows you to manipulate dates in a convenient way.

    \n
    Example
    next = data.addComment ? 'page3' : 'page4';
    \n","\n

    Submission data is available as JsonLogic variables, with the same api key as your components.

    \n");t.default=[Object.assign(Object.assign({},u),{customConditional(e){let t=!1;if("wizard"===e.instance.options.editForm.display){const{components:n}=e.instance.options.editForm,i=e.instance.options.editComponent;n&&i&&(t=n.some((e=>{const t=(0,o.default)((0,l.default)(e),(0,l.default)(i))||[];return t.push("components"),(0,a.default)((0,s.default)(e,t),(0,s.default)(i,t))})))}return t}})]},71702:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return"\n"}},71766:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(54464);t.default={form:i.default}},71793:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(38034);function r(e){return{uploadFile:(t,n,r,a,s,o,l,u,d,c)=>new Promise(((s,o)=>{const l=new XMLHttpRequest;"function"==typeof a&&(l.upload.onprogress=a),"function"==typeof c&&c((()=>l.abort()));const h=new FormData;h.append("name",n),h.append("dir",r),h.append("file",t),l.onerror=e=>{e.networkError=!0,o(e)},l.onload=()=>{if(l.status>=200&&l.status<300){const e=JSON.parse(l.response);e.storage="googledrive",e.size=t.size,e.type=t.type,e.groupId=d,e.groupPermissions=u,s(e)}else o(l.response||"Unable to upload file")},l.onabort=o,l.open("POST",`${e.formUrl}/storage/gdrive`),(0,i.setXhrHeaders)(e,l);const p=e.getToken();p&&l.setRequestHeader("x-jwt-token",p),l.send(h)})),downloadFile(t){const n=e.getToken();return t.url=`${e.formUrl}/storage/gdrive?fileId=${t.id}&fileName=${t.originalName}${n?`&x-jwt-token=${n}`:""}`,Promise.resolve(t)},deleteFile:function(t){var n="".concat(e.formUrl,`/storage/gdrive?id=${t.id}&name=${t.originalName}`);return e.makeRequest("",n,"delete")}}}r.title="Google Drive",t.default=r},71961:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96877));class a extends r.default{render(e){return this.noField?super.render(e):this.isAdvancedLabel||this.options.condensedMode?super.render(this.renderTemplate("field",Object.assign(Object.assign({},this.getLabelInfo(this.options.condensedMode)),{labelMarkup:this.renderTemplate("label"),element:e}),"align")):super.render(this.renderTemplate("field",{labelMarkup:this.renderTemplate("label"),element:e}))}saveCaretPosition(e,t){var n,i;if((null===(i=null===(n=this.root)||void 0===n?void 0:n.focusedComponent)||void 0===i?void 0:i.path)===this.path)try{this.root.currentSelection={selection:[e.selectionStart,e.selectionEnd],index:t}}catch(e){e instanceof DOMException||console.debug(e)}}}t.default=a},72057:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(73649);t.default={form:i.default}},72264:function(e,t,n){!function(e){"use strict";var t={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};e.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(e){return e.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(95093))},72289:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),a=i(n(27546));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:a.default},{key:"data",ignore:!0},{key:"validation",ignore:!0}],...e)}},72428:(e,t,n)=>{var i=n(27534),r=n(40346),a=Object.prototype,s=a.hasOwnProperty,o=a.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return r(e)&&s.call(e,"callee")&&!o.call(e,"callee")};e.exports=l},72475:function(e,t,n){!function(e){"use strict";e.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(95093))},72552:(e,t,n)=>{var i=n(51873),r=n(659),a=n(59350),s=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?r(e):a(e)}},72652:(e,t,n)=>{"use strict";var i=n(76080),r=n(69565),a=n(28551),s=n(16823),o=n(44209),l=n(26198),u=n(1625),d=n(70081),c=n(50851),h=n(9539),p=TypeError,f=function(e,t){this.stopped=e,this.result=t},m=f.prototype;e.exports=function(e,t,n){var g,v,y,b,_,w,M,k=n&&n.that,S=!(!n||!n.AS_ENTRIES),x=!(!n||!n.IS_RECORD),L=!(!n||!n.IS_ITERATOR),C=!(!n||!n.INTERRUPTED),T=i(t,k),E=function(e){return g&&h(g,"normal",e),new f(!0,e)},A=function(e){return S?(a(e),C?T(e[0],e[1],E):T(e[0],e[1])):C?T(e,E):T(e)};if(x)g=e.iterator;else if(L)g=e;else{if(!(v=c(e)))throw new p(s(e)+" is not iterable");if(o(v)){for(y=0,b=l(e);b>y;y++)if((_=A(e[y]))&&u(m,_))return _;return new f(!1)}g=d(e,v)}for(w=x?e.next:g.next;!(M=r(w,g)).done;){try{_=A(M.value)}catch(e){h(g,"throw",e)}if("object"==typeof _&&_&&u(m,_))return _}return new f(!1)}},72776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(87970);t.default={form:i.default}},72777:(e,t,n)=>{"use strict";var i=n(69565),r=n(20034),a=n(10757),s=n(55966),o=n(84270),l=n(78227),u=TypeError,d=l("toPrimitive");e.exports=function(e,t){if(!r(e)||a(e))return e;var n,l=s(e,d);if(l){if(void 0===t&&(t="default"),n=i(l,e,t),!r(n)||a(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),o(e,t)}},72856:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(14728));class a extends r.default{static get operatorKey(){return"dateLessThanOrEqual"}static get displayedName(){return"Less Than Or Equal To"}execute(e){return super.execute(e,"isSameOrBefore")}}t.default=a},72903:(e,t,n)=>{var i=n(23805),r=n(55527),a=n(90181),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return a(e);var t=r(e),n=[];for(var o in e)("constructor"!=o||!t&&s.call(e,o))&&n.push(o);return n}},72949:(e,t,n)=>{var i=n(12651);e.exports=function(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},73052:function(e,t,n){"use strict";var i=this&&this.__decorate||function(e,t,n,i){var r,a=arguments.length,s=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,i);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(s=(a<3?r(s):a>3?r(t,n,s):r(t,n))||s);return a>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,"__esModule",{value:!0}),t.DataValueComponent=void 0;const r=n(77644),a=n(10728);let s=class extends a.HTML{};t.DataValueComponent=s,t.DataValueComponent=s=i([(0,r.Component)({type:"datavalue",schema:{tag:"span",attrs:[],className:""},template:e=>`<${e.tag} ref="val"${e.attrs}>${e.value()}`})],s)},73170:(e,t,n)=>{var i=n(16547),r=n(31769),a=n(30361),s=n(23805),o=n(77797);e.exports=function(e,t,n,l){if(!s(e))return e;for(var u=-1,d=(t=r(t,e)).length,c=d-1,h=e;null!=h&&++u{var t=/\w*$/;e.exports=function(e){var n=new e.constructor(e.source,t.exec(e));return n.lastIndex=e.lastIndex,n}},73249:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=i(n(71961)),s=i(n(17389)),o=n(34600);class l extends a.default{static schema(...e){return s.default.schema({type:"button",label:"Submit",key:"submit",size:"md",leftIcon:"",rightIcon:"",block:!1,action:"submit",persistent:!1,disableOnInvalid:!1,theme:"primary",dataGridLabel:!0},...e)}static get builderInfo(){return{title:"Button",group:"basic",icon:"stop",documentation:"/userguide/form-building/form-components#button",weight:110,schema:l.schema()}}static savedValueTypes(e){return(0,o.getComponentSavedTypes)(e)||[o.componentValueTypes.boolean]}constructor(e,t,n){super(e,t,n),this.filesUploading=[]}get defaultSchema(){return l.schema()}get inputInfo(){const e=super.elementInfo();return e.type="button",e.attr.type=["submit","saveState"].includes(this.component.action)?"submit":"button",this.component.theme=this.component.theme||"default",e.attr.class=`btn btn-${this.component.theme}`,this.component.size&&(e.attr.class+=` btn-${this.component.size}`),this.component.block&&(e.attr.class+=" btn-block"),this.component.customClass&&(e.attr.class+=` ${this.component.customClass}`),e.content=this.t(this.component.label,{_userInput:!0}),e}get labelInfo(){return{hidden:!0}}set loading(e){this.setLoading(this.refs.button,e)}get skipInEmail(){return!0}createLabel(){}createInput(e){return this.refs.button=super.createInput(e),this.refs.button}get emptyValue(){return!1}getValue(){return this.dataValue}get clicked(){return this.dataValue}get defaultValue(){return!1}get className(){let e=super.className;return e+=` ${this.transform("class","form-group")}`,e}get oauthConfig(){return r.default.has(this,"root.form.config.oauth")&&this.component.oauthProvider?this.root.form.config.oauth[this.component.oauthProvider]:!!this.component.oauth&&this.component.oauth}render(){return(this.viewOnly||this.options.hideButtons)&&(this._visible=!1),super.render(this.renderTemplate("button",{component:this.component,input:this.inputInfo}))}attachButton(){this.addShortcut(this.refs.button);let e=null,t=null;if("submit"===this.component.action&&(this.on("submitButton",(()=>{this.disabled=!0}),!0),this.on("cancelSubmit",(()=>{this.disabled=!1}),!0),this.on("submitDone",(e=>{const t=r.default.isString(e)?e:this.t("complete");this.loading=!1,this.disabled=!1,this.addClass(this.refs.button,"btn-success submit-success"),this.removeClass(this.refs.button,"btn-danger submit-fail"),this.addClass(this.refs.buttonMessageContainer,"has-success"),this.removeClass(this.refs.buttonMessageContainer,"has-error"),this.setContent(this.refs.buttonMessage,t)}),!0),this.on("submitError",(e=>{const t=r.default.isString(e)?this.t(e):this.t(this.errorMessage("submitError"));this.loading=!1,this.disabled=!1,this.hasError=!0,this.removeClass(this.refs.button,"btn-success submit-success"),this.addClass(this.refs.button,"btn-danger submit-fail"),this.removeClass(this.refs.buttonMessageContainer,"has-success"),this.addClass(this.refs.buttonMessageContainer,"has-error"),this.setContent(this.refs.buttonMessage,t)}),!0),this.on("fileUploadingStart",(e=>{this.filesUploading.push(e),this.disabled=!0,this.setDisabled(this.refs.button,this.disabled)}),!0),this.on("fileUploadingEnd",(e=>{const t=this.filesUploading.indexOf(e);-1!==t&&this.filesUploading.splice(t,1),this.disabled=!!this.shouldDisabled,this.setDisabled(this.refs.button,this.disabled)}),!0),e=(e,t)=>{this.removeClass(this.refs.button,"btn-success submit-success"),t&&(this.removeClass(this.refs.button,"btn-danger submit-fail"),this.hasError&&(this.hasError=!1,this.setContent(this.refs.buttonMessage,""),this.removeClass(this.refs.buttonMessageContainer,"has-success"),this.removeClass(this.refs.buttonMessageContainer,"has-error")))},t=()=>{this.hasError=!0,this.removeClass(this.refs.button,"btn-success submit-success"),this.addClass(this.refs.button,"btn-danger submit-fail"),this.removeClass(this.refs.buttonMessageContainer,"has-success"),this.addClass(this.refs.buttonMessageContainer,"has-error"),this.setContent(this.refs.buttonMessage,this.t(this.errorMessage("submitError")))}),"url"===this.component.action&&(this.on("requestButton",(()=>{this.disabled=!0}),!0),this.on("requestDone",(()=>{this.loading=!1,this.disabled=!1}),!0)),this.on("change",((t,n)=>{let i=t.isValid;const r=n&&n.silent;n&&n.noValidate&&(this.component.disableOnInvalid||this.hasError)&&(i=n.rootValidity||!this.root||0===this.root.validate(this.root.data,{dirty:!1,silentCheck:!0}).length,n.rootValidity=i),this.isDisabledOnInvalid=this.component.disableOnInvalid&&(r||!i),this.disabled=this.shouldDisabled,this.setDisabled(this.refs.button,this.disabled),e&&e(t,i)}),!0),this.on("error",(()=>{this.loading=!1,this.disabled=!1,t&&t()}),!0),this.component.saveOnEnter&&this.root.addEventListener(this.root.element,"keyup",(e=>{13===e.keyCode&&this.onClick.call(this,e)})),this.addEventListener(this.refs.button,"click",this.onClick.bind(this)),this.addEventListener(this.refs.buttonMessageContainer,"click",(()=>{this.refs.buttonMessageContainer.classList.contains("has-error")&&this.root&&this.root.alert&&this.scrollIntoView(this.root.alert)})),this.disabled=this.shouldDisabled,this.setDisabled(this.refs.button,this.disabled),"oauth"===this.component.action&&this.oauthConfig&&!this.oauthConfig.error){const e=function(e){e=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");const t=new RegExp(`[\\?&]${e}=([^&#]*)`).exec(location.search);return t?decodeURIComponent(t[1].replace(/\+/g," ")):t}("iss");e&&0===this.oauthConfig.authURI.indexOf(e)&&this.openOauth(this.oauthConfig)}}get shouldDisabled(){var e;return super.shouldDisabled||!!(null===(e=this.filesUploading)||void 0===e?void 0:e.length)||this.isDisabledOnInvalid}attach(e){this.loadRefs(e,{button:"single",buttonMessageContainer:"single",buttonMessage:"single"});const t=super.attach(e);return this.attachButton(),t}detach(e){e&&this.refs.button&&this.removeShortcut(this.refs.button),super.detach()}onClick(e){if(this.triggerCaptcha(),!this.disabled&&"builder"!==this.options.attachMode)switch(this.dataValue=!0,"submit"!==this.component.action&&this.component.showValidations&&this.emit("checkValidity",this.data),this.component.action){case"saveState":case"submit":e.preventDefault(),e.stopPropagation(),this.loading=!0,this.emit("submitButton",{noValidate:"draft"===this.component.state,state:this.component.state||"submitted",component:this.component,instance:this});break;case"event":this.emit(this.interpolate(this.component.event),this.data),this.events.emit(this.interpolate(this.component.event),this.data),this.emit("customEvent",{type:this.interpolate(this.component.event),component:this.component,data:this.data,event:e});break;case"custom":{const e=this.getRoot(),t={},n={};(0,o.eachComponent)(e.components,((e,i)=>{const r=e.component||e;t[i]=r,n[r.key]=r}),!0),this.evaluate(this.component.custom,{form:e,flattened:t,components:n}),this.triggerChange();break}case"url":this.loading=!0,this.emit("requestButton",{component:this.component,instance:this}),this.emit("requestUrl",{url:this.interpolate(this.component.url),headers:this.component.headers});break;case"reset":this.emit("resetForm");break;case"delete":this.emit("deleteSubmission");break;case"oauth":if(this.root===this)return void console.warn("You must add the OAuth button to a form for it to function properly");if(!this.oauthConfig){this.root.setAlert("danger","OAuth not configured. You must configure oauth for your project before it will work.");break}if(this.oauthConfig.error){this.root.setAlert("danger",`The Following Error Has Occured ${this.oauthConfig.error}`);break}this.openOauth(this.oauthConfig)}}openOauth(e){if(!this.root.formio)return void console.warn("You must attach a Form API url to your form in order to use OAuth buttons.");let t={response_type:"code",client_id:e.clientId,redirect_uri:e.redirectURI&&this.interpolate(e.redirectURI)||window.location.origin||`${window.location.protocol}//${window.location.host}`,scope:e.scope};e.state?t.state=e.state:e.code_challenge&&(t.code_challenge=e.code_challenge,t.code_challenge_method="S256");const n=t.redirect_uri;e.display&&(t.display=e.display),t=Object.keys(t).map((e=>`${e}=${encodeURIComponent(t[e])}`)).join("&");const i=-1!==e.authURI.indexOf("?")?"&":"?",a=`${e.authURI}${i}${t}`,s=window.open(a,e.provider,"width=1020,height=618"),o=setInterval((()=>{try{const t=s.location.host,i=window.location.host;if(s&&!s.closed&&t===i){s.close();const t=s.location.search.substr(1).split("&").reduce(((e,t)=>{const n=t.split("=");return e[n[0]]=n[1],e}),{});if(t.error)return alert(t.error_description||t.error),void this.root.setAlert("danger",t.error_description||t.error);if(e.state!==t.state)return void this.root.setAlert("danger","OAuth state does not match. Please try logging in again.");let i=Promise.resolve();if(r.default.has(this,"root.form.config.oauth")&&this.root.form.config.oauth[this.component.oauthProvider])t.provider=e.provider,t.redirectURI=n,t.triggeredBy=this.oauthComponentPath,i=this.root.formio.makeRequest("oauth",`${this.root.formio.projectUrl}/oauth2`,"POST",t);else{const r={data:{},oauth:{}};r.oauth[e.provider]=t,r.oauth[e.provider].redirectURI=n,e.logoutURI&&this.root.formio.oauthLogoutURI(e.logoutURI),r.oauth[e.provider].triggeredBy=this.oauthComponentPath,i=this.root.formio.saveSubmission(r)}i.then((e=>{this.root.onSubmit(e,!0)})).catch((e=>{this.root.onSubmissionError(e)}))}}catch(e){"SecurityError"===e.name||"Error"===e.name&&"Permission denied"===e.message||this.root.setAlert("danger",e.message||e)}s&&!s.closed&&void 0!==s.closed||clearInterval(o)}),100)}get oauthComponentPath(){const e=(0,o.getArrayFromComponentPath)(this.path);return r.default.chain(e).filter((e=>!r.default.isNumber(e))).join(".").value()}focus(){this.refs.button&&this.refs.button.focus()}triggerCaptcha(){if(!this.root)return;let e;this.root.everyComponent((t=>{/^(re)?captcha$/.test(t.component.type)&&"buttonClick"===t.component.eventType&&t.component.buttonKey===this.component.key&&(e=t)})),e&&e.verify(`${this.component.key}Click`)}}t.default=l},73368:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87338)),a=i(n(2543));t.default=[{key:"multiple",ignore:!0},{key:"dataSrc",data:{values:[{label:"Values",value:"values"},{label:"URL",value:"url"}]},validate:{required:!0},onChange(e){e&&e.flags&&e.flags&&e.flags.modified&&(e.data.values=[{label:"",value:""}])}},{type:"datagrid",input:!0,label:"Values",key:"values",tooltip:"The radio button values that can be picked for this field. Values are text submitted with the form data. Labels are text that appears next to the radio buttons on the form.",weight:10,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:"value = _.camelCase(row.label);",validate:{required:!0}},{type:"select",input:!0,weight:180,label:"Shortcut",key:"shortcut",tooltip:"The shortcut key for this option.",dataSrc:"custom",valueProperty:"value",customDefaultValue:()=>"",template:"{{ item.label }}",data:{custom:e=>r.default.getAvailableShortcuts(a.default.get(e,"instance.options.editForm",{}),a.default.get(e,"instance.options.editComponent",{}))}}],conditional:{json:{"===":[{var:"data.dataSrc"},"values"]}}},{type:"select",input:!0,label:"Storage Type",key:"dataType",clearOnHide:!0,tooltip:"The type to store the data. If you select something other than autotype, it will force it to that type.",weight:12,template:"{{ item.label }}",dataSrc:"values",data:{values:[{label:"Autotype",value:"auto"},{label:"String",value:"string"},{label:"Number",value:"number"},{label:"Boolean",value:"boolean"},{label:"Object",value:"object"}]}},{key:"template",conditional:{json:{"===":[{var:"data.dataSrc"},"url"]}}}]},73386:function(e,t,n){!function(e){"use strict";e.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(95093))},73417:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"validate.required",ignore:!0},{key:"validate.unique",ignore:!0},{weight:0,type:"checkbox",label:"Require Day",tooltip:"A required field must be filled in before the form can be submitted.",key:"fields.day.required",input:!0},{weight:10,type:"checkbox",label:"Require Month",tooltip:"A required field must be filled in before the form can be submitted.",key:"fields.month.required",input:!0},{weight:20,type:"checkbox",label:"Require Year",tooltip:"A required field must be filled in before the form can be submitted.",key:"fields.year.required",input:!0},{weight:40,type:"textfield",label:"Minimum Day",placeholder:"yyyy-MM-dd",tooltip:"A minimum date that can be set. You can also use Moment.js functions. For example: \n \n moment().subtract(10, 'days')",key:"minDate",input:!0},{weight:30,type:"textfield",label:"Maximum Day",placeholder:"yyyy-MM-dd",tooltip:"A maximum day that can be set. You can also use Moment.js functions. For example: \n \n moment().add(10, 'days')",key:"maxDate",input:!0}]},73506:(e,t,n)=>{"use strict";var i=n(13925),r=String,a=TypeError;e.exports=function(e){if(i(e))return e;throw new a("Can't set "+r(e)+" as a prototype")}},73635:function(e,t,n){!function(e){"use strict";e.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(e){return e+(/сехет$/i.exec(e)?"рен":/ҫул$/i.exec(e)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(95093))},73649:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
    \n ',(!e.component.hideLabel||e.builder||e.component.collapsible||e.component.tooltip)&&(n+='\n
    \n \n ',e.component.collapsible&&(n+='\n \n '),n+="\n ",e.component.hideLabel&&!e.builder||(n+="\n "+(null==(t=e.t(e.component.title,{_userInput:!0}))?"":t)+"\n "),n+="\n ",e.component.tooltip&&(n+='\n \n '),n+="\n \n
    \n "),n+="\n ",e.collapsed&&!e.builder||(n+='\n
    \n '+(null==(t=e.children)?"":t)+"\n
    \n "),n+"\n
    \n"}},73739:function(e,t,n){!function(e){"use strict";e.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(e,t){return 12===e&&(e=0),"രാത്രി"===t&&e>=4||"ഉച്ച കഴിഞ്ഞ്"===t||"വൈകുന്നേരം"===t?e+12:e},meridiem:function(e,t,n){return e<4?"രാത്രി":e<12?"രാവിലെ":e<17?"ഉച്ച കഴിഞ്ഞ്":e<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(95093))},73926:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},74063:function(e,t,n){!function(e){"use strict";e.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"siang"===t?e>=11?e:e+12:"sore"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"siang":e<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n(95093))},74218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},74335:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},74353:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",i="second",r="minute",a="hour",s="day",o="week",l="month",u="quarter",d="year",c="date",h="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var i=String(e);return!i||i.length>=t?e:""+Array(t+1-i.length).join(n)+e},v={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),i=Math.floor(n/60),r=n%60;return(t<=0?"+":"-")+g(i,2,"0")+":"+g(r,2,"0")},m:function e(t,n){if(t.date()1)return e(s[0])}else{var o=t.name;b[o]=t,r=o}return!i&&r&&(y=r),r||!i&&y},k=function(e,t){if(w(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new x(n)},S=v;S.l=M,S.i=w,S.w=function(e,t){return k(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var x=function(){function m(e){this.$L=M(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[_]=!0}var g=m.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(S.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var i=t.match(p);if(i){var r=i[2]-1||0,a=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)):new Date(i[1],r,i[3]||1,i[4]||0,i[5]||0,i[6]||0,a)}}return new Date(t)}(e),this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return S},g.isValid=function(){return!(this.$d.toString()===h)},g.isSame=function(e,t){var n=k(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return k(e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NestedArrayModel=t.NestedDataModel=t.NestedModel=t.Model=t.EventEmitter=void 0;var i=n(41826);Object.defineProperty(t,"EventEmitter",{enumerable:!0,get:function(){return i.EventEmitter}});var r=n(28495);Object.defineProperty(t,"Model",{enumerable:!0,get:function(){return r.Model}});var a=n(39646);Object.defineProperty(t,"NestedModel",{enumerable:!0,get:function(){return a.NestedModel}});var s=n(48550);Object.defineProperty(t,"NestedDataModel",{enumerable:!0,get:function(){return s.NestedDataModel}});var o=n(48621);Object.defineProperty(t,"NestedArrayModel",{enumerable:!0,get:function(){return o.NestedArrayModel}})},74425:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=i(n(31959));class s extends a.default{static get defaultSettings(){return{type:"input"}}constructor(e,t,n,i){super(e),this.valueIndex=i||0,this.componentInstance=n,this.namespace="formio.widget",this.component=t||{},this.settings=r.default.merge({},this.defaultSettings,e||{})}attach(e){return this._input=e,Promise.resolve()}get defaultSettings(){return{}}set disabled(e){e?this._input.setAttribute("disabled","disabled"):this._input.removeAttribute("disabled")}get input(){return this._input}getValue(){return this._input.value}getValueAsString(e){return e}get validationValue(){return this.dataValue}addPrefix(){return null}addSuffix(){return null}setValue(e){this._input.value=e}evalContext(e){return super.evalContext(Object.assign({component:this.component,row:this.componentInstance.data,rowIndex:this.componentInstance.rowIndex,data:this.componentInstance.rootValue,value:this.componentInstance.dataValue,t:this.t.bind(this),submission:this.componentInstance.root?this.componentInstance.root._submission:{data:this.componentInstance.rootValue},form:this.componentInstance.root?this.componentInstance.root._form:{},options:this.options},e))}}t.default=s},74501:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(94259)),a=i(n(57150)),s=i(n(81741));t.default=function(...e){return(0,r.default)([{key:"display",components:a.default},{key:"validation",components:s.default}],...e)}},74724:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateMinimumWordsInfo=t.validateMinimumWordsSync=t.validateMinimumWords=t.shouldValidate=void 0;const r=n(44508),a=e=>{var t;let n=null===(t=e.validate)||void 0===t?void 0:t.minWords;return"string"==typeof n&&(n=parseInt(n,10)),n};t.shouldValidate=e=>{const{component:t,value:n}=e;return!!(e=>{var t;return e&&(null===(t=e.validate)||void 0===t?void 0:t.hasOwnProperty("minWords"))})(t)&&!!a(t)&&!(!n||"string"!=typeof n)},t.validateMinimumWords=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateMinimumWordsSync)(e)})),t.validateMinimumWordsSync=e=>{const{component:n,value:i}=e;if(!(0,t.shouldValidate)(e))return null;const s=a(n);return s&&i&&"string"==typeof i&&i.trim().split(/\s+/).length{var i=n(21791),r=n(95950);e.exports=function(e,t){return e&&i(t,r(t),e)}},74736:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(29857),a=i(n(2543));t.default=[{type:"select",input:!0,key:"storage",label:"Storage",placeholder:"Select your file storage provider",weight:0,tooltip:"Which storage to save the files in.",valueProperty:"value",dataSrc:"custom",data:{custom:()=>a.default.map(r.Formio.Providers.getProviders("storage"),((e,t)=>({label:e.title,value:t})))}},{type:"checkbox",input:!0,key:"useMultipartUpload",label:"Use the S3 Multipart Upload API",tooltip:"The S3 Multipart Upload API is designed to improve the upload experience for larger objects (> 5GB).",conditional:{json:{"===":[{var:"data.storage"},"s3"]}}},{label:"Multipart Upload",tableView:!1,key:"multipart",type:"container",input:!0,components:[{label:"Part Size (MB)",applyMaskOn:"change",mask:!1,tableView:!1,delimiter:!1,requireDecimal:!1,inputFormat:"plain",truncateMultipleSpaces:!1,validate:{min:5,max:5e3},key:"partSize",type:"number",input:!0,defaultValue:500}],conditional:{json:{"===":[{var:"data.useMultipartUpload"},!0]}}},{type:"textfield",input:!0,key:"url",label:"Url",weight:10,placeholder:"Enter the url to post the files to.",tooltip:"See https://github.com/danialfarid/ng-file-upload#server-side for how to set up the server.",conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"options.indexeddb",label:"Database",weight:10,placeholder:"Enter the indexeddb database name",conditional:{json:{in:[{var:"data.storage"},["indexeddb"]]}}},{type:"textfield",input:!0,label:"Table",key:"options.indexeddbTable",weight:10,placeholder:"Enter the name for indexeddb table",conditional:{json:{in:[{var:"data.storage"},["indexeddb"]]}}},{type:"textarea",key:"options",label:"Custom request options",tooltip:"Pass your custom xhr options(optional)",rows:5,editor:"ace",input:!0,weight:15,placeholder:'{\n "withCredentials": true,\n "headers": {\n "Authorization": "Basic "\n }\n }',conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"fileKey",label:"File form-data key",weight:17,placeholder:"Enter the key name of a file for form data.",tooltip:"Key name that you would like to modify for the file while calling API request.",conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"dir",label:"Directory",placeholder:"(optional) Enter a directory for the files",tooltip:"This will place all the files uploaded in this field in the directory",weight:20,conditional:{json:{"!==":[{var:"data.storage"},"googledrive"]}}},{type:"textfield",input:!0,key:"dir",label:"Folder ID",placeholder:"(optional) Enter an ID of the folder for the files",tooltip:"This will place all the files uploaded in this field in the folder",weight:20,conditional:{json:{"===":[{var:"data.storage"},"googledrive"]}}},{type:"textfield",input:!0,key:"fileNameTemplate",label:"File Name Template",placeholder:"(optional) { {name} }-{ {guid} }",tooltip:"Specify template for name of uploaded file(s). Regular template variables are available (`data`, `component`, `user`, `value`, `moment` etc.), also `fileName`, `guid` variables are available. `guid` part must be present, if not found in template, will be added at the end.",weight:25},{type:"checkbox",input:!0,key:"image",label:"Display as image(s)",tooltip:"Instead of a list of linked files, images will be rendered in the view.",weight:30},{type:"checkbox",input:!0,key:"uploadOnly",label:"Upload Only",tooltip:"When this is checked, will only allow you to upload file(s) and consequently the download, in this component, will be unavailable.",weight:33},{type:"checkbox",input:!0,key:"privateDownload",label:"Private Download",tooltip:"When this is checked, the file download will send a POST request to the download URL with the x-jwt-token header. This will allow your endpoint to create a Private download system.",weight:31,conditional:{json:{"===":[{var:"data.storage"},"url"]}}},{type:"textfield",input:!0,key:"imageSize",label:"Image Size",placeholder:"100",tooltip:"The image size for previewing images.",weight:40,conditional:{json:{"==":[{var:"data.image"},!0]}}},{type:"checkbox",input:!0,key:"webcam",label:"Enable web camera",tooltip:"This will allow using an attached camera to directly take a picture instead of uploading an existing file.",weight:32},{type:"textfield",input:!0,key:"webcamSize",label:"Webcam Width",placeholder:"320",tooltip:"The webcam size for taking pictures.",weight:38,conditional:{json:{"==":[{var:"data.webcam"},!0]}}},{type:"radio",input:!0,key:"capture",label:"Enable device capture",tooltip:"This will allow a mobile device to open the camera or microphone directly in capture mode.",optionsLabelPosition:"right",inline:!0,defaultValue:!1,values:[{label:"Disabled",value:"false"},{label:"Environment (rear camera)",value:"environment"},{label:"User (front camera)",value:"user"}]},{type:"datagrid",input:!0,label:"File Types",key:"fileTypes",tooltip:"Specify file types to classify the uploads. This is useful if you allow multiple types of uploads but want to allow the user to specify which type of file each is.",weight:11,components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield"}]},{type:"textfield",input:!0,key:"filePattern",label:"File Pattern",placeholder:".jpg,video/*,application/pdf",tooltip:"See https://github.com/danialfarid/ng-file-upload#full-reference for how to specify file patterns.",weight:50},{type:"textfield",input:!0,key:"fileMinSize",label:"File Minimum Size",placeholder:"1MB",tooltip:"See https://github.com/danialfarid/ng-file-upload#full-reference for how to specify file sizes.",weight:60},{type:"textfield",input:!0,key:"fileMaxSize",label:"File Maximum Size",placeholder:"10MB",tooltip:"See https://github.com/danialfarid/ng-file-upload#full-reference for how to specify file sizes.",weight:70}]},74842:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(3577)),a=i(n(2543));class s extends r.default{static get operatorKey(){return"greaterThanOrEqual"}static get displayedName(){return"Greater Than Or Equal To"}execute({value:e,comparedValue:t}){return a.default.isNumber(e)&&(e>t||a.default.isEqual(e,t))}}t.default=s},74921:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},75288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},75359:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
    \n
    \n '+(null==(t=e.sidebar)?"":t)+'\n
    \n
    \n \n
    \n '+(null==(t=e.form)?"":t)+"\n
    \n
    \n
    \n"}},75499:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(96690),a=i(n(89480));class s extends a.default{static get operatorKey(){return"isEmpty"}static get displayedName(){return"Is Empty"}static get requireValue(){return!1}execute({value:e,conditionComponentPath:t,data:n,conditionComponent:i}){return(0,r.isComponentDataEmpty)(i,n,t,e)}getResult(e){return this.execute(e)}}t.default=s},75509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'
    \n
    \n \n
    \n'}},75564:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateRequiredInfo=t.validateRequiredSync=t.validateRequired=t.shouldValidate=void 0;const r=n(54008),a=n(47499),s=n(96690),o=(e,t,n)=>!(null==e||""===e||!t&&!1===e)&&!(0,a.isEmptyObject)(e)&&(!Array.isArray(e)||0!==e.length)&&("object"!=typeof e||n?!Array.isArray(e)||!e.length||(0,a.doesArrayDataHaveValue)(e):Object.values(e).some((e=>o(e,t,n))));t.shouldValidate=e=>{var t;const{component:n}=e;return!!(null===(t=n.validate)||void 0===t?void 0:t.required)},t.validateRequired=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateRequiredSync)(e)})),t.validateRequiredSync=e=>{const n=new r.FieldError("required",Object.assign(Object.assign({},e),{setting:!0})),{component:i,value:l}=e;return(0,t.shouldValidate)(e)?(e=>"address"===e.type)(i)&&(e=>null!==e&&"object"==typeof e&&e.mode&&e.address&&"object"==typeof e.address)(l)?(0,a.isEmptyObject)(l.address)?n:Object.values(l.address).every((e=>!!e))?null:n:(e=>"day"===e.type)(i)&&"00/00/0000"===l?n:(e=>"checkbox"===e.type||"selectboxes"===e.type)(i)?o(l,!1,(0,s.isComponentNestedDataType)(i))?null:n:o(l,!0,(0,s.isComponentNestedDataType)(i))?null:n:null},t.validateRequiredInfo={name:"validateRequired",process:t.validateRequired,processSync:t.validateRequiredSync,shouldProcess:t.shouldValidate}},75779:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(29857),a=i(n(74425)),s=n(34600),o=i(n(95093)),l=i(n(2543)),u="yyyy-MM-dd hh:mm a",d="yyyy-MM-ddTHH:mm:ssZ",c=(0,s.getBrowserInfo)().ie;class h extends a.default{static get defaultSettings(){return{type:"calendar",altInput:!0,allowInput:!0,clickOpens:!0,enableDate:!0,enableTime:!0,mode:"single",noCalendar:!1,format:u,dateFormat:d,useLocaleSettings:!1,language:"us-en",hourIncrement:1,minuteIncrement:5,time_24hr:!1,saveAs:"date",displayInTimezone:"",timezone:"",disable:[],minDate:"",maxDate:""}}constructor(e,t,n,i){super(e,t,n,i),this.settings.noCalendar&&(this.settings.format=this.settings.format.replace(/yyyy-MM-dd /g,"")),this.settings.enableTime?this.settings.time_24hr&&(this.settings.format=this.settings.format.replace(/hh:mm a$/g,"HH:mm")):this.settings.format=this.settings.format.replace(/ hh:mm a$/g,""),this.zoneLoading=!1,this.timezonesUrl=`${r.Formio.cdn["moment-timezone"]}/data/packed/latest.json`}loadZones(){const e=this.timezone;return!!this.zoneLoading||!((0,s.zonesLoaded)()||!(0,s.shouldLoadZones)(e))&&(this.zoneLoading=!0,(0,s.loadZones)(this.timezonesUrl,e).then((()=>{this.zoneLoading=!1,this.emit("redraw")})),!0)}attach(e){var t;const n=super.attach(e),i=(0,s.getLocaleDateFormatInfo)(this.settings.language);this.defaultFormat={date:i.dayFirst?"d/m/Y ":"m/d/Y ",time:"G:i K"},this.closedOn=0,this.valueFormat="date"===this.settings.saveAs?d:this.settings.dateFormat||d,this.valueMomentFormat=(0,s.convertFormatToMoment)(this.valueFormat);const a=this.settings.readOnly;return this.settings.minDate=a?null:(0,s.getDateSetting)(this.settings.minDate),this.settings.maxDate=a?null:(0,s.getDateSetting)(this.settings.maxDate),this.settings.disable=this.disabledDates,this.settings.disableWeekends&&this.settings.disable.push(this.disableWeekends),this.settings.disableWeekdays&&this.settings.disable.push(this.disableWeekdays),this.settings.disableFunction&&this.settings.disable.push(this.disableFunction),this.settings.wasDefaultValueChanged=!1,this.settings.defaultValue="",this.settings.manualInputValue="",this.settings.isManuallyOverriddenValue=!1,this.settings.currentValue="",this.settings.altFormat=(0,s.convertFormatToFlatpickr)(this.settings.format),this.settings.dateFormat=(0,s.convertFormatToFlatpickr)(this.settings.dateFormat),this.settings.position="auto center",this.settings.onChange=()=>{this.settings.allowInput&&(this.settings.isManuallyOverriddenValue&&this.settings.enableTime?this.calendar._input.value=this.settings.manualInputValue:this.settings.manualInputValue="",this.settings.isManuallyOverriddenValue=!1),this.emit("update")},this.settings.onOpen=()=>this.hook("onCalendarOpen"),this.settings.onClose=()=>{this.hook("onCalendarClose"),this.closedOn=Date.now(),this.settings.allowInput&&this.settings.enableTime&&(this.calendar._input.value=this.settings.manualInputValue||this.calendar._input.value,this.settings.isManuallyOverriddenValue=!1,this.emit("update")),this.settings.wasDefaultValueChanged&&(this.calendar._input.value=this.settings.defaultValue,this.settings.wasDefaultValueChanged=!1),this.calendar&&this.emit("blur")},r.Formio.requireLibrary("flatpickr-css","flatpickr",[{type:"styles",src:`${r.Formio.cdn["flatpickr-formio"]}/flatpickr.min.css`}],!0),this.component.shortcutButtons&&(this.component.shortcutButtons=this.component.shortcutButtons.filter((e=>e.label&&e.onClick))),(null===(t=this.component.shortcutButtons)||void 0===t?void 0:t.length)&&r.Formio.requireLibrary("shortcut-buttons-flatpickr-css","ShortcutButtonsPlugin",[{type:"styles",src:`${r.Formio.cdn["shortcut-buttons-flatpickr"]}/themes/light.min.css`}],!0),n.then((()=>{var e;if(null===(e=this.component.shortcutButtons)||void 0===e?void 0:e.length)return r.Formio.requireLibrary("shortcut-buttons-flatpickr","ShortcutButtonsPlugin",`${r.Formio.cdn["shortcut-buttons-flatpickr"]}/shortcut-buttons-flatpickr.min.js`,!0)})).then((e=>r.Formio.requireLibrary("flatpickr","flatpickr",`${r.Formio.cdn["flatpickr-formio"]}/flatpickr.min.js`,!0).then((t=>{var n;if((null===(n=this.component.shortcutButtons)||void 0===n?void 0:n.length)&&e&&this.initShortcutButtonsPlugin(e),this.settings.formatDate=this.getFlatpickrFormatDate(t),this._input){const{locale:e}=this.settings;if(e&&e.length>=2&&"en"!==e)return r.Formio.requireLibrary(`flatpickr-${e}`,`flatpickr-${e}`,`${r.Formio.cdn["flatpickr-formio"]}/l10n/flatpickr-${e}.js`,!0).then((()=>this.initFlatpickr(t)));this.initFlatpickr(t)}})))).catch((e=>{console.warn(e)}))}get disableWeekends(){return function(e){return 0===e.getDay()||6===e.getDay()}}get disableWeekdays(){return e=>!this.disableWeekends(e)}get disableFunction(){return e=>this.evaluate(`return ${this.settings.disableFunction}`,{date:e})}get timezone(){return this.componentInstance.getTimezone(this.settings)}get defaultSettings(){return h.defaultSettings}addSuffix(e){return this.addEventListener(e,"click",(()=>{setTimeout((()=>{this.calendar&&(!this.calendar.isOpen&&Date.now()-this.closedOn>200?this.calendar.open():this.calendar.isOpen&&this.calendar.close())}),0)})),e}set disabled(e){super.disabled=e,this.calendar&&(e?this.calendar._input.setAttribute("disabled","disabled"):this.calendar._input.removeAttribute("disabled"),this.calendar.close(),this.calendar.redraw())}get input(){return this.calendar?this.calendar.altInput:null}get disabledDates(){return this.settings.disabledDates?this.settings.disabledDates.split(",").map((e=>{const t=/\d{4}-\d{2}-\d{2}/g,n=e.match(t);if(n&&n.length)return 1===n.length?e.match(t)[0]:{from:e.match(t)[0],to:e.match(t)[1]}})):[]}get localeFormat(){let e="";return this.settings.enableDate&&(e+=this.defaultFormat.date),this.settings.enableTime&&(e+=this.defaultFormat.time),e}get dateTimeFormat(){return this.settings.useLocaleSettings?this.localeFormat:(0,s.convertFormatToFlatpickr)(this.dateFormat)}get dateFormat(){return l.default.get(this.settings,"format",u)}getDateValue(e,t,n){return n?(0,s.momentDate)(e,this.valueFormat,this.timezone).format((0,s.convertFormatToMoment)(t)):(0,o.default)(e).format((0,s.convertFormatToMoment)(t))}getValue(){if(!this.calendar)return super.getValue();const e=this.calendar.selectedDates;return e&&e.length?e[0]instanceof Date?this.getDateValue(e[0],this.valueFormat,"date"===this.settings.saveAs):"Invalid Date":super.getValue()}isValueISO8601(e){return e&&"string"==typeof e&&e.match(/-[0-9]{2}T[0-9]{2}:/)}setValue(e){const t="text"===this.settings.saveAs;if(!this.calendar)return e=e?(0,s.formatDate)(this.timezonesUrl,e,(0,s.convertFormatToMoment)(this.settings.format),this.timezone,(0,s.convertFormatToMoment)(this.valueMomentFormat)):e,super.setValue(e);const n=this.loadZones();e?t||!this.settings.readOnly||n?this.isValueISO8601(e)?this.calendar.setDate(e,!1):this.calendar.setDate((0,o.default)(e,this.valueMomentFormat).toDate(),!1):this.calendar.setDate((0,s.momentDate)(e,this.valueFormat,this.timezone).format(),!1):this.calendar.clear(!1)}getValueAsString(e,t){const n=t||this.dateFormat,i=this.calendar?this.valueFormat:this.settings.dateFormat;return"text"===this.settings.saveAs&&this.componentInstance.parent&&!this.settings.readOnly?(0,o.default)(e,(0,s.convertFormatToMoment)(i)).format((0,s.convertFormatToMoment)(i)):(0,s.formatDate)(this.timezonesUrl,e,n,this.timezone,(0,s.convertFormatToMoment)(i))}setErrorClasses(e){this.input&&(e?(this.addClass(this.input,"is-invalid"),this.input.setAttribute("aria-invalid","true")):(this.removeClass(this.input,"is-invalid"),this.input.setAttribute("aria-invalid","false")))}get validationValue(){const e=this.dataValue;return"string"==typeof e?new Date(e):e.map((e=>new Date(e)))}isCalendarElement(e){var t,n,i,r,a;return!e||!!(null===(i=null===(n=null===(t=this.calendar)||void 0===t?void 0:t.config)||void 0===n?void 0:n.appendTo)||void 0===i?void 0:i.contains(e))||(null===(a=null===(r=this.calendar)||void 0===r?void 0:r.calendarContainer)||void 0===a?void 0:a.contains(e))}initFlatpickr(e){if(this.calendar=new e(this._input,Object.assign(Object.assign({},this.settings),{disableMobile:!0})),this.addEventListener(this.calendar.altInput,"input",(e=>{this.settings.allowInput&&this.settings.currentValue!==e.target.value&&(this.settings.manualInputValue=e.target.value,this.settings.isManuallyOverriddenValue=!0,this.settings.currentValue=e.target.value),""===e.target.value&&this.calendar.selectedDates.length>0?(this.settings.wasDefaultValueChanged=!0,this.settings.defaultValue=e.target.value,this.calendar.clear()):this.settings.wasDefaultValueChanged=!1})),this.settings.readOnly||l.default.some(["MMMM"],(e=>l.default.includes(this.settings.format,e)))||this.setInputMask(this.calendar._input,(0,s.convertFormatToMask)(this.settings.format)),c){const e=this.calendar._handlers.find((({event:e,element:t})=>"blur"===e&&t===this.calendar._input));this.calendar._input.removeEventListener("blur",e.handler),this.addEventListener(this.calendar._input,"blur",(e=>{const t=this.settings.shadowRoot?this.settings.shadowRoot.activeElement:document.activeElement,n=e.relatedTarget?e.relatedTarget:t;e.target===this.calendar._input&&!this.isCalendarElement(n)&&this.calendar.setDate(this.calendar._input.value,!0,e.target===this.calendar.altInput?this.calendar.config.altFormat:this.calendar.config.dateFormat)}))}this.addEventListener(this.calendar._input,"blur",(e=>{var t,n,i,r;const a=this.settings.shadowRoot?this.settings.shadowRoot.activeElement:document.activeElement,l=e.relatedTarget?e.relatedTarget:a;if(c&&!l||this.isCalendarElement(l)){if(!this.calendar.input.value&&this.calendar.config.noCalendar){const e=(0,o.default)({hour:null===(n=null===(t=this.calendar)||void 0===t?void 0:t.config)||void 0===n?void 0:n.defaultHour,minute:null===(r=null===(i=this.calendar)||void 0===i?void 0:i.config)||void 0===r?void 0:r.defaultMinute}).toDate();this.calendar.setDate(e,!0,this.settings.format)}}else{const e=this.calendar.input.value,t=e?(0,o.default)(this.calendar.input.value,(0,s.convertFormatToMoment)(this.valueFormat)).toDate():e;this.calendar.setDate(t,!0,this.settings.altFormat)}})),this.addEventListener(this.calendar.altInput,"keydown",(e=>{13===e.keyCode&&this.calendar.isOpen&&(this.calendar.close(),e.stopPropagation())})),this.settings.disableFunction&&this.componentInstance&&this.componentInstance.root&&this.componentInstance.root.on("change",(e=>{e.changed&&this.calendar&&this.calendar.redraw()})),this.setValue(this.componentValue)}initShortcutButtonsPlugin(e){this.settings.plugins=[e({button:this.component.shortcutButtons.map((e=>({label:e.label,attributes:e.attribute}))),onClick:e=>{const t=this.component.shortcutButtons[e].onClick,n=this.evaluate(t,{date:new Date},"date");this.calendar.setDate(n,!0)}})]}get componentValue(){let e=this.componentInstance.dataValue;return Array.isArray(e)&&(e=e[this.valueIndex]),e}getFlatpickrFormatDate(e){return(t,n)=>this.settings.readOnly&&n===this.settings.altFormat?!this.settings.enableTime||this.loadZones()?e.formatDate(t,n):new Date(this.getValue()).toString()===t.toString()?(0,s.formatOffset)(this.timezonesUrl,e.formatDate.bind(e),new Date(this.componentValue),n,this.timezone):(0,s.formatOffset)(this.timezonesUrl,e.formatDate.bind(e),t,n,this.timezone):e.formatDate(t,n)}destroy(e=!1){this.calendar&&this.calendar.destroy(),super.destroy(e)}}t.default=h},75940:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(7489)),a=i(n(63900)),s=i(n(57171)),o=i(n(63565)),l=i(n(15339)),u=i(n(71793));t.default={base64:r.default,s3:a.default,url:o.default,azure:s.default,indexeddb:l.default,googledrive:u.default}},76001:(e,t,n)=>{var i=n(97420),r=n(80631);e.exports=function(e,t){return i(e,t,(function(t,n){return r(e,n)}))}},76080:(e,t,n)=>{"use strict";var i=n(27476),r=n(79306),a=n(40616),s=i(i.bind);e.exports=function(e,t){return r(e),void 0===t?e:a?s(e,t):function(){return e.apply(t,arguments)}}},76169:(e,t,n)=>{var i=n(49653);e.exports=function(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},76189:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e){var n=e.length,i=new e.constructor(n);return n&&"string"==typeof e[0]&&t.call(e,"index")&&(i.index=e.index,i.input=e.input),i}},76274:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(63468),r=n(57423);t.default={row:i.default,header:r.default}},76383:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8943),r=n(31956);t.default={form:i.default,html:r.default}},76482:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(29857),a=i(n(5292)),s=i(n(18633));class o extends s.default{constructor(e,t,n){n=n||{},super(e,t=t||{},Object.assign(n,o.options,r.Formio.options&&r.Formio.options.builder?r.Formio.options.builder:{}))}create(e){return a.default.builders[e]?new a.default.builders[e](this.element,this.options):new a.default.builders.webform(this.element,this.options)}}o.options={},t.default=o,r.Formio.builder=(e,t,n)=>new o(e,t,n).ready,r.Formio.FormBuilder=o},76545:(e,t,n)=>{var i=n(56110)(n(9325),"Set");e.exports=i},76644:e=>{var t;window,t=()=>(()=>{"use strict";var e={282:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.clearChoices=t.activateChoices=t.filterChoices=t.addChoice=void 0;var i=n(883);t.addChoice=function(e){var t=e.value,n=e.label,r=e.id,a=e.groupId,s=e.disabled,o=e.elementId,l=e.customProperties,u=e.placeholder,d=e.keyCode;return{type:i.ACTION_TYPES.ADD_CHOICE,value:t,label:n,id:r,groupId:a,disabled:s,elementId:o,customProperties:l,placeholder:u,keyCode:d}},t.filterChoices=function(e){return{type:i.ACTION_TYPES.FILTER_CHOICES,results:e}},t.activateChoices=function(e){return void 0===e&&(e=!0),{type:i.ACTION_TYPES.ACTIVATE_CHOICES,active:e}},t.clearChoices=function(){return{type:i.ACTION_TYPES.CLEAR_CHOICES}}},783:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addGroup=void 0;var i=n(883);t.addGroup=function(e){var t=e.value,n=e.id,r=e.active,a=e.disabled;return{type:i.ACTION_TYPES.ADD_GROUP,value:t,id:n,active:r,disabled:a}}},464:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.highlightItem=t.removeItem=t.addItem=void 0;var i=n(883);t.addItem=function(e){var t=e.value,n=e.label,r=e.id,a=e.choiceId,s=e.groupId,o=e.customProperties,l=e.placeholder,u=e.keyCode;return{type:i.ACTION_TYPES.ADD_ITEM,value:t,label:n,id:r,choiceId:a,groupId:s,customProperties:o,placeholder:l,keyCode:u}},t.removeItem=function(e,t){return{type:i.ACTION_TYPES.REMOVE_ITEM,id:e,choiceId:t}},t.highlightItem=function(e,t){return{type:i.ACTION_TYPES.HIGHLIGHT_ITEM,id:e,highlighted:t}}},137:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.setIsLoading=t.resetTo=t.clearAll=void 0;var i=n(883);t.clearAll=function(){return{type:i.ACTION_TYPES.CLEAR_ALL}},t.resetTo=function(e){return{type:i.ACTION_TYPES.RESET_TO,state:e}},t.setIsLoading=function(e){return{type:i.ACTION_TYPES.SET_IS_LOADING,isLoading:e}}},373:function(e,t,n){var i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,a=t.length;r=0?this._store.getGroupById(r):null;return this._store.dispatch((0,u.highlightItem)(n,!0)),t&&this.passedElement.triggerEvent(h.EVENTS.highlightItem,{id:n,value:s,label:l,groupValue:d&&d.value?d.value:null}),this},e.prototype.unhighlightItem=function(e){if(!e||!e.id)return this;var t=e.id,n=e.groupId,i=void 0===n?-1:n,r=e.value,a=void 0===r?"":r,s=e.label,o=void 0===s?"":s,l=i>=0?this._store.getGroupById(i):null;return this._store.dispatch((0,u.highlightItem)(t,!1)),this.passedElement.triggerEvent(h.EVENTS.highlightItem,{id:t,value:a,label:o,groupValue:l&&l.value?l.value:null}),this},e.prototype.highlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.highlightItem(t)})),this},e.prototype.unhighlightAll=function(){var e=this;return this._store.items.forEach((function(t){return e.unhighlightItem(t)})),this},e.prototype.removeActiveItemsByValue=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.value===e})).forEach((function(e){return t._removeItem(e)})),this},e.prototype.removeActiveItems=function(e){var t=this;return this._store.activeItems.filter((function(t){return t.id!==e})).forEach((function(e){return t._removeItem(e)})),this},e.prototype.removeHighlightedItems=function(e){var t=this;return void 0===e&&(e=!1),this._store.highlightedActiveItems.forEach((function(n){t._removeItem(n),e&&t._triggerChange(n.value)})),this},e.prototype.showDropdown=function(e){var t=this;return this.dropdown.isActive||requestAnimationFrame((function(){t.dropdown.show(),t.containerOuter.open(t.dropdown.distanceFromTopWindow,t.dropdown.height),!e&&t._canSearch&&t.input.focus(),t.passedElement.triggerEvent(h.EVENTS.showDropdown,{})})),this},e.prototype.hideDropdown=function(e){var t=this;return this.dropdown.isActive?(requestAnimationFrame((function(){t.dropdown.hide(),t.containerOuter.close(),!e&&t._canSearch&&(t.input.removeActiveDescendant(),t.input.blur()),t.passedElement.triggerEvent(h.EVENTS.hideDropdown,{})})),this):this},e.prototype.getValue=function(e){void 0===e&&(e=!1);var t=this._store.activeItems.reduce((function(t,n){var i=e?n.value:n;return t.push(i),t}),[]);return this._isSelectOneElement?t[0]:t},e.prototype.setValue=function(e){var t=this;return this.initialised?(e.forEach((function(e){return t._setChoiceOrItem(e)})),this):this},e.prototype.setChoiceByValue=function(e){var t=this;return!this.initialised||this._isTextElement||(Array.isArray(e)?e:[e]).forEach((function(e){return t._findAndSelectChoiceByValue(e)})),this},e.prototype.setChoices=function(e,t,n,i){var r=this;if(void 0===e&&(e=[]),void 0===t&&(t="value"),void 0===n&&(n="label"),void 0===i&&(i=!1),!this.initialised)throw new ReferenceError("setChoices was called on a non-initialized instance of Choices");if(!this._isSelectElement)throw new TypeError("setChoices can't be used with INPUT based Choices");if("string"!=typeof t||!t)throw new TypeError("value parameter must be a name of 'value' field in passed objects");if(i&&this.clearChoices(),"function"==typeof e){var a=e(this);if("function"==typeof Promise&&a instanceof Promise)return new Promise((function(e){return requestAnimationFrame(e)})).then((function(){return r._handleLoadingState(!0)})).then((function(){return a})).then((function(e){return r.setChoices(e,t,n,i)})).catch((function(e){r.config.silent||console.error(e)})).then((function(){return r._handleLoadingState(!1)})).then((function(){return r}));if(!Array.isArray(a))throw new TypeError(".setChoices first argument function must return either array of choices or Promise, got: ".concat(typeof a));return this.setChoices(a,t,n,!1)}if(!Array.isArray(e))throw new TypeError(".setChoices must be called either with array of choices with a function resulting into Promise of array of choices");return this.containerOuter.removeLoadingState(),this._startLoading(),e.forEach((function(e){if(e.choices)r._addGroup({id:e.id?parseInt("".concat(e.id),10):null,group:e,valueKey:t,labelKey:n});else{var i=e;r._addChoice({value:i[t],label:i[n],isSelected:!!i.selected,isDisabled:!!i.disabled,placeholder:!!i.placeholder,customProperties:i.customProperties})}})),this._stopLoading(),this},e.prototype.clearChoices=function(){return this._store.dispatch((0,o.clearChoices)()),this},e.prototype.clearStore=function(){return this._store.dispatch((0,d.clearAll)()),this},e.prototype.clearInput=function(){var e=!this._isSelectOneElement;return this.input.clear(e),!this._isTextElement&&this._canSearch&&(this._isSearching=!1,this._store.dispatch((0,o.activateChoices)(!0))),this},e.prototype._render=function(){if(!this._store.isLoading()){this._currentState=this._store.state;var e=this._currentState.choices!==this._prevState.choices||this._currentState.groups!==this._prevState.groups||this._currentState.items!==this._prevState.items,t=this._isSelectElement,n=this._currentState.items!==this._prevState.items;e&&(t&&this._renderChoices(),n&&this._renderItems(),this._prevState=this._currentState)}},e.prototype._renderChoices=function(){var e=this,t=this._store,n=t.activeGroups,i=t.activeChoices,r=document.createDocumentFragment();if(this.choiceList.clear(),this.config.resetScrollPosition&&requestAnimationFrame((function(){return e.choiceList.scrollToTop()})),n.length>=1&&!this._isSearching){var a=i.filter((function(e){return!0===e.placeholder&&-1===e.groupId}));a.length>=1&&(r=this._createChoicesFragment(a,r)),r=this._createGroupsFragment(n,i,r)}else i.length>=1&&(r=this._createChoicesFragment(i,r));if(r.childNodes&&r.childNodes.length>0){var s=this._store.activeItems,o=this._canAddItem(s,this.input.value);if(o.response)this.choiceList.append(r),this._highlightChoice();else{var l=this._getTemplate("notice",o.notice);this.choiceList.append(l)}}else{var u=void 0;l=void 0,this._isSearching?(l="function"==typeof this.config.noResultsText?this.config.noResultsText():this.config.noResultsText,u=this._getTemplate("notice",l,"no-results")):(l="function"==typeof this.config.noChoicesText?this.config.noChoicesText():this.config.noChoicesText,u=this._getTemplate("notice",l,"no-choices")),this.choiceList.append(u)}},e.prototype._renderItems=function(){var e=this._store.activeItems||[];this.itemList.clear();var t=this._createItemsFragment(e);t.childNodes&&this.itemList.append(t)},e.prototype._createGroupsFragment=function(e,t,n){var i=this;return void 0===n&&(n=document.createDocumentFragment()),this.config.shouldSort&&e.sort(this.config.sorter),e.forEach((function(e){var r=function(e){return t.filter((function(t){return i._isSelectOneElement?t.groupId===e.id:t.groupId===e.id&&("always"===i.config.renderSelectedChoices||!t.selected)}))}(e);if(r.length>=1){var a=i._getTemplate("choiceGroup",e);n.appendChild(a),i._createChoicesFragment(r,n,!0)}})),n},e.prototype._createChoicesFragment=function(e,t,n){var r=this;void 0===t&&(t=document.createDocumentFragment()),void 0===n&&(n=!1);var a=this.config,s=a.renderSelectedChoices,o=a.searchResultLimit,l=a.renderChoiceLimit,u=this._isSearching?f.sortByScore:this.config.sorter,d=function(e){if("auto"!==s||r._isSelectOneElement||!e.selected){var n=r._getTemplate("choice",e,r.config.itemSelectText);t.appendChild(n)}},c=e;"auto"!==s||this._isSelectOneElement||(c=e.filter((function(e){return!e.selected})));var h=c.reduce((function(e,t){return t.placeholder?e.placeholderChoices.push(t):e.normalChoices.push(t),e}),{placeholderChoices:[],normalChoices:[]}),p=h.placeholderChoices,m=h.normalChoices;(this.config.shouldSort||this._isSearching)&&m.sort(u);var g=c.length,v=this._isSelectOneElement?i(i([],p,!0),m,!0):m;this._isSearching?g=o:l&&l>0&&!n&&(g=l);for(var y=0;y=i){var s=r?this._searchChoices(e):0;this.passedElement.triggerEvent(h.EVENTS.search,{value:e,resultCount:s})}else a&&(this._isSearching=!1,this._store.dispatch((0,o.activateChoices)(!0)))}},e.prototype._canAddItem=function(e,t){var n=!0,i="function"==typeof this.config.addItemText?this.config.addItemText(t):this.config.addItemText;if(!this._isSelectOneElement){var r=(0,f.existsInArray)(e,t);this.config.maxItemCount>0&&this.config.maxItemCount<=e.length&&(n=!1,i="function"==typeof this.config.maxItemText?this.config.maxItemText(this.config.maxItemCount):this.config.maxItemText),!this.config.duplicateItemsAllowed&&r&&n&&(n=!1,i="function"==typeof this.config.uniqueItemText?this.config.uniqueItemText(t):this.config.uniqueItemText),this._isTextElement&&this.config.addItems&&n&&"function"==typeof this.config.addItemFilter&&!this.config.addItemFilter(t)&&(n=!1,i="function"==typeof this.config.customAddItemText?this.config.customAddItemText(t):this.config.customAddItemText)}return{response:n,notice:i}},e.prototype._searchChoices=function(e){var t="string"==typeof e?e.trim():e,n="string"==typeof this._currentValue?this._currentValue.trim():this._currentValue;if(t.length<1&&t==="".concat(n," "))return 0;var r=this._store.searchableChoices,a=t,l=Object.assign(this.config.fuseOptions,{keys:i([],this.config.searchFields,!0),includeMatches:!0}),u=new s.default(r,l).search(a);return this._currentValue=t,this._highlightPosition=0,this._isSearching=!0,this._store.dispatch((0,o.filterChoices)(u)),u.length},e.prototype._addEventListeners=function(){var e=this.config.shadowRoot||document.documentElement;e.addEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.addEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("click",this._onClick,{passive:!0}),e.addEventListener("touchmove",this._onTouchMove,{passive:!0}),this.dropdown.element.addEventListener("mouseover",this._onMouseOver,{passive:!0}),this._isSelectOneElement&&(this.containerOuter.element.addEventListener("focus",this._onFocus,{passive:!0}),this.containerOuter.element.addEventListener("blur",this._onBlur,{passive:!0})),this.input.element.addEventListener("keyup",this._onKeyUp,{passive:!0}),this.input.element.addEventListener("focus",this._onFocus,{passive:!0}),this.input.element.addEventListener("blur",this._onBlur,{passive:!0}),this.input.element.form&&this.input.element.form.addEventListener("reset",this._onFormReset,{passive:!0}),this.input.addEventListeners()},e.prototype._removeEventListeners=function(){var e=this.config.shadowRoot||document.documentElement;e.removeEventListener("touchend",this._onTouchEnd,!0),this.containerOuter.element.removeEventListener("keydown",this._onKeyDown,!0),this.containerOuter.element.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("click",this._onClick),e.removeEventListener("touchmove",this._onTouchMove),this.dropdown.element.removeEventListener("mouseover",this._onMouseOver),this._isSelectOneElement&&(this.containerOuter.element.removeEventListener("focus",this._onFocus),this.containerOuter.element.removeEventListener("blur",this._onBlur)),this.input.element.removeEventListener("keyup",this._onKeyUp),this.input.element.removeEventListener("focus",this._onFocus),this.input.element.removeEventListener("blur",this._onBlur),this.input.element.form&&this.input.element.form.removeEventListener("reset",this._onFormReset),this.input.removeEventListeners()},e.prototype._onKeyDown=function(e){var t=e.keyCode,n=this._store.activeItems,i=this.input.isFocussed,r=this.dropdown.isActive,a=this.itemList.hasChildren(),s=String.fromCharCode(t),o=/[^\x00-\x1F]/.test(s),l=h.KEY_CODES.BACK_KEY,u=h.KEY_CODES.DELETE_KEY,d=h.KEY_CODES.ENTER_KEY,c=h.KEY_CODES.A_KEY,p=h.KEY_CODES.ESC_KEY,f=h.KEY_CODES.UP_KEY,m=h.KEY_CODES.DOWN_KEY,g=h.KEY_CODES.PAGE_UP_KEY,v=h.KEY_CODES.PAGE_DOWN_KEY;switch(this._isTextElement||r||!o||(this.showDropdown(),this.input.isFocussed||(this.input.value+=e.key.toLowerCase())),t){case c:return this._onSelectKey(e,a);case d:return this._onEnterKey({event:e,activeItems:n,hasActiveDropdown:r});case p:return this._onEscapeKey(r);case f:case g:case m:case v:return this._onDirectionKey({event:e,hasActiveDropdown:r});case u:case l:return this._onDeleteKey(e,n,i)}},e.prototype._onKeyUp=function(e){var t=e.target,n=e.keyCode,i=this.input.value,r=this._store.activeItems,a=this._canAddItem(r,i),s=h.KEY_CODES.BACK_KEY,l=h.KEY_CODES.DELETE_KEY;if(this._isTextElement)if(a.notice&&i){var u=this._getTemplate("notice",a.notice);this.dropdown.element.innerHTML=u.outerHTML,this.showDropdown(!0)}else this.hideDropdown(!0);else{var d=(n===s||n===l)&&t&&!t.value,c=!this._isTextElement&&this._isSearching,p=this._canSearch&&a.response;d&&c?(this._isSearching=!1,this._store.dispatch((0,o.activateChoices)(!0))):p&&this._handleSearch(this.input.rawValue)}this._canSearch=this.config.searchEnabled},e.prototype._onSelectKey=function(e,t){var n=e.ctrlKey,i=e.metaKey;(n||i)&&t&&(this._canSearch=!1,this.config.removeItems&&!this.input.value&&this.input.element===document.activeElement&&this.highlightAll())},e.prototype._onEnterKey=function(e){var t=e.event,n=e.activeItems,i=e.hasActiveDropdown,r=t.target,a=h.KEY_CODES.ENTER_KEY,s=r&&r.hasAttribute("data-button");if(this._isTextElement&&r&&r.value){var o=this.input.value;this._canAddItem(n,o).response&&(this.hideDropdown(!0),this._addItem({value:o}),this._triggerChange(o),this.clearInput())}if(s&&(this._handleButtonAction(n,r),t.preventDefault()),i){var l=this.dropdown.getChild(".".concat(this.config.classNames.highlightedState));l&&(n[0]&&(n[0].keyCode=a),this._handleChoiceAction(n,l)),t.preventDefault()}else this._isSelectOneElement&&(this.showDropdown(),t.preventDefault())},e.prototype._onEscapeKey=function(e){e&&(this.hideDropdown(!0),this.containerOuter.focus())},e.prototype._onDirectionKey=function(e){var t=e.event,n=e.hasActiveDropdown,i=t.keyCode,r=t.metaKey,a=h.KEY_CODES.DOWN_KEY,s=h.KEY_CODES.PAGE_UP_KEY,o=h.KEY_CODES.PAGE_DOWN_KEY;if(n||this._isSelectOneElement){this.showDropdown(),this._canSearch=!1;var l=i===a||i===o?1:-1,u="[data-choice-selectable]",d=void 0;if(r||i===o||i===s)d=l>0?this.dropdown.element.querySelector("".concat(u,":last-of-type")):this.dropdown.element.querySelector(u);else{var c=this.dropdown.element.querySelector(".".concat(this.config.classNames.highlightedState));d=c?(0,f.getAdjacentEl)(c,u,l):this.dropdown.element.querySelector(u)}d&&((0,f.isScrolledIntoView)(d,this.choiceList.element,l)||this.choiceList.scrollToChildElement(d,l),this._highlightChoice(d)),t.preventDefault()}},e.prototype._onDeleteKey=function(e,t,n){var i=e.target;this._isSelectOneElement||i.value||!n||(this._handleBackspace(t),e.preventDefault())},e.prototype._onTouchMove=function(){this._wasTap&&(this._wasTap=!1)},e.prototype._onTouchEnd=function(e){var t=(e||e.touches[0]).target;this._wasTap&&this.containerOuter.element.contains(t)&&((t===this.containerOuter.element||t===this.containerInner.element)&&(this._isTextElement?this.input.focus():this._isSelectMultipleElement&&this.showDropdown()),e.stopPropagation()),this._wasTap=!0},e.prototype._onMouseDown=function(e){var t=e.target;if(t instanceof HTMLElement){if(y&&this.choiceList.element.contains(t)){var n=this.choiceList.element.firstElementChild,i="ltr"===this._direction?e.offsetX>=n.offsetWidth:e.offsetX0&&this.unhighlightAll(),this.containerOuter.removeFocusState(),this.hideDropdown(!0))},e.prototype._onFocus=function(e){var t,n=this,i=e.target;i&&this.containerOuter.element.contains(i)&&((t={})[h.TEXT_TYPE]=function(){i===n.input.element&&n.containerOuter.addFocusState()},t[h.SELECT_ONE_TYPE]=function(){n.containerOuter.addFocusState(),i===n.input.element&&n.showDropdown(!0)},t[h.SELECT_MULTIPLE_TYPE]=function(){i===n.input.element&&(n.showDropdown(!0),n.containerOuter.addFocusState())},t)[this.passedElement.element.type]()},e.prototype._onBlur=function(e){var t,n=this,i=e.target;if(i&&this.containerOuter.element.contains(i)&&!this._isScrollingOnIe){var r=this._store.activeItems.some((function(e){return e.highlighted}));((t={})[h.TEXT_TYPE]=function(){i===n.input.element&&(n.containerOuter.removeFocusState(),r&&n.unhighlightAll(),n.hideDropdown(!0))},t[h.SELECT_ONE_TYPE]=function(){n.containerOuter.removeFocusState(),(i===n.input.element||i===n.containerOuter.element&&!n._canSearch)&&n.hideDropdown(!0)},t[h.SELECT_MULTIPLE_TYPE]=function(){i===n.input.element&&(n.containerOuter.removeFocusState(),n.hideDropdown(!0),r&&n.unhighlightAll())},t)[this.passedElement.element.type]()}else this._isScrollingOnIe=!1,this.input.element.focus()},e.prototype._onFormReset=function(){this._store.dispatch((0,d.resetTo)(this._initialState))},e.prototype._highlightChoice=function(e){var t=this;void 0===e&&(e=null);var n=Array.from(this.dropdown.element.querySelectorAll("[data-choice-selectable]"));if(n.length){var i=e;Array.from(this.dropdown.element.querySelectorAll(".".concat(this.config.classNames.highlightedState))).forEach((function(e){e.classList.remove(t.config.classNames.highlightedState),e.setAttribute("aria-selected","false")})),i?this._highlightPosition=n.indexOf(i):(i=n.length>this._highlightPosition?n[this._highlightPosition]:n[n.length-1])||(i=n[0]),i.classList.add(this.config.classNames.highlightedState),i.setAttribute("aria-selected","true"),this.passedElement.triggerEvent(h.EVENTS.highlightChoice,{el:i}),this.dropdown.isActive&&(this.input.setActiveDescendant(i.id),this.containerOuter.setActiveDescendant(i.id))}},e.prototype._addItem=function(e){var t=e.value,n=e.label,i=void 0===n?null:n,r=e.choiceId,a=void 0===r?-1:r,s=e.groupId,o=void 0===s?-1:s,l=e.customProperties,d=void 0===l?{}:l,c=e.placeholder,p=void 0!==c&&c,f=e.keyCode,m=void 0===f?-1:f,g="string"==typeof t?t.trim():t,v=this._store.items,y=i||g,b=a||-1,_=o>=0?this._store.getGroupById(o):null,w=v?v.length+1:1;this.config.prependValue&&(g=this.config.prependValue+g.toString()),this.config.appendValue&&(g+=this.config.appendValue.toString()),this._store.dispatch((0,u.addItem)({value:g,label:y,id:w,choiceId:b,groupId:o,customProperties:d,placeholder:p,keyCode:m})),this._isSelectOneElement&&this.removeActiveItems(w),this.passedElement.triggerEvent(h.EVENTS.addItem,{id:w,value:g,label:y,customProperties:d,groupValue:_&&_.value?_.value:null,keyCode:m})},e.prototype._removeItem=function(e){var t=e.id,n=e.value,i=e.label,r=e.customProperties,a=e.choiceId,s=e.groupId,o=s&&s>=0?this._store.getGroupById(s):null;t&&a&&(this._store.dispatch((0,u.removeItem)(t,a)),this.passedElement.triggerEvent(h.EVENTS.removeItem,{id:t,value:n,label:i,customProperties:r,groupValue:o&&o.value?o.value:null}))},e.prototype._addChoice=function(e){var t=e.value,n=e.label,i=void 0===n?null:n,r=e.isSelected,a=void 0!==r&&r,s=e.isDisabled,l=void 0!==s&&s,u=e.groupId,d=void 0===u?-1:u,c=e.customProperties,h=void 0===c?{}:c,p=e.placeholder,f=void 0!==p&&p,m=e.keyCode,g=void 0===m?-1:m;if(null!=t){var v=this._store.choices,y=i||t,b=v?v.length+1:1,_="".concat(this._baseId,"-").concat(this._idNames.itemChoice,"-").concat(b);this._store.dispatch((0,o.addChoice)({id:b,groupId:d,elementId:_,value:t,label:y,disabled:l,customProperties:h,placeholder:f,keyCode:g})),a&&this._addItem({value:t,label:y,choiceId:b,customProperties:h,placeholder:f,keyCode:g})}},e.prototype._addGroup=function(e){var t=this,n=e.group,i=e.id,r=e.valueKey,a=void 0===r?"value":r,s=e.labelKey,o=void 0===s?"label":s,u=(0,f.isType)("Object",n)?n.choices:Array.from(n.getElementsByTagName("OPTION")),d=i||Math.floor((new Date).valueOf()*Math.random()),c=!!n.disabled&&n.disabled;u?(this._store.dispatch((0,l.addGroup)({value:n.label,id:d,active:!0,disabled:c})),u.forEach((function(e){var n=e.disabled||e.parentNode&&e.parentNode.disabled;t._addChoice({value:e[a],label:(0,f.isType)("Object",e)?e[o]:e.innerHTML,isSelected:e.selected,isDisabled:n,groupId:d,customProperties:e.customProperties,placeholder:e.placeholder})}))):this._store.dispatch((0,l.addGroup)({value:n.label,id:n.id,active:!1,disabled:n.disabled}))},e.prototype._getTemplate=function(e){for(var t,n=[],r=1;r{Object.defineProperty(t,"__esModule",{value:!0});var i=n(799),r=n(883),a=function(){function e(e){var t=e.element,n=e.type,i=e.classNames,r=e.position;this.element=t,this.classNames=i,this.type=n,this.position=r,this.isOpen=!1,this.isFlipped=!1,this.isFocussed=!1,this.isDisabled=!1,this.isLoading=!1,this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return e.prototype.addEventListeners=function(){this.element.addEventListener("focus",this._onFocus),this.element.addEventListener("blur",this._onBlur)},e.prototype.removeEventListeners=function(){this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},e.prototype.shouldFlip=function(e,t,n){if("number"!=typeof e)return!1;var i=!1;return"auto"===this.position?(i=!window.matchMedia("(min-height: ".concat(e+1,"px)")).matches)&&n.getBoundingClientRect().top-t<0&&(i=!1):"top"===this.position&&(i=!0),i},e.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e.prototype.open=function(e,t){this.element.classList.add(this.classNames.openState),this.element.setAttribute("aria-expanded","true"),this.isOpen=!0,this.shouldFlip(e,t,this.element)&&(this.element.classList.add(this.classNames.flippedState),this.isFlipped=!0)},e.prototype.close=function(){this.element.classList.remove(this.classNames.openState),this.element.setAttribute("aria-expanded","false"),this.removeActiveDescendant(),this.isOpen=!1,this.isFlipped&&(this.element.classList.remove(this.classNames.flippedState),this.isFlipped=!1)},e.prototype.focus=function(){this.isFocussed||this.element.focus()},e.prototype.addFocusState=function(){this.element.classList.add(this.classNames.focusState)},e.prototype.removeFocusState=function(){this.element.classList.remove(this.classNames.focusState)},e.prototype.enable=function(){this.element.classList.remove(this.classNames.disabledState),this.element.removeAttribute("aria-disabled"),this.type===r.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","0"),this.isDisabled=!1},e.prototype.disable=function(){this.element.classList.add(this.classNames.disabledState),this.element.setAttribute("aria-disabled","true"),this.type===r.SELECT_ONE_TYPE&&this.element.setAttribute("tabindex","-1"),this.isDisabled=!0},e.prototype.wrap=function(e){(0,i.wrap)(e,this.element)},e.prototype.unwrap=function(e){this.element.parentNode&&(this.element.parentNode.insertBefore(e,this.element),this.element.parentNode.removeChild(this.element))},e.prototype.addLoadingState=function(){this.element.classList.add(this.classNames.loadingState),this.element.setAttribute("aria-busy","true"),this.isLoading=!0},e.prototype.removeLoadingState=function(){this.element.classList.remove(this.classNames.loadingState),this.element.removeAttribute("aria-busy"),this.isLoading=!1},e.prototype._onFocus=function(){this.isFocussed=!0},e.prototype._onBlur=function(){this.isFocussed=!1},e}();t.default=a},217:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e){var t=e.element,n=e.type,i=e.classNames;this.element=t,this.classNames=i,this.type=n,this.isActive=!1}return Object.defineProperty(e.prototype,"distanceFromTopWindow",{get:function(){return this.element.getBoundingClientRect().bottom},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.element.getBoundingClientRect().height},enumerable:!1,configurable:!0}),e.prototype.getChild=function(e){return this.element.querySelector(e)},e.prototype.show=function(){return this.element.classList.add(this.classNames.activeState),this.element.setAttribute("aria-expanded","true"),this.isActive=!0,this},e.prototype.hide=function(){return this.element.classList.remove(this.classNames.activeState),this.element.setAttribute("aria-expanded","false"),this.isActive=!1,this},e}();t.default=n},520:function(e,t,n){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WrappedSelect=t.WrappedInput=t.List=t.Input=t.Container=t.Dropdown=void 0;var r=i(n(217));t.Dropdown=r.default;var a=i(n(613));t.Container=a.default;var s=i(n(11));t.Input=s.default;var o=i(n(624));t.List=o.default;var l=i(n(541));t.WrappedInput=l.default;var u=i(n(982));t.WrappedSelect=u.default},11:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=n(799),r=n(883),a=function(){function e(e){var t=e.element,n=e.type,i=e.classNames,r=e.preventPaste;this.element=t,this.type=n,this.classNames=i,this.preventPaste=r,this.isFocussed=this.element.isEqualNode(document.activeElement),this.isDisabled=t.disabled,this._onPaste=this._onPaste.bind(this),this._onInput=this._onInput.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this)}return Object.defineProperty(e.prototype,"placeholder",{set:function(e){this.element.placeholder=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return(0,i.sanitise)(this.element.value)},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rawValue",{get:function(){return this.element.value},enumerable:!1,configurable:!0}),e.prototype.addEventListeners=function(){this.element.addEventListener("paste",this._onPaste),this.element.addEventListener("input",this._onInput,{passive:!0}),this.element.addEventListener("focus",this._onFocus,{passive:!0}),this.element.addEventListener("blur",this._onBlur,{passive:!0})},e.prototype.removeEventListeners=function(){this.element.removeEventListener("input",this._onInput),this.element.removeEventListener("paste",this._onPaste),this.element.removeEventListener("focus",this._onFocus),this.element.removeEventListener("blur",this._onBlur)},e.prototype.enable=function(){this.element.removeAttribute("disabled"),this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute("disabled",""),this.isDisabled=!0},e.prototype.focus=function(){this.isFocussed||this.element.focus()},e.prototype.blur=function(){this.isFocussed&&this.element.blur()},e.prototype.clear=function(e){return void 0===e&&(e=!0),this.element.value&&(this.element.value=""),e&&this.setWidth(),this},e.prototype.setWidth=function(){var e=this.element,t=e.style,n=e.value,i=e.placeholder;t.minWidth="".concat(i.length+1,"ch"),t.width="".concat(n.length+1,"ch")},e.prototype.setActiveDescendant=function(e){this.element.setAttribute("aria-activedescendant",e)},e.prototype.removeActiveDescendant=function(){this.element.removeAttribute("aria-activedescendant")},e.prototype._onInput=function(){this.type!==r.SELECT_ONE_TYPE&&this.setWidth()},e.prototype._onPaste=function(e){this.preventPaste&&e.preventDefault()},e.prototype._onFocus=function(){this.isFocussed=!0},e.prototype._onBlur=function(){this.isFocussed=!1},e}();t.default=a},624:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=n(883),r=function(){function e(e){var t=e.element;this.element=t,this.scrollPos=this.element.scrollTop,this.height=this.element.offsetHeight}return e.prototype.clear=function(){this.element.innerHTML=""},e.prototype.append=function(e){this.element.appendChild(e)},e.prototype.getChild=function(e){return this.element.querySelector(e)},e.prototype.hasChildren=function(){return this.element.hasChildNodes()},e.prototype.scrollToTop=function(){this.element.scrollTop=0},e.prototype.scrollToChildElement=function(e,t){var n=this;if(e){var i=this.element.offsetHeight,r=this.element.scrollTop+i,a=e.offsetHeight,s=e.offsetTop+a,o=t>0?this.element.scrollTop+s-r:e.offsetTop;requestAnimationFrame((function(){n._animateScroll(o,t)}))}},e.prototype._scrollDown=function(e,t,n){var i=(n-e)/t,r=i>1?i:1;this.element.scrollTop=e+r},e.prototype._scrollUp=function(e,t,n){var i=(e-n)/t,r=i>1?i:1;this.element.scrollTop=e-r},e.prototype._animateScroll=function(e,t){var n=this,r=i.SCROLLING_SPEED,a=this.element.scrollTop,s=!1;t>0?(this._scrollDown(a,r,e),ae&&(s=!0)),s&&requestAnimationFrame((function(){n._animateScroll(e,t)}))},e}();t.default=r},730:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});var i=n(799),r=function(){function e(e){var t=e.element,n=e.classNames;if(this.element=t,this.classNames=n,!(t instanceof HTMLInputElement||t instanceof HTMLSelectElement))throw new TypeError("Invalid element passed");this.isDisabled=!1}return Object.defineProperty(e.prototype,"isActive",{get:function(){return"active"===this.element.dataset.choice},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"dir",{get:function(){return this.element.dir},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.value=e},enumerable:!1,configurable:!0}),e.prototype.conceal=function(){this.element.classList.add(this.classNames.input),this.element.hidden=!0,this.element.tabIndex=-1;var e=this.element.getAttribute("style");e&&this.element.setAttribute("data-choice-orig-style",e),this.element.setAttribute("data-choice","active")},e.prototype.reveal=function(){this.element.classList.remove(this.classNames.input),this.element.hidden=!1,this.element.removeAttribute("tabindex");var e=this.element.getAttribute("data-choice-orig-style");e?(this.element.removeAttribute("data-choice-orig-style"),this.element.setAttribute("style",e)):this.element.removeAttribute("style"),this.element.removeAttribute("data-choice"),this.element.value=this.element.value},e.prototype.enable=function(){this.element.removeAttribute("disabled"),this.element.disabled=!1,this.isDisabled=!1},e.prototype.disable=function(){this.element.setAttribute("disabled",""),this.element.disabled=!0,this.isDisabled=!0},e.prototype.triggerEvent=function(e,t){(0,i.dispatchEvent)(this.element,e,t)},e}();t.default=r},541:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t){var n=t.element,i=t.classNames,r=t.delimiter,a=e.call(this,{element:n,classNames:i})||this;return a.delimiter=r,a}return r(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.element.value},set:function(e){this.element.setAttribute("value",e),this.element.value=e},enumerable:!1,configurable:!0}),t}(a(n(730)).default);t.default=s},982:function(e,t,n){var i,r=this&&this.__extends||(i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=function(e){function t(t){var n=t.element,i=t.classNames,r=t.template,a=e.call(this,{element:n,classNames:i})||this;return a.template=r,a}return r(t,e),Object.defineProperty(t.prototype,"placeholderOption",{get:function(){return this.element.querySelector('option[value=""]')||this.element.querySelector("option[placeholder]")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optionGroups",{get:function(){return Array.from(this.element.getElementsByTagName("OPTGROUP"))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return Array.from(this.element.options)},set:function(e){var t=this,n=document.createDocumentFragment();e.forEach((function(e){return i=e,r=t.template(i),void n.appendChild(r);var i,r})),this.appendDocFragment(n)},enumerable:!1,configurable:!0}),t.prototype.appendDocFragment=function(e){this.element.innerHTML="",this.element.appendChild(e)},t}(a(n(730)).default);t.default=s},883:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SCROLLING_SPEED=t.SELECT_MULTIPLE_TYPE=t.SELECT_ONE_TYPE=t.TEXT_TYPE=t.KEY_CODES=t.ACTION_TYPES=t.EVENTS=void 0,t.EVENTS={showDropdown:"showDropdown",hideDropdown:"hideDropdown",change:"change",choice:"choice",search:"search",addItem:"addItem",removeItem:"removeItem",highlightItem:"highlightItem",highlightChoice:"highlightChoice",unhighlightItem:"unhighlightItem"},t.ACTION_TYPES={ADD_CHOICE:"ADD_CHOICE",FILTER_CHOICES:"FILTER_CHOICES",ACTIVATE_CHOICES:"ACTIVATE_CHOICES",CLEAR_CHOICES:"CLEAR_CHOICES",ADD_GROUP:"ADD_GROUP",ADD_ITEM:"ADD_ITEM",REMOVE_ITEM:"REMOVE_ITEM",HIGHLIGHT_ITEM:"HIGHLIGHT_ITEM",CLEAR_ALL:"CLEAR_ALL",RESET_TO:"RESET_TO",SET_IS_LOADING:"SET_IS_LOADING"},t.KEY_CODES={BACK_KEY:46,DELETE_KEY:8,ENTER_KEY:13,A_KEY:65,ESC_KEY:27,UP_KEY:38,DOWN_KEY:40,PAGE_UP_KEY:33,PAGE_DOWN_KEY:34},t.TEXT_TYPE="text",t.SELECT_ONE_TYPE="select-one",t.SELECT_MULTIPLE_TYPE="select-multiple",t.SCROLLING_SPEED=4},789:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CONFIG=t.DEFAULT_CLASSNAMES=void 0;var i=n(799);t.DEFAULT_CLASSNAMES={containerOuter:"choices",containerInner:"choices__inner",input:"choices__input",inputCloned:"choices__input--cloned",list:"choices__list",listItems:"choices__list--multiple",listSingle:"choices__list--single",listDropdown:"choices__list--dropdown",item:"choices__item",itemSelectable:"choices__item--selectable",itemDisabled:"choices__item--disabled",itemChoice:"choices__item--choice",placeholder:"choices__placeholder",group:"choices__group",groupHeading:"choices__heading",button:"choices__button",activeState:"is-active",focusState:"is-focused",openState:"is-open",disabledState:"is-disabled",highlightedState:"is-highlighted",selectedState:"is-selected",flippedState:"is-flipped",loadingState:"is-loading",noResults:"has-no-results",noChoices:"has-no-choices"},t.DEFAULT_CONFIG={items:[],choices:[],silent:!1,renderChoiceLimit:-1,maxItemCount:-1,addItems:!0,addItemFilter:null,removeItems:!0,removeItemButton:!1,editItems:!1,allowHTML:!0,duplicateItemsAllowed:!0,delimiter:",",paste:!0,searchEnabled:!0,searchChoices:!0,searchFloor:1,searchResultLimit:4,searchFields:["label","value"],position:"auto",resetScrollPosition:!0,shouldSort:!0,shouldSortItems:!1,sorter:i.sortByAlpha,shadowRoot:null,placeholder:!0,placeholderValue:null,searchPlaceholderValue:null,prependValue:null,appendValue:null,renderSelectedChoices:"auto",loadingText:"Loading...",noResultsText:"No results found",noChoicesText:"No choices to choose from",itemSelectText:"Press to select",uniqueItemText:"Only unique values can be added",customAddItemText:"Only values matching specific conditions can be added",addItemText:function(e){return'Press Enter to add "'.concat((0,i.sanitise)(e),'"')},maxItemText:function(e){return"Only ".concat(e," values can be added")},valueComparer:function(e,t){return e===t},fuseOptions:{includeScore:!0},labelId:"",callbackOnInit:null,callbackOnCreateTemplates:null,classNames:t.DEFAULT_CLASSNAMES}},18:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},978:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},948:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},359:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},285:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},533:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},187:function(e,t,n){var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(18),t),r(n(978),t),r(n(948),t),r(n(359),t),r(n(285),t),r(n(533),t),r(n(287),t),r(n(132),t),r(n(837),t),r(n(598),t),r(n(369),t),r(n(37),t),r(n(47),t),r(n(923),t),r(n(876),t)},287:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},132:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},837:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},598:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},37:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},369:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},47:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},923:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},876:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0})},799:(e,t)=>{var n;Object.defineProperty(t,"__esModule",{value:!0}),t.parseCustomProperties=t.diff=t.cloneObject=t.existsInArray=t.dispatchEvent=t.sortByScore=t.sortByAlpha=t.strToEl=t.sanitise=t.isScrolledIntoView=t.getAdjacentEl=t.wrap=t.isType=t.getType=t.generateId=t.generateChars=t.getRandomNumber=void 0,t.getRandomNumber=function(e,t){return Math.floor(Math.random()*(t-e)+e)},t.generateChars=function(e){return Array.from({length:e},(function(){return(0,t.getRandomNumber)(0,36).toString(36)})).join("")},t.generateId=function(e,n){var i=e.id||e.name&&"".concat(e.name,"-").concat((0,t.generateChars)(2))||(0,t.generateChars)(4);return i=i.replace(/(:|\.|\[|\]|,)/g,""),"".concat(n,"-").concat(i)},t.getType=function(e){return Object.prototype.toString.call(e).slice(8,-1)},t.isType=function(e,n){return null!=n&&(0,t.getType)(n)===e},t.wrap=function(e,t){return void 0===t&&(t=document.createElement("div")),e.parentNode&&(e.nextSibling?e.parentNode.insertBefore(t,e.nextSibling):e.parentNode.appendChild(t)),t.appendChild(e)},t.getAdjacentEl=function(e,t,n){void 0===n&&(n=1);for(var i="".concat(n>0?"next":"previous","ElementSibling"),r=e[i];r;){if(r.matches(t))return r;r=r[i]}return r},t.isScrolledIntoView=function(e,t,n){return void 0===n&&(n=1),!!e&&(n>0?t.scrollTop+t.offsetHeight>=e.offsetTop+e.offsetHeight:e.offsetTop>=t.scrollTop)},t.sanitise=function(e){return"string"!=typeof e?e:e.replace(/&/g,"&").replace(/>/g,">").replace(/-1?e.map((function(e){var t=e;return t.id===parseInt("".concat(s.choiceId),10)&&(t.selected=!0),t})):e;case"REMOVE_ITEM":var o=i;return o.choiceId&&o.choiceId>-1?e.map((function(e){var t=e;return t.id===parseInt("".concat(o.choiceId),10)&&(t.selected=!1),t})):e;case"FILTER_CHOICES":var l=i;return e.map((function(e){var t=e;return t.active=l.results.some((function(e){var n=e.item,i=e.score;return n.id===t.id&&(t.score=i,!0)})),t}));case"ACTIVATE_CHOICES":var u=i;return e.map((function(e){var t=e;return t.active=u.active,t}));case"CLEAR_CHOICES":return t.defaultState;default:return e}}},871:function(e,t){var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,a=t.length;r{Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=void 0,t.defaultState=!1,t.default=function(e,n){return void 0===e&&(e=t.defaultState),void 0===n&&(n={}),"SET_IS_LOADING"===n.type?n.isLoading:e}},744:function(e,t,n){var i=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var i,r=0,a=t.length;r{Object.defineProperty(t,"__esModule",{value:!0});var n={containerOuter:function(e,t,n,i,r,a,s){var o=e.classNames.containerOuter,l=Object.assign(document.createElement("div"),{className:o});return l.dataset.type=a,t&&(l.dir=t),i&&(l.tabIndex=0),n&&(l.setAttribute("role",r?"combobox":"listbox"),r&&l.setAttribute("aria-autocomplete","list")),l.setAttribute("aria-haspopup","true"),l.setAttribute("aria-expanded","false"),s&&l.setAttribute("aria-labelledby",s),l},containerInner:function(e){var t=e.classNames.containerInner;return Object.assign(document.createElement("div"),{className:t})},itemList:function(e,t){var n=e.classNames,i=n.list,r=n.listSingle,a=n.listItems;return Object.assign(document.createElement("div"),{className:"".concat(i," ").concat(t?r:a)})},placeholder:function(e,t){var n,i=e.allowHTML,r=e.classNames.placeholder;return Object.assign(document.createElement("div"),((n={className:r})[i?"innerHTML":"innerText"]=t,n))},item:function(e,t,n){var i,r,a=e.allowHTML,s=e.classNames,o=s.item,l=s.button,u=s.highlightedState,d=s.itemSelectable,c=s.placeholder,h=t.id,p=t.value,f=t.label,m=t.customProperties,g=t.active,v=t.disabled,y=t.highlighted,b=t.placeholder,_=Object.assign(document.createElement("div"),((i={className:o})[a?"innerHTML":"innerText"]=f,i));if(Object.assign(_.dataset,{item:"",id:h,value:p,customProperties:m}),g&&_.setAttribute("aria-selected","true"),v&&_.setAttribute("aria-disabled","true"),b&&_.classList.add(c),_.classList.add(y?u:d),n){v&&_.classList.remove(d),_.dataset.deletable="";var w="Remove item",M=Object.assign(document.createElement("button"),((r={type:"button",className:l})[a?"innerHTML":"innerText"]=w,r));M.setAttribute("aria-label","".concat(w,": '").concat(p,"'")),M.dataset.button="",_.appendChild(M)}return _},choiceList:function(e,t){var n=e.classNames.list,i=Object.assign(document.createElement("div"),{className:n});return t||i.setAttribute("aria-multiselectable","true"),i.setAttribute("role","listbox"),i},choiceGroup:function(e,t){var n,i=e.allowHTML,r=e.classNames,a=r.group,s=r.groupHeading,o=r.itemDisabled,l=t.id,u=t.value,d=t.disabled,c=Object.assign(document.createElement("div"),{className:"".concat(a," ").concat(d?o:"")});return c.setAttribute("role","group"),Object.assign(c.dataset,{group:"",id:l,value:u}),d&&c.setAttribute("aria-disabled","true"),c.appendChild(Object.assign(document.createElement("div"),((n={className:s})[i?"innerHTML":"innerText"]=u,n))),c},choice:function(e,t,n){var i,r=e.allowHTML,a=e.classNames,s=a.item,o=a.itemChoice,l=a.itemSelectable,u=a.selectedState,d=a.itemDisabled,c=a.placeholder,h=t.id,p=t.value,f=t.label,m=t.groupId,g=t.elementId,v=t.disabled,y=t.selected,b=t.placeholder,_=Object.assign(document.createElement("div"),((i={id:g})[r?"innerHTML":"innerText"]=f,i.className="".concat(s," ").concat(o),i));return y&&_.classList.add(u),b&&_.classList.add(c),_.setAttribute("role",m&&m>0?"treeitem":"option"),Object.assign(_.dataset,{choice:"",id:h,value:p,selectText:n}),v?(_.classList.add(d),_.dataset.choiceDisabled="",_.setAttribute("aria-disabled","true")):(_.classList.add(l),_.dataset.choiceSelectable=""),_},input:function(e,t){var n=e.classNames,i=n.input,r=n.inputCloned,a=Object.assign(document.createElement("input"),{type:"text",name:"search_terms",className:"".concat(i," ").concat(r),autocomplete:"off",autocapitalize:"off",spellcheck:!1});return a.setAttribute("role","textbox"),a.setAttribute("aria-autocomplete","list"),a.setAttribute("aria-label",t),a},dropdown:function(e){var t=e.classNames,n=t.list,i=t.listDropdown,r=document.createElement("div");return r.classList.add(n,i),r.setAttribute("aria-expanded","false"),r},notice:function(e,t,n){var i,r=e.allowHTML,a=e.classNames,s=a.item,o=a.itemChoice,l=a.noResults,u=a.noChoices;void 0===n&&(n="");var d=[s,o];return"no-choices"===n?d.push(u):"no-results"===n&&d.push(l),Object.assign(document.createElement("div"),((i={})[r?"innerHTML":"innerText"]=t,i.className=d.join(" "),i))},option:function(e){var t=e.label,n=e.value,i=e.customProperties,r=e.active,a=e.disabled,s=new Option(t,n,!1,r);return i&&(s.dataset.customProperties="".concat(i)),s.disabled=!!a,s}};t.default=n},996:e=>{var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===n}(e)}(e)},n="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function i(e,t){return!1!==t.clone&&t.isMergeableObject(e)?o((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function r(e,t,n){return e.concat(t).map((function(e){return i(e,n)}))}function a(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return e.propertyIsEnumerable(t)})):[]}(e))}function s(e,t){try{return t in e}catch(e){return!1}}function o(e,n,l){(l=l||{}).arrayMerge=l.arrayMerge||r,l.isMergeableObject=l.isMergeableObject||t,l.cloneUnlessOtherwiseSpecified=i;var u=Array.isArray(n);return u===Array.isArray(e)?u?l.arrayMerge(e,n,l):function(e,t,n){var r={};return n.isMergeableObject(e)&&a(e).forEach((function(t){r[t]=i(e[t],n)})),a(t).forEach((function(a){(function(e,t){return s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,a)||(s(e,a)&&n.isMergeableObject(t[a])?r[a]=function(e,t){if(!t.customMerge)return o;var n=t.customMerge(e);return"function"==typeof n?n:o}(a,n)(e[a],t[a],n):r[a]=i(t[a],n))})),r}(e,n,l):i(n,l)}o.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return o(e,n,t)}),{})};var l=o;e.exports=l},221:(e,t,n)=>{function i(e){return Array.isArray?Array.isArray(e):"[object Array]"===u(e)}function r(e){return"string"==typeof e}function a(e){return"number"==typeof e}function s(e){return"object"==typeof e}function o(e){return null!=e}function l(e){return!e.trim().length}function u(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}n.r(t),n.d(t,{default:()=>N});const d=Object.prototype.hasOwnProperty;class c{constructor(e){this._keys=[],this._keyMap={};let t=0;e.forEach((e=>{let n=h(e);t+=n.weight,this._keys.push(n),this._keyMap[n.id]=n,t+=n.weight})),this._keys.forEach((e=>{e.weight/=t}))}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function h(e){let t=null,n=null,a=null,s=1,o=null;if(r(e)||i(e))a=e,t=p(e),n=f(e);else{if(!d.call(e,"name"))throw new Error("Missing name property in key");const i=e.name;if(a=i,d.call(e,"weight")&&(s=e.weight,s<=0))throw new Error((e=>`Property 'weight' in key '${e}' must be a positive integer`)(i));t=p(i),n=f(i),o=e.getFn}return{path:t,id:n,weight:s,src:a,getFn:o}}function p(e){return i(e)?e:e.split(".")}function f(e){return i(e)?e.join("."):e}var m={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx{if(o(e))if(t[c]){const h=e[t[c]];if(!o(h))return;if(c===t.length-1&&(r(h)||a(h)||function(e){return!0===e||!1===e||function(e){return s(e)&&null!==e}(e)&&"[object Boolean]"==u(e)}(h)))n.push(function(e){return null==e?"":function(e){if("string"==typeof e)return e;let t=e+"";return"0"==t&&1/e==-1/0?"-0":t}(e)}(h));else if(i(h)){l=!0;for(let e=0,n=h.length;e{this._keysMap[e.id]=t}))}create(){!this.isCreated&&this.docs.length&&(this.isCreated=!0,r(this.docs[0])?this.docs.forEach(((e,t)=>{this._addString(e,t)})):this.docs.forEach(((e,t)=>{this._addObject(e,t)})),this.norm.clear())}add(e){const t=this.size();r(e)?this._addString(e,t):this._addObject(e,t)}removeAt(e){this.records.splice(e,1);for(let t=e,n=this.size();t{let s=t.getFn?t.getFn(e):this.getFn(e,t.path);if(o(s))if(i(s)){let e=[];const t=[{nestedArrIndex:-1,value:s}];for(;t.length;){const{nestedArrIndex:n,value:a}=t.pop();if(o(a))if(r(a)&&!l(a)){let t={v:a,i:n,n:this.norm.get(a)};e.push(t)}else i(a)&&a.forEach(((e,n)=>{t.push({nestedArrIndex:n,value:e})}))}n.$[a]=e}else if(r(s)&&!l(s)){let e={v:s,n:this.norm.get(s)};n.$[a]=e}})),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function y(e,t,{getFn:n=m.getFn,fieldNormWeight:i=m.fieldNormWeight}={}){const r=new v({getFn:n,fieldNormWeight:i});return r.setKeys(e.map(h)),r.setSources(t),r.create(),r}function b(e,{errors:t=0,currentLocation:n=0,expectedLocation:i=0,distance:r=m.distance,ignoreLocation:a=m.ignoreLocation}={}){const s=t/e.length;if(a)return s;const o=Math.abs(i-n);return r?s+o/r:o?1:s}const _=32;function w(e){let t={};for(let n=0,i=e.length;n{this.chunks.push({pattern:e,alphabet:w(e),startIndex:t})},d=this.pattern.length;if(d>_){let e=0;const t=d%_,n=d-t;for(;e{const{isMatch:f,score:g,indices:v}=function(e,t,n,{location:i=m.location,distance:r=m.distance,threshold:a=m.threshold,findAllMatches:s=m.findAllMatches,minMatchCharLength:o=m.minMatchCharLength,includeMatches:l=m.includeMatches,ignoreLocation:u=m.ignoreLocation}={}){if(t.length>_)throw new Error("Pattern length exceeds max of 32.");const d=t.length,c=e.length,h=Math.max(0,Math.min(i,c));let p=a,f=h;const g=o>1||l,v=g?Array(c):[];let y;for(;(y=e.indexOf(t,f))>-1;){let e=b(t,{currentLocation:y,expectedLocation:h,distance:r,ignoreLocation:u});if(p=Math.min(e,p),f=y+d,g){let e=0;for(;e=l;a-=1){let s=a-1,o=n[e.charAt(s)];if(g&&(v[s]=+!!o),y[a]=(y[a+1]<<1|1)&o,i&&(y[a]|=(w[a+1]|w[a])<<1|1|w[a+1]),y[a]&S&&(M=b(t,{errors:i,currentLocation:s,expectedLocation:h,distance:r,ignoreLocation:u}),M<=p)){if(p=M,f=s,f<=h)break;l=Math.max(1,2*h-f)}}if(b(t,{errors:i+1,currentLocation:h,expectedLocation:h,distance:r,ignoreLocation:u})>p)break;w=y}const x={isMatch:f>=0,score:Math.max(.001,M)};if(g){const e=function(e=[],t=m.minMatchCharLength){let n=[],i=-1,r=-1,a=0;for(let s=e.length;a=t&&n.push([i,r]),i=-1)}return e[a-1]&&a-i>=t&&n.push([i,a-1]),n}(v,o);e.length?l&&(x.indices=e):x.isMatch=!1}return x}(e,t,h,{location:i+p,distance:r,threshold:a,findAllMatches:s,minMatchCharLength:o,includeMatches:n,ignoreLocation:l});f&&(c=!0),d+=g,f&&v&&(u=[...u,...v])}));let h={isMatch:c,score:c?d/this.chunks.length:1};return c&&n&&(h.indices=u),h}}class k{constructor(e){this.pattern=e}static isMultiMatch(e){return S(e,this.multiRegex)}static isSingleMatch(e){return S(e,this.singleRegex)}search(){}}function S(e,t){const n=e.match(t);return n?n[1]:null}class x extends k{constructor(e,{location:t=m.location,threshold:n=m.threshold,distance:i=m.distance,includeMatches:r=m.includeMatches,findAllMatches:a=m.findAllMatches,minMatchCharLength:s=m.minMatchCharLength,isCaseSensitive:o=m.isCaseSensitive,ignoreLocation:l=m.ignoreLocation}={}){super(e),this._bitapSearch=new M(e,{location:t,threshold:n,distance:i,includeMatches:r,findAllMatches:a,minMatchCharLength:s,isCaseSensitive:o,ignoreLocation:l})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class L extends k{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let t,n=0;const i=[],r=this.pattern.length;for(;(t=e.indexOf(this.pattern,n))>-1;)n=t+r,i.push([t,n-1]);const a=!!i.length;return{isMatch:a,score:a?0:1,indices:i}}}const C=[class extends k{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const t=e===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},L,class extends k{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const t=e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},class extends k{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const t=!e.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends k{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const t=!e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},class extends k{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const t=e.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[e.length-this.pattern.length,e.length-1]}}},class extends k{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const t=-1===e.indexOf(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,e.length-1]}}},x],T=C.length,E=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,A=new Set([x.type,L.type]);const D=[];function P(e,t){for(let n=0,i=D.length;n!(!e[O]&&!e.$or),R=e=>({[O]:Object.keys(e).map((t=>({[t]:e[t]})))});function F(e,t,{auto:n=!0}={}){const a=e=>{let o=Object.keys(e);const l=(e=>!!e[j])(e);if(!l&&o.length>1&&!I(e))return a(R(e));if((e=>!i(e)&&s(e)&&!I(e))(e)){const i=l?e[j]:o[0],a=l?e.$val:e[i];if(!r(a))throw new Error((e=>`Invalid value for key ${e}`)(i));const s={keyId:f(i),pattern:a};return n&&(s.searcher=P(a,t)),s}let u={children:[],operator:o[0]};return o.forEach((t=>{const n=e[t];i(n)&&n.forEach((e=>{u.children.push(a(e))}))})),u};return I(e)||(e=R(e)),a(e)}function Y(e,t){const n=e.matches;t.matches=[],o(n)&&n.forEach((e=>{if(!o(e.indices)||!e.indices.length)return;const{indices:n,value:i}=e;let r={indices:n,value:i};e.key&&(r.key=e.key.src),e.idx>-1&&(r.refIndex=e.idx),t.matches.push(r)}))}function V(e,t){t.score=e.score}class N{constructor(e,t={},n){this.options={...m,...t},this.options.useExtendedSearch,this._keyStore=new c(this.options.keys),this.setCollection(e,n)}setCollection(e,t){if(this._docs=e,t&&!(t instanceof v))throw new Error("Incorrect 'index' type");this._myIndex=t||y(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){o(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const t=[];for(let n=0,i=this._docs.length;n{let n=1;e.matches.forEach((({key:e,norm:i,score:r})=>{const a=e?e.weight:null;n*=Math.pow(0===r&&a?Number.EPSILON:r,(a||1)*(t?1:i))})),e.score=n}))}(u,{ignoreFieldNorm:l}),s&&u.sort(o),a(t)&&t>-1&&(u=u.slice(0,t)),function(e,t,{includeMatches:n=m.includeMatches,includeScore:i=m.includeScore}={}){const r=[];return n&&r.push(Y),i&&r.push(V),e.map((e=>{const{idx:n}=e,i={item:t[n],refIndex:n};return r.length&&r.forEach((t=>{t(e,i)})),i}))}(u,this._docs,{includeMatches:n,includeScore:i})}_searchStringList(e){const t=P(e,this.options),{records:n}=this._myIndex,i=[];return n.forEach((({v:e,i:n,n:r})=>{if(!o(e))return;const{isMatch:a,score:s,indices:l}=t.searchIn(e);a&&i.push({item:e,idx:n,matches:[{score:s,value:e,norm:r,indices:l}]})})),i}_searchLogical(e){const t=F(e,this.options),n=(e,t,i)=>{if(!e.children){const{keyId:n,searcher:r}=e,a=this._findMatches({key:this._keyStore.get(n),value:this._myIndex.getValueForItemAtKeyId(t,n),searcher:r});return a&&a.length?[{idx:i,item:t,matches:a}]:[]}const r=[];for(let a=0,s=e.children.length;a{if(o(e)){let s=n(t,e,i);s.length&&(r[i]||(r[i]={idx:i,item:e,matches:[]},a.push(r[i])),s.forEach((({matches:e})=>{r[i].matches.push(...e)})))}})),a}_searchObjectList(e){const t=P(e,this.options),{keys:n,records:i}=this._myIndex,r=[];return i.forEach((({$:e,i})=>{if(!o(e))return;let a=[];n.forEach(((n,i)=>{a.push(...this._findMatches({key:n,value:e[i],searcher:t}))})),a.length&&r.push({idx:i,item:e,matches:a})})),r}_findMatches({key:e,value:t,searcher:n}){if(!o(t))return[];let r=[];if(i(t))t.forEach((({v:t,i,n:a})=>{if(!o(t))return;const{isMatch:s,score:l,indices:u}=n.searchIn(t);s&&r.push({score:l,key:e,value:t,idx:i,norm:a,indices:u})}));else{const{v:i,n:a}=t,{isMatch:s,score:o,indices:l}=n.searchIn(i);s&&r.push({score:o,key:e,value:i,norm:a,indices:l})}return r}}N.version="6.6.2",N.createIndex=y,N.parseIndex=function(e,{getFn:t=m.getFn,fieldNormWeight:n=m.fieldNormWeight}={}){const{keys:i,records:r}=e,a=new v({getFn:t,fieldNormWeight:n});return a.setKeys(i),a.setIndexRecords(r),a},N.config=m,N.parseQuery=F,function(...e){D.push(...e)}(class{constructor(e,{isCaseSensitive:t=m.isCaseSensitive,includeMatches:n=m.includeMatches,minMatchCharLength:i=m.minMatchCharLength,ignoreLocation:r=m.ignoreLocation,findAllMatches:a=m.findAllMatches,location:s=m.location,threshold:o=m.threshold,distance:l=m.distance}={}){this.query=null,this.options={isCaseSensitive:t,includeMatches:n,minMatchCharLength:i,findAllMatches:a,ignoreLocation:r,location:s,threshold:o,distance:l},this.pattern=t?e:e.toLowerCase(),this.query=function(e,t={}){return e.split("|").map((e=>{let n=e.trim().split(E).filter((e=>e&&!!e.trim())),i=[];for(let e=0,r=n.length;e{function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function r(e,t,n){return(t=function(e){var t=function(e){if("object"!==i(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;td,applyMiddleware:()=>v,bindActionCreators:()=>m,combineReducers:()=>p,compose:()=>g,createStore:()=>c,legacy_createStore:()=>h});var l="function"==typeof Symbol&&Symbol.observable||"@@observable",u=function(){return Math.random().toString(36).substring(7).split("").join(".")},d={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function c(e,t,n){var i;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(o(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(o(1));return n(c)(e,t)}if("function"!=typeof e)throw new Error(o(2));var r=e,a=t,s=[],u=s,h=!1;function p(){u===s&&(u=s.slice())}function f(){if(h)throw new Error(o(3));return a}function m(e){if("function"!=typeof e)throw new Error(o(4));if(h)throw new Error(o(5));var t=!0;return p(),u.push(e),function(){if(t){if(h)throw new Error(o(6));t=!1,p();var n=u.indexOf(e);u.splice(n,1),s=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(o(7));if(void 0===e.type)throw new Error(o(8));if(h)throw new Error(o(9));try{h=!0,a=r(a,e)}finally{h=!1}for(var t=s=u,n=0;n{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{n.d(i,{default:()=>r});var e=n(373),t=n.n(e);n(187),n(883),n(789),n(686);const r=t()})(),i.default})(),e.exports=t()},76659:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";if(Array.prototype.join,(e.prefix||e.suffix)&&(n+='\n
    \n '),n+="\n ",e.prefix&&(n+='\n
    \n ',e.prefix instanceof HTMLElement?n+="\n "+(null==(t=e.t(e.prefix.outerHTML,{_userInput:!0}))?"":t)+"\n ":n+="\n "+(null==(t=e.t(e.prefix,{_userInput:!0}))?"":t)+"\n ",n+="\n
    \n "),n+="\n ",e.options.floatingLabels&&(n+='\n
    \n '),n+="\n ",!e.component.editor&&!e.component.wysiwyg){for(var i in n+="\n <"+(null==(t=e.input.type)?"":t)+'\n ref="'+(null==(t=e.input.ref?e.input.ref:"input")?"":t)+'"\n ',e.input.attr)n+="\n "+(null==(t=i)?"":t)+'="'+(null==(t=e.input.attr[i])?"":t)+'"\n ';n+='\n id="'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+'"\n aria-labelledby="l-'+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)+" ",e.component.description&&(n+="d-"+(null==(t=e.instance.id)?"":t)+"-"+(null==(t=e.component.key)?"":t)),n+='"\n aria-required="'+(null==(t="input"!==e.input.ref&&e.input.ref?e.component.fields&&e.component.fields[e.input.ref]&&e.component.fields[e.input.ref].required||!1:e.component.validate.required)?"":t)+'"\n >'+(null==(t=e.input.content)?"":t)+"\n ",e.options.floatingLabels&&(n+='\n \n "),n+="\n ",e.hasValueMaskInput&&(n+='\n \n '),n+="\n"}return n+="\n",(e.component.editor||e.component.wysiwyg)&&(n+='\n
    \n'),n+="\n","datetime"===e.component.type&&(n+='\n\n'),n+="\n",e.suffix&&(n+='\n
    \n ',e.suffix instanceof HTMLElement?n+="\n "+(null==(t=e.t(e.suffix.outerHTML,{_userInput:!0}))?"":t)+"\n ":n+="\n "+(null==(t=e.t(e.suffix,{_userInput:!0}))?"":t)+"\n ",n+="\n
    \n"),n+="\n",(e.prefix||e.suffix||e.options.floatingLabels)&&(n+="\n
    \n"),n+="\n",(e.component.showCharCount||e.component.showWordCount)&&(n+='\n
    \n ',e.component.showCharCount&&(n+='\n \n '),n+="\n ",e.component.showWordCount&&(n+='\n \n '),n+="\n
    \n"),n+"\n"}},76667:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.editForms=void 0;const r=i(n(60918));t.editForms=[r.default.info].map((({components:e,name:t,defaultSettings:n})=>({type:"form",key:"settings",display:"form",input:!0,components:e.map((e=>(e.tableView=!1,e))),tableView:!1,defaultValue:{data:n},customConditional:({row:e})=>e.name.value===t}))),t.default={passwordStrength:r.default}},76959:e=>{e.exports=function(e,t,n){for(var i=n-1,r=e.length;++i0&&e.fields.forEach((e=>{t.some((t=>e===t))||t.push(e)})),e.fields=t}filterPlace(e){e=e||{};const t={};return this.autocompleteOptions&&this.autocompleteOptions.fields.forEach((n=>{e[n]&&(t[n]=e[n])})),t}attachAutocomplete(e,t,n){r.Formio.libraryReady(this.getLibraryName()).then((()=>{const i=new google.maps.places.Autocomplete(e,this.autocompleteOptions);i.addListener("place_changed",(()=>{const r=this.filterPlace(i.getPlace());r.formattedPlace=a.default.get(i,"gm_accessors_.place.se.formattedPrediction",r[this.alternativeDisplayValueProperty]),n(r,e,t)}))}))}search(){return Promise.resolve()}makeRequest(){return Promise.resolve()}getDisplayValue(e){const t=a.default.has(e,this.displayValueProperty)?this.displayValueProperty:this.alternativeDisplayValueProperty;return a.default.get(e,t,"")}tryRemoveLibrary(e={}){var t,i,a;if(!r.Formio.libraries[this.getLibraryName()])return;const s=document.querySelector(`script[src^="${l}"]`);s&&(null===(t=e.params)||void 0===t?void 0:t.key)&&!s.attributes.src.value.endsWith(e.params.key)&&((null!==(i=document.querySelectorAll(`script[src^="${o}"]`))&&void 0!==i?i:[]).forEach((e=>e.parentNode.removeChild(e))),delete r.Formio.libraries[this.getLibraryName()],null===(a=null===n.g||void 0===n.g?void 0:n.g.google)||void 0===a||delete a.maps,delete n.g[`${this.getLibraryName()}Callback`])}}t.GoogleAddressProvider=d},77038:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
    \n
    \n '+(null==(t=e.sidebar)?"":t)+'\n
    \n
    \n '+(null==(t=e.form)?"":t)+"\n
    \n
    \n"}},77075:function(e,t,n){!function(e){"use strict";e.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},77153:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(63481);t.default={form:i.default}},77171:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(94233),a=n(78443),s=i(n(2543)),o=n(34600),l=i(n(84803));class u extends l.default{static schema(...e){return l.default.schema({type:"currency",label:"Currency",key:"currency"},...e)}static get builderInfo(){return{title:"Currency",group:"advanced",icon:"usd",documentation:"/userguide/form-building/advanced-components#currency",weight:70,schema:u.schema()}}constructor(e,t,n){e&&!e.hasOwnProperty("delimiter")&&(e.delimiter=!0),super(e,t,n)}createNumberMask(){const e=s.default.get(this.component,"decimalLimit",2),t=(0,o.getCurrencyAffixes)({currency:this.component.currency,decimalLimit:e,decimalSeparator:this.decimalSeparator,lang:this.options.language});return this.currencyPrefix=this.options.prefix||t.prefix,this.currencySuffix=this.options.suffix||t.suffix,(0,r.createNumberMask)({prefix:this.currencyPrefix,suffix:this.currencySuffix,thousandsSeparatorSymbol:s.default.get(this.component,"thousandsSeparator",this.delimiter),decimalSymbol:s.default.get(this.component,"decimalSymbol",this.decimalSeparator),decimalLimit:e,allowNegative:s.default.get(this.component,"allowNegative",!0),allowDecimal:this.isDecimalAllowed()})}isDecimalAllowed(){return s.default.get(this.component,"allowDecimal",!0)}setInputMask(e){let t=`${(0,o.getCurrencyAffixes)({currency:this.component.currency,decimalSeparator:this.decimalSeparator,lang:this.options.language}).prefix}[0-9`;t+=this.decimalSeparator||"",t+=this.delimiter||"",t+="]*",e.setAttribute("pattern",t),e.mask=(0,a.maskInput)({inputElement:e,mask:this.numberMask||"",pipe:t=>("$0._"===t&&setTimeout((()=>{const t=e.value.length-1;e.setSelectionRange(t,t)})),t),shadowRoot:this.root?this.root.shadowRoot:null})}get defaultSchema(){return u.schema()}parseNumber(e){return super.parseNumber(this.stripPrefixSuffix(e))}parseValue(e){return super.parseValue(this.stripPrefixSuffix(e))}addZerosAndFormatValue(e){if(!e&&0!==e)return;const t=s.default.get(this.component,"decimalLimit",2);let n,i="",r=[];const a=!!this.currencyPrefix&&e.includes(this.currencyPrefix),o=!!this.currencySuffix&&e.includes(this.currencySuffix),l=e.includes("-")||!1;if((e=this.stripPrefixSuffix(l?e.replace("-",""):e)).includes(this.decimalSeparator)?([n,i]=e.split(this.decimalSeparator),r=[...i.split("")]):n=e,i.lengththis.addZerosAndFormatValue(super.getValueAsString(e,t)))).join(", "):this.addZerosAndFormatValue(n):n}formatValue(e){return e||"0"===e?this.addZerosAndFormatValue(e):super.formatValue(e)}stripPrefixSuffix(e){if("string"==typeof e)try{const t=!!this.currencyPrefix&&e.includes(this.currencyPrefix),n=!!this.currencySuffix&&e.includes(this.currencySuffix),i=e.includes(this.delimiter),r=e.includes(this.decimalSeparator);this.currencyPrefix&&(e=e.replace(this.currencyPrefix,"")),this.currencySuffix&&(e=e.replace(this.currencySuffix,"")),!t&&!n||i||r||!Number.isNaN(+e)&&e||(e="0")}catch(e){}return e}addFocusBlurEvents(e){super.addFocusBlurEvents(e),this.addEventListener(e,"focus",(()=>{e.defaultValue===e.value&&e.setSelectionRange(0,e.defaultValue.length)})),this.addEventListener(e,"blur",(()=>{e.value=this.getValueAsString(this.addZerosAndFormatValue(this.parseValue(e.value)))}))}}t.default=u},77172:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchProcessInfo=t.fetchProcess=t.shouldFetch=void 0;const r=n(2543),a=n(84679),s=n(96690);t.shouldFetch=e=>{const{component:t,config:n}=e;return!("datasource"!==t.type||(null==n?void 0:n.server)&&!(0,r.get)(t,"trigger.server",!1))},t.fetchProcess=e=>i(void 0,void 0,void 0,(function*(){var n;const{component:i,row:o,evalContext:l,path:u,scope:d,config:c}=e;let h=null;try{h=e.fetch?e.fetch:fetch}catch(e){h=null}if(!h)return void console.log("You must provide a fetch interface to the fetch processor.");if(!(0,t.shouldFetch)(e))return;d.fetched||(d.fetched={});const p=l?l(e):e,f=a.Evaluator.interpolateString((0,r.get)(i,"fetch.url",""),p);if(!f)return;const m={method:(0,r.get)(i,"fetch.method","get").toUpperCase(),headers:{}};(null==c?void 0:c.headers)&&(null==i?void 0:i.fetch)&&(null===(n=null==i?void 0:i.fetch)||void 0===n?void 0:n.forwardHeaders)&&(m.headers=JSON.parse(JSON.stringify(c.headers)),delete m.headers.host,delete m.headers["content-length"],delete m.headers["content-type"],delete m.headers.connection,delete m.headers["cache-control"]),m.headers.Accept="*/*",m.headers["user-agent"]="Form.io DataSource Component",(0,r.get)(i,"fetch.headers",[]).map((e=>(e.value=a.Evaluator.interpolateString(e.value,p),e.value&&e.key&&(m.headers[e.key]=e.value),e))),(0,r.get)(i,"fetch.authenticate",!1)&&(null==c?void 0:c.tokens)&&Object.assign(m.headers,c.tokens);const g=(0,r.get)(i,"fetch.specifyBody","");"POST"===m.method&&(m.body=JSON.stringify(a.Evaluator.evaluate(g,p,"body")));try{const e=yield(yield h(f,m)).json(),t=(0,r.get)(i,"fetch.mapFunction"),n=(0,s.getComponentKey)(i);(0,r.set)(o,n,t?a.Evaluator.evaluate(t,Object.assign(Object.assign({},p),{responseData:e}),"value"):e),d.filter||(d.filter={}),d.filter[u]=!0,d.fetched[u]=!0}catch(e){console.log(e.message)}})),t.fetchProcessInfo={name:"fetch",process:t.fetchProcess,shouldProcess:t.shouldFetch}},77186:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n(59025)),r=a(n(9042));function a(e){return e&&e.__esModule?e:{default:e}}var s=(0,i.default)("v5",80,r.default);t.default=s},77199:(e,t,n)=>{var i=n(49653),r=n(76169),a=n(73201),s=n(93736),o=n(77990);e.exports=function(e,t,n){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return i(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return r(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return o(e,n);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return a(e);case"[object Symbol]":return s(e)}}},77274:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateMaximumValueInfo=t.validateMaximumValueSync=t.validateMaximumValue=t.shouldValidate=void 0;const r=n(54008),a=e=>{var t;let n=null===(t=e.validate)||void 0===t?void 0:t.max;return"string"==typeof n&&(n=parseFloat(n)),n};t.shouldValidate=e=>{const{component:t,value:n}=e;return!!(e=>{var t;return e&&(null===(t=e.validate)||void 0===t?void 0:t.hasOwnProperty("max"))})(t)&&null!==n&&!Number.isNaN(a(t))},t.validateMaximumValue=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateMaximumValueSync)(e)})),t.validateMaximumValueSync=e=>{const{component:n,value:i}=e;if(!(0,t.shouldValidate)(e))return null;const s=a(n);if(void 0===s||Number.isNaN(s))return null;const o="string"==typeof i?parseFloat(i):Number(i);if(Number.isNaN(o))throw new r.ProcessorError(`Cannot validate value ${o} because it is invalid`,e,"validate:validateMaximumValue");return o<=s?null:new r.FieldError("max",Object.assign(Object.assign({},e),{max:String(s),setting:String(s)}))},t.validateMaximumValueInfo={name:"validateMaximumValue",process:t.validateMaximumValue,processSync:t.validateMaximumValueSync,shouldProcess:t.shouldValidate}},77298:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"select",input:!0,weight:40,tooltip:"Select the type of widget you'd like to use.",key:"inputType",defaultValue:"time",label:"Input Type",dataSrc:"values",data:{values:[{label:"HTML5 Time Input",value:"time"},{label:"Text Input with Mask",value:"text"}]}},{type:"textfield",input:!0,key:"format",label:"Format",placeholder:"Format",tooltip:"The moment.js format for showing the value of this field.",weight:50,defaultValue:"HH:mm",conditional:{json:{"===":[{var:"data.inputType"},"text"]}}},{key:"placeholder",ignore:!0}]},77329:function(e,t,n){!function(e){"use strict";e.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(e){return 0===e.indexOf("un")?"n"+e:"en "+e},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},77347:(e,t,n)=>{"use strict";var i=n(43724),r=n(69565),a=n(48773),s=n(6980),o=n(25397),l=n(56969),u=n(39297),d=n(35917),c=Object.getOwnPropertyDescriptor;t.f=i?c:function(e,t){if(e=o(e),t=l(t),d)try{return c(e,t)}catch(e){}if(u(e,t))return s(!r(a.f,e,t),e[t])}},77408:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(34600);t.default=[{key:"recaptchaInfo",weight:-10,type:"htmlelement",tag:"div",className:"alert alert-danger",content:"This component has been deprecated and will be removed. Use the CAPTCHA component instead."},{key:"eventType",label:"Type of event",tooltip:"Specify type of event that this CAPTCHA would react to. If Button Click is selected, then the CAPTCHA widget will be displayed and verification will occur after clicking on the button.",type:"radio",values:[{label:"Form Load",value:"formLoad"},{label:"Button Click",value:"buttonClick"}],validate:{required:!0},weight:650},{type:"select",input:!0,label:"Button Key",key:"buttonKey",dataSrc:"custom",valueProperty:"value",tooltip:"Specify key of button on this form that this CAPTCHA should react to",weight:660,customConditional:e=>"buttonClick"===e.data.eventType,data:{custom:e=>(0,i.getContextButtons)(e)}},{key:"label",ignore:!0},{key:"hideLabel",ignore:!0},{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"tooltip",ignore:!0},{key:"errorLabel",ignore:!0},{key:"customClass",ignore:!0},{key:"tabindex",ignore:!0},{key:"multiple",ignore:!0},{key:"clearOnHide",ignore:!0},{key:"hidden",ignore:!0},{key:"mask",ignore:!0},{key:"dataGridLabel",ignore:!0},{key:"disabled",ignore:!0},{key:"autofocus",ignore:!0},{key:"tableView",ignore:!0}]},77486:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(37092));t.default=r.default},77556:(e,t,n)=>{var i=n(51873),r=n(34932),a=n(56449),s=n(44394),o=i?i.prototype:void 0,l=o?o.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(a(t))return r(t,e)+"";if(s(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},77610:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"textfield",input:!0,key:"defaultDate",label:"Default Date",placeholder:"moment()",tooltip:"You can use Moment.js functions to set the default value to a specific date. For example: \n \n moment().subtract(10, 'days')",weight:6},{type:"textarea",as:"json",editor:"ace",weight:28,input:!0,key:"customOptions",label:"Flatpickr options",tooltip:"A raw JSON object to use as options for the Date / Time component (Flatpickr).",defaultValue:{}}]},77629:(e,t,n)=>{"use strict";var i=n(96395),r=n(22195),a=n(39433),s="__core-js_shared__",o=e.exports=r[s]||a(s,{});(o.versions||(o.versions=[])).push({version:"3.41.0",mode:i?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})},77644:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayComponent=t.DataComponent=t.NestedComponent=t.Component=t.render=t.Components=void 0;var a=n(13614);Object.defineProperty(t,"Components",{enumerable:!0,get:function(){return a.Components}}),Object.defineProperty(t,"render",{enumerable:!0,get:function(){return a.render}});var s=n(43603);Object.defineProperty(t,"Component",{enumerable:!0,get:function(){return s.Component}});var o=n(64652);Object.defineProperty(t,"NestedComponent",{enumerable:!0,get:function(){return o.NestedComponent}});var l=n(49210);Object.defineProperty(t,"DataComponent",{enumerable:!0,get:function(){return l.DataComponent}});var u=n(44952);Object.defineProperty(t,"ArrayComponent",{enumerable:!0,get:function(){return u.ArrayComponent}}),r(n(74418),t)},77655:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(89480)),a=n(2543);class s extends r.default{static get operatorKey(){return"lessThan"}static get displayedName(){return"Less Than"}execute({value:e,comparedValue:t}){return(0,a.isNumber)(e)&&e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={}},77740:(e,t,n)=>{"use strict";var i=n(39297),r=n(35031),a=n(77347),s=n(24913);e.exports=function(e,t,n){for(var o=r(t),l=s.f,u=a.f,d=0;d{var i=n(44394);e.exports=function(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},77799:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(20163),t),r(n(39512),t)},77853:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[e+" Tage",e+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[e+" Monate",e+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[e+" Jahre",e+" Jahren"]};return t?r[n][0]:r[n][1]}e.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:t,mm:"%d Minuten",h:t,hh:"%d Stunden",d:t,dd:t,w:t,ww:"%d Wochen",M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},77946:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{key:"placeholder",ignore:!0},{key:"description",ignore:!0},{key:"autofocus",ignore:!0},{key:"tooltip",ignore:!0},{key:"tabindex",ignore:!0},{key:"tableView",ignore:!0},{key:"hideLabel",ignore:!0},{weight:0,type:"textfield",input:!0,key:"label",label:"Label",placeholder:"Field Label",tooltip:"The label for this field.",validate:{required:!0},autofocus:!0,overrideEditForm:!0}]},77990:(e,t,n)=>{var i=n(49653);e.exports=function(e,t){var n=t?i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},78096:e=>{e.exports=function(e,t){for(var n=-1,i=Array(e);++n{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"placeholder",ignore:!0}]},78165:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ProcessorType=void 0,function(e){e.Validate="validate",e.Custom="custom"}(n||(t.ProcessorType=n={}))},78227:(e,t,n)=>{"use strict";var i=n(22195),r=n(25745),a=n(39297),s=n(33392),o=n(4495),l=n(7040),u=i.Symbol,d=r("wks"),c=l?u.for||u:u&&u.withoutSetter||s;e.exports=function(e){return a(d,e)||(d[e]=o&&a(u,e)?u[e]:c("Symbol."+e)),d[e]}},78289:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateMinimumLengthInfo=t.validateMinimumLengthSync=t.validateMinimumLength=t.shouldValidate=void 0;const r=n(54008),a=e=>{var t;let n=null===(t=e.validate)||void 0===t?void 0:t.minLength;return"string"==typeof n&&(n=parseInt(n,10)),n};t.shouldValidate=e=>{const{component:t,value:n}=e;return!!((e=>{var t;return e&&(null===(t=e.validate)||void 0===t?void 0:t.hasOwnProperty("minLength"))})(t)&&n&&n&&a(t))},t.validateMinimumLength=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateMinimumLengthSync)(e)})),t.validateMinimumLengthSync=e=>{const{component:n,value:i}=e;if(!(0,t.shouldValidate)(e))return null;const s=a(n);return i&&s&&"string"==typeof i&&i.length0&&void 0!==arguments[0]?arguments[0]:o,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!(0,r.isArray)(t)){if((void 0===t?"undefined":i(t))!==a.strFunction)throw new Error("Text-mask:conformToMask; The mask property must be an array.");t=t(e,n),t=(0,r.processCaretTraps)(t).maskWithoutCaretTraps}var l=n.guide,u=void 0===l||l,d=n.previousConformedValue,c=void 0===d?o:d,h=n.placeholderChar,p=void 0===h?a.placeholderChar:h,f=n.placeholder,m=void 0===f?(0,r.convertMaskToPlaceholder)(t,p):f,g=n.currentCaretPosition,v=n.keepCharPositions,y=!1===u&&void 0!==c,b=e.length,_=c.length,w=m.length,M=t.length,k=b-_,S=k>0,x=g+(S?-k:0),L=x+Math.abs(k);if(!0===v&&!S){for(var C=o,T=x;T=x&&t=0;A--){var D=E[A].char;D!==p&&D===m[A>=x&&_===M?A-k:A]&&E.splice(A,1)}var P=o,O=!1;e:for(var j=0;j0)for(;E.length>0;){var R=E.shift(),F=R.char,Y=R.isNew;if(F===p&&!0!==y){P+=p;continue e}if(t[j].test(F)){if(!0===v&&!1!==Y&&c!==o&&!1!==u&&S){for(var V=E.length,N=null,H=0;H0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.placeholderChar;if(!i(e))throw new Error("Text-mask:convertMaskToPlaceholder; The mask property must be an array.");if(-1!==e.indexOf(t))throw new Error("Placeholder character must not be used as part of the mask. Please specify a character that is not present in your mask as your placeholder character.\n\nThe placeholder character that was received is: "+JSON.stringify(t)+"\n\nThe mask that was received is: "+JSON.stringify(e));return e.map((function(e){return e instanceof RegExp?t:e})).join("")},t.isArray=i,t.isString=function(e){return"string"==typeof e||e instanceof String},t.isNumber=function(e){return"number"==typeof e&&void 0===e.length&&!isNaN(e)},t.isNil=function(e){return null==e},t.processCaretTraps=function(e){for(var t=[],n=void 0;-1!==(n=e.indexOf(s));)t.push(n),e.splice(n,1);return{maskWithoutCaretTraps:e,indexes:t}};var r=n(1),a=[],s="[]"},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.previousConformedValue,r=void 0===t?i:t,a=e.previousPlaceholder,s=void 0===a?i:a,o=e.currentCaretPosition,l=void 0===o?0:o,u=e.conformedValue,d=e.rawValue,c=e.placeholderChar,h=e.placeholder,p=e.indexesOfPipedChars,f=void 0===p?n:p,m=e.caretTrapIndexes,g=void 0===m?n:m;if(0===l||!d.length)return 0;var v=d.length,y=r.length,b=h.length,_=u.length,w=v-y,M=w>0;if(w>1&&!M&&0!==y)return l;var k=0,S=void 0,x=void 0;if(!M||r!==u&&u!==h){var L=u.toLowerCase(),C=d.toLowerCase().substr(0,l).split(i).filter((function(e){return-1!==L.indexOf(e)}));x=C[C.length-1];var T=s.substr(0,C.length).split(i).filter((function(e){return e!==c})).length,E=h.substr(0,C.length).split(i).filter((function(e){return e!==c})).length,A=E!==T,D=void 0!==s[C.length-1]&&void 0!==h[C.length-2]&&s[C.length-1]!==c&&s[C.length-1]!==h[C.length-1]&&s[C.length-1]===h[C.length-2];!M&&(A||D)&&T>0&&h.indexOf(x)>-1&&void 0!==d[l]&&(S=!0,x=d[l]);for(var P=f.map((function(e){return L[e]})),O=P.filter((function(e){return e===x})).length,j=C.filter((function(e){return e===x})).length,I=h.substr(0,h.indexOf(c)).split(i).filter((function(e,t){return e===x&&d[t]!==e})).length,R=I+j+O+(S?1:0),F=0,Y=0;Y<_&&(k=Y+1,L[Y]===x&&F++,!(F>=R));Y++);}else k=l-w;if(M){for(var V=k,N=k;N<=b;N++)if(h[N]===c&&(V=N),h[N]===c||-1!==g.indexOf(N)||N===b)return V}else if(S){for(var H=k-1;H>=0;H--)if(u[H]===x||-1!==g.indexOf(H)||0===H)return H}else for(var z=k;z>=0;z--)if(h[z-1]===c||-1!==g.indexOf(z)||0===z)return z};var n=[],i=""},function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function r(e,t,n){(n?n.activeElement:document.activeElement)===e&&(f?m((function(){return e.setSelectionRange(t,t,h)}),0):e.setSelectionRange(t,t,h))}Object.defineProperty(t,"__esModule",{value:!0});var a=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:e,h=i.inputElement,f=i.mask,m=i.guide,g=i.pipe,v=i.placeholderChar,y=void 0===v?d.placeholderChar:v,b=i.keepCharPositions,_=void 0!==b&&b,w=i.showMask,M=void 0!==w&&w;if(void 0===n&&(n=h.value),n!==t.previousConformedValue){(void 0===f?"undefined":s(f))===p&&void 0!==f.pipe&&void 0!==f.mask&&(g=f.pipe,f=f.mask);var k=void 0,S=void 0;if(f instanceof Array&&(k=(0,u.convertMaskToPlaceholder)(f,y)),!1!==f){var x=function(e){if((0,u.isString)(e))return e;if((0,u.isNumber)(e))return String(e);if(null==e)return c;throw new Error("The 'value' provided to Text Mask needs to be a string or a number. The value received was:\n\n "+JSON.stringify(e))}(n),L=h.selectionEnd,C=t.previousConformedValue,T=t.previousPlaceholder,E=void 0;if((void 0===f?"undefined":s(f))===d.strFunction){if(!1===(S=f(x,{currentCaretPosition:L,previousConformedValue:C,placeholderChar:y})))return;var A=(0,u.processCaretTraps)(S);S=A.maskWithoutCaretTraps,E=A.indexes,k=(0,u.convertMaskToPlaceholder)(S,y)}else S=f;var D={previousConformedValue:C,guide:m,placeholderChar:y,pipe:g,placeholder:k,currentCaretPosition:L,keepCharPositions:_},P=(0,l.default)(x,S,D).conformedValue,O=(void 0===g?"undefined":s(g))===d.strFunction,j={};O&&(!1===(j=g(P,a({rawValue:x},D)))?j={value:C,rejected:!0}:(0,u.isString)(j)&&(j={value:j}));var I=O?j.value:P,R=(0,o.default)({previousConformedValue:C,previousPlaceholder:T,conformedValue:I,placeholder:k,rawValue:x,currentCaretPosition:L,placeholderChar:y,indexesOfPipedChars:j.indexesOfPipedChars,caretTrapIndexes:E}),F=I===k&&0===R?M?k:c:I;t.previousConformedValue=F,t.previousPlaceholder=k,h.value!==F&&(x.includes("e-")?h.value=x:h.value=F,r(h,R,e.shadowRoot))}}}}};var o=i(n(4)),l=i(n(2)),u=n(3),d=n(1),c="",h="none",p="object",f="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),m="undefined"!=typeof requestAnimationFrame?requestAnimationFrame:setTimeout}])},78474:function(e,t,n){!function(e){"use strict";var t={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};e.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},78609:function(e){e.exports=function(){"use strict";return function(e){var t=document,n=e.container||t.createElement("div");n.id=n.id||"autocomplete-"+y();var i,r,a=n.style,s=e.debounceWaitMs||0,o=e.preventSubmit||!1,l=e.disableAutoSelect||!1,u=n.parentElement,d=[],c="",h=2,p=e.showOnFocus,f=0,m=!1,g=!1;if(void 0!==e.minLength&&(h=e.minLength),!e.input)throw new Error("input undefined");var v=e.input;function y(){return Date.now().toString(36)+Math.random().toString(36).substring(2)}function b(){r&&window.clearTimeout(r)}function _(){return!!n.parentNode}function w(){var e;f++,d=[],c="",i=void 0,v.setAttribute("aria-activedescendant",""),v.setAttribute("aria-expanded","false"),(e=n.parentNode)&&e.removeChild(n)}function M(){n.innerHTML="",v.setAttribute("aria-activedescendant","");var r=function(e,n,i){var r=t.createElement("div");return r.textContent=e.label||"",r};e.render&&(r=e.render);var s=function(e,n){var i=t.createElement("div");return i.textContent=e,i};e.renderGroup&&(s=e.renderGroup);var o=t.createDocumentFragment(),l=y();if(d.forEach((function(t,a){if(t.group&&t.group!==l){l=t.group;var u=s(t.group,c);u&&(u.className+=" group",o.appendChild(u))}var d=r(t,c,a);d&&(d.id=n.id+"_"+a,d.setAttribute("role","option"),d.addEventListener("click",(function(n){g=!0;try{e.onSelect(t,v)}finally{g=!1}w(),n.preventDefault(),n.stopPropagation()})),t===i&&(d.className+=" selected",d.setAttribute("aria-selected","true"),v.setAttribute("aria-activedescendant",d.id)),o.appendChild(d))})),n.appendChild(o),d.length<1){if(!e.emptyMsg)return void w();var h=t.createElement("div");h.id=n.id+"_"+y(),h.className="empty",h.textContent=e.emptyMsg,n.appendChild(h),v.setAttribute("aria-activedescendant",h.id)}n.parentNode||(u||t.body).appendChild(n),function(){if(_()){v.setAttribute("aria-expanded","true"),a.height="auto",a.width=v.offsetWidth+"px";var i,r=0;s(),s(),e.customize&&i&&e.customize(v,i,n,r)}function s(){var e=t.documentElement,n=e.clientTop||t.body.clientTop||0,s=e.clientLeft||t.body.clientLeft||0,o=window.pageYOffset||e.scrollTop,l=window.pageXOffset||e.scrollLeft,u=(i=v.getBoundingClientRect()).top+v.offsetHeight+o-n,d=i.left+l-s;a.top=u+"px",a.left=d+"px",(r=window.innerHeight-(i.top+v.offsetHeight))<0&&(r=0),a.top=u+"px",a.bottom="",a.left=d+"px",a.maxHeight=r+"px"}}(),function(){var e=n.getElementsByClassName("selected");if(e.length>0){var t=e[0],i=t.previousElementSibling;if(i&&-1!==i.className.indexOf("group")&&!i.previousElementSibling&&(t=i),t.offsetTopa&&(n.scrollTop+=r-a)}}}()}function k(){_()&&M()}function S(){k()}function x(e){e.target!==n?k():e.preventDefault()}function L(){g||A(0)}function C(e,t){var n,r=_();if("Escape"===t)w();else{if(!r||d.length<1)return;"ArrowUp"===t?(n=d.indexOf(i),i=-1===n?void 0:d[(n+d.length-1)%d.length]):function(){var e=d.indexOf(i);i=d.length<1?void 0:-1===e?d[0]:d[(e+1)%d.length]}(),M()}e.preventDefault(),r&&e.stopPropagation()}function T(t){var n=t.key;switch(n){case"ArrowUp":case"ArrowDown":case"Escape":C(t,n);break;case"Enter":!function(t){if(i){g=!0;try{e.onSelect(i,v)}finally{g=!1}w()}o&&t.preventDefault()}(t)}}function E(){p&&A(1)}function A(e){v.value.length>=h||1===e?(b(),r=window.setTimeout((function(){return D(v.value,e,v.selectionStart||0)}),0===e||2===e?s:0)):w()}function D(t,n,r){if(!m){var a=++f;e.fetch(t,(function(e){f===a&&e&&(c=t,i=(d=e).length<1||l?void 0:d[0],M())}),n,r)}}function P(t){e.keyup?e.keyup({event:t,fetch:function(){return A(0)}}):_()||"ArrowDown"!==t.key||A(0)}function O(t){e.click&&e.click({event:t,fetch:function(){return A(2)}})}function j(){setTimeout((function(){t.activeElement!==v&&w()}),200)}return n.className="autocomplete "+(e.className||""),n.setAttribute("role","listbox"),v.setAttribute("role","combobox"),v.setAttribute("aria-expanded","false"),v.setAttribute("aria-autocomplete","list"),v.setAttribute("aria-controls",n.id),v.setAttribute("aria-owns",n.id),v.setAttribute("aria-activedescendant",""),v.setAttribute("aria-haspopup","listbox"),a.position="absolute",n.addEventListener("mousedown",(function(e){e.stopPropagation(),e.preventDefault()})),n.addEventListener("focus",(function(){return v.focus()})),v.addEventListener("keyup",P),v.addEventListener("click",O),v.addEventListener("keydown",T),v.addEventListener("input",L),v.addEventListener("blur",j),v.addEventListener("focus",E),window.addEventListener("resize",S),t.addEventListener("scroll",x,!0),{destroy:function(){v.removeEventListener("focus",E),v.removeEventListener("keyup",P),v.removeEventListener("click",O),v.removeEventListener("keydown",T),v.removeEventListener("input",L),v.removeEventListener("blur",j),window.removeEventListener("resize",S),t.removeEventListener("scroll",x,!0),v.removeAttribute("role"),v.removeAttribute("aria-expanded"),v.removeAttribute("aria-autocomplete"),v.removeAttribute("aria-controls"),v.removeAttribute("aria-activedescendant"),v.removeAttribute("aria-owns"),v.removeAttribute("aria-haspopup"),b(),w(),m=!0},fetch:function(){D(v.value,3,v.selectionStart||0)}}}}()},78647:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(41767));class a extends r.default{static schema(...e){return r.default.schema({type:"url",label:"Url",key:"url",inputType:"url"},...e)}static get builderInfo(){return{title:"Url",group:"advanced",icon:"link",documentation:"/userguide/form-building/advanced-components#url",weight:20,schema:a.schema()}}constructor(e,t,n){super(e,t,n)}get defaultSchema(){return a.schema()}elementInfo(){const e=super.elementInfo();return e.attr.type=this.component.mask?"password":"url",e}}t.default=a},78665:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),a=i(n(18106)),s=i(n(19274));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:a.default},{key:"data",components:s.default},{key:"validation",ignore:!0},{key:"conditional",ignore:!0}],...e)}},78940:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(3577)),a=i(n(2543));class s extends r.default{static get operatorKey(){return"isEmpty"}static get displayedName(){return"Is Empty"}static get requireValue(){return!1}execute({value:e,instance:t,conditionComponentPath:n}){var i;const r=a.default.isEmpty(a.default.isNumber(e)?String(e):e);if(null===(i=null==t?void 0:t.root)||void 0===i?void 0:i.getComponent){const e=t.root.getComponent(n);return(null==e?void 0:e.isEmpty)?e.isEmpty():r}return r}getResult(e){return this.execute(e)}}t.default=s},79039:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},79059:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(46251);t.default={form:i.default}},79092:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.JSONLogicModule=t.interpolate=t.evaluate=t.JSONLogicEvaluator=void 0;const a=n(84679),s=n(28936);class o extends a.BaseEvaluator{static evaluate(e,t={},n="",i=!1,r={},o={}){let l=null;if("object"==typeof e)try{l=s.jsonLogic.apply(e,t)}catch(e){l=null,console.warn("An error occured within JSON Logic",e)}else l=a.BaseEvaluator.evaluate(e,t,n,i,r,o);return l}}t.JSONLogicEvaluator=o,t.evaluate=function(e,t,n="result",i,r={}){const{evalContext:a,instance:s}=e,l=a?a(e):e;return i&&i(l),s&&s.evaluate?s.evaluate(t,l,n,!1,r):o.evaluate(t,l,n,!1,e,r)},t.interpolate=function(e,t,n){const{evalContext:i,instance:r}=e,a=i?i(e):e;return n&&n(a),r&&r.evaluate?r.interpolate(t,a,{noeval:!0}):o.interpolate(t,a,{noeval:!0})},r(n(28936),t),t.JSONLogicModule={evaluator:o}},79197:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},79244:(e,t,n)=>{"use strict";function i(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function r(e){return e instanceof i(e).Element||e instanceof Element}function a(e){return e instanceof i(e).HTMLElement||e instanceof HTMLElement}function s(e){return"undefined"!=typeof ShadowRoot&&(e instanceof i(e).ShadowRoot||e instanceof ShadowRoot)}n.r(t),n.d(t,{animateFill:()=>ut,createSingleton:()=>st,default:()=>vt,delegate:()=>lt,followCursor:()=>pt,hideAll:()=>rt,inlinePositioning:()=>ft,roundArrow:()=>he,sticky:()=>mt});var o=Math.max,l=Math.min,u=Math.round;function d(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function c(){return!/^((?!chrome|android).)*safari/i.test(d())}function h(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var s=e.getBoundingClientRect(),o=1,l=1;t&&a(e)&&(o=e.offsetWidth>0&&u(s.width)/e.offsetWidth||1,l=e.offsetHeight>0&&u(s.height)/e.offsetHeight||1);var d=(r(e)?i(e):window).visualViewport,h=!c()&&n,p=(s.left+(h&&d?d.offsetLeft:0))/o,f=(s.top+(h&&d?d.offsetTop:0))/l,m=s.width/o,g=s.height/l;return{width:m,height:g,top:f,right:p+m,bottom:f+g,left:p,x:p,y:f}}function p(e){var t=i(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function f(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){return((r(e)?e.ownerDocument:e.document)||window.document).documentElement}function g(e){return h(m(e)).left+p(e).scrollLeft}function v(e){return i(e).getComputedStyle(e)}function y(e){var t=v(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function b(e,t,n){void 0===n&&(n=!1);var r,s,o=a(t),l=a(t)&&function(e){var t=e.getBoundingClientRect(),n=u(t.width)/e.offsetWidth||1,i=u(t.height)/e.offsetHeight||1;return 1!==n||1!==i}(t),d=m(t),c=h(e,l,n),v={scrollLeft:0,scrollTop:0},b={x:0,y:0};return(o||!o&&!n)&&(("body"!==f(t)||y(d))&&(v=(r=t)!==i(r)&&a(r)?{scrollLeft:(s=r).scrollLeft,scrollTop:s.scrollTop}:p(r)),a(t)?((b=h(t,!0)).x+=t.clientLeft,b.y+=t.clientTop):d&&(b.x=g(d))),{x:c.left+v.scrollLeft-b.x,y:c.top+v.scrollTop-b.y,width:c.width,height:c.height}}function _(e){var t=h(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function w(e){return"html"===f(e)?e:e.assignedSlot||e.parentNode||(s(e)?e.host:null)||m(e)}function M(e){return["html","body","#document"].indexOf(f(e))>=0?e.ownerDocument.body:a(e)&&y(e)?e:M(w(e))}function k(e,t){var n;void 0===t&&(t=[]);var r=M(e),a=r===(null==(n=e.ownerDocument)?void 0:n.body),s=i(r),o=a?[s].concat(s.visualViewport||[],y(r)?r:[]):r,l=t.concat(o);return a?l:l.concat(k(w(o)))}function S(e){return["table","td","th"].indexOf(f(e))>=0}function x(e){return a(e)&&"fixed"!==v(e).position?e.offsetParent:null}function L(e){for(var t=i(e),n=x(e);n&&S(n)&&"static"===v(n).position;)n=x(n);return n&&("html"===f(n)||"body"===f(n)&&"static"===v(n).position)?t:n||function(e){var t=/firefox/i.test(d());if(/Trident/i.test(d())&&a(e)&&"fixed"===v(e).position)return null;var n=w(e);for(s(n)&&(n=n.host);a(n)&&["html","body"].indexOf(f(n))<0;){var i=v(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||t&&"filter"===i.willChange||t&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(e)||t}var C="top",T="bottom",E="right",A="left",D="auto",P=[C,T,E,A],O="start",j="end",I="viewport",R="popper",F=P.reduce((function(e,t){return e.concat([t+"-"+O,t+"-"+j])}),[]),Y=[].concat(P,[D]).reduce((function(e,t){return e.concat([t,t+"-"+O,t+"-"+j])}),[]),V=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function N(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),i}var H={placement:"bottom",modifiers:[],strategy:"absolute"};function z(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function K(e){var t,n=e.reference,i=e.element,r=e.placement,a=r?W(r):null,s=r?$(r):null,o=n.x+n.width/2-i.width/2,l=n.y+n.height/2-i.height/2;switch(a){case C:t={x:o,y:n.y-i.height};break;case T:t={x:o,y:n.y+n.height};break;case E:t={x:n.x+n.width,y:l};break;case A:t={x:n.x-i.width,y:l};break;default:t={x:n.x,y:n.y}}var u=a?q(a):null;if(null!=u){var d="y"===u?"height":"width";switch(s){case O:t[u]=t[u]-(n[d]/2-i[d]/2);break;case j:t[u]=t[u]+(n[d]/2-i[d]/2)}}return t}var G={top:"auto",right:"auto",bottom:"auto",left:"auto"};function J(e){var t,n=e.popper,r=e.popperRect,a=e.placement,s=e.variation,o=e.offsets,l=e.position,d=e.gpuAcceleration,c=e.adaptive,h=e.roundOffsets,p=e.isFixed,f=o.x,g=void 0===f?0:f,y=o.y,b=void 0===y?0:y,_="function"==typeof h?h({x:g,y:b}):{x:g,y:b};g=_.x,b=_.y;var w=o.hasOwnProperty("x"),M=o.hasOwnProperty("y"),k=A,S=C,x=window;if(c){var D=L(n),P="clientHeight",O="clientWidth";D===i(n)&&"static"!==v(D=m(n)).position&&"absolute"===l&&(P="scrollHeight",O="scrollWidth"),(a===C||(a===A||a===E)&&s===j)&&(S=T,b-=(p&&D===x&&x.visualViewport?x.visualViewport.height:D[P])-r.height,b*=d?1:-1),a!==A&&(a!==C&&a!==T||s!==j)||(k=E,g-=(p&&D===x&&x.visualViewport?x.visualViewport.width:D[O])-r.width,g*=d?1:-1)}var I,R=Object.assign({position:l},c&&G),F=!0===h?function(e,t){var n=e.x,i=e.y,r=t.devicePixelRatio||1;return{x:u(n*r)/r||0,y:u(i*r)/r||0}}({x:g,y:b},i(n)):{x:g,y:b};return g=F.x,b=F.y,d?Object.assign({},R,((I={})[S]=M?"0":"",I[k]=w?"0":"",I.transform=(x.devicePixelRatio||1)<=1?"translate("+g+"px, "+b+"px)":"translate3d("+g+"px, "+b+"px, 0)",I)):Object.assign({},R,((t={})[S]=M?b+"px":"",t[k]=w?g+"px":"",t.transform="",t))}const X={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];a(r)&&f(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],r=t.attributes[e]||{},s=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});a(i)&&f(i)&&(Object.assign(i.style,s),Object.keys(r).forEach((function(e){i.removeAttribute(e)})))}))}},requires:["computeStyles"]};var Z={left:"right",right:"left",bottom:"top",top:"bottom"};function Q(e){return e.replace(/left|right|bottom|top/g,(function(e){return Z[e]}))}var ee={start:"end",end:"start"};function te(e){return e.replace(/start|end/g,(function(e){return ee[e]}))}function ne(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&s(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function ie(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function re(e,t,n){return t===I?ie(function(e,t){var n=i(e),r=m(e),a=n.visualViewport,s=r.clientWidth,o=r.clientHeight,l=0,u=0;if(a){s=a.width,o=a.height;var d=c();(d||!d&&"fixed"===t)&&(l=a.offsetLeft,u=a.offsetTop)}return{width:s,height:o,x:l+g(e),y:u}}(e,n)):r(t)?function(e,t){var n=h(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):ie(function(e){var t,n=m(e),i=p(e),r=null==(t=e.ownerDocument)?void 0:t.body,a=o(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),s=o(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),l=-i.scrollLeft+g(e),u=-i.scrollTop;return"rtl"===v(r||n).direction&&(l+=o(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:s,x:l,y:u}}(m(e)))}function ae(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function se(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function oe(e,t){void 0===t&&(t={});var n=t,i=n.placement,s=void 0===i?e.placement:i,u=n.strategy,d=void 0===u?e.strategy:u,c=n.boundary,p=void 0===c?"clippingParents":c,g=n.rootBoundary,y=void 0===g?I:g,b=n.elementContext,_=void 0===b?R:b,M=n.altBoundary,S=void 0!==M&&M,x=n.padding,A=void 0===x?0:x,D=ae("number"!=typeof A?A:se(A,P)),O=_===R?"reference":R,j=e.rects.popper,F=e.elements[S?O:_],Y=function(e,t,n,i){var s="clippingParents"===t?function(e){var t=k(w(e)),n=["absolute","fixed"].indexOf(v(e).position)>=0&&a(e)?L(e):e;return r(n)?t.filter((function(e){return r(e)&&ne(e,n)&&"body"!==f(e)})):[]}(e):[].concat(t),u=[].concat(s,[n]),d=u[0],c=u.reduce((function(t,n){var r=re(e,n,i);return t.top=o(r.top,t.top),t.right=l(r.right,t.right),t.bottom=l(r.bottom,t.bottom),t.left=o(r.left,t.left),t}),re(e,d,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}(r(F)?F:F.contextElement||m(e.elements.popper),p,y,d),V=h(e.elements.reference),N=K({reference:V,element:j,strategy:"absolute",placement:s}),H=ie(Object.assign({},j,N)),z=_===R?H:V,U={top:Y.top-z.top+D.top,bottom:z.bottom-Y.bottom+D.bottom,left:Y.left-z.left+D.left,right:z.right-Y.right+D.right},B=e.modifiersData.offset;if(_===R&&B){var W=B[s];Object.keys(U).forEach((function(e){var t=[E,T].indexOf(e)>=0?1:-1,n=[C,T].indexOf(e)>=0?"y":"x";U[e]+=W[n]*t}))}return U}function le(e,t,n){return o(e,l(t,n))}function ue(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function de(e){return[C,E,T,A].some((function(t){return e[t]>=0}))}var ce=U({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,s=void 0===a||a,o=r.resize,l=void 0===o||o,u=i(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach((function(e){e.addEventListener("scroll",n.update,B)})),l&&u.addEventListener("resize",n.update,B),function(){s&&d.forEach((function(e){e.removeEventListener("scroll",n.update,B)})),l&&u.removeEventListener("resize",n.update,B)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=K({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,a=n.adaptive,s=void 0===a||a,o=n.roundOffsets,l=void 0===o||o,u={placement:W(t.placement),variation:$(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,J(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,J(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},X,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.offset,a=void 0===r?[0,0]:r,s=Y.reduce((function(e,n){return e[n]=function(e,t,n){var i=W(e),r=[A,C].indexOf(i)>=0?-1:1,a="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*r,[A,E].indexOf(i)>=0?{x:o,y:s}:{x:s,y:o}}(n,t.rects,a),e}),{}),o=s[t.placement],l=o.x,u=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[i]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var r=n.mainAxis,a=void 0===r||r,s=n.altAxis,o=void 0===s||s,l=n.fallbackPlacements,u=n.padding,d=n.boundary,c=n.rootBoundary,h=n.altBoundary,p=n.flipVariations,f=void 0===p||p,m=n.allowedAutoPlacements,g=t.options.placement,v=W(g),y=l||(v!==g&&f?function(e){if(W(e)===D)return[];var t=Q(e);return[te(e),t,te(t)]}(g):[Q(g)]),b=[g].concat(y).reduce((function(e,n){return e.concat(W(n)===D?function(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,a=n.rootBoundary,s=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?Y:l,d=$(i),c=d?o?F:F.filter((function(e){return $(e)===d})):P,h=c.filter((function(e){return u.indexOf(e)>=0}));0===h.length&&(h=c);var p=h.reduce((function(t,n){return t[n]=oe(e,{placement:n,boundary:r,rootBoundary:a,padding:s})[W(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}(t,{placement:n,boundary:d,rootBoundary:c,padding:u,flipVariations:f,allowedAutoPlacements:m}):n)}),[]),_=t.rects.reference,w=t.rects.popper,M=new Map,k=!0,S=b[0],x=0;x=0,V=R?"width":"height",N=oe(t,{placement:L,boundary:d,rootBoundary:c,altBoundary:h,padding:u}),H=R?I?E:A:I?T:C;_[V]>w[V]&&(H=Q(H));var z=Q(H),U=[];if(a&&U.push(N[j]<=0),o&&U.push(N[H]<=0,N[z]<=0),U.every((function(e){return e}))){S=L,k=!1;break}M.set(L,U)}if(k)for(var B=function(e){var t=b.find((function(t){var n=M.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},q=f?3:1;q>0&&"break"!==B(q);q--);t.placement!==S&&(t.modifiersData[i]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,i=e.name,r=n.mainAxis,a=void 0===r||r,s=n.altAxis,u=void 0!==s&&s,d=n.boundary,c=n.rootBoundary,h=n.altBoundary,p=n.padding,f=n.tether,m=void 0===f||f,g=n.tetherOffset,v=void 0===g?0:g,y=oe(t,{boundary:d,rootBoundary:c,padding:p,altBoundary:h}),b=W(t.placement),w=$(t.placement),M=!w,k=q(b),S="x"===k?"y":"x",x=t.modifiersData.popperOffsets,D=t.rects.reference,P=t.rects.popper,j="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,I="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,F={x:0,y:0};if(x){if(a){var Y,V="y"===k?C:A,N="y"===k?T:E,H="y"===k?"height":"width",z=x[k],U=z+y[V],B=z-y[N],K=m?-P[H]/2:0,G=w===O?D[H]:P[H],J=w===O?-P[H]:-D[H],X=t.elements.arrow,Z=m&&X?_(X):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},ee=Q[V],te=Q[N],ne=le(0,D[H],Z[H]),ie=M?D[H]/2-K-ne-ee-I.mainAxis:G-ne-ee-I.mainAxis,re=M?-D[H]/2+K+ne+te+I.mainAxis:J+ne+te+I.mainAxis,ae=t.elements.arrow&&L(t.elements.arrow),se=ae?"y"===k?ae.clientTop||0:ae.clientLeft||0:0,ue=null!=(Y=null==R?void 0:R[k])?Y:0,de=z+re-ue,ce=le(m?l(U,z+ie-ue-se):U,z,m?o(B,de):B);x[k]=ce,F[k]=ce-z}if(u){var he,pe="x"===k?C:A,fe="x"===k?T:E,me=x[S],ge="y"===S?"height":"width",ve=me+y[pe],ye=me-y[fe],be=-1!==[C,A].indexOf(b),_e=null!=(he=null==R?void 0:R[S])?he:0,we=be?ve:me-D[ge]-P[ge]-_e+I.altAxis,Me=be?me+D[ge]+P[ge]-_e-I.altAxis:ye,ke=m&&be?function(e,t,n){var i=le(e,t,n);return i>n?n:i}(we,me,Me):le(m?we:ve,me,m?Me:ye);x[S]=ke,F[S]=ke-me}t.modifiersData[i]=F}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,i=e.name,r=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,o=W(n.placement),l=q(o),u=[A,E].indexOf(o)>=0?"height":"width";if(a&&s){var d=function(e,t){return ae("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:se(e,P))}(r.padding,n),c=_(a),h="y"===l?C:A,p="y"===l?T:E,f=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],m=s[l]-n.rects.reference[l],g=L(a),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=f/2-m/2,b=d[h],w=v-c[u]-d[p],M=v/2-c[u]/2+y,k=le(b,M,w),S=l;n.modifiersData[i]=((t={})[S]=k,t.centerOffset=k-M,t)}},effect:function(e){var t=e.state,n=e.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=t.elements.popper.querySelector(i)))&&ne(t.elements.popper,i)&&(t.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,a=t.modifiersData.preventOverflow,s=oe(t,{elementContext:"reference"}),o=oe(t,{altBoundary:!0}),l=ue(s,i),u=ue(o,r,a),d=de(l),c=de(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:c},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":c})}}]}),he='',pe="tippy-content",fe="tippy-backdrop",me="tippy-arrow",ge="tippy-svg-arrow",ve={passive:!0,capture:!0},ye=function(){return document.body};function be(e,t,n){if(Array.isArray(e)){var i=e[t];return null==i?Array.isArray(n)?n[t]:n:i}return e}function _e(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function we(e,t){return"function"==typeof e?e.apply(void 0,t):e}function Me(e,t){return 0===t?e:function(i){clearTimeout(n),n=setTimeout((function(){e(i)}),t)};var n}function ke(e,t){var n=Object.assign({},e);return t.forEach((function(e){delete n[e]})),n}function Se(e){return[].concat(e)}function xe(e,t){-1===e.indexOf(t)&&e.push(t)}function Le(e){return e.split("-")[0]}function Ce(e){return[].slice.call(e)}function Te(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}function Ee(){return document.createElement("div")}function Ae(e){return["Element","Fragment"].some((function(t){return _e(e,t)}))}function De(e){return _e(e,"MouseEvent")}function Pe(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function Oe(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function je(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Ie(e){var t,n=Se(e)[0];return null!=n&&null!=(t=n.ownerDocument)&&t.body?n.ownerDocument:document}function Re(e,t,n){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[i](t,n)}))}function Fe(e,t){for(var n=t;n;){var i;if(e.contains(n))return!0;n=null==n.getRootNode||null==(i=n.getRootNode())?void 0:i.host}return!1}var Ye={isTouch:!1},Ve=0;function Ne(){Ye.isTouch||(Ye.isTouch=!0,window.performance&&document.addEventListener("mousemove",He))}function He(){var e=performance.now();e-Ve<20&&(Ye.isTouch=!1,document.removeEventListener("mousemove",He)),Ve=e}function ze(){var e=document.activeElement;if(Pe(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var Ue=!("undefined"==typeof window||"undefined"==typeof document||!window.msCrypto),Be=Object.assign({appendTo:ye,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),We=Object.keys(Be);function $e(e){var t=(e.plugins||[]).reduce((function(t,n){var i,r=n.name,a=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:null!=(i=Be[r])?i:a),t}),{});return Object.assign({},e,t)}function qe(e,t){var n=Object.assign({},t,{content:we(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys($e(Object.assign({},Be,{plugins:t}))):We).reduce((function(t,n){var i=(e.getAttribute("data-tippy-"+n)||"").trim();if(!i)return t;if("content"===n)t[n]=i;else try{t[n]=JSON.parse(i)}catch(e){t[n]=i}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},Be.aria,n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Ke(e,t){e.innerHTML=t}function Ge(e){var t=Ee();return!0===e?t.className=me:(t.className=ge,Ae(e)?t.appendChild(e):Ke(t,e)),t}function Je(e,t){Ae(t.content)?(Ke(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Ke(e,t.content):e.textContent=t.content)}function Xe(e){var t=e.firstElementChild,n=Ce(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(pe)})),arrow:n.find((function(e){return e.classList.contains(me)||e.classList.contains(ge)})),backdrop:n.find((function(e){return e.classList.contains(fe)}))}}function Ze(e){var t=Ee(),n=Ee();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=Ee();function r(n,i){var r=Xe(t),a=r.box,s=r.content,o=r.arrow;i.theme?a.setAttribute("data-theme",i.theme):a.removeAttribute("data-theme"),"string"==typeof i.animation?a.setAttribute("data-animation",i.animation):a.removeAttribute("data-animation"),i.inertia?a.setAttribute("data-inertia",""):a.removeAttribute("data-inertia"),a.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?a.setAttribute("role",i.role):a.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||Je(s,e.props),i.arrow?o?n.arrow!==i.arrow&&(a.removeChild(o),a.appendChild(Ge(i.arrow))):a.appendChild(Ge(i.arrow)):o&&a.removeChild(o)}return i.className=pe,i.setAttribute("data-state","hidden"),Je(i,e.props),t.appendChild(n),n.appendChild(i),r(e.props,e.props),{popper:t,onUpdate:r}}Ze.$$tippy=!0;var Qe=1,et=[],tt=[];function nt(e,t){var n,i,r,a,s,o,l,u,d=qe(e,Object.assign({},Be,$e(Te(t)))),c=!1,h=!1,p=!1,f=!1,m=[],g=Me(q,d.interactiveDebounce),v=Qe++,y=(u=d.plugins).filter((function(e,t){return u.indexOf(e)===t})),b={id:v,reference:e,popper:Ee(),popperInstance:null,props:d,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(n),clearTimeout(i),cancelAnimationFrame(r)},setProps:function(t){if(!b.state.isDestroyed){O("onBeforeUpdate",[b,t]),W();var n=b.props,i=qe(e,Object.assign({},n,Te(t),{ignoreAttributes:!0}));b.props=i,B(),n.interactiveDebounce!==i.interactiveDebounce&&(R(),g=Me(q,i.interactiveDebounce)),n.triggerTarget&&!i.triggerTarget?Se(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):i.triggerTarget&&e.removeAttribute("aria-expanded"),I(),P(),M&&M(n,i),b.popperInstance&&(X(),Q().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}))),O("onAfterUpdate",[b,t])}},setContent:function(e){b.setProps({content:e})},show:function(){var e=b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=Ye.isTouch&&!b.props.touch,r=be(b.props.duration,0,Be.duration);if(!(e||t||n||i||T().hasAttribute("disabled")||(O("onShow",[b],!1),!1===b.props.onShow(b)))){if(b.state.isVisible=!0,C()&&(w.style.visibility="visible"),P(),N(),b.state.isMounted||(w.style.transition="none"),C()){var a=A();Oe([a.box,a.content],0)}var s,l,u;o=function(){var e;if(b.state.isVisible&&!f){if(f=!0,w.offsetHeight,w.style.transition=b.props.moveTransition,C()&&b.props.animation){var t=A(),n=t.box,i=t.content;Oe([n,i],r),je([n,i],"visible")}j(),I(),xe(tt,b),null==(e=b.popperInstance)||e.forceUpdate(),O("onMount",[b]),b.props.animation&&C()&&function(e){z(e,(function(){b.state.isShown=!0,O("onShown",[b])}))}(r)}},l=b.props.appendTo,u=T(),(s=b.props.interactive&&l===ye||"parent"===l?u.parentNode:we(l,[u])).contains(w)||s.appendChild(w),b.state.isMounted=!0,X()}},hide:function(){var e=!b.state.isVisible,t=b.state.isDestroyed,n=!b.state.isEnabled,i=be(b.props.duration,1,Be.duration);if(!(e||t||n)&&(O("onHide",[b],!1),!1!==b.props.onHide(b))){if(b.state.isVisible=!1,b.state.isShown=!1,f=!1,c=!1,C()&&(w.style.visibility="hidden"),R(),H(),P(!0),C()){var r=A(),a=r.box,s=r.content;b.props.animation&&(Oe([a,s],i),je([a,s],"hidden"))}j(),I(),b.props.animation?C()&&function(e,t){z(e,(function(){!b.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()}))}(i,b.unmount):b.unmount()}},hideWithInteractivity:function(e){E().addEventListener("mousemove",g),xe(et,g),g(e)},enable:function(){b.state.isEnabled=!0},disable:function(){b.hide(),b.state.isEnabled=!1},unmount:function(){b.state.isVisible&&b.hide(),b.state.isMounted&&(Z(),Q().forEach((function(e){e._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w),tt=tt.filter((function(e){return e!==b})),b.state.isMounted=!1,O("onHidden",[b]))},destroy:function(){b.state.isDestroyed||(b.clearDelayTimeouts(),b.unmount(),W(),delete e._tippy,b.state.isDestroyed=!0,O("onDestroy",[b]))}};if(!d.render)return b;var _=d.render(b),w=_.popper,M=_.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+b.id,b.popper=w,e._tippy=b,w._tippy=b;var k=y.map((function(e){return e.fn(b)})),S=e.hasAttribute("aria-expanded");return B(),I(),P(),O("onCreate",[b]),d.showOnCreate&&ee(),w.addEventListener("mouseenter",(function(){b.props.interactive&&b.state.isVisible&&b.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(){b.props.interactive&&b.props.trigger.indexOf("mouseenter")>=0&&E().addEventListener("mousemove",g)})),b;function x(){var e=b.props.touch;return Array.isArray(e)?e:[e,0]}function L(){return"hold"===x()[0]}function C(){var e;return!(null==(e=b.props.render)||!e.$$tippy)}function T(){return l||e}function E(){var e=T().parentNode;return e?Ie(e):document}function A(){return Xe(w)}function D(e){return b.state.isMounted&&!b.state.isVisible||Ye.isTouch||a&&"focus"===a.type?0:be(b.props.delay,e?0:1,Be.delay)}function P(e){void 0===e&&(e=!1),w.style.pointerEvents=b.props.interactive&&!e?"":"none",w.style.zIndex=""+b.props.zIndex}function O(e,t,n){var i;void 0===n&&(n=!0),k.forEach((function(n){n[e]&&n[e].apply(n,t)})),n&&(i=b.props)[e].apply(i,t)}function j(){var t=b.props.aria;if(t.content){var n="aria-"+t.content,i=w.id;Se(b.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(b.state.isVisible)e.setAttribute(n,t?t+" "+i:i);else{var r=t&&t.replace(i,"").trim();r?e.setAttribute(n,r):e.removeAttribute(n)}}))}}function I(){!S&&b.props.aria.expanded&&Se(b.props.triggerTarget||e).forEach((function(e){b.props.interactive?e.setAttribute("aria-expanded",b.state.isVisible&&e===T()?"true":"false"):e.removeAttribute("aria-expanded")}))}function R(){E().removeEventListener("mousemove",g),et=et.filter((function(e){return e!==g}))}function F(t){if(!Ye.isTouch||!p&&"mousedown"!==t.type){var n=t.composedPath&&t.composedPath()[0]||t.target;if(!b.props.interactive||!Fe(w,n)){if(Se(b.props.triggerTarget||e).some((function(e){return Fe(e,n)}))){if(Ye.isTouch)return;if(b.state.isVisible&&b.props.trigger.indexOf("click")>=0)return}else O("onClickOutside",[b,t]);!0===b.props.hideOnClick&&(b.clearDelayTimeouts(),b.hide(),h=!0,setTimeout((function(){h=!1})),b.state.isMounted||H())}}}function Y(){p=!0}function V(){p=!1}function N(){var e=E();e.addEventListener("mousedown",F,!0),e.addEventListener("touchend",F,ve),e.addEventListener("touchstart",V,ve),e.addEventListener("touchmove",Y,ve)}function H(){var e=E();e.removeEventListener("mousedown",F,!0),e.removeEventListener("touchend",F,ve),e.removeEventListener("touchstart",V,ve),e.removeEventListener("touchmove",Y,ve)}function z(e,t){var n=A().box;function i(e){e.target===n&&(Re(n,"remove",i),t())}if(0===e)return t();Re(n,"remove",s),Re(n,"add",i),s=i}function U(t,n,i){void 0===i&&(i=!1),Se(b.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,i),m.push({node:e,eventType:t,handler:n,options:i})}))}function B(){var e;L()&&(U("touchstart",$,{passive:!0}),U("touchend",K,{passive:!0})),(e=b.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(U(e,$),e){case"mouseenter":U("mouseleave",K);break;case"focus":U(Ue?"focusout":"blur",G);break;case"focusin":U("focusout",G)}}))}function W(){m.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),m=[]}function $(e){var t,n=!1;if(b.state.isEnabled&&!J(e)&&!h){var i="focus"===(null==(t=a)?void 0:t.type);a=e,l=e.currentTarget,I(),!b.state.isVisible&&De(e)&&et.forEach((function(t){return t(e)})),"click"===e.type&&(b.props.trigger.indexOf("mouseenter")<0||c)&&!1!==b.props.hideOnClick&&b.state.isVisible?n=!0:ee(e),"click"===e.type&&(c=!n),n&&!i&&te(e)}}function q(e){var t=e.target,n=T().contains(t)||w.contains(t);if("mousemove"!==e.type||!n){var i=Q().concat(w).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:d}:null})).filter(Boolean);(function(e,t){var n=t.clientX,i=t.clientY;return e.every((function(e){var t=e.popperRect,r=e.popperState,a=e.props.interactiveBorder,s=Le(r.placement),o=r.modifiersData.offset;if(!o)return!0;var l="bottom"===s?o.top.y:0,u="top"===s?o.bottom.y:0,d="right"===s?o.left.x:0,c="left"===s?o.right.x:0,h=t.top-i+l>a,p=i-t.bottom-u>a,f=t.left-n+d>a,m=n-t.right-c>a;return h||p||f||m}))})(i,e)&&(R(),te(e))}}function K(e){J(e)||b.props.trigger.indexOf("click")>=0&&c||(b.props.interactive?b.hideWithInteractivity(e):te(e))}function G(e){b.props.trigger.indexOf("focusin")<0&&e.target!==T()||b.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||te(e)}function J(e){return!!Ye.isTouch&&L()!==e.type.indexOf("touch")>=0}function X(){Z();var t=b.props,n=t.popperOptions,i=t.placement,r=t.offset,a=t.getReferenceClientRect,s=t.moveTransition,l=C()?Xe(w).arrow:null,u=a?{getBoundingClientRect:a,contextElement:a.contextElement||T()}:e,d=[{name:"offset",options:{offset:r}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!s}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(C()){var n=A().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];C()&&l&&d.push({name:"arrow",options:{element:l,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),b.popperInstance=ce(u,w,Object.assign({},n,{placement:i,onFirstUpdate:o,modifiers:d}))}function Z(){b.popperInstance&&(b.popperInstance.destroy(),b.popperInstance=null)}function Q(){return Ce(w.querySelectorAll("[data-tippy-root]"))}function ee(e){b.clearDelayTimeouts(),e&&O("onTrigger",[b,e]),N();var t=D(!0),i=x(),r=i[0],a=i[1];Ye.isTouch&&"hold"===r&&a&&(t=a),t?n=setTimeout((function(){b.show()}),t):b.show()}function te(e){if(b.clearDelayTimeouts(),O("onUntrigger",[b,e]),b.state.isVisible){if(!(b.props.trigger.indexOf("mouseenter")>=0&&b.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&c)){var t=D(!1);t?i=setTimeout((function(){b.state.isVisible&&b.hide()}),t):r=requestAnimationFrame((function(){b.hide()}))}}else H()}}function it(e,t){void 0===t&&(t={});var n=Be.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",Ne,ve),window.addEventListener("blur",ze);var i,r=Object.assign({},t,{plugins:n}),a=(i=e,Ae(i)?[i]:function(e){return _e(e,"NodeList")}(i)?Ce(i):Array.isArray(i)?i:Ce(document.querySelectorAll(i))).reduce((function(e,t){var n=t&&nt(t,r);return n&&e.push(n),e}),[]);return Ae(e)?a[0]:a}it.defaultProps=Be,it.setDefaultProps=function(e){Object.keys(e).forEach((function(t){Be[t]=e[t]}))},it.currentInput=Ye;var rt=function(e){var t=void 0===e?{}:e,n=t.exclude,i=t.duration;tt.forEach((function(e){var t=!1;if(n&&(t=Pe(n)?e.reference===n:e.popper===n.popper),!t){var r=e.props.duration;e.setProps({duration:i}),e.hide(),e.state.isDestroyed||e.setProps({duration:r})}}))},at=Object.assign({},X,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),st=function(e,t){var n;void 0===t&&(t={});var i,r=e,a=[],s=[],o=t.overrides,l=[],u=!1;function d(){s=r.map((function(e){return Se(e.props.triggerTarget||e.reference)})).reduce((function(e,t){return e.concat(t)}),[])}function c(){a=r.map((function(e){return e.reference}))}function h(e){r.forEach((function(t){e?t.enable():t.disable()}))}function p(e){return r.map((function(t){var n=t.setProps;return t.setProps=function(r){n(r),t.reference===i&&e.setProps(r)},function(){t.setProps=n}}))}function f(e,t){var n=s.indexOf(t);if(t!==i){i=t;var l=(o||[]).concat("content").reduce((function(e,t){return e[t]=r[n].props[t],e}),{});e.setProps(Object.assign({},l,{getReferenceClientRect:"function"==typeof l.getReferenceClientRect?l.getReferenceClientRect:function(){var e;return null==(e=a[n])?void 0:e.getBoundingClientRect()}}))}}h(!1),c(),d();var m={fn:function(){return{onDestroy:function(){h(!0)},onHidden:function(){i=null},onClickOutside:function(e){e.props.showOnCreate&&!u&&(u=!0,i=null)},onShow:function(e){e.props.showOnCreate&&!u&&(u=!0,f(e,a[0]))},onTrigger:function(e,t){f(e,t.currentTarget)}}}},g=it(Ee(),Object.assign({},ke(t,["overrides"]),{plugins:[m].concat(t.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},t.popperOptions,{modifiers:[].concat((null==(n=t.popperOptions)?void 0:n.modifiers)||[],[at])})})),v=g.show;g.show=function(e){if(v(),!i&&null==e)return f(g,a[0]);if(!i||null!=e){if("number"==typeof e)return a[e]&&f(g,a[e]);if(r.indexOf(e)>=0){var t=e.reference;return f(g,t)}return a.indexOf(e)>=0?f(g,e):void 0}},g.showNext=function(){var e=a[0];if(!i)return g.show(0);var t=a.indexOf(i);g.show(a[t+1]||e)},g.showPrevious=function(){var e=a[a.length-1];if(!i)return g.show(e);var t=a.indexOf(i),n=a[t-1]||e;g.show(n)};var y=g.setProps;return g.setProps=function(e){o=e.overrides||o,y(e)},g.setInstances=function(e){h(!0),l.forEach((function(e){return e()})),r=e,h(!1),c(),d(),l=p(g),g.setProps({triggerTarget:s})},l=p(g),g},ot={mouseover:"mouseenter",focusin:"focus",click:"click"};function lt(e,t){var n=[],i=[],r=!1,a=t.target,s=ke(t,["target"]),o=Object.assign({},s,{trigger:"manual",touch:!1}),l=Object.assign({touch:Be.touch},s,{showOnCreate:!0}),u=it(e,o);function d(e){if(e.target&&!r){var n=e.target.closest(a);if(n){var s=n.getAttribute("data-tippy-trigger")||t.trigger||Be.trigger;if(!n._tippy&&!("touchstart"===e.type&&"boolean"==typeof l.touch||"touchstart"!==e.type&&s.indexOf(ot[e.type])<0)){var o=it(n,l);o&&(i=i.concat(o))}}}}function c(e,t,i,r){void 0===r&&(r=!1),e.addEventListener(t,i,r),n.push({node:e,eventType:t,handler:i,options:r})}return Se(u).forEach((function(e){var t=e.destroy,a=e.enable,s=e.disable;e.destroy=function(e){void 0===e&&(e=!0),e&&i.forEach((function(e){e.destroy()})),i=[],n.forEach((function(e){var t=e.node,n=e.eventType,i=e.handler,r=e.options;t.removeEventListener(n,i,r)})),n=[],t()},e.enable=function(){a(),i.forEach((function(e){return e.enable()})),r=!1},e.disable=function(){s(),i.forEach((function(e){return e.disable()})),r=!0},function(e){var t=e.reference;c(t,"touchstart",d,ve),c(t,"mouseover",d),c(t,"focusin",d),c(t,"click",d)}(e)})),u}var ut={name:"animateFill",defaultValue:!1,fn:function(e){var t;if(null==(t=e.props.render)||!t.$$tippy)return{};var n=Xe(e.popper),i=n.box,r=n.content,a=e.props.animateFill?function(){var e=Ee();return e.className=fe,je([e],"hidden"),e}():null;return{onCreate:function(){a&&(i.insertBefore(a,i.firstElementChild),i.setAttribute("data-animatefill",""),i.style.overflow="hidden",e.setProps({arrow:!1,animation:"shift-away"}))},onMount:function(){if(a){var e=i.style.transitionDuration,t=Number(e.replace("ms",""));r.style.transitionDelay=Math.round(t/10)+"ms",a.style.transitionDuration=e,je([a],"visible")}},onShow:function(){a&&(a.style.transitionDuration="0ms")},onHide:function(){a&&je([a],"hidden")}}}},dt={clientX:0,clientY:0},ct=[];function ht(e){var t=e.clientX,n=e.clientY;dt={clientX:t,clientY:n}}var pt={name:"followCursor",defaultValue:!1,fn:function(e){var t=e.reference,n=Ie(e.props.triggerTarget||t),i=!1,r=!1,a=!0,s=e.props;function o(){return"initial"===e.props.followCursor&&e.state.isVisible}function l(){n.addEventListener("mousemove",c)}function u(){n.removeEventListener("mousemove",c)}function d(){i=!0,e.setProps({getReferenceClientRect:null}),i=!1}function c(n){var i=!n.target||t.contains(n.target),r=e.props.followCursor,a=n.clientX,s=n.clientY,o=t.getBoundingClientRect(),l=a-o.left,u=s-o.top;!i&&e.props.interactive||e.setProps({getReferenceClientRect:function(){var e=t.getBoundingClientRect(),n=a,i=s;"initial"===r&&(n=e.left+l,i=e.top+u);var o="horizontal"===r?e.top:i,d="vertical"===r?e.right:n,c="horizontal"===r?e.bottom:i,h="vertical"===r?e.left:n;return{width:d-h,height:c-o,top:o,right:d,bottom:c,left:h}}})}function h(){e.props.followCursor&&(ct.push({instance:e,doc:n}),function(e){e.addEventListener("mousemove",ht)}(n))}function p(){0===(ct=ct.filter((function(t){return t.instance!==e}))).filter((function(e){return e.doc===n})).length&&function(e){e.removeEventListener("mousemove",ht)}(n)}return{onCreate:h,onDestroy:p,onBeforeUpdate:function(){s=e.props},onAfterUpdate:function(t,n){var a=n.followCursor;i||void 0!==a&&s.followCursor!==a&&(p(),a?(h(),!e.state.isMounted||r||o()||l()):(u(),d()))},onMount:function(){e.props.followCursor&&!r&&(a&&(c(dt),a=!1),o()||l())},onTrigger:function(e,t){De(t)&&(dt={clientX:t.clientX,clientY:t.clientY}),r="focus"===t.type},onHidden:function(){e.props.followCursor&&(d(),u(),a=!0)}}}},ft={name:"inlinePositioning",defaultValue:!1,fn:function(e){var t,n=e.reference,i=-1,r=!1,a=[],s={name:"tippyInlinePositioning",enabled:!0,phase:"afterWrite",fn:function(r){var s=r.state;e.props.inlinePositioning&&(-1!==a.indexOf(s.placement)&&(a=[]),t!==s.placement&&-1===a.indexOf(s.placement)&&(a.push(s.placement),e.setProps({getReferenceClientRect:function(){return function(e){return function(e,t,n,i){if(n.length<2||null===e)return t;if(2===n.length&&i>=0&&n[0].left>n[1].right)return n[i]||t;switch(e){case"top":case"bottom":var r=n[0],a=n[n.length-1],s="top"===e,o=r.top,l=a.bottom,u=s?r.left:a.left,d=s?r.right:a.right;return{top:o,bottom:l,left:u,right:d,width:d-u,height:l-o};case"left":case"right":var c=Math.min.apply(Math,n.map((function(e){return e.left}))),h=Math.max.apply(Math,n.map((function(e){return e.right}))),p=n.filter((function(t){return"left"===e?t.left===c:t.right===h})),f=p[0].top,m=p[p.length-1].bottom;return{top:f,bottom:m,left:c,right:h,width:h-c,height:m-f};default:return t}}(Le(e),n.getBoundingClientRect(),Ce(n.getClientRects()),i)}(s.placement)}})),t=s.placement)}};function o(){var t;r||(t=function(e,t){var n;return{popperOptions:Object.assign({},e.popperOptions,{modifiers:[].concat(((null==(n=e.popperOptions)?void 0:n.modifiers)||[]).filter((function(e){return e.name!==t.name})),[t])})}}(e.props,s),r=!0,e.setProps(t),r=!1)}return{onCreate:o,onAfterUpdate:o,onTrigger:function(t,n){if(De(n)){var r=Ce(e.reference.getClientRects()),a=r.find((function(e){return e.left-2<=n.clientX&&e.right+2>=n.clientX&&e.top-2<=n.clientY&&e.bottom+2>=n.clientY})),s=r.indexOf(a);i=s>-1?s:i}},onHidden:function(){i=-1}}}},mt={name:"sticky",defaultValue:!1,fn:function(e){var t=e.reference,n=e.popper;function i(t){return!0===e.props.sticky||e.props.sticky===t}var r=null,a=null;function s(){var o=i("reference")?(e.popperInstance?e.popperInstance.state.elements.reference:t).getBoundingClientRect():null,l=i("popper")?n.getBoundingClientRect():null;(o&>(r,o)||l&>(a,l))&&e.popperInstance&&e.popperInstance.update(),r=o,a=l,e.state.isMounted&&requestAnimationFrame(s)}return{onMount:function(){e.props.sticky&&s()}}}};function gt(e,t){return!e||!t||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom||e.left!==t.left}it.setDefaultProps({render:Ze});const vt=it},79296:(e,t,n)=>{"use strict";var i=n(4055)("span").classList,r=i&&i.constructor&&i.constructor.prototype;e.exports=r===Object.prototype?void 0:r},79306:(e,t,n)=>{"use strict";var i=n(94901),r=n(16823),a=TypeError;e.exports=function(e){if(i(e))return e;throw new a(r(e)+" is not a function")}},79402:function(e,t,n){!function(e){"use strict";e.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{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",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(e){var t=e%10;return e+(1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")},week:{dow:1,doy:4}})}(n(95093))},79504:(e,t,n)=>{"use strict";var i=n(40616),r=Function.prototype,a=r.call,s=i&&r.bind.bind(a,a);e.exports=i?s:function(e){return function(){return a.apply(e,arguments)}}},79565:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateDateInfo=t.validateDateSync=t.validateDate=t.shouldValidate=void 0;const r=n(54008);t.shouldValidate=e=>{const{component:t,value:n}=e;return!(!n||!(e=>{return!!(t=e)&&!!t.type&&"datetime"===t.type;var t})(t)||t.multiple&&Array.isArray(n)&&0===n.length)},t.validateDate=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateDateSync)(e)})),t.validateDateSync=e=>{const n=new r.FieldError("invalidDate",e,"date"),{value:i}=e;return(0,t.shouldValidate)(e)?"string"==typeof i?"invalid date"===i.toLowerCase()||"Invalid Date"===new Date(i).toString()?n:null:i instanceof Date&&"Invalid Date"!==i.toString()?null:n:null},t.validateDateInfo={name:"validateDate",process:t.validateDate,processSync:t.validateDateSync,shouldProcess:t.shouldValidate}},79602:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
    \n '+(null==(t=e.html)?"":t)+"\n
    \n"}},79635:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateMaximumLengthInfo=t.validateMaximumLengthSync=t.validateMaximumLength=t.shouldValidate=void 0;const r=n(54008),a=e=>{var t;let n=null===(t=e.validate)||void 0===t?void 0:t.maxLength;return n="string"==typeof n?parseInt(n,10):n,n};t.shouldValidate=e=>{const{component:t,value:n}=e;if(!(e=>{var t;return e&&(null===(t=e.validate)||void 0===t?void 0:t.hasOwnProperty("maxLength"))})(t))return!1;if(!n)return!1;if("string"!=typeof n)return!1;const i=a(t);return void 0!==i&&!(!i||Number.isNaN(i))},t.validateMaximumLength=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateMaximumLengthSync)(e)})),t.validateMaximumLengthSync=e=>{const{component:n,value:i}=e;if(!(0,t.shouldValidate)(e))return null;const s=a(n);return void 0===s||Number.isNaN(s)?null:i&&"string"==typeof i&&i.length>s?new r.FieldError("maxLength",Object.assign(Object.assign({},e),{length:String(s),setting:String(s)})):null},t.validateMaximumLengthInfo={name:"validateMaximumLength",process:t.validateMaximumLength,processSync:t.validateMaximumLengthSync,shouldProcess:t.shouldValidate}},79680:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return t?r[n][0]:r[n][1]}function n(e){if(e=parseInt(e,10),isNaN(e))return!1;if(e<0)return!0;if(e<10)return 4<=e&&e<=7;if(e<100){var t=e%10;return n(0===t?e/10:t)}if(e<1e4){for(;e>=10;)e/=10;return n(e)}return n(e/=1e3)}e.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(e){return n(e.substr(0,e.indexOf(" ")))?"a "+e:"an "+e},past:function(e){return n(e.substr(0,e.indexOf(" ")))?"viru "+e:"virun "+e},s:"e puer Sekonnen",ss:"%d Sekonnen",m:t,mm:"%d Minutten",h:t,hh:"%d Stonnen",d:t,dd:"%d Deeg",M:t,MM:"%d Méint",y:t,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},79770:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,a=[];++n11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},80067:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},80079:(e,t,n)=>{var i=n(63702),r=n(70080),a=n(24739),s=n(48655),o=n(31175);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0}]},80460:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(71961)),a=n(29857),s=i(n(2543)),o=n(34600);class l extends r.default{static schema(...e){return r.default.schema({dataSrc:"values",authenticate:!1,ignoreCache:!1,template:"{{ item.label }}",validate:{onlyAvailableItems:!1}},...e)}get isSelectURL(){return"url"===this.component.dataSrc}get selectData(){const e=s.default.get(this.root,"submission.metadata.selectData",{});return s.default.get(e,this.path)}get dataReady(){return this.root&&this.root.submissionSet&&!this.attached?Promise.resolve():this.itemsLoaded}get shouldLoad(){if(this.loadingError)return!1;if(!this.options.readOnly)return!0;if(this.templateKeys&&this.templateKeys.length){const e=this.dataValue,t=this.selectData;return this.templateKeys.reduce(((n,i)=>{const r=s.default.has(e,i)||(s.default.isArray(t)?t.every((e=>s.default.has(e,i))):s.default.has(t,i));return n||!r}),!1)}return!0}getTemplateKeys(){const e=this.component.template;this.templateKeys=this.options.readOnly&&e?(0,o.getItemTemplateKeys)(e):[]}get requestHeaders(){const e=new a.Formio.Headers;if(this.component.data&&this.component.data.headers)try{s.default.each(this.component.data.headers,(t=>{t.key&&e.set(t.key,this.interpolate(t.value))}))}catch(e){console.warn(e.message)}return e}setItems(){}updateCustomItems(){}loadItems(){}getOptionTemplate(e,t,n){if(!this.component.template)return e.label;const i={noeval:!0,data:{}},r=this.sanitize(this.component.template?this.interpolate(this.component.template,{item:e},i):e.label,this.shouldSanitizeValue),a=this.component.reference&&(null==t?void 0:t._id)?t._id.toString():t;return a&&!s.default.isObject(a)&&i.data.item&&(this.templateData[a]=i.data.item),s.default.isNumber(n)&&(this.templateData[n]=i.data.item),r}itemTemplate(e,t,n){if(s.default.isEmpty(e))return"";const i=this.sanitize(this.getOptionTemplate(e,t,n),this.shouldSanitizeValue);if(i){const e=i.replace(/<\/?[^>]+(>|$)/g,"");if(!e)return;return i.replace(e,this.t(e,{_userInput:!0}))}return this.sanitize(JSON.stringify(e),this.shouldSanitizeValue)}get itemsLoaded(){return this._itemsLoaded||Promise.resolve()}set itemsLoaded(e){this._itemsLoaded=e}handleLoadingError(e){this.loading=!1,e.networkError&&(this.networkError=!0),this.itemsLoadedResolve(),this.emit("componentError",{component:this.component,message:e.toString()}),console.warn(`Unable to load resources for ${this.key}`)}updateItems(e,t){if(!this.component.data)return console.warn(`Select component ${this.key} does not have data configuration.`),void this.itemsLoadedResolve();if(this.visible)switch(this.component.dataSrc){case"values":this.setItems(this.component.data.values);break;case"json":this.setItems(this.component.data.json);break;case"custom":this.updateCustomItems(t);break;case"resource":{if(!this.component.data.resource||!t&&!this.active)return void this.itemsLoadedResolve();let n=this.options.formio?this.options.formio.formsUrl:`${a.Formio.getProjectUrl()}/form`;if(n+=`/${this.component.data.resource}/submission`,t||this.additionalResourcesAvailable||!this.serverCount)try{this.loadItems(n,e,this.requestHeaders)}catch(e){console.warn(`Unable to load resources for ${this.key}`)}else this.setItems(this.downloadedResources);break}case"url":{if(!t&&!this.active&&!this.calculatedValue&&"select"===this.component.type)return void this.itemsLoadedResolve();let n,i,{url:r}=this.component.data;if(r=s.default.trim(r),r.startsWith("/")){const e=r.startsWith("/project")?a.Formio.getBaseUrl():a.Formio.getProjectUrl()||a.Formio.getBaseUrl();r=e+r}this.component.data.method?(n=this.component.data.method,i="POST"===n.toUpperCase()?this.component.data.body:null):n="GET";const o=this.component.authenticate?{}:{noToken:!0};this.loadItems(r,e,this.requestHeaders,o,n,i);break}case"indexeddb":if("undefined"==typeof window)return;if(window.indexedDB||window.alert("Your browser doesn't support current version of indexedDB"),this.component.indexeddb&&this.component.indexeddb.database&&this.component.indexeddb.table){const e=window.indexedDB.open(this.component.indexeddb.database);e.onupgradeneeded=e=>{if(this.component.customOptions){const t=e.target.result;t.createObjectStore(this.component.indexeddb.table,{keyPath:"myKey",autoIncrement:!0}).transaction.oncomplete=()=>{const e=t.transaction(this.component.indexeddb.table,"readwrite");this.component.customOptions.forEach((t=>{e.objectStore(this.component.indexeddb.table).put(t)}))}}},e.onerror=()=>{window.alert(e.errorCode)},e.onsuccess=e=>{const t=e.target.result.transaction(this.component.indexeddb.table,"readwrite").objectStore(this.component.indexeddb.table);new Promise((e=>{const n=[];t.getAll().onsuccess=t=>{t.target.result.forEach((e=>{n.push(e)})),e(n)}})).then((e=>{s.default.isEmpty(this.component.indexeddb.filter)||(e=s.default.filter(e,this.component.indexeddb.filter)),this.setItems(e)}))}}}else this.itemsLoadedResolve()}}t.default=l},80631:(e,t,n)=>{var i=n(28077),r=n(49326);e.exports=function(e,t){return null!=e&&r(e,t,i)}},80741:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?n:t)(i)}},80748:(module,__unused_webpack_exports,__webpack_require__)=>{var root,factory;root=globalThis,factory=()=>(()=>{"use strict";var __webpack_modules__=[,(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.RenderingIntentFlag=t.PromiseCapability=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.MAX_IMAGE_SIZE_TO_CACHE=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.BASELINE_FACTOR=t.AnnotationType=t.AnnotationReplyType=t.AnnotationPrefix=t.AnnotationMode=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.assert=function(e,t){e||s(t)},t.bytesToString=u,t.createValidAbsoluteUrl=function(e,t=null,n=null){if(!e)return null;try{if(n&&"string"==typeof e){if(n.addDefaultProtocol&&e.startsWith("www.")){const t=e.match(/\./g);t?.length>=2&&(e=`http://${e}`)}if(n.tryConvertEncoding)try{e=p(e)}catch{}}const i=t?new URL(e,t):new URL(e);if(function(e){switch(e?.protocol){case"http:":case"https:":case"ftp:":case"mailto:":case"tel:":return!0;default:return!1}}(i))return i}catch{}return null},t.getModificationDate=function(e=new Date){return[e.getUTCFullYear().toString(),(e.getUTCMonth()+1).toString().padStart(2,"0"),e.getUTCDate().toString().padStart(2,"0"),e.getUTCHours().toString().padStart(2,"0"),e.getUTCMinutes().toString().padStart(2,"0"),e.getUTCSeconds().toString().padStart(2,"0")].join("")},t.getUuid=function(){if("undefined"!=typeof crypto&&"function"==typeof crypto?.randomUUID)return crypto.randomUUID();const e=new Uint8Array(32);if("undefined"!=typeof crypto&&"function"==typeof crypto?.getRandomValues)crypto.getRandomValues(e);else for(let t=0;t<32;t++)e[t]=Math.floor(255*Math.random());return u(e)},t.getVerbosityLevel=function(){return r},t.info=function(e){r>=i.INFOS&&console.log(`Info: ${e}`)},t.isArrayBuffer=function(e){return"object"==typeof e&&void 0!==e?.byteLength},t.isArrayEqual=function(e,t){if(e.length!==t.length)return!1;for(let n=0,i=e.length;nt?t.normalize("NFKC"):m.get(n)))},t.objectFromMap=function(e){const t=Object.create(null);for(const[n,i]of e)t[n]=i;return t},t.objectSize=function(e){return Object.keys(e).length},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(r=e)},t.shadow=o,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=d,t.stringToPDFString=function(e){if(e[0]>="ï"){let t;if("þ"===e[0]&&"ÿ"===e[1]?t="utf-16be":"ÿ"===e[0]&&"þ"===e[1]?t="utf-16le":"ï"===e[0]&&"»"===e[1]&&"¿"===e[2]&&(t="utf-8"),t)try{const n=new TextDecoder(t,{fatal:!0}),i=d(e);return n.decode(i)}catch(e){a(`stringToPDFString: "${e}".`)}}const t=[];for(let n=0,i=e.length;n=i.WARNINGS&&console.log(`Warning: ${e}`)}function s(e){throw new Error(e)}function o(e,t,n,i=!1){return Object.defineProperty(e,t,{value:n,enumerable:!i,configurable:!0,writable:!1}),n}const l=function(){function e(t,n){this.constructor===e&&s("Cannot initialize BaseException."),this.message=t,this.name=n}return e.prototype=new Error,e.constructor=e,e}();function u(e){"object"==typeof e&&void 0!==e?.length||s("Invalid argument for bytesToString");const t=e.length,n=8192;if(te.toString(16).padStart(2,"0")));t.Util=class{static makeHexColor(e,t,n){return`#${c[e]}${c[t]}${c[n]}`}static scaleMinMax(e,t){let n;e[0]?(e[0]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[3],t[3]*=e[3]):(n=t[0],t[0]=t[2],t[2]=n,n=t[1],t[1]=t[3],t[3]=n,e[1]<0&&(n=t[2],t[2]=t[3],t[3]=n),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(n=t[0],t[0]=t[1],t[1]=n),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){const n=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/n,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/n]}static getAxialAlignedBoundingBox(e,t){const n=this.applyTransform(e,t),i=this.applyTransform(e.slice(2,4),t),r=this.applyTransform([e[0],e[3]],t),a=this.applyTransform([e[2],e[1]],t);return[Math.min(n[0],i[0],r[0],a[0]),Math.min(n[1],i[1],r[1],a[1]),Math.max(n[0],i[0],r[0],a[0]),Math.max(n[1],i[1],r[1],a[1])]}static inverseTransform(e){const t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e){const t=[e[0],e[2],e[1],e[3]],n=e[0]*t[0]+e[1]*t[2],i=e[0]*t[1]+e[1]*t[3],r=e[2]*t[0]+e[3]*t[2],a=e[2]*t[1]+e[3]*t[3],s=(n+a)/2,o=Math.sqrt((n+a)**2-4*(n*a-r*i))/2,l=s+o||1,u=s-o||1;return[Math.sqrt(l),Math.sqrt(u)]}static normalizeRect(e){const t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){const n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),i=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));if(n>i)return null;const r=Math.max(Math.min(e[1],e[3]),Math.min(t[1],t[3])),a=Math.min(Math.max(e[1],e[3]),Math.max(t[1],t[3]));return r>a?null:[n,r,i,a]}static bezierBoundingBox(e,t,n,i,r,a,s,o){const l=[],u=[[],[]];let d,c,h,p,f,m,g,v;for(let u=0;u<2;++u)if(0===u?(c=6*e-12*n+6*r,d=-3*e+9*n-9*r+3*s,h=3*n-3*e):(c=6*t-12*i+6*a,d=-3*t+9*i-9*a+3*o,h=3*i-3*t),Math.abs(d)<1e-12){if(Math.abs(c)<1e-12)continue;p=-h/c,0{this.resolve=t=>{this.#e=!0,e(t)},this.reject=e=>{this.#e=!0,t(e)}}))}get settled(){return this.#e}};let f=null,m=null;t.AnnotationPrefix="pdfjs_internal_id_"},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,Object.defineProperty(exports,"SVGGraphics",{enumerable:!0,get:function(){return _displaySvg.SVGGraphics}}),exports.build=void 0,exports.getDocument=getDocument,exports.version=void 0;var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(3),_display_utils=__w_pdfjs_require__(6),_font_loader=__w_pdfjs_require__(9),_displayNode_utils=__w_pdfjs_require__(10),_canvas=__w_pdfjs_require__(11),_worker_options=__w_pdfjs_require__(14),_message_handler=__w_pdfjs_require__(15),_metadata=__w_pdfjs_require__(16),_optional_content_config=__w_pdfjs_require__(17),_transport_stream=__w_pdfjs_require__(18),_displayFetch_stream=__w_pdfjs_require__(19),_displayNetwork=__w_pdfjs_require__(22),_displayNode_stream=__w_pdfjs_require__(23),_displaySvg=__w_pdfjs_require__(24),_xfa_text=__w_pdfjs_require__(25);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DELAYED_CLEANUP_TIMEOUT=5e3,DefaultCanvasFactory=_util.isNodeJS?_displayNode_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory;exports.DefaultCanvasFactory=DefaultCanvasFactory;const DefaultCMapReaderFactory=_util.isNodeJS?_displayNode_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory;exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory;const DefaultFilterFactory=_util.isNodeJS?_displayNode_utils.NodeFilterFactory:_display_utils.DOMFilterFactory;exports.DefaultFilterFactory=DefaultFilterFactory;const DefaultStandardFontDataFactory=_util.isNodeJS?_displayNode_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory;function getDocument(e){if("string"==typeof e||e instanceof URL?e={url:e}:(0,_util.isArrayBuffer)(e)&&(e={data:e}),"object"!=typeof e)throw new Error("Invalid parameter in getDocument, need parameter object.");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");const t=new PDFDocumentLoadingTask,{docId:n}=t,i=e.url?getUrlProp(e.url):null,r=e.data?getDataProp(e.data):null,a=e.httpHeaders||null,s=!0===e.withCredentials,o=e.password??null,l=e.range instanceof PDFDataRangeTransport?e.range:null,u=Number.isInteger(e.rangeChunkSize)&&e.rangeChunkSize>0?e.rangeChunkSize:DEFAULT_RANGE_CHUNK_SIZE;let d=e.worker instanceof PDFWorker?e.worker:null;const c=e.verbosity,h="string"!=typeof e.docBaseUrl||(0,_display_utils.isDataScheme)(e.docBaseUrl)?null:e.docBaseUrl,p="string"==typeof e.cMapUrl?e.cMapUrl:null,f=!1!==e.cMapPacked,m=e.CMapReaderFactory||DefaultCMapReaderFactory,g="string"==typeof e.standardFontDataUrl?e.standardFontDataUrl:null,v=e.StandardFontDataFactory||DefaultStandardFontDataFactory,y=!0!==e.stopAtErrors,b=Number.isInteger(e.maxImageSize)&&e.maxImageSize>-1?e.maxImageSize:-1,_=!1!==e.isEvalSupported,w="boolean"==typeof e.isOffscreenCanvasSupported?e.isOffscreenCanvasSupported:!_util.isNodeJS,M=Number.isInteger(e.canvasMaxAreaInBytes)?e.canvasMaxAreaInBytes:-1,k="boolean"==typeof e.disableFontFace?e.disableFontFace:_util.isNodeJS,S=!0===e.fontExtraProperties,x=!0===e.enableXfa,L=e.ownerDocument||globalThis.document,C=!0===e.disableRange,T=!0===e.disableStream,E=!0===e.disableAutoFetch,A=!0===e.pdfBug,D=l?l.length:e.length??NaN,P="boolean"==typeof e.useSystemFonts?e.useSystemFonts:!_util.isNodeJS&&!k,O="boolean"==typeof e.useWorkerFetch?e.useWorkerFetch:m===_display_utils.DOMCMapReaderFactory&&v===_display_utils.DOMStandardFontDataFactory&&p&&g&&(0,_display_utils.isValidFetchUrl)(p,document.baseURI)&&(0,_display_utils.isValidFetchUrl)(g,document.baseURI),j=e.canvasFactory||new DefaultCanvasFactory({ownerDocument:L}),I=e.filterFactory||new DefaultFilterFactory({docId:n,ownerDocument:L});(0,_util.setVerbosityLevel)(c);const R={canvasFactory:j,filterFactory:I};if(O||(R.cMapReaderFactory=new m({baseUrl:p,isCompressed:f}),R.standardFontDataFactory=new v({baseUrl:g})),!d){const e={verbosity:c,port:_worker_options.GlobalWorkerOptions.workerPort};d=e.port?PDFWorker.fromPort(e):new PDFWorker(e),t._worker=d}const F={docId:n,apiVersion:"3.11.174",data:r,password:o,disableAutoFetch:E,rangeChunkSize:u,length:D,docBaseUrl:h,enableXfa:x,evaluatorOptions:{maxImageSize:b,disableFontFace:k,ignoreErrors:y,isEvalSupported:_,isOffscreenCanvasSupported:w,canvasMaxAreaInBytes:M,fontExtraProperties:S,useSystemFonts:P,cMapUrl:O?p:null,standardFontDataUrl:O?g:null}},Y={ignoreErrors:y,isEvalSupported:_,disableFontFace:k,fontExtraProperties:S,enableXfa:x,ownerDocument:L,disableAutoFetch:E,pdfBug:A,styleElement:null};return d.promise.then((function(){if(t.destroyed)throw new Error("Loading aborted");const e=_fetchDocument(d,F),o=new Promise((function(e){let t;var n;l?t=new _transport_stream.PDFDataTransportStream({length:D,initialData:l.initialData,progressiveDone:l.progressiveDone,contentDispositionFilename:l.contentDispositionFilename,disableRange:C,disableStream:T},l):r||(n={url:i,length:D,httpHeaders:a,withCredentials:s,rangeChunkSize:u,disableRange:C,disableStream:T},t=_util.isNodeJS?new _displayNode_stream.PDFNodeStream(n):(0,_display_utils.isValidFetchUrl)(n.url)?new _displayFetch_stream.PDFFetchStream(n):new _displayNetwork.PDFNetworkStream(n)),e(t)}));return Promise.all([e,o]).then((function([e,i]){if(t.destroyed)throw new Error("Loading aborted");const r=new _message_handler.MessageHandler(n,e,d.port),a=new WorkerTransport(r,t,i,Y,R);t._transport=a,r.send("Ready",null)}))})).catch(t._capability.reject),t}async function _fetchDocument(e,t){if(e.destroyed)throw new Error("Worker was destroyed");const n=await e.messageHandler.sendWithPromise("GetDocRequest",t,t.data?[t.data.buffer]:null);if(e.destroyed)throw new Error("Worker was destroyed");return n}function getUrlProp(e){if(e instanceof URL)return e.href;try{return new URL(e,window.location).href}catch{if(_util.isNodeJS&&"string"==typeof e)return e}throw new Error("Invalid PDF url data: either string or URL-object is expected in the url property.")}function getDataProp(e){if(_util.isNodeJS&&"undefined"!=typeof Buffer&&e instanceof Buffer)throw new Error("Please provide binary data as `Uint8Array`, rather than `Buffer`.");if(e instanceof Uint8Array&&e.byteLength===e.buffer.byteLength)return e;if("string"==typeof e)return(0,_util.stringToBytes)(e);if("object"==typeof e&&!isNaN(e?.length)||(0,_util.isArrayBuffer)(e))return new Uint8Array(e);throw new Error("Invalid PDF binary data: either TypedArray, string, or array-like object is expected in the data property.")}exports.DefaultStandardFontDataFactory=DefaultStandardFontDataFactory;class PDFDocumentLoadingTask{static#t=0;constructor(){this._capability=new _util.PromiseCapability,this._transport=null,this._worker=null,this.docId="d"+PDFDocumentLoadingTask.#t++,this.destroyed=!1,this.onPassword=null,this.onProgress=null}get promise(){return this._capability.promise}async destroy(){this.destroyed=!0;try{this._worker?.port&&(this._worker._pendingDestroy=!0),await(this._transport?.destroy())}catch(e){throw this._worker?.port&&delete this._worker._pendingDestroy,e}this._transport=null,this._worker&&(this._worker.destroy(),this._worker=null)}}exports.PDFDocumentLoadingTask=PDFDocumentLoadingTask;class PDFDataRangeTransport{constructor(e,t,n=!1,i=null){this.length=e,this.initialData=t,this.progressiveDone=n,this.contentDispositionFilename=i,this._rangeListeners=[],this._progressListeners=[],this._progressiveReadListeners=[],this._progressiveDoneListeners=[],this._readyCapability=new _util.PromiseCapability}addRangeListener(e){this._rangeListeners.push(e)}addProgressListener(e){this._progressListeners.push(e)}addProgressiveReadListener(e){this._progressiveReadListeners.push(e)}addProgressiveDoneListener(e){this._progressiveDoneListeners.push(e)}onDataRange(e,t){for(const n of this._rangeListeners)n(e,t)}onDataProgress(e,t){this._readyCapability.promise.then((()=>{for(const n of this._progressListeners)n(e,t)}))}onDataProgressiveRead(e){this._readyCapability.promise.then((()=>{for(const t of this._progressiveReadListeners)t(e)}))}onDataProgressiveDone(){this._readyCapability.promise.then((()=>{for(const e of this._progressiveDoneListeners)e()}))}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(e,t){this._pdfInfo=e,this._transport=t,Object.defineProperty(this,"getJavaScript",{value:()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."),this.getJSActions().then((e=>{if(!e)return e;const t=[];for(const n in e)t.push(...e[n]);return t})))})}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(e=!1){return this._transport.startCleanup(e||this.isPureXfa)}destroy(){return this.loadingTask.destroy()}get loadingParams(){return this._transport.loadingParams}get loadingTask(){return this._transport.loadingTask}getFieldObjects(){return this._transport.getFieldObjects()}hasJSActions(){return this._transport.hasJSActions()}getCalculationOrderIds(){return this._transport.getCalculationOrderIds()}}exports.PDFDocumentProxy=PDFDocumentProxy;class PDFPageProxy{#n=null;#i=!1;constructor(e,t,n,i=!1){this._pageIndex=e,this._pageInfo=t,this._transport=n,this._stats=i?new _display_utils.StatTimer:null,this._pdfBug=i,this.commonObjs=n.commonObjs,this.objs=new PDFObjects,this._maybeCleanupAfterRender=!1,this._intentStates=new Map,this.destroyed=!1}get pageNumber(){return this._pageIndex+1}get rotate(){return this._pageInfo.rotate}get ref(){return this._pageInfo.ref}get userUnit(){return this._pageInfo.userUnit}get view(){return this._pageInfo.view}getViewport({scale:e,rotation:t=this.rotate,offsetX:n=0,offsetY:i=0,dontFlip:r=!1}={}){return new _display_utils.PageViewport({viewBox:this.view,scale:e,rotation:t,offsetX:n,offsetY:i,dontFlip:r})}getAnnotations({intent:e="display"}={}){const t=this._transport.getRenderingIntent(e);return this._transport.getAnnotations(this._pageIndex,t.renderingIntent)}getJSActions(){return this._transport.getPageJSActions(this._pageIndex)}get filterFactory(){return this._transport.filterFactory}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}async getXfa(){return this._transport._htmlForXfa?.children[this._pageIndex]||null}render({canvasContext:e,viewport:t,intent:n="display",annotationMode:i=_util.AnnotationMode.ENABLE,transform:r=null,background:a=null,optionalContentConfigPromise:s=null,annotationCanvasMap:o=null,pageColors:l=null,printAnnotationStorage:u=null}){this._stats?.time("Overall");const d=this._transport.getRenderingIntent(n,i,u);this.#i=!1,this.#r(),s||(s=this._transport.getOptionalContentConfig());let c=this._intentStates.get(d.cacheKey);c||(c=Object.create(null),this._intentStates.set(d.cacheKey,c)),c.streamReaderCancelTimeout&&(clearTimeout(c.streamReaderCancelTimeout),c.streamReaderCancelTimeout=null);const h=!!(d.renderingIntent&_util.RenderingIntentFlag.PRINT);c.displayReadyCapability||(c.displayReadyCapability=new _util.PromiseCapability,c.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(d));const p=e=>{c.renderTasks.delete(f),(this._maybeCleanupAfterRender||h)&&(this.#i=!0),this.#a(!h),e?(f.capability.reject(e),this._abortOperatorList({intentState:c,reason:e instanceof Error?e:new Error(e)})):f.capability.resolve(),this._stats?.timeEnd("Rendering"),this._stats?.timeEnd("Overall")},f=new InternalRenderTask({callback:p,params:{canvasContext:e,viewport:t,transform:r,background:a},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:o,operatorList:c.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!h,pdfBug:this._pdfBug,pageColors:l});(c.renderTasks||=new Set).add(f);const m=f.task;return Promise.all([c.displayReadyCapability.promise,s]).then((([e,t])=>{this.destroyed?p():(this._stats?.time("Rendering"),f.initializeGraphics({transparency:e,optionalContentConfig:t}),f.operatorListChanged())})).catch(p),m}getOperatorList({intent:e="display",annotationMode:t=_util.AnnotationMode.ENABLE,printAnnotationStorage:n=null}={}){const i=this._transport.getRenderingIntent(e,t,n,!0);let r,a=this._intentStates.get(i.cacheKey);return a||(a=Object.create(null),this._intentStates.set(i.cacheKey,a)),a.opListReadCapability||(r=Object.create(null),r.operatorListChanged=function(){a.operatorList.lastChunk&&(a.opListReadCapability.resolve(a.operatorList),a.renderTasks.delete(r))},a.opListReadCapability=new _util.PromiseCapability,(a.renderTasks||=new Set).add(r),a.operatorList={fnArray:[],argsArray:[],lastChunk:!1,separateAnnots:null},this._stats?.time("Page Request"),this._pumpOperatorList(i)),a.opListReadCapability.promise}streamTextContent({includeMarkedContent:e=!1,disableNormalization:t=!1}={}){return this._transport.messageHandler.sendWithStream("GetTextContent",{pageIndex:this._pageIndex,includeMarkedContent:!0===e,disableNormalization:!0===t},{highWaterMark:100,size:e=>e.items.length})}getTextContent(e={}){if(this._transport._htmlForXfa)return this.getXfa().then((e=>_xfa_text.XfaText.textContent(e)));const t=this.streamTextContent(e);return new Promise((function(e,n){const i=t.getReader(),r={items:[],styles:Object.create(null)};!function t(){i.read().then((function({value:n,done:i}){i?e(r):(Object.assign(r.styles,n.styles),r.items.push(...n.items),t())}),n)}()}))}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;const e=[];for(const t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(const n of t.renderTasks)e.push(n.completed),n.cancel();return this.objs.clear(),this.#i=!1,this.#r(),Promise.all(e)}cleanup(e=!1){this.#i=!0;const t=this.#a(!1);return e&&t&&(this._stats&&=new _display_utils.StatTimer),t}#a(e=!1){if(this.#r(),!this.#i||this.destroyed)return!1;if(e)return this.#n=setTimeout((()=>{this.#n=null,this.#a(!1)}),DELAYED_CLEANUP_TIMEOUT),!1;for(const{renderTasks:e,operatorList:t}of this._intentStates.values())if(e.size>0||!t.lastChunk)return!1;return this._intentStates.clear(),this.objs.clear(),this.#i=!1,!0}#r(){this.#n&&(clearTimeout(this.#n),this.#n=null)}_startRenderPage(e,t){const n=this._intentStates.get(t);n&&(this._stats?.timeEnd("Page Request"),n.displayReadyCapability?.resolve(e))}_renderPageChunk(e,t){for(let n=0,i=e.length;n{a.read().then((({value:e,done:t})=>{t?s.streamReader=null:this._transport.destroyed||(this._renderPageChunk(e,s),o())}),(e=>{if(s.streamReader=null,!this._transport.destroyed){if(s.operatorList){s.operatorList.lastChunk=!0;for(const e of s.renderTasks)e.operatorListChanged();this.#a(!0)}if(s.displayReadyCapability)s.displayReadyCapability.reject(e);else{if(!s.opListReadCapability)throw e;s.opListReadCapability.reject(e)}}}))};o()}_abortOperatorList({intentState:e,reason:t,force:n=!1}){if(e.streamReader){if(e.streamReaderCancelTimeout&&(clearTimeout(e.streamReaderCancelTimeout),e.streamReaderCancelTimeout=null),!n){if(e.renderTasks.size>0)return;if(t instanceof _display_utils.RenderingCancelledException){let n=RENDERING_CANCELLED_TIMEOUT;return t.extraDelay>0&&t.extraDelay<1e3&&(n+=t.extraDelay),void(e.streamReaderCancelTimeout=setTimeout((()=>{e.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:e,reason:t,force:!0})}),n))}}if(e.streamReader.cancel(new _util.AbortException(t.message)).catch((()=>{})),e.streamReader=null,!this._transport.destroyed){for(const[t,n]of this._intentStates)if(n===e){this._intentStates.delete(t);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{#s=new Set;#o=Promise.resolve();postMessage(e,t){const n={data:structuredClone(e,t?{transfer:t}:null)};this.#o.then((()=>{for(const e of this.#s)e.call(this,n)}))}addEventListener(e,t){this.#s.add(t)}removeEventListener(e,t){this.#s.delete(t)}terminate(){this.#s.clear()}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_util.isNodeJS)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"==typeof document){const e=document?.currentScript?.src;e&&(PDFWorkerUtil.fallbackWorkerSrc=e.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(e,t){let n;try{if(n=new URL(e),!n.origin||"null"===n.origin)return!1}catch{return!1}const i=new URL(t,n);return n.origin===i.origin},PDFWorkerUtil.createCDNWrapper=function(e){const t=`importScripts("${e}");`;return URL.createObjectURL(new Blob([t]))};class PDFWorker{static#l;constructor({name:e=null,port:t=null,verbosity:n=(0,_util.getVerbosityLevel)()}={}){if(this.name=e,this.destroyed=!1,this.verbosity=n,this._readyCapability=new _util.PromiseCapability,this._port=null,this._webWorker=null,this._messageHandler=null,t){if(PDFWorker.#l?.has(t))throw new Error("Cannot use more than one PDFWorker per port.");return(PDFWorker.#l||=new WeakMap).set(t,this),void this._initializeFromPort(t)}this._initialize()}get promise(){return this._readyCapability.promise}get port(){return this._port}get messageHandler(){return this._messageHandler}_initializeFromPort(e){this._port=e,this._messageHandler=new _message_handler.MessageHandler("main","worker",e),this._messageHandler.on("ready",(function(){})),this._readyCapability.resolve(),this._messageHandler.send("configure",{verbosity:this.verbosity})}_initialize(){if(!PDFWorkerUtil.isWorkerDisabled&&!PDFWorker._mainThreadWorkerMessageHandler){let{workerSrc:e}=PDFWorker;try{PDFWorkerUtil.isSameOrigin(window.location.href,e)||(e=PDFWorkerUtil.createCDNWrapper(new URL(e,window.location).href));const t=new Worker(e),n=new _message_handler.MessageHandler("main","worker",t),i=()=>{t.removeEventListener("error",r),n.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},r=()=>{this._webWorker||i()};t.addEventListener("error",r),n.on("test",(e=>{t.removeEventListener("error",r),this.destroyed?i():e?(this._messageHandler=n,this._port=t,this._webWorker=t,this._readyCapability.resolve(),n.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),n.destroy(),t.terminate())})),n.on("ready",(e=>{if(t.removeEventListener("error",r),this.destroyed)i();else try{a()}catch{this._setupFakeWorker()}}));const a=()=>{const e=new Uint8Array;n.send("test",e,[e.buffer])};return void a()}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then((e=>{if(this.destroyed)return void this._readyCapability.reject(new Error("Worker was destroyed"));const t=new LoopbackPort;this._port=t;const n="fake"+PDFWorkerUtil.fakeWorkerId++,i=new _message_handler.MessageHandler(n+"_worker",n,t);e.setup(i,t);const r=new _message_handler.MessageHandler(n,n+"_worker",t);this._messageHandler=r,this._readyCapability.resolve(),r.send("configure",{verbosity:this.verbosity})})).catch((e=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${e.message}".`))}))}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),PDFWorker.#l?.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){if(!e?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");const t=this.#l?.get(e.port);if(t){if(t._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return t}return new PDFWorker(e)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _util.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_util.isNodeJS){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}exports.PDFWorker=PDFWorker;class WorkerTransport{#u=new Map;#d=new Map;#c=new Map;#h=null;constructor(e,t,n,i,r){this.messageHandler=e,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:i.ownerDocument,styleElement:i.styleElement}),this._params=i,this.canvasFactory=r.canvasFactory,this.filterFactory=r.filterFactory,this.cMapReaderFactory=r.cMapReaderFactory,this.standardFontDataFactory=r.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=n,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=new _util.PromiseCapability,this.setupMessageHandler()}#p(e,t=null){const n=this.#u.get(e);if(n)return n;const i=this.messageHandler.sendWithPromise(e,t);return this.#u.set(e,i),i}get annotationStorage(){return(0,_util.shadow)(this,"annotationStorage",new _annotation_storage.AnnotationStorage)}getRenderingIntent(e,t=_util.AnnotationMode.ENABLE,n=null,i=!1){let r=_util.RenderingIntentFlag.DISPLAY,a=_annotation_storage.SerializableEmpty;switch(e){case"any":r=_util.RenderingIntentFlag.ANY;break;case"display":break;case"print":r=_util.RenderingIntentFlag.PRINT;break;default:(0,_util.warn)(`getRenderingIntent - invalid intent: ${e}`)}switch(t){case _util.AnnotationMode.DISABLE:r+=_util.RenderingIntentFlag.ANNOTATIONS_DISABLE;break;case _util.AnnotationMode.ENABLE:break;case _util.AnnotationMode.ENABLE_FORMS:r+=_util.RenderingIntentFlag.ANNOTATIONS_FORMS;break;case _util.AnnotationMode.ENABLE_STORAGE:r+=_util.RenderingIntentFlag.ANNOTATIONS_STORAGE,a=(r&_util.RenderingIntentFlag.PRINT&&n instanceof _annotation_storage.PrintAnnotationStorage?n:this.annotationStorage).serializable;break;default:(0,_util.warn)(`getRenderingIntent - invalid annotationMode: ${t}`)}return i&&(r+=_util.RenderingIntentFlag.OPLIST),{renderingIntent:r,cacheKey:`${r}_${a.hash}`,annotationStorageSerializable:a}}destroy(){if(this.destroyCapability)return this.destroyCapability.promise;this.destroyed=!0,this.destroyCapability=new _util.PromiseCapability,this.#h?.reject(new Error("Worker was destroyed during onPassword callback"));const e=[];for(const t of this.#d.values())e.push(t._destroy());this.#d.clear(),this.#c.clear(),this.hasOwnProperty("annotationStorage")&&this.annotationStorage.resetModified();const t=this.messageHandler.sendWithPromise("Terminate",null);return e.push(t),Promise.all(e).then((()=>{this.commonObjs.clear(),this.fontLoader.clear(),this.#u.clear(),this.filterFactory.destroy(),this._networkStream?.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()}),this.destroyCapability.reject),this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:e,loadingTask:t}=this;e.on("GetReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=e=>{this._lastProgress={loaded:e.loaded,total:e.total}},t.onPull=()=>{this._fullReader.read().then((function({value:e,done:n}){n?t.close():((0,_util.assert)(e instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{this._fullReader.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}})),e.on("ReaderHeadersReady",(e=>{const n=new _util.PromiseCapability,i=this._fullReader;return i.headersReady.then((()=>{i.isStreamingSupported&&i.isRangeSupported||(this._lastProgress&&t.onProgress?.(this._lastProgress),i.onProgress=e=>{t.onProgress?.({loaded:e.loaded,total:e.total})}),n.resolve({isStreamingSupported:i.isStreamingSupported,isRangeSupported:i.isRangeSupported,contentLength:i.contentLength})}),n.reject),n.promise})),e.on("GetRangeReader",((e,t)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const n=this._networkStream.getRangeReader(e.begin,e.end);n?(t.onPull=()=>{n.read().then((function({value:e,done:n}){n?t.close():((0,_util.assert)(e instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),t.enqueue(new Uint8Array(e),1,[e]))})).catch((e=>{t.error(e)}))},t.onCancel=e=>{n.cancel(e),t.ready.catch((e=>{if(!this.destroyed)throw e}))}):t.close()})),e.on("GetDoc",(({pdfInfo:e})=>{this._numPages=e.numPages,this._htmlForXfa=e.htmlForXfa,delete e.htmlForXfa,t._capability.resolve(new PDFDocumentProxy(e,this))})),e.on("DocException",(function(e){let n;switch(e.name){case"PasswordException":n=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":n=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":n=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":n=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":n=new _util.UnknownErrorException(e.message,e.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}t._capability.reject(n)})),e.on("PasswordRequest",(e=>{if(this.#h=new _util.PromiseCapability,t.onPassword){const n=e=>{e instanceof Error?this.#h.reject(e):this.#h.resolve({password:e})};try{t.onPassword(n,e.code)}catch(e){this.#h.reject(e)}}else this.#h.reject(new _util.PasswordException(e.message,e.code));return this.#h.promise})),e.on("DataLoaded",(e=>{t.onProgress?.({loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)})),e.on("StartRenderPage",(e=>{this.destroyed||this.#d.get(e.pageIndex)._startRenderPage(e.transparency,e.cacheKey)})),e.on("commonobj",(([t,n,i])=>{if(!this.destroyed&&!this.commonObjs.has(t))switch(n){case"Font":const r=this._params;if("error"in i){const e=i.error;(0,_util.warn)(`Error during font loading: ${e}`),this.commonObjs.resolve(t,e);break}const a=r.pdfBug&&globalThis.FontInspector?.enabled?(e,t)=>globalThis.FontInspector.fontAdded(e,t):null,s=new _font_loader.FontFaceObject(i,{isEvalSupported:r.isEvalSupported,disableFontFace:r.disableFontFace,ignoreErrors:r.ignoreErrors,inspectFont:a});this.fontLoader.bind(s).catch((n=>e.sendWithPromise("FontFallback",{id:t}))).finally((()=>{!r.fontExtraProperties&&s.data&&(s.data=null),this.commonObjs.resolve(t,s)}));break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(t,i);break;default:throw new Error(`Got unknown common object type ${n}`)}})),e.on("obj",(([e,t,n,i])=>{if(this.destroyed)return;const r=this.#d.get(t);if(!r.objs.has(e))switch(n){case"Image":if(r.objs.resolve(e,i),i){let e;if(i.bitmap){const{width:t,height:n}=i;e=t*n*4}else e=i.data?.length||0;e>_util.MAX_IMAGE_SIZE_TO_CACHE&&(r._maybeCleanupAfterRender=!0)}break;case"Pattern":r.objs.resolve(e,i);break;default:throw new Error(`Got unknown object type ${n}`)}})),e.on("DocProgress",(e=>{this.destroyed||t.onProgress?.({loaded:e.loaded,total:e.total})})),e.on("FetchBuiltInCMap",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(e):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter.")))),e.on("FetchStandardFontData",(e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(e):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter."))))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");const{map:e,transfers:t}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:e,filename:this._fullReader?.filename??null},t).finally((()=>{this.annotationStorage.resetModified()}))}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));const t=e-1,n=this.#c.get(t);if(n)return n;const i=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then((e=>{if(this.destroyed)throw new Error("Transport destroyed");const n=new PDFPageProxy(t,e,this,this._params.pdfBug);return this.#d.set(t,n),n}));return this.#c.set(t,i),i}getPageIndex(e){return"object"!=typeof e||null===e||!Number.isInteger(e.num)||e.num<0||!Number.isInteger(e.gen)||e.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen})}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}getFieldObjects(){return this.#p("GetFieldObjects")}hasJSActions(){return this.#p("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!=typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return this.#p("GetDocJSActions")}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then((e=>new _optional_content_config.OptionalContentConfig(e)))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){const e="GetMetadata",t=this.#u.get(e);if(t)return t;const n=this.messageHandler.sendWithPromise(e,null).then((e=>({info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null})));return this.#u.set(e,n),n}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(e=!1){if(!this.destroyed){await this.messageHandler.sendWithPromise("Cleanup",null);for(const e of this.#d.values())if(!e.cleanup())throw new Error(`startCleanup: Page ${e.pageNumber} is currently rendering.`);this.commonObjs.clear(),e||this.fontLoader.clear(),this.#u.clear(),this.filterFactory.destroy(!0)}}get loadingParams(){const{disableAutoFetch:e,enableXfa:t}=this._params;return(0,_util.shadow)(this,"loadingParams",{disableAutoFetch:e,enableXfa:t})}}class PDFObjects{#f=Object.create(null);#m(e){return this.#f[e]||={capability:new _util.PromiseCapability,data:null}}get(e,t=null){if(t){const n=this.#m(e);return n.capability.promise.then((()=>t(n.data))),null}const n=this.#f[e];if(!n?.capability.settled)throw new Error(`Requesting object that isn't resolved yet ${e}.`);return n.data}has(e){const t=this.#f[e];return t?.capability.settled||!1}resolve(e,t=null){const n=this.#m(e);n.data=t,n.capability.resolve()}clear(){for(const e in this.#f){const{data:t}=this.#f[e];t?.bitmap?.close()}this.#f=Object.create(null)}}class RenderTask{#g=null;constructor(e){this.#g=e,this.onContinue=null}get promise(){return this.#g.capability.promise}cancel(e=0){this.#g.cancel(null,e)}get separateAnnots(){const{separateAnnots:e}=this.#g.operatorList;if(!e)return!1;const{annotationCanvasMap:t}=this.#g;return e.form||e.canvas&&t?.size>0}}exports.RenderTask=RenderTask;class InternalRenderTask{static#v=new WeakSet;constructor({callback:e,params:t,objs:n,commonObjs:i,annotationCanvasMap:r,operatorList:a,pageIndex:s,canvasFactory:o,filterFactory:l,useRequestAnimationFrame:u=!1,pdfBug:d=!1,pageColors:c=null}){this.callback=e,this.params=t,this.objs=n,this.commonObjs=i,this.annotationCanvasMap=r,this.operatorListIdx=null,this.operatorList=a,this._pageIndex=s,this.canvasFactory=o,this.filterFactory=l,this._pdfBug=d,this.pageColors=c,this.running=!1,this.graphicsReadyCallback=null,this.graphicsReady=!1,this._useRequestAnimationFrame=!0===u&&"undefined"!=typeof window,this.cancelled=!1,this.capability=new _util.PromiseCapability,this.task=new RenderTask(this),this._cancelBound=this.cancel.bind(this),this._continueBound=this._continue.bind(this),this._scheduleNextBound=this._scheduleNext.bind(this),this._nextBound=this._next.bind(this),this._canvas=t.canvasContext.canvas}get completed(){return this.capability.promise.catch((function(){}))}initializeGraphics({transparency:e=!1,optionalContentConfig:t}){if(this.cancelled)return;if(this._canvas){if(InternalRenderTask.#v.has(this._canvas))throw new Error("Cannot use the same canvas during multiple render() operations. Use different canvas or ensure previous operations were cancelled or completed.");InternalRenderTask.#v.add(this._canvas)}this._pdfBug&&globalThis.StepperManager?.enabled&&(this.stepper=globalThis.StepperManager.create(this._pageIndex),this.stepper.init(this.operatorList),this.stepper.nextBreakPoint=this.stepper.getNextBreakPoint());const{canvasContext:n,viewport:i,transform:r,background:a}=this.params;this.gfx=new _canvas.CanvasGraphics(n,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:t},this.annotationCanvasMap,this.pageColors),this.gfx.beginDrawing({transform:r,viewport:i,transparency:e,background:a}),this.operatorListIdx=0,this.graphicsReady=!0,this.graphicsReadyCallback?.()}cancel(e=null,t=0){this.running=!1,this.cancelled=!0,this.gfx?.endDrawing(),InternalRenderTask.#v.delete(this._canvas),this.callback(e||new _display_utils.RenderingCancelledException(`Rendering cancelled, page ${this._pageIndex+1}`,t))}operatorListChanged(){this.graphicsReady?(this.stepper?.updateOperatorList(this.operatorList),this.running||this._continue()):this.graphicsReadyCallback||=this._continueBound}_continue(){this.running=!0,this.cancelled||(this.task.onContinue?this.task.onContinue(this._scheduleNextBound):this._scheduleNext())}_scheduleNext(){this._useRequestAnimationFrame?window.requestAnimationFrame((()=>{this._nextBound().catch(this._cancelBound)})):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk&&(this.gfx.endDrawing(),InternalRenderTask.#v.delete(this._canvas),this.callback())))}}const version="3.11.174";exports.version=version;const build="ce8716743";exports.build=build},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SerializableEmpty=t.PrintAnnotationStorage=t.AnnotationStorage=void 0;var i=n(1),r=n(4),a=n(8);const s=Object.freeze({map:null,hash:"",transfers:void 0});t.SerializableEmpty=s;class o{#y=!1;#b=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,t){const n=this.#b.get(e);return void 0===n?t:Object.assign(t,n)}getRawValue(e){return this.#b.get(e)}remove(e){if(this.#b.delete(e),0===this.#b.size&&this.resetModified(),"function"==typeof this.onAnnotationEditor){for(const e of this.#b.values())if(e instanceof r.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(e,t){const n=this.#b.get(e);let i=!1;if(void 0!==n)for(const[e,r]of Object.entries(t))n[e]!==r&&(i=!0,n[e]=r);else i=!0,this.#b.set(e,t);i&&this.#_(),t instanceof r.AnnotationEditor&&"function"==typeof this.onAnnotationEditor&&this.onAnnotationEditor(t.constructor._type)}has(e){return this.#b.has(e)}getAll(){return this.#b.size>0?(0,i.objectFromMap)(this.#b):null}setAll(e){for(const[t,n]of Object.entries(e))this.setValue(t,n)}get size(){return this.#b.size}#_(){this.#y||(this.#y=!0,"function"==typeof this.onSetModified&&this.onSetModified())}resetModified(){this.#y&&(this.#y=!1,"function"==typeof this.onResetModified&&this.onResetModified())}get print(){return new l(this)}get serializable(){if(0===this.#b.size)return s;const e=new Map,t=new a.MurmurHash3_64,n=[],i=Object.create(null);let o=!1;for(const[n,a]of this.#b){const s=a instanceof r.AnnotationEditor?a.serialize(!1,i):a;s&&(e.set(n,s),t.update(`${n}:${JSON.stringify(s)}`),o||=!!s.bitmap)}if(o)for(const t of e.values())t.bitmap&&n.push(t.bitmap);return e.size>0?{map:e,hash:t.hexdigest(),transfers:n}:s}}t.AnnotationStorage=o;class l extends o{#w;constructor(e){super();const{map:t,hash:n,transfers:i}=e.serializable,r=structuredClone(t,i?{transfer:i}:null);this.#w={map:r,hash:n,transfers:i}}get print(){(0,i.unreachable)("Should not call PrintAnnotationStorage.print")}get serializable(){return this.#w}}t.PrintAnnotationStorage=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditor=void 0;var i=n(5),r=n(1),a=n(6);class s{#M="";#k=!1;#S=null;#x=null;#L=null;#C=!1;#T=null;#E=this.focusin.bind(this);#A=this.focusout.bind(this);#D=!1;#P=!1;#O=!1;_initialOptions=Object.create(null);_uiManager=null;_focusEventsAllowed=!0;_l10nPromise=null;#j=!1;#I=s._zIndex++;static _borderLineWidth=-1;static _colorManager=new i.ColorManager;static _zIndex=1;static SMALL_EDITOR_SIZE=0;constructor(e){this.constructor===s&&(0,r.unreachable)("Cannot initialize AnnotationEditor."),this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=e.isCentered,this._structTreeParentId=null;const{rotation:t,rawDims:{pageWidth:n,pageHeight:i,pageX:a,pageY:o}}=this.parent.viewport;this.rotation=t,this.pageRotation=(360+t-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[n,i],this.pageTranslation=[a,o];const[l,u]=this.parentDimensions;this.x=e.x/l,this.y=e.y/u,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return(0,r.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(e){const t=new o({id:e.parent.getNextId(),parent:e.parent,uiManager:e._uiManager});t.annotationElementId=e.annotationElementId,t.deleted=!0,t._uiManager.addToAnnotationStorage(t)}static initialize(e,t=null){if(s._l10nPromise||=new Map(["editor_alt_text_button_label","editor_alt_text_edit_button_label","editor_alt_text_decorative_tooltip"].map((t=>[t,e.get(t)]))),t?.strings)for(const n of t.strings)s._l10nPromise.set(n,e.get(n));if(-1!==s._borderLineWidth)return;const n=getComputedStyle(document.documentElement);s._borderLineWidth=parseFloat(n.getPropertyValue("--outline-width"))||0}static updateDefaultParams(e,t){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(e){return!1}static paste(e,t){(0,r.unreachable)("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#j}set _isDraggable(e){this.#j=e,this.div?.classList.toggle("draggable",e)}center(){const[e,t]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*t/(2*e),this.y+=this.width*e/(2*t);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*t/(2*e),this.y-=this.width*e/(2*t);break;default:this.x-=this.width/2,this.y-=this.height/2}this.fixAndSetPosition()}addCommands(e){this._uiManager.addCommands(e)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#I}setParent(e){null!==e&&(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions),this.parent=e}focusin(e){this._focusEventsAllowed&&(this.#D?this.#D=!1:this.parent.setSelected(this))}focusout(e){if(!this._focusEventsAllowed)return;if(!this.isAttachedToDOM)return;const t=e.relatedTarget;t?.closest(`#${this.id}`)||(e.preventDefault(),this.parent?.isMultipleSelection||this.commitOrRemove())}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(e,t,n,i){const[r,a]=this.parentDimensions;[n,i]=this.screenToPageTranslation(n,i),this.x=(e+n)/r,this.y=(t+i)/a,this.fixAndSetPosition()}#R([e,t],n,i){[n,i]=this.screenToPageTranslation(n,i),this.x+=n/e,this.y+=i/t,this.fixAndSetPosition()}translate(e,t){this.#R(this.parentDimensions,e,t)}translateInPage(e,t){this.#R(this.pageDimensions,e,t),this.div.scrollIntoView({block:"nearest"})}drag(e,t){const[n,i]=this.parentDimensions;if(this.x+=e/n,this.y+=t/i,this.parent&&(this.x<0||this.x>1||this.y<0||this.y>1)){const{x:e,y:t}=this.div.getBoundingClientRect();this.parent.findNewParent(this,e,t)&&(this.x-=Math.floor(this.x),this.y-=Math.floor(this.y))}let{x:r,y:a}=this;const[s,o]=this.#F();r+=s,a+=o,this.div.style.left=`${(100*r).toFixed(2)}%`,this.div.style.top=`${(100*a).toFixed(2)}%`,this.div.scrollIntoView({block:"nearest"})}#F(){const[e,t]=this.parentDimensions,{_borderLineWidth:n}=s,i=n/e,r=n/t;switch(this.rotation){case 90:return[-i,r];case 180:return[i,r];case 270:return[i,-r];default:return[-i,-r]}}fixAndSetPosition(){const[e,t]=this.pageDimensions;let{x:n,y:i,width:r,height:a}=this;switch(r*=e,a*=t,n*=e,i*=t,this.rotation){case 0:n=Math.max(0,Math.min(e-r,n)),i=Math.max(0,Math.min(t-a,i));break;case 90:n=Math.max(0,Math.min(e-a,n)),i=Math.min(t,Math.max(r,i));break;case 180:n=Math.min(e,Math.max(r,n)),i=Math.min(t,Math.max(a,i));break;case 270:n=Math.min(e,Math.max(a,n)),i=Math.max(0,Math.min(t-r,i))}this.x=n/=e,this.y=i/=t;const[s,o]=this.#F();n+=s,i+=o;const{style:l}=this.div;l.left=`${(100*n).toFixed(2)}%`,l.top=`${(100*i).toFixed(2)}%`,this.moveInDOM()}static#Y(e,t,n){switch(n){case 90:return[t,-e];case 180:return[-e,-t];case 270:return[-t,e];default:return[e,t]}}screenToPageTranslation(e,t){return s.#Y(e,t,this.parentRotation)}pageTranslationToScreen(e,t){return s.#Y(e,t,360-this.parentRotation)}#V(e){switch(e){case 90:{const[e,t]=this.pageDimensions;return[0,-e/t,t/e,0]}case 180:return[-1,0,0,-1];case 270:{const[e,t]=this.pageDimensions;return[0,e/t,-t/e,0]}default:return[1,0,0,1]}}get parentScale(){return this._uiManager.viewParameters.realScale}get parentRotation(){return(this._uiManager.viewParameters.rotation+this.pageRotation)%360}get parentDimensions(){const{parentScale:e,pageDimensions:[t,n]}=this,i=t*e,a=n*e;return r.FeatureTest.isCSSRoundSupported?[Math.round(i),Math.round(a)]:[i,a]}setDims(e,t){const[n,i]=this.parentDimensions;this.div.style.width=`${(100*e/n).toFixed(2)}%`,this.#C||(this.div.style.height=`${(100*t/i).toFixed(2)}%`),this.#S?.classList.toggle("small",e{this._isDraggable=a,window.removeEventListener("pointerup",p),window.removeEventListener("blur",p),window.removeEventListener("pointermove",i,s),this.parent.div.style.cursor=c,this.div.style.cursor=h;const e=this.x,t=this.y,n=this.width,r=this.height;e===o&&t===l&&n===u&&r===d||this.addCommands({cmd:()=>{this.width=n,this.height=r,this.x=e,this.y=t;const[i,a]=this.parentDimensions;this.setDims(i*n,a*r),this.fixAndSetPosition()},undo:()=>{this.width=u,this.height=d,this.x=o,this.y=l;const[e,t]=this.parentDimensions;this.setDims(e*u,t*d),this.fixAndSetPosition()},mustExec:!0})};window.addEventListener("pointerup",p),window.addEventListener("blur",p)}#z(e,t){const[n,i]=this.parentDimensions,r=this.x,a=this.y,o=this.width,l=this.height,u=s.MIN_SIZE/n,d=s.MIN_SIZE/i,c=e=>Math.round(1e4*e)/1e4,h=this.#V(this.rotation),p=(e,t)=>[h[0]*e+h[2]*t,h[1]*e+h[3]*t],f=this.#V(360-this.rotation);let m,g,v=!1,y=!1;switch(e){case"topLeft":v=!0,m=(e,t)=>[0,0],g=(e,t)=>[e,t];break;case"topMiddle":m=(e,t)=>[e/2,0],g=(e,t)=>[e/2,t];break;case"topRight":v=!0,m=(e,t)=>[e,0],g=(e,t)=>[0,t];break;case"middleRight":y=!0,m=(e,t)=>[e,t/2],g=(e,t)=>[0,t/2];break;case"bottomRight":v=!0,m=(e,t)=>[e,t],g=(e,t)=>[0,0];break;case"bottomMiddle":m=(e,t)=>[e/2,t],g=(e,t)=>[e/2,0];break;case"bottomLeft":v=!0,m=(e,t)=>[0,t],g=(e,t)=>[e,0];break;case"middleLeft":y=!0,m=(e,t)=>[0,t/2],g=(e,t)=>[e,t/2]}const b=m(o,l),_=g(o,l);let w=p(..._);const M=c(r+w[0]),k=c(a+w[1]);let S=1,x=1,[L,C]=this.screenToPageTranslation(t.movementX,t.movementY);var T,E;if([L,C]=(T=L/n,E=C/i,[f[0]*T+f[2]*E,f[1]*T+f[3]*E]),v){const e=Math.hypot(o,l);S=x=Math.max(Math.min(Math.hypot(_[0]-b[0]-L,_[1]-b[1]-C)/e,1/o,1/l),u/o,d/l)}else y?S=Math.max(u,Math.min(1,Math.abs(_[0]-b[0]-L)))/o:x=Math.max(d,Math.min(1,Math.abs(_[1]-b[1]-C)))/l;const A=c(o*S),D=c(l*x);w=p(...g(A,D));const P=M-w[0],O=k-w[1];this.width=A,this.height=D,this.x=P,this.y=O,this.setDims(n*A,i*D),this.fixAndSetPosition()}async addAltTextButton(){if(this.#S)return;const e=this.#S=document.createElement("button");e.className="altText";const t=await s._l10nPromise.get("editor_alt_text_button_label");if(e.textContent=t,e.setAttribute("aria-label",t),e.tabIndex="0",e.addEventListener("contextmenu",a.noContextMenu),e.addEventListener("pointerdown",(e=>e.stopPropagation())),e.addEventListener("click",(e=>{e.preventDefault(),this._uiManager.editAltText(this)}),{capture:!0}),e.addEventListener("keydown",(t=>{t.target===e&&"Enter"===t.key&&(t.preventDefault(),this._uiManager.editAltText(this))})),this.#U(),this.div.append(e),!s.SMALL_EDITOR_SIZE){const t=40;s.SMALL_EDITOR_SIZE=Math.min(128,Math.round(e.getBoundingClientRect().width*(1+t/100)))}}async#U(){const e=this.#S;if(!e)return;if(!this.#M&&!this.#k)return e.classList.remove("done"),void this.#x?.remove();s._l10nPromise.get("editor_alt_text_edit_button_label").then((t=>{e.setAttribute("aria-label",t)}));let t=this.#x;if(!t){this.#x=t=document.createElement("span"),t.className="tooltip",t.setAttribute("role","tooltip");const n=t.id=`alt-text-tooltip-${this.id}`;e.setAttribute("aria-describedby",n);const i=100;e.addEventListener("mouseenter",(()=>{this.#L=setTimeout((()=>{this.#L=null,this.#x.classList.add("show"),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"alt_text_tooltip"}}})}),i)})),e.addEventListener("mouseleave",(()=>{clearTimeout(this.#L),this.#L=null,this.#x?.classList.remove("show")}))}e.classList.add("done"),t.innerText=this.#k?await s._l10nPromise.get("editor_alt_text_decorative_tooltip"):this.#M,t.parentNode||e.append(t)}getClientDimensions(){return this.div.getBoundingClientRect()}get altTextData(){return{altText:this.#M,decorative:this.#k}}set altTextData({altText:e,decorative:t}){this.#M===e&&this.#k===t||(this.#M=e,this.#k=t,this.#U())}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",this.#E),this.div.addEventListener("focusout",this.#A);const[e,t]=this.parentDimensions;this.parentRotation%180!=0&&(this.div.style.maxWidth=`${(100*t/e).toFixed(2)}%`,this.div.style.maxHeight=`${(100*e/t).toFixed(2)}%`);const[n,r]=this.getInitialTranslation();return this.translate(n,r),(0,i.bindEvents)(this,this.div,["pointerdown"]),this.div}pointerdown(e){const{isMac:t}=r.FeatureTest.platform;0!==e.button||e.ctrlKey&&t?e.preventDefault():(this.#D=!0,this.#B(e))}#B(e){if(!this._isDraggable)return;const t=this._uiManager.isSelected(this);let n,i;this._uiManager.setUpDragSession(),t&&(n={passive:!0,capture:!0},i=e=>{const[t,n]=this.screenToPageTranslation(e.movementX,e.movementY);this._uiManager.dragSelectedEditors(t,n)},window.addEventListener("pointermove",i,n));const a=()=>{if(window.removeEventListener("pointerup",a),window.removeEventListener("blur",a),t&&window.removeEventListener("pointermove",i,n),this.#D=!1,!this._uiManager.endDragSession()){const{isMac:t}=r.FeatureTest.platform;e.ctrlKey&&!t||e.shiftKey||e.metaKey&&t?this.parent.toggleSelected(this):this.parent.setSelected(this)}};window.addEventListener("pointerup",a),window.addEventListener("blur",a)}moveInDOM(){this.parent?.moveEditorInDOM(this)}_setParentAndPosition(e,t,n){e.changeParent(this),this.x=t,this.y=n,this.fixAndSetPosition()}getRect(e,t){const n=this.parentScale,[i,r]=this.pageDimensions,[a,s]=this.pageTranslation,o=e/n,l=t/n,u=this.x*i,d=this.y*r,c=this.width*i,h=this.height*r;switch(this.rotation){case 0:return[u+o+a,r-d-l-h+s,u+o+c+a,r-d-l+s];case 90:return[u+l+a,r-d+o+s,u+l+h+a,r-d+o+c+s];case 180:return[u-o-c+a,r-d+l+s,u-o+a,r-d+l+h+s];case 270:return[u-l-h+a,r-d-o-c+s,u-l+a,r-d-o+s];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,t){const[n,i,r,a]=e,s=r-n,o=a-i;switch(this.rotation){case 0:return[n,t-a,s,o];case 90:return[n,t-i,o,s];case 180:return[r,t-i,s,o];case 270:return[r,t-a,o,s];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){this.#O=!0}disableEditMode(){this.#O=!1}isInEditMode(){return this.#O}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){this.div?.addEventListener("focusin",this.#E),this.div?.addEventListener("focusout",this.#A)}serialize(e=!1,t=null){(0,r.unreachable)("An editor must be serializable")}static deserialize(e,t,n){const i=new this.prototype.constructor({parent:t,id:t.getNextId(),uiManager:n});i.rotation=e.rotation;const[r,a]=i.pageDimensions,[s,o,l,u]=i.getRectInCurrentCoords(e.rect,a);return i.x=s/r,i.y=o/a,i.width=l/r,i.height=u/a,i}remove(){this.div.removeEventListener("focusin",this.#E),this.div.removeEventListener("focusout",this.#A),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#S?.remove(),this.#S=null,this.#x=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#N(),this.#T.classList.remove("hidden"))}select(){this.makeResizable(),this.div?.classList.add("selectedEditor")}unselect(){this.#T?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus()}updateParams(e,t){}disableEditing(){this.#S&&(this.#S.hidden=!0)}enableEditing(){this.#S&&(this.#S.hidden=!1)}enterInEditMode(){}get contentDiv(){return this.div}get isEditing(){return this.#P}set isEditing(e){this.#P=e,this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(e,t){this.#C=!0;const n=e/t,{style:i}=this.div;i.aspectRatio=n,i.height="auto"}static get MIN_SIZE(){return 16}}t.AnnotationEditor=s;class o extends s{constructor(e){super(e),this.annotationElementId=e.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardManager=t.CommandManager=t.ColorManager=t.AnnotationEditorUIManager=void 0,t.bindEvents=function(e,t,n){for(const i of n)t.addEventListener(i,e[i].bind(e))},t.opacityToHex=function(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")};var i=n(1),r=n(6);class a{#W=0;getId(){return`${i.AnnotationEditorPrefix}${this.#W++}`}}class s{#$=(0,i.getUuid)();#W=0;#q=null;static get _isSVGFittingCanvas(){const e=new OffscreenCanvas(1,3).getContext("2d"),t=new Image;t.src='data:image/svg+xml;charset=UTF-8,';const n=t.decode().then((()=>(e.drawImage(t,0,0,1,1,0,0,1,3),0===new Uint32Array(e.getImageData(0,0,1,1).data.buffer)[0])));return(0,i.shadow)(this,"_isSVGFittingCanvas",n)}async#K(e,t){this.#q||=new Map;let n=this.#q.get(e);if(null===n)return null;if(n?.bitmap)return n.refCounter+=1,n;try{let e;if(n||={bitmap:null,id:`image_${this.#$}_${this.#W++}`,refCounter:0,isSvg:!1},"string"==typeof t){n.url=t;const i=await fetch(t);if(!i.ok)throw new Error(i.statusText);e=await i.blob()}else e=n.file=t;if("image/svg+xml"===e.type){const t=s._isSVGFittingCanvas,i=new FileReader,r=new Image,a=new Promise(((e,a)=>{r.onload=()=>{n.bitmap=r,n.isSvg=!0,e()},i.onload=async()=>{const e=n.svgUrl=i.result;r.src=await t?`${e}#svgView(preserveAspectRatio(none))`:e},r.onerror=i.onerror=a}));i.readAsDataURL(e),await a}else n.bitmap=await createImageBitmap(e);n.refCounter=1}catch(e){console.error(e),n=null}return this.#q.set(e,n),n&&this.#q.set(n.id,n),n}async getFromFile(e){const{lastModified:t,name:n,size:i,type:r}=e;return this.#K(`${t}_${n}_${i}_${r}`,e)}async getFromUrl(e){return this.#K(e,e)}async getFromId(e){this.#q||=new Map;const t=this.#q.get(e);return t?t.bitmap?(t.refCounter+=1,t):t.file?this.getFromFile(t.file):this.getFromUrl(t.url):null}getSvgUrl(e){const t=this.#q.get(e);return t?.isSvg?t.svgUrl:null}deleteId(e){this.#q||=new Map;const t=this.#q.get(e);t&&(t.refCounter-=1,0===t.refCounter&&(t.bitmap=null))}isValidId(e){return e.startsWith(`image_${this.#$}_`)}}class o{#G=[];#J=!1;#X;#Z=-1;constructor(e=128){this.#X=e}add({cmd:e,undo:t,mustExec:n,type:i=NaN,overwriteIfSameType:r=!1,keepUndo:a=!1}){if(n&&e(),this.#J)return;const s={cmd:e,undo:t,type:i};if(-1===this.#Z)return this.#G.length>0&&(this.#G.length=0),this.#Z=0,void this.#G.push(s);if(r&&this.#G[this.#Z].type===i)return a&&(s.undo=this.#G[this.#Z].undo),void(this.#G[this.#Z]=s);const o=this.#Z+1;o===this.#X?this.#G.splice(0,1):(this.#Z=o,oe===t[n])))return u._colorsMapping.get(e);return t}getHexCode(e){const t=this._colors.get(e);return t?i.Util.makeHexColor(...t):e}}t.ColorManager=u;class d{#ee=null;#te=new Map;#ne=new Map;#ie=null;#re=null;#ae=new o;#se=0;#oe=new Set;#le=null;#ue=null;#de=new Set;#ce=null;#he=new a;#pe=!1;#fe=!1;#me=null;#ge=i.AnnotationEditorType.NONE;#ve=new Set;#ye=null;#be=this.blur.bind(this);#_e=this.focus.bind(this);#we=this.copy.bind(this);#Me=this.cut.bind(this);#ke=this.paste.bind(this);#Se=this.keydown.bind(this);#xe=this.onEditingAction.bind(this);#Le=this.onPageChanging.bind(this);#Ce=this.onScaleChanging.bind(this);#Te=this.onRotationChanging.bind(this);#Ee={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1};#Ae=[0,0];#De=null;#Pe=null;#Oe=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){const e=d.prototype,t=e=>{const{activeElement:t}=document;return t&&e.#Pe.contains(t)&&e.hasSomethingToControl()},n=this.TRANSLATE_SMALL,r=this.TRANSLATE_BIG;return(0,i.shadow)(this,"_keyboardManager",new l([[["ctrl+a","mac+meta+a"],e.selectAll],[["ctrl+z","mac+meta+z"],e.undo],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete],[["Escape","mac+Escape"],e.unselectAll],[["ArrowLeft","mac+ArrowLeft"],e.translateSelectedEditors,{args:[-n,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-r,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[n,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[r,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-n],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-r],checker:t}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,n],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,r],checker:t}]]))}constructor(e,t,n,i,a,s){this.#Pe=e,this.#Oe=t,this.#ie=n,this._eventBus=i,this._eventBus._on("editingaction",this.#xe),this._eventBus._on("pagechanging",this.#Le),this._eventBus._on("scalechanging",this.#Ce),this._eventBus._on("rotationchanging",this.#Te),this.#re=a.annotationStorage,this.#ce=a.filterFactory,this.#ye=s,this.viewParameters={realScale:r.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}destroy(){this.#je(),this.#Ie(),this._eventBus._off("editingaction",this.#xe),this._eventBus._off("pagechanging",this.#Le),this._eventBus._off("scalechanging",this.#Ce),this._eventBus._off("rotationchanging",this.#Te);for(const e of this.#ne.values())e.destroy();this.#ne.clear(),this.#te.clear(),this.#de.clear(),this.#ee=null,this.#ve.clear(),this.#ae.destroy(),this.#ie.destroy()}get hcmFilter(){return(0,i.shadow)(this,"hcmFilter",this.#ye?this.#ce.addHCMFilter(this.#ye.foreground,this.#ye.background):"none")}get direction(){return(0,i.shadow)(this,"direction",getComputedStyle(this.#Pe).direction)}editAltText(e){this.#ie?.editAltText(this,e)}onPageChanging({pageNumber:e}){this.#se=e-1}focusMainContainer(){this.#Pe.focus()}findParent(e,t){for(const n of this.#ne.values()){const{x:i,y:r,width:a,height:s}=n.div.getBoundingClientRect();if(e>=i&&e<=i+a&&t>=r&&t<=r+s)return n}return null}disableUserSelect(e=!1){this.#Oe.classList.toggle("noUserSelect",e)}addShouldRescale(e){this.#de.add(e)}removeShouldRescale(e){this.#de.delete(e)}onScaleChanging({scale:e}){this.commitOrRemove(),this.viewParameters.realScale=e*r.PixelsPerInch.PDF_TO_CSS_UNITS;for(const e of this.#de)e.onScaleChanging()}onRotationChanging({pagesRotation:e}){this.commitOrRemove(),this.viewParameters.rotation=e}addToAnnotationStorage(e){e.isEmpty()||!this.#re||this.#re.has(e.id)||this.#re.setValue(e.id,e)}#Re(){window.addEventListener("focus",this.#_e),window.addEventListener("blur",this.#be)}#Ie(){window.removeEventListener("focus",this.#_e),window.removeEventListener("blur",this.#be)}blur(){if(!this.hasSelection)return;const{activeElement:e}=document;for(const t of this.#ve)if(t.div.contains(e)){this.#me=[t,e],t._focusEventsAllowed=!1;break}}focus(){if(!this.#me)return;const[e,t]=this.#me;this.#me=null,t.addEventListener("focusin",(()=>{e._focusEventsAllowed=!0}),{once:!0}),t.focus()}#Fe(){window.addEventListener("keydown",this.#Se,{capture:!0})}#je(){window.removeEventListener("keydown",this.#Se,{capture:!0})}#Ye(){document.addEventListener("copy",this.#we),document.addEventListener("cut",this.#Me),document.addEventListener("paste",this.#ke)}#Ve(){document.removeEventListener("copy",this.#we),document.removeEventListener("cut",this.#Me),document.removeEventListener("paste",this.#ke)}addEditListeners(){this.#Fe(),this.#Ye()}removeEditListeners(){this.#je(),this.#Ve()}copy(e){if(e.preventDefault(),this.#ee?.commitOrRemove(),!this.hasSelection)return;const t=[];for(const e of this.#ve){const n=e.serialize(!0);n&&t.push(n)}0!==t.length&&e.clipboardData.setData("application/pdfjs",JSON.stringify(t))}cut(e){this.copy(e),this.delete()}paste(e){e.preventDefault();const{clipboardData:t}=e;for(const e of t.items)for(const t of this.#ue)if(t.isHandlingMimeForPasting(e.type))return void t.paste(e,this.currentLayer);let n=t.getData("application/pdfjs");if(!n)return;try{n=JSON.parse(n)}catch(e){return void(0,i.warn)(`paste: "${e.message}".`)}if(!Array.isArray(n))return;this.unselectAll();const r=this.currentLayer;try{const e=[];for(const t of n){const n=r.deserialize(t);if(!n)return;e.push(n)}const t=()=>{for(const t of e)this.#Ne(t);this.#He(e)},i=()=>{for(const t of e)t.remove()};this.addCommands({cmd:t,undo:i,mustExec:!0})}catch(e){(0,i.warn)(`paste: "${e.message}".`)}}keydown(e){this.getActive()?.shouldGetKeyboardEvents()||d._keyboardManager.exec(this,e)}onEditingAction(e){["undo","redo","delete","selectAll"].includes(e.name)&&this[e.name]()}#ze(e){Object.entries(e).some((([e,t])=>this.#Ee[e]!==t))&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#Ee,e)})}#Ue(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}setEditingState(e){e?(this.#Re(),this.#Fe(),this.#Ye(),this.#ze({isEditing:this.#ge!==i.AnnotationEditorType.NONE,isEmpty:this.#Be(),hasSomethingToUndo:this.#ae.hasSomethingToUndo(),hasSomethingToRedo:this.#ae.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#Ie(),this.#je(),this.#Ve(),this.#ze({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(e){if(!this.#ue){this.#ue=e;for(const e of this.#ue)this.#Ue(e.defaultPropertiesToUpdate)}}getId(){return this.#he.getId()}get currentLayer(){return this.#ne.get(this.#se)}getLayer(e){return this.#ne.get(e)}get currentPageIndex(){return this.#se}addLayer(e){this.#ne.set(e.pageIndex,e),this.#pe?e.enable():e.disable()}removeLayer(e){this.#ne.delete(e.pageIndex)}updateMode(e,t=null){if(this.#ge!==e){if(this.#ge=e,e===i.AnnotationEditorType.NONE)return this.setEditingState(!1),void this.#We();this.setEditingState(!0),this.#$e(),this.unselectAll();for(const t of this.#ne.values())t.updateMode(e);if(t)for(const e of this.#te.values())if(e.annotationElementId===t){this.setSelected(e),e.enterInEditMode();break}}}updateToolbar(e){e!==this.#ge&&this._eventBus.dispatch("switchannotationeditormode",{source:this,mode:e})}updateParams(e,t){if(this.#ue)if(e!==i.AnnotationEditorParamsType.CREATE){for(const n of this.#ve)n.updateParams(e,t);for(const n of this.#ue)n.updateDefaultParams(e,t)}else this.currentLayer.addNewEditor(e)}enableWaiting(e=!1){if(this.#fe!==e){this.#fe=e;for(const t of this.#ne.values())e?t.disableClick():t.enableClick(),t.div.classList.toggle("waiting",e)}}#$e(){if(!this.#pe){this.#pe=!0;for(const e of this.#ne.values())e.enable()}}#We(){if(this.unselectAll(),this.#pe){this.#pe=!1;for(const e of this.#ne.values())e.disable()}}getEditors(e){const t=[];for(const n of this.#te.values())n.pageIndex===e&&t.push(n);return t}getEditor(e){return this.#te.get(e)}addEditor(e){this.#te.set(e.id,e)}removeEditor(e){this.#te.delete(e.id),this.unselect(e),e.annotationElementId&&this.#oe.has(e.annotationElementId)||this.#re?.remove(e.id)}addDeletedAnnotationElement(e){this.#oe.add(e.annotationElementId),e.deleted=!0}isDeletedAnnotationElement(e){return this.#oe.has(e)}removeDeletedAnnotationElement(e){this.#oe.delete(e.annotationElementId),e.deleted=!1}#Ne(e){const t=this.#ne.get(e.pageIndex);t?t.addOrRebuild(e):this.addEditor(e)}setActiveEditor(e){this.#ee!==e&&(this.#ee=e,e&&this.#Ue(e.propertiesToUpdate))}toggleSelected(e){if(this.#ve.has(e))return this.#ve.delete(e),e.unselect(),void this.#ze({hasSelectedEditor:this.hasSelection});this.#ve.add(e),e.select(),this.#Ue(e.propertiesToUpdate),this.#ze({hasSelectedEditor:!0})}setSelected(e){for(const t of this.#ve)t!==e&&t.unselect();this.#ve.clear(),this.#ve.add(e),e.select(),this.#Ue(e.propertiesToUpdate),this.#ze({hasSelectedEditor:!0})}isSelected(e){return this.#ve.has(e)}unselect(e){e.unselect(),this.#ve.delete(e),this.#ze({hasSelectedEditor:this.hasSelection})}get hasSelection(){return 0!==this.#ve.size}undo(){this.#ae.undo(),this.#ze({hasSomethingToUndo:this.#ae.hasSomethingToUndo(),hasSomethingToRedo:!0,isEmpty:this.#Be()})}redo(){this.#ae.redo(),this.#ze({hasSomethingToUndo:!0,hasSomethingToRedo:this.#ae.hasSomethingToRedo(),isEmpty:this.#Be()})}addCommands(e){this.#ae.add(e),this.#ze({hasSomethingToUndo:!0,hasSomethingToRedo:!1,isEmpty:this.#Be()})}#Be(){if(0===this.#te.size)return!0;if(1===this.#te.size)for(const e of this.#te.values())return e.isEmpty();return!1}delete(){if(this.commitOrRemove(),!this.hasSelection)return;const e=[...this.#ve];this.addCommands({cmd:()=>{for(const t of e)t.remove()},undo:()=>{for(const t of e)this.#Ne(t)},mustExec:!0})}commitOrRemove(){this.#ee?.commitOrRemove()}hasSomethingToControl(){return this.#ee||this.hasSelection}#He(e){this.#ve.clear();for(const t of e)t.isEmpty()||(this.#ve.add(t),t.select());this.#ze({hasSelectedEditor:!0})}selectAll(){for(const e of this.#ve)e.commit();this.#He(this.#te.values())}unselectAll(){if(this.#ee)this.#ee.commitOrRemove();else if(this.hasSelection){for(const e of this.#ve)e.unselect();this.#ve.clear(),this.#ze({hasSelectedEditor:!1})}}translateSelectedEditors(e,t,n=!1){if(n||this.commitOrRemove(),!this.hasSelection)return;this.#Ae[0]+=e,this.#Ae[1]+=t;const[i,r]=this.#Ae,a=[...this.#ve];this.#De&&clearTimeout(this.#De),this.#De=setTimeout((()=>{this.#De=null,this.#Ae[0]=this.#Ae[1]=0,this.addCommands({cmd:()=>{for(const e of a)this.#te.has(e.id)&&e.translateInPage(i,r)},undo:()=>{for(const e of a)this.#te.has(e.id)&&e.translateInPage(-i,-r)},mustExec:!1})}),1e3);for(const n of a)n.translateInPage(e,t)}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#le=new Map;for(const e of this.#ve)this.#le.set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#le)return!1;this.disableUserSelect(!1);const e=this.#le;this.#le=null;let t=!1;for(const[{x:n,y:i,pageIndex:r},a]of e)a.newX=n,a.newY=i,a.newPageIndex=r,t||=n!==a.savedX||i!==a.savedY||r!==a.savedPageIndex;if(!t)return!1;const n=(e,t,n,i)=>{if(this.#te.has(e.id)){const r=this.#ne.get(i);r?e._setParentAndPosition(r,t,n):(e.pageIndex=i,e.x=t,e.y=n)}};return this.addCommands({cmd:()=>{for(const[t,{newX:i,newY:r,newPageIndex:a}]of e)n(t,i,r,a)},undo:()=>{for(const[t,{savedX:i,savedY:r,savedPageIndex:a}]of e)n(t,i,r,a)},mustExec:!0}),!0}dragSelectedEditors(e,t){if(this.#le)for(const n of this.#le.keys())n.drag(e,t)}rebuild(e){if(null===e.parent){const t=this.getLayer(e.pageIndex);t?(t.changeParent(e),t.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild())}else e.parent.addOrRebuild(e)}isActive(e){return this.#ee===e}getActive(){return this.#ee}getMode(){return this.#ge}get imageManager(){return(0,i.shadow)(this,"imageManager",new s)}}t.AnnotationEditorUIManager=d},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StatTimer=t.RenderingCancelledException=t.PixelsPerInch=t.PageViewport=t.PDFDateString=t.DOMStandardFontDataFactory=t.DOMSVGFactory=t.DOMFilterFactory=t.DOMCanvasFactory=t.DOMCMapReaderFactory=void 0,t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.getColorValues=function(e){const t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);for(const n of e.keys()){t.style.color=n;const i=window.getComputedStyle(t).color;e.set(n,y(i))}t.remove()},t.getCurrentTransform=function(e){const{a:t,b:n,c:i,d:r,e:a,f:s}=e.getTransform();return[t,n,i,r,a,s]},t.getCurrentTransformInverse=function(e){const{a:t,b:n,c:i,d:r,e:a,f:s}=e.getTransform().invertSelf();return[t,n,i,r,a,s]},t.getFilenameFromUrl=function(e,t=!1){return t||([e]=e.split(/[#?]/,1)),e.substring(e.lastIndexOf("/")+1)},t.getPdfFilenameFromUrl=function(e,t="document.pdf"){if("string"!=typeof e)return t;if(m(e))return(0,r.warn)('getPdfFilenameFromUrl: ignore "data:"-URL for performance reasons.'),t;const n=/[^/?#=]+\.pdf\b(?!.*\.pdf\b)/i,i=/^(?:(?:[^:]+:)?\/\/[^/]+)?([^?#]*)(\?[^#]*)?(#.*)?$/.exec(e);let a=n.exec(i[1])||n.exec(i[2])||n.exec(i[3]);if(a&&(a=a[0],a.includes("%")))try{a=n.exec(decodeURIComponent(a))[0]}catch{}return a||t},t.getRGB=y,t.getXfaPageViewport=function(e,{scale:t=1,rotation:n=0}){const{width:i,height:r}=e.attributes.style,a=[0,0,parseInt(i),parseInt(r)];return new p({viewBox:a,scale:t,rotation:n})},t.isDataScheme=m,t.isPdfFile=function(e){return"string"==typeof e&&/\.pdf$/i.test(e)},t.isValidFetchUrl=g,t.loadScript=function(e,t=!1){return new Promise(((n,i)=>{const r=document.createElement("script");r.src=e,r.onload=function(e){t&&r.remove(),n(e)},r.onerror=function(){i(new Error(`Cannot load script at: ${r.src}`))},(document.head||document.documentElement).append(r)}))},t.noContextMenu=function(e){e.preventDefault()},t.setLayerDimensions=function(e,t,n=!1,i=!0){if(t instanceof p){const{pageWidth:i,pageHeight:a}=t.rawDims,{style:s}=e,o=r.FeatureTest.isCSSRoundSupported,l=`var(--scale-factor) * ${i}px`,u=`var(--scale-factor) * ${a}px`,d=o?`round(${l}, 1px)`:`calc(${l})`,c=o?`round(${u}, 1px)`:`calc(${u})`;n&&t.rotation%180!=0?(s.width=c,s.height=d):(s.width=d,s.height=c)}i&&e.setAttribute("data-main-rotation",t.rotation)};var i=n(7),r=n(1);const a="http://www.w3.org/2000/svg";class s{static CSS=96;static PDF=72;static PDF_TO_CSS_UNITS=this.CSS/this.PDF}t.PixelsPerInch=s;class o extends i.BaseFilterFactory{#qe;#Ke;#t;#Ge;#Je;#Xe;#Ze;#Qe;#et;#tt;#W=0;constructor({docId:e,ownerDocument:t=globalThis.document}={}){super(),this.#t=e,this.#Ge=t}get#q(){return this.#qe||=new Map}get#nt(){if(!this.#Ke){const e=this.#Ge.createElement("div"),{style:t}=e;t.visibility="hidden",t.contain="strict",t.width=t.height=0,t.position="absolute",t.top=t.left=0,t.zIndex=-1;const n=this.#Ge.createElementNS(a,"svg");n.setAttribute("width",0),n.setAttribute("height",0),this.#Ke=this.#Ge.createElementNS(a,"defs"),e.append(n),n.append(this.#Ke),this.#Ge.body.append(e)}return this.#Ke}addFilter(e){if(!e)return"none";let t,n,i,r,a=this.#q.get(e);if(a)return a;if(1===e.length){const a=e[0],s=new Array(256);for(let e=0;e<256;e++)s[e]=a[e]/255;r=t=n=i=s.join(",")}else{const[a,s,o]=e,l=new Array(256),u=new Array(256),d=new Array(256);for(let e=0;e<256;e++)l[e]=a[e]/255,u[e]=s[e]/255,d[e]=o[e]/255;t=l.join(","),n=u.join(","),i=d.join(","),r=`${t}${n}${i}`}if(a=this.#q.get(r),a)return this.#q.set(e,a),a;const s=`g_${this.#t}_transfer_map_${this.#W++}`,o=`url(#${s})`;this.#q.set(e,o),this.#q.set(r,o);const l=this.#it(s);return this.#rt(t,n,i,l),o}addHCMFilter(e,t){const n=`${e}-${t}`;if(this.#Xe===n)return this.#Ze;if(this.#Xe=n,this.#Ze="none",this.#Je?.remove(),!e||!t)return this.#Ze;const i=this.#at(e);e=r.Util.makeHexColor(...i);const a=this.#at(t);if(t=r.Util.makeHexColor(...a),this.#nt.style.color="","#000000"===e&&"#ffffff"===t||e===t)return this.#Ze;const s=new Array(256);for(let e=0;e<=255;e++){const t=e/255;s[e]=t<=.03928?t/12.92:((t+.055)/1.055)**2.4}const o=s.join(","),l=`g_${this.#t}_hcm_filter`,u=this.#Qe=this.#it(l);this.#rt(o,o,o,u),this.#st(u);const d=(e,t)=>{const n=i[e]/255,r=a[e]/255,s=new Array(t+1);for(let e=0;e<=t;e++)s[e]=n+e/t*(r-n);return s.join(",")};return this.#rt(d(0,5),d(1,5),d(2,5),u),this.#Ze=`url(#${l})`,this.#Ze}addHighlightHCMFilter(e,t,n,i){const r=`${e}-${t}-${n}-${i}`;if(this.#et===r)return this.#tt;if(this.#et=r,this.#tt="none",this.#Qe?.remove(),!e||!t)return this.#tt;const[a,s]=[e,t].map(this.#at.bind(this));let o=Math.round(.2126*a[0]+.7152*a[1]+.0722*a[2]),l=Math.round(.2126*s[0]+.7152*s[1]+.0722*s[2]),[u,d]=[n,i].map(this.#at.bind(this));l{const i=new Array(256),r=(l-o)/n,a=e/255,s=(t-e)/(255*n);let u=0;for(let e=0;e<=n;e++){const t=Math.round(o+e*r),n=a+e*s;for(let e=u;e<=t;e++)i[e]=n;u=t+1}for(let e=u;e<256;e++)i[e]=i[u-1];return i.join(",")},h=`g_${this.#t}_hcm_highlight_filter`,p=this.#Qe=this.#it(h);return this.#st(p),this.#rt(c(u[0],d[0],5),c(u[1],d[1],5),c(u[2],d[2],5),p),this.#tt=`url(#${h})`,this.#tt}destroy(e=!1){e&&(this.#Ze||this.#tt)||(this.#Ke&&(this.#Ke.parentNode.parentNode.remove(),this.#Ke=null),this.#qe&&(this.#qe.clear(),this.#qe=null),this.#W=0)}#st(e){const t=this.#Ge.createElementNS(a,"feColorMatrix");t.setAttribute("type","matrix"),t.setAttribute("values","0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0.2126 0.7152 0.0722 0 0 0 0 0 1 0"),e.append(t)}#it(e){const t=this.#Ge.createElementNS(a,"filter");return t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("id",e),this.#nt.append(t),t}#ot(e,t,n){const i=this.#Ge.createElementNS(a,t);i.setAttribute("type","discrete"),i.setAttribute("tableValues",n),e.append(i)}#rt(e,t,n,i){const r=this.#Ge.createElementNS(a,"feComponentTransfer");i.append(r),this.#ot(r,"feFuncR",e),this.#ot(r,"feFuncG",t),this.#ot(r,"feFuncB",n)}#at(e){return this.#nt.style.color=e,y(getComputedStyle(this.#nt).getPropertyValue("color"))}}t.DOMFilterFactory=o;class l extends i.BaseCanvasFactory{constructor({ownerDocument:e=globalThis.document}={}){super(),this._document=e}_createCanvas(e,t){const n=this._document.createElement("canvas");return n.width=e,n.height=t,n}}async function u(e,t=!1){if(g(e,document.baseURI)){const n=await fetch(e);if(!n.ok)throw new Error(n.statusText);return t?new Uint8Array(await n.arrayBuffer()):(0,r.stringToBytes)(await n.text())}return new Promise(((n,i)=>{const a=new XMLHttpRequest;a.open("GET",e,!0),t&&(a.responseType="arraybuffer"),a.onreadystatechange=()=>{if(a.readyState===XMLHttpRequest.DONE){if(200===a.status||0===a.status){let e;if(t&&a.response?e=new Uint8Array(a.response):!t&&a.responseText&&(e=(0,r.stringToBytes)(a.responseText)),e)return void n(e)}i(new Error(a.statusText))}},a.send(null)}))}t.DOMCanvasFactory=l;class d extends i.BaseCMapReaderFactory{_fetchData(e,t){return u(e,this.isCompressed).then((e=>({cMapData:e,compressionType:t})))}}t.DOMCMapReaderFactory=d;class c extends i.BaseStandardFontDataFactory{_fetchData(e){return u(e,!0)}}t.DOMStandardFontDataFactory=c;class h extends i.BaseSVGFactory{_createSVG(e){return document.createElementNS(a,e)}}t.DOMSVGFactory=h;class p{constructor({viewBox:e,scale:t,rotation:n,offsetX:i=0,offsetY:r=0,dontFlip:a=!1}){this.viewBox=e,this.scale=t,this.rotation=n,this.offsetX=i,this.offsetY=r;const s=(e[2]+e[0])/2,o=(e[3]+e[1])/2;let l,u,d,c,h,p,f,m;switch((n%=360)<0&&(n+=360),n){case 180:l=-1,u=0,d=0,c=1;break;case 90:l=0,u=1,d=1,c=0;break;case 270:l=0,u=-1,d=-1,c=0;break;case 0:l=1,u=0,d=0,c=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}a&&(d=-d,c=-c),0===l?(h=Math.abs(o-e[1])*t+i,p=Math.abs(s-e[0])*t+r,f=(e[3]-e[1])*t,m=(e[2]-e[0])*t):(h=Math.abs(s-e[0])*t+i,p=Math.abs(o-e[1])*t+r,f=(e[2]-e[0])*t,m=(e[3]-e[1])*t),this.transform=[l*t,u*t,d*t,c*t,h-l*t*s-d*t*o,p-u*t*s-c*t*o],this.width=f,this.height=m}get rawDims(){const{viewBox:e}=this;return(0,r.shadow)(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone({scale:e=this.scale,rotation:t=this.rotation,offsetX:n=this.offsetX,offsetY:i=this.offsetY,dontFlip:r=!1}={}){return new p({viewBox:this.viewBox.slice(),scale:e,rotation:t,offsetX:n,offsetY:i,dontFlip:r})}convertToViewportPoint(e,t){return r.Util.applyTransform([e,t],this.transform)}convertToViewportRectangle(e){const t=r.Util.applyTransform([e[0],e[1]],this.transform),n=r.Util.applyTransform([e[2],e[3]],this.transform);return[t[0],t[1],n[0],n[1]]}convertToPdfPoint(e,t){return r.Util.applyInverseTransform([e,t],this.transform)}}t.PageViewport=p;class f extends r.BaseException{constructor(e,t=0){super(e,"RenderingCancelledException"),this.extraDelay=t}}function m(e){const t=e.length;let n=0;for(;n>16,(65280&t)>>8,255&t]}return e.startsWith("rgb(")?e.slice(4,-1).split(",").map((e=>parseInt(e))):e.startsWith("rgba(")?e.slice(5,-1).split(",").map((e=>parseInt(e))).slice(0,3):((0,r.warn)(`Not a valid color format: "${e}"`),[0,0,0])}t.RenderingCancelledException=f,t.StatTimer=class{started=Object.create(null);times=[];time(e){e in this.started&&(0,r.warn)(`Timer is already running for ${e}`),this.started[e]=Date.now()}timeEnd(e){e in this.started||(0,r.warn)(`Timer has not been started for ${e}`),this.times.push({name:e,start:this.started[e],end:Date.now()}),delete this.started[e]}toString(){const e=[];let t=0;for(const{name:e}of this.times)t=Math.max(e.length,t);for(const{name:n,start:i,end:r}of this.times)e.push(`${n.padEnd(t)} ${r-i}ms\n`);return e.join("")}},t.PDFDateString=class{static toDateObject(e){if(!e||"string"!=typeof e)return null;v||=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?");const t=v.exec(e);if(!t)return null;const n=parseInt(t[1],10);let i=parseInt(t[2],10);i=i>=1&&i<=12?i-1:0;let r=parseInt(t[3],10);r=r>=1&&r<=31?r:1;let a=parseInt(t[4],10);a=a>=0&&a<=23?a:0;let s=parseInt(t[5],10);s=s>=0&&s<=59?s:0;let o=parseInt(t[6],10);o=o>=0&&o<=59?o:0;const l=t[7]||"Z";let u=parseInt(t[8],10);u=u>=0&&u<=23?u:0;let d=parseInt(t[9],10)||0;return d=d>=0&&d<=59?d:0,"-"===l?(a+=u,s+=d):"+"===l&&(a-=u,s-=d),new Date(Date.UTC(n,i,r,a,s,o))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStandardFontDataFactory=t.BaseSVGFactory=t.BaseFilterFactory=t.BaseCanvasFactory=t.BaseCMapReaderFactory=void 0;var i=n(1);class r{constructor(){this.constructor===r&&(0,i.unreachable)("Cannot initialize BaseFilterFactory.")}addFilter(e){return"none"}addHCMFilter(e,t){return"none"}addHighlightHCMFilter(e,t,n,i){return"none"}destroy(e=!1){}}t.BaseFilterFactory=r;class a{constructor(){this.constructor===a&&(0,i.unreachable)("Cannot initialize BaseCanvasFactory.")}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");const n=this._createCanvas(e,t);return{canvas:n,context:n.getContext("2d")}}reset(e,t,n){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||n<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=n}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){(0,i.unreachable)("Abstract method `_createCanvas` called.")}}t.BaseCanvasFactory=a;class s{constructor({baseUrl:e=null,isCompressed:t=!0}){this.constructor===s&&(0,i.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=e,this.isCompressed=t}async fetch({name:e}){if(!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!e)throw new Error("CMap name must be specified.");const t=this.baseUrl+e+(this.isCompressed?".bcmap":""),n=this.isCompressed?i.CMapCompressionType.BINARY:i.CMapCompressionType.NONE;return this._fetchData(t,n).catch((e=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: ${t}`)}))}_fetchData(e,t){(0,i.unreachable)("Abstract method `_fetchData` called.")}}t.BaseCMapReaderFactory=s;class o{constructor({baseUrl:e=null}){this.constructor===o&&(0,i.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=e}async fetch({filename:e}){if(!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!e)throw new Error("Font filename must be specified.");const t=`${this.baseUrl}${e}`;return this._fetchData(t).catch((e=>{throw new Error(`Unable to load font data at: ${t}`)}))}_fetchData(e){(0,i.unreachable)("Abstract method `_fetchData` called.")}}t.BaseStandardFontDataFactory=o;class l{constructor(){this.constructor===l&&(0,i.unreachable)("Cannot initialize BaseSVGFactory.")}create(e,t,n=!1){if(e<=0||t<=0)throw new Error("Invalid SVG dimensions");const i=this._createSVG("svg:svg");return i.setAttribute("version","1.1"),n||(i.setAttribute("width",`${e}px`),i.setAttribute("height",`${t}px`)),i.setAttribute("preserveAspectRatio","none"),i.setAttribute("viewBox",`0 0 ${e} ${t}`),i}createElement(e){if("string"!=typeof e)throw new Error("Invalid SVG element type");return this._createSVG(e)}_createSVG(e){(0,i.unreachable)("Abstract method `_createSVG` called.")}}t.BaseSVGFactory=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0;var i=n(1);const r=3285377520,a=4294901760,s=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:r,this.h2=e?4294967295&e:r}update(e){let t,n;if("string"==typeof e){t=new Uint8Array(2*e.length),n=0;for(let i=0,r=e.length;i>>8,t[n++]=255&r)}}else{if(!(0,i.isArrayBuffer)(e))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");t=e.slice(),n=t.byteLength}const r=n>>2,o=n-4*r,l=new Uint32Array(t.buffer,0,r);let u=0,d=0,c=this.h1,h=this.h2;const p=3432918353,f=461845907,m=11601,g=13715;for(let e=0;e>>17,u=u*f&a|u*g&s,c^=u,c=c<<13|c>>>19,c=5*c+3864292196):(d=l[e],d=d*p&a|d*m&s,d=d<<15|d>>>17,d=d*f&a|d*g&s,h^=d,h=h<<13|h>>>19,h=5*h+3864292196);switch(u=0,o){case 3:u^=t[4*r+2]<<16;case 2:u^=t[4*r+1]<<8;case 1:u^=t[4*r],u=u*p&a|u*m&s,u=u<<15|u>>>17,u=u*f&a|u*g&s,1&r?c^=u:h^=u}this.h1=c,this.h2=h}hexdigest(){let e=this.h1,t=this.h2;return e^=t>>>1,e=3981806797*e&a|36045*e&s,t=4283543511*t&a|(2950163797*(t<<16|e>>>16)&a)>>>16,e^=t>>>1,e=444984403*e&a|60499*e&s,t=3301882366*t&a|(3120437893*(t<<16|e>>>16)&a)>>>16,e^=t>>>1,(e>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0;var i=n(1);t.FontLoader=class{#lt=new Set;constructor({ownerDocument:e=globalThis.document,styleElement:t=null}){this._document=e,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(e){this.nativeFontFaces.add(e),this._document.fonts.add(e)}removeNativeFontFace(e){this.nativeFontFaces.delete(e),this._document.fonts.delete(e)}insertRule(e){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));const t=this.styleElement.sheet;t.insertRule(e,t.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.clear(),this.#lt.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont(e){if(e&&!this.#lt.has(e.loadedName))if((0,i.assert)(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){const{loadedName:t,src:n,style:r}=e,a=new FontFace(t,n,r);this.addNativeFontFace(a);try{await a.load(),this.#lt.add(t)}catch{(0,i.warn)(`Cannot load system font: ${e.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(a)}}else(0,i.unreachable)("Not implemented: loadSystemFont without the Font Loading API.")}async bind(e){if(e.attached||e.missingFile&&!e.systemFontInfo)return;if(e.attached=!0,e.systemFontInfo)return void await this.loadSystemFont(e.systemFontInfo);if(this.isFontLoadingAPISupported){const t=e.createNativeFontFace();if(t){this.addNativeFontFace(t);try{await t.loaded}catch(n){throw(0,i.warn)(`Failed to load font '${t.family}': '${n}'.`),e.disableFontFace=!0,n}}return}const t=e.createFontFaceRule();if(t){if(this.insertRule(t),this.isSyncFontLoadingSupported)return;await new Promise((t=>{const n=this._queueLoadingCallback(t);this._prepareFontLoadEvent(e,n)}))}}get isFontLoadingAPISupported(){const e=!!this._document?.fonts;return(0,i.shadow)(this,"isFontLoadingAPISupported",e)}get isSyncFontLoadingSupported(){let e=!1;return(i.isNodeJS||"undefined"!=typeof navigator&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(e=!0),(0,i.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){const{loadingRequests:t}=this,n={done:!1,complete:function(){for((0,i.assert)(!n.done,"completeRequest() cannot be called twice."),n.done=!0;t.length>0&&t[0].done;){const e=t.shift();setTimeout(e.callback,0)}},callback:e};return t.push(n),n}get _loadTestFont(){const e=atob("T1RUTwALAIAAAwAwQ0ZGIDHtZg4AAAOYAAAAgUZGVE1lkzZwAAAEHAAAABxHREVGABQAFQAABDgAAAAeT1MvMlYNYwkAAAEgAAAAYGNtYXABDQLUAAACNAAAAUJoZWFk/xVFDQAAALwAAAA2aGhlYQdkA+oAAAD0AAAAJGhtdHgD6AAAAAAEWAAAAAZtYXhwAAJQAAAAARgAAAAGbmFtZVjmdH4AAAGAAAAAsXBvc3T/hgAzAAADeAAAACAAAQAAAAEAALZRFsRfDzz1AAsD6AAAAADOBOTLAAAAAM4KHDwAAAAAA+gDIQAAAAgAAgAAAAAAAAABAAADIQAAAFoD6AAAAAAD6AABAAAAAAAAAAAAAAAAAAAAAQAAUAAAAgAAAAQD6AH0AAUAAAKKArwAAACMAooCvAAAAeAAMQECAAACAAYJAAAAAAAAAAAAAQAAAAAAAAAAAAAAAFBmRWQAwAAuAC4DIP84AFoDIQAAAAAAAQAAAAAAAAAAACAAIAABAAAADgCuAAEAAAAAAAAAAQAAAAEAAAAAAAEAAQAAAAEAAAAAAAIAAQAAAAEAAAAAAAMAAQAAAAEAAAAAAAQAAQAAAAEAAAAAAAUAAQAAAAEAAAAAAAYAAQAAAAMAAQQJAAAAAgABAAMAAQQJAAEAAgABAAMAAQQJAAIAAgABAAMAAQQJAAMAAgABAAMAAQQJAAQAAgABAAMAAQQJAAUAAgABAAMAAQQJAAYAAgABWABYAAAAAAAAAwAAAAMAAAAcAAEAAAAAADwAAwABAAAAHAAEACAAAAAEAAQAAQAAAC7//wAAAC7////TAAEAAAAAAAABBgAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAMAAAAAAAD/gwAyAAAAAQAAAAAAAAAAAAAAAAAAAAABAAQEAAEBAQJYAAEBASH4DwD4GwHEAvgcA/gXBIwMAYuL+nz5tQXkD5j3CBLnEQACAQEBIVhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYAAABAQAADwACAQEEE/t3Dov6fAH6fAT+fPp8+nwHDosMCvm1Cvm1DAz6fBQAAAAAAAABAAAAAMmJbzEAAAAAzgTjFQAAAADOBOQpAAEAAAAAAAAADAAUAAQAAAABAAAAAgABAAAAAAAAAAAD6AAAAAAAAA==");return(0,i.shadow)(this,"_loadTestFont",e)}_prepareFontLoadEvent(e,t){function n(e,t){return e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|255&e.charCodeAt(t+3)}function r(e,t,n,i){return e.substring(0,t)+i+e.substring(t+n)}let a,s;const o=this._document.createElement("canvas");o.width=1,o.height=1;const l=o.getContext("2d");let u=0;const d=`lt${Date.now()}${this.loadTestFontId++}`;let c=this._loadTestFont;c=r(c,976,d.length,d);const h=1482184792;let p=n(c,16);for(a=0,s=d.length-3;a30)return(0,i.warn)("Load test font never loaded."),void n();l.font="30px "+t,l.fillText(".",0,20),l.getImageData(0,0,1,1).data[3]>0?n():setTimeout(e.bind(null,t,n))}(d,(()=>{m.remove(),t.complete()}))}},t.FontFaceObject=class{constructor(e,{isEvalSupported:t=!0,disableFontFace:n=!1,ignoreErrors:i=!1,inspectFont:r=null}){this.compiledGlyphs=Object.create(null);for(const t in e)this[t]=e[t];this.isEvalSupported=!1!==t,this.disableFontFace=!0===n,this.ignoreErrors=!0===i,this._inspectFont=r}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let e;if(this.cssFontInfo){const t={weight:this.cssFontInfo.fontWeight};this.cssFontInfo.italicAngle&&(t.style=`oblique ${this.cssFontInfo.italicAngle}deg`),e=new FontFace(this.cssFontInfo.fontFamily,this.data,t)}else e=new FontFace(this.loadedName,this.data,{});return this._inspectFont?.(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;const e=(0,i.bytesToString)(this.data),t=`url(data:${this.mimetype};base64,${btoa(e)});`;let n;if(this.cssFontInfo){let e=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(e+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),n=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${e}src:${t}}`}else n=`@font-face {font-family:"${this.loadedName}";src:${t}}`;return this._inspectFont?.(this,t),n}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];let n;try{n=e.get(this.loadedName+"_path_"+t)}catch(e){if(!this.ignoreErrors)throw e;return(0,i.warn)(`getPathGenerator - ignoring character: "${e}".`),this.compiledGlyphs[t]=function(e,t){}}if(this.isEvalSupported&&i.FeatureTest.isEvalSupported){const e=[];for(const t of n){const n=void 0!==t.args?t.args.join(","):"";e.push("c.",t.cmd,"(",n,");\n")}return this.compiledGlyphs[t]=new Function("c","size",e.join(""))}return this.compiledGlyphs[t]=function(e,t){for(const i of n)"scale"===i.cmd&&(i.args=[t,-t]),e[i.cmd].apply(e,i.args)}}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeFilterFactory=t.NodeCanvasFactory=t.NodeCMapReaderFactory=void 0;var i=n(7);n(1);const r=function(e){return new Promise(((t,n)=>{__webpack_require__(23237).readFile(e,((e,i)=>{!e&&i?t(new Uint8Array(i)):n(new Error(e))}))}))};class a extends i.BaseFilterFactory{}t.NodeFilterFactory=a;class s extends i.BaseCanvasFactory{_createCanvas(e,t){return __webpack_require__(17640).createCanvas(e,t)}}t.NodeCanvasFactory=s;class o extends i.BaseCMapReaderFactory{_fetchData(e,t){return r(e).then((e=>({cMapData:e,compressionType:t})))}}t.NodeCMapReaderFactory=o;class l extends i.BaseStandardFontDataFactory{_fetchData(e){return r(e)}}t.NodeStandardFontDataFactory=l},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0;var i=n(1),r=n(6),a=n(12),s=n(13);const o=4096,l=16;class u{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,n){let i;return void 0!==this.cache[e]?(i=this.cache[e],this.canvasFactory.reset(i,t,n)):(i=this.canvasFactory.create(t,n),this.cache[e]=i),i}delete(e){delete this.cache[e]}clear(){for(const e in this.cache){const t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}function d(e,t,n,i,a,s,o,l,u,d){const[c,h,p,f,m,g]=(0,r.getCurrentTransform)(e);if(0===h&&0===p){const r=o*c+m,v=Math.round(r),y=l*f+g,b=Math.round(y),_=(o+u)*c+m,w=Math.abs(Math.round(_)-v)||1,M=(l+d)*f+g,k=Math.abs(Math.round(M)-b)||1;return e.setTransform(Math.sign(c),0,0,Math.sign(f),v,b),e.drawImage(t,n,i,a,s,0,0,w,k),e.setTransform(c,h,p,f,m,g),[w,k]}if(0===c&&0===f){const r=l*p+m,v=Math.round(r),y=o*h+g,b=Math.round(y),_=(l+d)*p+m,w=Math.abs(Math.round(_)-v)||1,M=(o+u)*h+g,k=Math.abs(Math.round(M)-b)||1;return e.setTransform(0,Math.sign(h),Math.sign(p),0,v,b),e.drawImage(t,n,i,a,s,0,0,k,w),e.setTransform(c,h,p,f,m,g),[k,w]}return e.drawImage(t,n,i,a,s,o,l,u,d),[Math.hypot(c,h)*u,Math.hypot(p,f)*d]}class c{constructor(e,t){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=i.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=i.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=i.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,e,t])}clone(){const e=Object.create(this);return e.clipBox=this.clipBox.slice(),e}setCurrentPoint(e,t){this.x=e,this.y=t}updatePathMinMax(e,t,n){[t,n]=i.Util.applyTransform([t,n],e),this.minX=Math.min(this.minX,t),this.minY=Math.min(this.minY,n),this.maxX=Math.max(this.maxX,t),this.maxY=Math.max(this.maxY,n)}updateRectMinMax(e,t){const n=i.Util.applyTransform(t,e),r=i.Util.applyTransform(t.slice(2),e);this.minX=Math.min(this.minX,n[0],r[0]),this.minY=Math.min(this.minY,n[1],r[1]),this.maxX=Math.max(this.maxX,n[0],r[0]),this.maxY=Math.max(this.maxY,n[1],r[1])}updateScalingPathMinMax(e,t){i.Util.scaleMinMax(e,t),this.minX=Math.min(this.minX,t[0]),this.maxX=Math.max(this.maxX,t[1]),this.minY=Math.min(this.minY,t[2]),this.maxY=Math.max(this.maxY,t[3])}updateCurvePathMinMax(e,t,n,r,a,s,o,l,u,d){const c=i.Util.bezierBoundingBox(t,n,r,a,s,o,l,u);if(d)return d[0]=Math.min(d[0],c[0],c[2]),d[1]=Math.max(d[1],c[0],c[2]),d[2]=Math.min(d[2],c[1],c[3]),void(d[3]=Math.max(d[3],c[1],c[3]));this.updateRectMinMax(e,c)}getPathBoundingBox(e=a.PathType.FILL,t=null){const n=[this.minX,this.minY,this.maxX,this.maxY];if(e===a.PathType.STROKE){t||(0,i.unreachable)("Stroke bounding box must include transform.");const e=i.Util.singularValueDecompose2dScale(t),r=e[0]*this.lineWidth/2,a=e[1]*this.lineWidth/2;n[0]-=r,n[1]-=a,n[2]+=r,n[3]+=a}return n}updateClipFromPath(){const e=i.Util.intersect(this.clipBox,this.getPathBoundingBox());this.startNewPathAndClipBox(e||[0,0,0,0])}isEmptyClip(){return this.minX===1/0}startNewPathAndClipBox(e){this.clipBox=e,this.minX=1/0,this.minY=1/0,this.maxX=0,this.maxY=0}getClippedPathBoundingBox(e=a.PathType.FILL,t=null){return i.Util.intersect(this.clipBox,this.getPathBoundingBox(e,t))}}function h(e,t){if("undefined"!=typeof ImageData&&t instanceof ImageData)return void e.putImageData(t,0,0);const n=t.height,r=t.width,a=n%l,s=(n-a)/l,o=0===a?s:s+1,u=e.createImageData(r,l);let d,c=0;const h=t.data,p=u.data;let f,m,g,v;if(t.kind===i.ImageKind.GRAYSCALE_1BPP){const t=h.byteLength,n=new Uint32Array(p.buffer,0,p.byteLength>>2),v=n.length,y=r+7>>3,b=4294967295,_=i.FeatureTest.isLittleEndian?4278190080:255;for(f=0;fy?r:8*e-7,s=-8&a;let o=0,l=0;for(;i>=1}for(;d=s&&(g=a,v=r*g),d=0,m=v;m--;)p[d++]=h[c++],p[d++]=h[c++],p[d++]=h[c++],p[d++]=255;e.putImageData(u,0,f*l)}}}function p(e,t){if(t.bitmap)return void e.drawImage(t.bitmap,0,0);const n=t.height,i=t.width,r=n%l,a=(n-r)/l,o=0===r?a:a+1,u=e.createImageData(i,l);let d=0;const c=t.data,h=u.data;for(let t=0;t>8,e[a-2]=e[a-2]*r+n*s>>8,e[a-1]=e[a-1]*r+i*s>>8}}}function v(e,t,n){const i=e.length,r=1/255;for(let a=3;a>8]>>8:t[r]*i>>16}}function b(e,t){const n=i.Util.singularValueDecompose2dScale(e);n[0]=Math.fround(n[0]),n[1]=Math.fround(n[1]);const a=Math.fround((globalThis.devicePixelRatio||1)*r.PixelsPerInch.PDF_TO_CSS_UNITS);return void 0!==t?t:n[0]<=a||n[1]<=a}const _=["butt","round","square"],w=["miter","round","bevel"],M={},k={};class S{constructor(e,t,n,i,r,{optionalContentConfig:a,markedContentStack:s=null},o,l){this.ctx=e,this.current=new c(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=n,this.canvasFactory=i,this.filterFactory=r,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=s||[],this.optionalContentConfig=a,this.cachedCanvases=new u(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=o,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=l,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(e,t=null){return"string"==typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}beginDrawing({transform:e,viewport:t,transparency:n=!1,background:i=null}){const a=this.ctx.canvas.width,s=this.ctx.canvas.height,o=this.ctx.fillStyle;if(this.ctx.fillStyle=i||"#ffffff",this.ctx.fillRect(0,0,a,s),this.ctx.fillStyle=o,n){const e=this.cachedCanvases.getCanvas("transparent",a,s);this.compositeCtx=this.ctx,this.transparentCanvas=e.canvas,this.ctx=e.context,this.ctx.save(),this.ctx.transform(...(0,r.getCurrentTransform)(this.compositeCtx))}this.ctx.save(),m(this.ctx),e&&(this.ctx.transform(...e),this.outputScaleX=e[0],this.outputScaleY=e[0]),this.ctx.transform(...t.transform),this.viewportScale=t.scale,this.baseTransform=(0,r.getCurrentTransform)(this.ctx)}executeOperatorList(e,t,n,r){const a=e.argsArray,s=e.fnArray;let o=t||0;const l=a.length;if(l===o)return o;const u=l-o>10&&"function"==typeof n,d=u?Date.now()+15:0;let c=0;const h=this.commonObjs,p=this.objs;let f;for(;;){if(void 0!==r&&o===r.nextBreakPoint)return r.breakIt(o,n),o;if(f=s[o],f!==i.OPS.dependency)this[f].apply(this,a[o]);else for(const e of a[o]){const t=e.startsWith("g_")?h:p;if(!t.has(e))return t.get(e,n),o}if(o++,o===l)return o;if(u&&++c>10){if(Date.now()>d)return n(),o;c=0}}}#ut(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#ut(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const e of this._cachedBitmapsMap.values()){for(const t of e.values())"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear(),this.#dt()}#dt(){if(this.pageColors){const e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background);if("none"!==e){const t=this.ctx.filter;this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=t}}}_scaleImage(e,t){const n=e.width,i=e.height;let r,a,s=Math.max(Math.hypot(t[0],t[1]),1),o=Math.max(Math.hypot(t[2],t[3]),1),l=n,u=i,d="prescale1";for(;s>2&&l>1||o>2&&u>1;){let t=l,n=u;s>2&&l>1&&(t=l>=16384?Math.floor(l/2)-1||1:Math.ceil(l/2),s/=l/t),o>2&&u>1&&(n=u>=16384?Math.floor(u/2)-1||1:Math.ceil(u)/2,o/=u/n),r=this.cachedCanvases.getCanvas(d,t,n),a=r.context,a.clearRect(0,0,t,n),a.drawImage(e,0,0,l,u,0,0,t,n),e=r.canvas,l=t,u=n,d="prescale1"===d?"prescale2":"prescale1"}return{img:e,paintWidth:l,paintHeight:u}}_createMaskCanvas(e){const t=this.ctx,{width:n,height:s}=e,o=this.current.fillColor,l=this.current.patternFill,u=(0,r.getCurrentTransform)(t);let c,h,f,m;if((e.bitmap||e.data)&&e.count>1){const t=e.bitmap||e.data.buffer;h=JSON.stringify(l?u:[u.slice(0,4),o]),c=this._cachedBitmapsMap.get(t),c||(c=new Map,this._cachedBitmapsMap.set(t,c));const n=c.get(h);if(n&&!l)return{canvas:n,offsetX:Math.round(Math.min(u[0],u[2])+u[4]),offsetY:Math.round(Math.min(u[1],u[3])+u[5])};f=n}f||(m=this.cachedCanvases.getCanvas("maskCanvas",n,s),p(m.context,e));let g=i.Util.transform(u,[1/n,0,0,-1/s,0,0]);g=i.Util.transform(g,[1,0,0,1,0,-s]);const v=i.Util.applyTransform([0,0],g),y=i.Util.applyTransform([n,s],g),_=i.Util.normalizeRect([v[0],v[1],y[0],y[1]]),w=Math.round(_[2]-_[0])||1,M=Math.round(_[3]-_[1])||1,k=this.cachedCanvases.getCanvas("fillCanvas",w,M),S=k.context,x=Math.min(v[0],y[0]),L=Math.min(v[1],y[1]);S.translate(-x,-L),S.transform(...g),f||(f=this._scaleImage(m.canvas,(0,r.getCurrentTransformInverse)(S)),f=f.img,c&&l&&c.set(h,f)),S.imageSmoothingEnabled=b((0,r.getCurrentTransform)(S),e.interpolate),d(S,f,0,0,f.width,f.height,0,0,n,s),S.globalCompositeOperation="source-in";const C=i.Util.transform((0,r.getCurrentTransformInverse)(S),[1,0,0,1,-x,-L]);return S.fillStyle=l?o.getPattern(t,this,C,a.PathType.FILL):o,S.fillRect(0,0,n,s),c&&!l&&(this.cachedCanvases.delete("fillCanvas"),c.set(h,k.canvas)),{canvas:k.canvas,offsetX:Math.round(x),offsetY:Math.round(L)}}setLineWidth(e){e!==this.current.lineWidth&&(this._cachedScaleForStroking[0]=-1),this.current.lineWidth=e,this.ctx.lineWidth=e}setLineCap(e){this.ctx.lineCap=_[e]}setLineJoin(e){this.ctx.lineJoin=w[e]}setMiterLimit(e){this.ctx.miterLimit=e}setDash(e,t){const n=this.ctx;void 0!==n.setLineDash&&(n.setLineDash(e),n.lineDashOffset=t)}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,n]of e)switch(t){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n[0],n[1]);break;case"CA":this.current.strokeAlpha=n;break;case"ca":this.current.fillAlpha=n,this.ctx.globalAlpha=n;break;case"BM":this.ctx.globalCompositeOperation=n;break;case"SMask":this.current.activeSMask=n?this.tempSMask:null,this.tempSMask=null,this.checkSMaskState();break;case"TR":this.ctx.filter=this.current.transferMaps=this.filterFactory.addFilter(n)}}get inSMaskMode(){return!!this.suspendedCtx}checkSMaskState(){const e=this.inSMaskMode;this.current.activeSMask&&!e?this.beginSMaskMode():!this.current.activeSMask&&e&&this.endSMaskMode()}beginSMaskMode(){if(this.inSMaskMode)throw new Error("beginSMaskMode called while already in smask mode");const e=this.ctx.canvas.width,t=this.ctx.canvas.height,n="smaskGroupAt"+this.groupLevel,i=this.cachedCanvases.getCanvas(n,e,t);this.suspendedCtx=this.ctx,this.ctx=i.context;const a=this.ctx;a.setTransform(...(0,r.getCurrentTransform)(this.suspendedCtx)),f(this.suspendedCtx,a),function(e,t){if(e._removeMirroring)throw new Error("Context is already forwarding operations.");e.__originalSave=e.save,e.__originalRestore=e.restore,e.__originalRotate=e.rotate,e.__originalScale=e.scale,e.__originalTranslate=e.translate,e.__originalTransform=e.transform,e.__originalSetTransform=e.setTransform,e.__originalResetTransform=e.resetTransform,e.__originalClip=e.clip,e.__originalMoveTo=e.moveTo,e.__originalLineTo=e.lineTo,e.__originalBezierCurveTo=e.bezierCurveTo,e.__originalRect=e.rect,e.__originalClosePath=e.closePath,e.__originalBeginPath=e.beginPath,e._removeMirroring=()=>{e.save=e.__originalSave,e.restore=e.__originalRestore,e.rotate=e.__originalRotate,e.scale=e.__originalScale,e.translate=e.__originalTranslate,e.transform=e.__originalTransform,e.setTransform=e.__originalSetTransform,e.resetTransform=e.__originalResetTransform,e.clip=e.__originalClip,e.moveTo=e.__originalMoveTo,e.lineTo=e.__originalLineTo,e.bezierCurveTo=e.__originalBezierCurveTo,e.rect=e.__originalRect,e.closePath=e.__originalClosePath,e.beginPath=e.__originalBeginPath,delete e._removeMirroring},e.save=function(){t.save(),this.__originalSave()},e.restore=function(){t.restore(),this.__originalRestore()},e.translate=function(e,n){t.translate(e,n),this.__originalTranslate(e,n)},e.scale=function(e,n){t.scale(e,n),this.__originalScale(e,n)},e.transform=function(e,n,i,r,a,s){t.transform(e,n,i,r,a,s),this.__originalTransform(e,n,i,r,a,s)},e.setTransform=function(e,n,i,r,a,s){t.setTransform(e,n,i,r,a,s),this.__originalSetTransform(e,n,i,r,a,s)},e.resetTransform=function(){t.resetTransform(),this.__originalResetTransform()},e.rotate=function(e){t.rotate(e),this.__originalRotate(e)},e.clip=function(e){t.clip(e),this.__originalClip(e)},e.moveTo=function(e,n){t.moveTo(e,n),this.__originalMoveTo(e,n)},e.lineTo=function(e,n){t.lineTo(e,n),this.__originalLineTo(e,n)},e.bezierCurveTo=function(e,n,i,r,a,s){t.bezierCurveTo(e,n,i,r,a,s),this.__originalBezierCurveTo(e,n,i,r,a,s)},e.rect=function(e,n,i,r){t.rect(e,n,i,r),this.__originalRect(e,n,i,r)},e.closePath=function(){t.closePath(),this.__originalClosePath()},e.beginPath=function(){t.beginPath(),this.__originalBeginPath()}}(a,this.suspendedCtx),this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),f(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(!this.current.activeSMask)return;e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];const t=this.current.activeSMask;(function(e,t,n,i){const r=i[0],a=i[1],s=i[2]-r,o=i[3]-a;0!==s&&0!==o&&(function(e,t,n,i,r,a,s,o,l,u,d){const c=!!a,h=c?a[0]:0,p=c?a[1]:0,f=c?a[2]:0,m="Luminosity"===r?y:v,b=Math.min(i,Math.ceil(1048576/n));for(let r=0;r100&&(u=100),this.current.fontSizeScale=t/u,this.ctx.font=`${l} ${o} ${u}px ${s}`}setTextRenderingMode(e){this.current.textRenderingMode=e}setTextRise(e){this.current.textRise=e}moveText(e,t){this.current.x=this.current.lineX+=e,this.current.y=this.current.lineY+=t}setLeadingMoveText(e,t){this.setLeading(-t),this.moveText(e,t)}setTextMatrix(e,t,n,i,r,a){this.current.textMatrix=[e,t,n,i,r,a],this.current.textMatrixScale=Math.hypot(e,t),this.current.x=this.current.lineX=0,this.current.y=this.current.lineY=0}nextLine(){this.moveText(0,this.current.leading)}paintChar(e,t,n,a){const s=this.ctx,o=this.current,l=o.font,u=o.textRenderingMode,d=o.fontSize/o.fontSizeScale,c=u&i.TextRenderingMode.FILL_STROKE_MASK,h=!!(u&i.TextRenderingMode.ADD_TO_PATH_FLAG),p=o.patternFill&&!l.missingFile;let f;(l.disableFontFace||h||p)&&(f=l.getPathGenerator(this.commonObjs,e)),l.disableFontFace||p?(s.save(),s.translate(t,n),s.beginPath(),f(s,d),a&&s.setTransform(...a),c!==i.TextRenderingMode.FILL&&c!==i.TextRenderingMode.FILL_STROKE||s.fill(),c!==i.TextRenderingMode.STROKE&&c!==i.TextRenderingMode.FILL_STROKE||s.stroke(),s.restore()):(c!==i.TextRenderingMode.FILL&&c!==i.TextRenderingMode.FILL_STROKE||s.fillText(e,t,n),c!==i.TextRenderingMode.STROKE&&c!==i.TextRenderingMode.FILL_STROKE||s.strokeText(e,t,n)),h&&(this.pendingTextPaths||=[]).push({transform:(0,r.getCurrentTransform)(s),x:t,y:n,fontSize:d,addToPath:f})}get isFontSubpixelAAEnabled(){const{context:e}=this.cachedCanvases.getCanvas("isFontSubpixelAAEnabled",10,10);e.scale(1.5,1),e.fillText("I",0,10);const t=e.getImageData(0,0,10,10).data;let n=!1;for(let e=3;e0&&t[e]<255){n=!0;break}return(0,i.shadow)(this,"isFontSubpixelAAEnabled",n)}showText(e){const t=this.current,n=t.font;if(n.isType3Font)return this.showType3Text(e);const s=t.fontSize;if(0===s)return;const o=this.ctx,l=t.fontSizeScale,u=t.charSpacing,d=t.wordSpacing,c=t.fontDirection,h=t.textHScale*c,p=e.length,f=n.vertical,m=f?1:-1,g=n.defaultVMetrics,v=s*t.fontMatrix[0],y=t.textRenderingMode===i.TextRenderingMode.FILL&&!n.disableFontFace&&!t.patternFill;let b;if(o.save(),o.transform(...t.textMatrix),o.translate(t.x,t.y+t.textRise),c>0?o.scale(h,-1):o.scale(h,1),t.patternFill){o.save();const e=t.fillColor.getPattern(o,this,(0,r.getCurrentTransformInverse)(o),a.PathType.FILL);b=(0,r.getCurrentTransform)(o),o.restore(),o.fillStyle=e}let _=t.lineWidth;const w=t.textMatrixScale;if(0===w||0===_){const e=t.textRenderingMode&i.TextRenderingMode.FILL_STROKE_MASK;e!==i.TextRenderingMode.STROKE&&e!==i.TextRenderingMode.FILL_STROKE||(_=this.getSinglePixelWidth())}else _/=w;if(1!==l&&(o.scale(l,l),_/=l),o.lineWidth=_,n.isInvalidPDFjsFont){const n=[];let i=0;for(const t of e)n.push(t.unicode),i+=t.width;return o.fillText(n.join(""),0,0),t.x+=i*v*h,o.restore(),void this.compose()}let M,k=0;for(M=0;M0){const e=1e3*o.measureText(a).width/s*l;if(wnew S(e,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})};t=new a.TilingPattern(e,n,this.ctx,s,i)}else t=this._getPattern(e[1],e[2]);return t}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(e,t,n){const r=i.Util.makeHexColor(e,t,n);this.ctx.strokeStyle=r,this.current.strokeColor=r}setFillRGBColor(e,t,n){const r=i.Util.makeHexColor(e,t,n);this.ctx.fillStyle=r,this.current.fillColor=r,this.current.patternFill=!1}_getPattern(e,t=null){let n;return this.cachedPatterns.has(e)?n=this.cachedPatterns.get(e):(n=(0,a.getShadingPattern)(this.getObject(e)),this.cachedPatterns.set(e,n)),t&&(n.matrix=t),n}shadingFill(e){if(!this.contentVisible)return;const t=this.ctx;this.save();const n=this._getPattern(e);t.fillStyle=n.getPattern(t,this,(0,r.getCurrentTransformInverse)(t),a.PathType.SHADING);const s=(0,r.getCurrentTransformInverse)(t);if(s){const{width:e,height:n}=t.canvas,[r,a,o,l]=i.Util.getAxialAlignedBoundingBox([0,0,e,n],s);this.ctx.fillRect(r,a,o-r,l-a)}else this.ctx.fillRect(-1e10,-1e10,2e10,2e10);this.compose(this.current.getClippedPathBoundingBox()),this.restore()}beginInlineImage(){(0,i.unreachable)("Should not call beginInlineImage")}beginImageData(){(0,i.unreachable)("Should not call beginImageData")}paintFormXObjectBegin(e,t){if(this.contentVisible&&(this.save(),this.baseTransformStack.push(this.baseTransform),Array.isArray(e)&&6===e.length&&this.transform(...e),this.baseTransform=(0,r.getCurrentTransform)(this.ctx),t)){const e=t[2]-t[0],n=t[3]-t[1];this.ctx.rect(t[0],t[1],e,n),this.current.updateRectMinMax((0,r.getCurrentTransform)(this.ctx),t),this.clip(),this.endPath()}}paintFormXObjectEnd(){this.contentVisible&&(this.restore(),this.baseTransform=this.baseTransformStack.pop())}beginGroup(e){if(!this.contentVisible)return;this.save(),this.inSMaskMode&&(this.endSMaskMode(),this.current.activeSMask=null);const t=this.ctx;e.isolated||(0,i.info)("TODO: Support non-isolated groups."),e.knockout&&(0,i.warn)("Knockout groups not supported.");const n=(0,r.getCurrentTransform)(t);if(e.matrix&&t.transform(...e.matrix),!e.bbox)throw new Error("Bounding box is required.");let a=i.Util.getAxialAlignedBoundingBox(e.bbox,(0,r.getCurrentTransform)(t));const s=[0,0,t.canvas.width,t.canvas.height];a=i.Util.intersect(a,s)||[0,0,0,0];const l=Math.floor(a[0]),u=Math.floor(a[1]);let d=Math.max(Math.ceil(a[2])-l,1),c=Math.max(Math.ceil(a[3])-u,1),h=1,p=1;d>o&&(h=d/o,d=o),c>o&&(p=c/o,c=o),this.current.startNewPathAndClipBox([0,0,d,c]);let m="groupAt"+this.groupLevel;e.smask&&(m+="_smask_"+this.smaskCounter++%2);const g=this.cachedCanvases.getCanvas(m,d,c),v=g.context;v.scale(1/h,1/p),v.translate(-l,-u),v.transform(...n),e.smask?this.smaskStack.push({canvas:g.canvas,context:v,offsetX:l,offsetY:u,scaleX:h,scaleY:p,subtype:e.smask.subtype,backdrop:e.smask.backdrop,transferMap:e.smask.transferMap||null,startTransformInverse:null}):(t.setTransform(1,0,0,1,0,0),t.translate(l,u),t.scale(h,p),t.save()),f(t,v),this.ctx=v,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(t),this.groupLevel++}endGroup(e){if(!this.contentVisible)return;this.groupLevel--;const t=this.ctx,n=this.groupStack.pop();if(this.ctx=n,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const e=(0,r.getCurrentTransform)(this.ctx);this.restore(),this.ctx.save(),this.ctx.setTransform(...e);const n=i.Util.getAxialAlignedBoundingBox([0,0,t.canvas.width,t.canvas.height],e);this.ctx.drawImage(t.canvas,0,0),this.ctx.restore(),this.compose(n)}}beginAnnotation(e,t,n,a,s){if(this.#ut(),m(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(t)&&4===t.length){const a=t[2]-t[0],o=t[3]-t[1];if(s&&this.annotationCanvasMap){(n=n.slice())[4]-=t[0],n[5]-=t[1],(t=t.slice())[0]=t[1]=0,t[2]=a,t[3]=o;const[s,l]=i.Util.singularValueDecompose2dScale((0,r.getCurrentTransform)(this.ctx)),{viewportScale:u}=this,d=Math.ceil(a*this.outputScaleX*u),c=Math.ceil(o*this.outputScaleY*u);this.annotationCanvas=this.canvasFactory.create(d,c);const{canvas:h,context:p}=this.annotationCanvas;this.annotationCanvasMap.set(e,h),this.annotationCanvas.savedCtx=this.ctx,this.ctx=p,this.ctx.save(),this.ctx.setTransform(s,0,0,-l,0,o*l),m(this.ctx)}else m(this.ctx),this.ctx.rect(t[0],t[1],a,o),this.ctx.clip(),this.endPath()}this.current=new c(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...n),this.transform(...a)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),this.#dt(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e){if(!this.contentVisible)return;const t=e.count;(e=this.getObject(e.data,e)).count=t;const n=this.ctx,i=this.processingType3;if(i&&(void 0===i.compiled&&(i.compiled=function(e){const{width:t,height:n}=e;if(t>1e3||n>1e3)return null;const i=new Uint8Array([0,2,4,0,1,0,5,4,8,10,0,8,0,2,1,0]),r=t+1;let a,s,o,l=new Uint8Array(r*(n+1));const u=t+7&-8;let d=new Uint8Array(u*n),c=0;for(const t of e.data){let e=128;for(;e>0;)d[c++]=t&e?0:255,e>>=1}let h=0;for(c=0,0!==d[c]&&(l[0]=1,++h),s=1;s>2)+(d[c+1]?4:0)+(d[c-u+1]?8:0),i[e]&&(l[o+s]=i[e],++h),c++;if(d[c-u]!==d[c]&&(l[o+s]=d[c]?2:4,++h),h>1e3)return null}for(c=u*(n-1),o=a*r,0!==d[c]&&(l[o]=8,++h),s=1;s1e3)return null;const p=new Int32Array([0,r,-1,0,-r,0,0,0,1]),f=new Path2D;for(a=0;h&&a<=n;a++){let e=a*r;const n=e+t;for(;e>4,l[e]&=s>>2|s<<2),f.lineTo(e%r,e/r|0),l[e]||--h}while(i!==e);--a}return d=null,l=null,function(e){e.save(),e.scale(1/t,-1/n),e.translate(0,-n),e.fill(f),e.beginPath(),e.restore()}}(e)),i.compiled))return void i.compiled(n);const r=this._createMaskCanvas(e),a=r.canvas;n.save(),n.setTransform(1,0,0,1,0,0),n.drawImage(a,r.offsetX,r.offsetY),n.restore(),this.compose()}paintImageMaskXObjectRepeat(e,t,n=0,a=0,s,o){if(!this.contentVisible)return;e=this.getObject(e.data,e);const l=this.ctx;l.save();const u=(0,r.getCurrentTransform)(l);l.transform(t,n,a,s,0,0);const d=this._createMaskCanvas(e);l.setTransform(1,0,0,1,d.offsetX-u[4],d.offsetY-u[5]);for(let e=0,r=o.length;et?u/t:1,s=l>t?l/t:1}}this._cachedScaleForStroking[0]=a,this._cachedScaleForStroking[1]=s}return this._cachedScaleForStroking}rescaleAndStroke(e){const{ctx:t}=this,{lineWidth:n}=this.current,[i,r]=this.getScaleForStroking();if(t.lineWidth=n||1,1===i&&1===r)return void t.stroke();const a=t.getLineDash();if(e&&t.save(),t.scale(i,r),a.length>0){const e=Math.max(i,r);t.setLineDash(a.map((t=>t/e))),t.lineDashOffset/=e}t.stroke(),e&&t.restore()}isContentVisible(){for(let e=this.markedContentStack.length-1;e>=0;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}t.CanvasGraphics=S;for(const e in i.OPS)void 0!==S.prototype[e]&&(S.prototype[i.OPS[e]]=S.prototype[e])},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.PathType=void 0,t.getShadingPattern=function(e){switch(e[0]){case"RadialAxial":return new l(e);case"Mesh":return new c(e);case"Dummy":return new h}throw new Error(`Unknown IR type: ${e[0]}`)};var i=n(1),r=n(6);const a={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function s(e,t){if(!t)return;const n=t[2]-t[0],i=t[3]-t[1],r=new Path2D;r.rect(t[0],t[1],n,i),e.clip(r)}t.PathType=a;class o{constructor(){this.constructor===o&&(0,i.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,i.unreachable)("Abstract method `getPattern` called.")}}class l extends o{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let t;"axial"===this._type?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const e of this._colorStops)t.addColorStop(e[0],e[1]);return t}getPattern(e,t,n,o){let l;if(o===a.STROKE||o===a.FILL){const a=t.current.getClippedPathBoundingBox(o,(0,r.getCurrentTransform)(e))||[0,0,0,0],u=Math.ceil(a[2]-a[0])||1,d=Math.ceil(a[3]-a[1])||1,c=t.cachedCanvases.getCanvas("pattern",u,d,!0),h=c.context;h.clearRect(0,0,h.canvas.width,h.canvas.height),h.beginPath(),h.rect(0,0,h.canvas.width,h.canvas.height),h.translate(-a[0],-a[1]),n=i.Util.transform(n,[1,0,0,1,a[0],a[1]]),h.transform(...t.baseTransform),this.matrix&&h.transform(...this.matrix),s(h,this._bbox),h.fillStyle=this._createGradient(h),h.fill(),l=e.createPattern(c.canvas,"no-repeat");const p=new DOMMatrix(n);l.setTransform(p)}else s(e,this._bbox),l=this._createGradient(e);return l}}function u(e,t,n,i,r,a,s,o){const l=t.coords,u=t.colors,d=e.data,c=4*e.width;let h;l[n+1]>l[i+1]&&(h=n,n=i,i=h,h=a,a=s,s=h),l[i+1]>l[r+1]&&(h=i,i=r,r=h,h=s,s=o,o=h),l[n+1]>l[i+1]&&(h=n,n=i,i=h,h=a,a=s,s=h);const p=(l[n]+t.offsetX)*t.scaleX,f=(l[n+1]+t.offsetY)*t.scaleY,m=(l[i]+t.offsetX)*t.scaleX,g=(l[i+1]+t.offsetY)*t.scaleY,v=(l[r]+t.offsetX)*t.scaleX,y=(l[r+1]+t.offsetY)*t.scaleY;if(f>=y)return;const b=u[a],_=u[a+1],w=u[a+2],M=u[s],k=u[s+1],S=u[s+2],x=u[o],L=u[o+1],C=u[o+2],T=Math.round(f),E=Math.round(y);let A,D,P,O,j,I,R,F;for(let e=T;e<=E;e++){if(ey?1:g===y?0:(g-e)/(g-y),A=m-(m-v)*t,D=M-(M-x)*t,P=k-(k-L)*t,O=S-(S-C)*t}let t;t=ey?1:(f-e)/(f-y),j=p-(p-v)*t,I=b-(b-x)*t,R=_-(_-L)*t,F=w-(w-C)*t;const n=Math.round(Math.min(A,j)),i=Math.round(Math.max(A,j));let r=c*e+4*n;for(let e=n;e<=i;e++)t=(A-e)/(A-j),t<0?t=0:t>1&&(t=1),d[r++]=D-(D-I)*t|0,d[r++]=P-(P-R)*t|0,d[r++]=O-(O-F)*t|0,d[r++]=255}}function d(e,t,n){const i=t.coords,r=t.colors;let a,s;switch(t.type){case"lattice":const o=t.verticesPerRow,l=Math.floor(i.length/o)-1,d=o-1;for(a=0;a=i?r=i:n=r/e,{scale:n,size:r}}clipBbox(e,t,n,i,a){const s=i-t,o=a-n;e.ctx.rect(t,n,s,o),e.current.updateRectMinMax((0,r.getCurrentTransform)(e.ctx),[t,n,i,a]),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,n){const r=e.ctx,a=e.current;switch(t){case 1:const e=this.ctx;r.fillStyle=e.fillStyle,r.strokeStyle=e.strokeStyle,a.fillColor=e.fillStyle,a.strokeColor=e.strokeStyle;break;case 2:const s=i.Util.makeHexColor(n[0],n[1],n[2]);r.fillStyle=s,r.strokeStyle=s,a.fillColor=s,a.strokeColor=s;break;default:throw new i.FormatError(`Unsupported paint type: ${t}`)}}getPattern(e,t,n,r){let s=n;r!==a.SHADING&&(s=i.Util.transform(s,t.baseTransform),this.matrix&&(s=i.Util.transform(s,this.matrix)));const o=this.createPatternCanvas(t);let l=new DOMMatrix(s);l=l.translate(o.offsetX,o.offsetY),l=l.scale(1/o.scaleX,1/o.scaleY);const u=e.createPattern(o.canvas,"repeat");return u.setTransform(l),u}}t.TilingPattern=p},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.convertBlackAndWhiteToRGBA=r,t.convertToRGBA=function(e){switch(e.kind){case i.ImageKind.GRAYSCALE_1BPP:return r(e);case i.ImageKind.RGB_24BPP:return function({src:e,srcPos:t=0,dest:n,destPos:r=0,width:a,height:s}){let o=0;const l=e.length>>2,u=new Uint32Array(e.buffer,t,l);if(i.FeatureTest.isLittleEndian){for(;o>>24|t<<8|4278190080,n[r+2]=t>>>16|i<<16|4278190080,n[r+3]=i>>>8|4278190080}for(let t=4*o,i=e.length;t>>8|255,n[r+2]=t<<16|i>>>16|255,n[r+3]=i<<8|255}for(let t=4*o,i=e.length;t>3,h=7&r,p=e.length;n=new Uint32Array(n.buffer);let f=0;for(let i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;const n=Object.create(null);t.GlobalWorkerOptions=n,n.workerPort=null,n.workerSrc=""},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0;var i=n(1);function r(e){switch(e instanceof Error||"object"==typeof e&&null!==e||(0,i.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new i.AbortException(e.message);case"MissingPDFException":return new i.MissingPDFException(e.message);case"PasswordException":return new i.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new i.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new i.UnknownErrorException(e.message,e.details);default:return new i.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,n){this.sourceName=e,this.targetName=t,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=e=>{const t=e.data;if(t.targetName!==this.sourceName)return;if(t.stream)return void this.#ct(t);if(t.callback){const e=t.callbackId,n=this.callbackCapabilities[e];if(!n)throw new Error(`Cannot resolve callback ${e}`);if(delete this.callbackCapabilities[e],1===t.callback)n.resolve(t.data);else{if(2!==t.callback)throw new Error("Unexpected callback case");n.reject(r(t.reason))}return}const i=this.actionHandler[t.action];if(!i)throw new Error(`Unknown action from worker: ${t.action}`);if(t.callbackId){const e=this.sourceName,a=t.sourceName;new Promise((function(e){e(i(t.data))})).then((function(i){n.postMessage({sourceName:e,targetName:a,callback:1,callbackId:t.callbackId,data:i})}),(function(i){n.postMessage({sourceName:e,targetName:a,callback:2,callbackId:t.callbackId,reason:r(i)})}))}else t.streamId?this.#ht(t):i(t.data)},n.addEventListener("message",this._onComObjOnMessage)}on(e,t){const n=this.actionHandler;if(n[e])throw new Error(`There is already an actionName called "${e}"`);n[e]=t}send(e,t,n){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},n)}sendWithPromise(e,t,n){const r=this.callbackId++,a=new i.PromiseCapability;this.callbackCapabilities[r]=a;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:r,data:t},n)}catch(e){a.reject(e)}return a.promise}sendWithStream(e,t,n,a){const s=this.streamId++,o=this.sourceName,l=this.targetName,u=this.comObj;return new ReadableStream({start:n=>{const r=new i.PromiseCapability;return this.streamControllers[s]={controller:n,startCall:r,pullCall:null,cancelCall:null,isClosed:!1},u.postMessage({sourceName:o,targetName:l,action:e,streamId:s,data:t,desiredSize:n.desiredSize},a),r.promise},pull:e=>{const t=new i.PromiseCapability;return this.streamControllers[s].pullCall=t,u.postMessage({sourceName:o,targetName:l,stream:6,streamId:s,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,i.assert)(e instanceof Error,"cancel must have a valid reason");const t=new i.PromiseCapability;return this.streamControllers[s].cancelCall=t,this.streamControllers[s].isClosed=!0,u.postMessage({sourceName:o,targetName:l,stream:1,streamId:s,reason:r(e)}),t.promise}},n)}#ht(e){const t=e.streamId,n=this.sourceName,a=e.sourceName,s=this.comObj,o=this,l=this.actionHandler[e.action],u={enqueue(e,r=1,o){if(this.isCancelled)return;const l=this.desiredSize;this.desiredSize-=r,l>0&&this.desiredSize<=0&&(this.sinkCapability=new i.PromiseCapability,this.ready=this.sinkCapability.promise),s.postMessage({sourceName:n,targetName:a,stream:4,streamId:t,chunk:e},o)},close(){this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:n,targetName:a,stream:3,streamId:t}),delete o.streamSinks[t])},error(e){(0,i.assert)(e instanceof Error,"error must have a valid reason"),this.isCancelled||(this.isCancelled=!0,s.postMessage({sourceName:n,targetName:a,stream:5,streamId:t,reason:r(e)}))},sinkCapability:new i.PromiseCapability,onPull:null,onCancel:null,isCancelled:!1,desiredSize:e.desiredSize,ready:null};u.sinkCapability.resolve(),u.ready=u.sinkCapability.promise,this.streamSinks[t]=u,new Promise((function(t){t(l(e.data,u))})).then((function(){s.postMessage({sourceName:n,targetName:a,stream:8,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:n,targetName:a,stream:8,streamId:t,reason:r(e)})}))}#ct(e){const t=e.streamId,n=this.sourceName,a=e.sourceName,s=this.comObj,o=this.streamControllers[t],l=this.streamSinks[t];switch(e.stream){case 8:e.success?o.startCall.resolve():o.startCall.reject(r(e.reason));break;case 7:e.success?o.pullCall.resolve():o.pullCall.reject(r(e.reason));break;case 6:if(!l){s.postMessage({sourceName:n,targetName:a,stream:7,streamId:t,success:!0});break}l.desiredSize<=0&&e.desiredSize>0&&l.sinkCapability.resolve(),l.desiredSize=e.desiredSize,new Promise((function(e){e(l.onPull?.())})).then((function(){s.postMessage({sourceName:n,targetName:a,stream:7,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:n,targetName:a,stream:7,streamId:t,reason:r(e)})}));break;case 4:if((0,i.assert)(o,"enqueue should have stream controller"),o.isClosed)break;o.controller.enqueue(e.chunk);break;case 3:if((0,i.assert)(o,"close should have stream controller"),o.isClosed)break;o.isClosed=!0,o.controller.close(),this.#pt(o,t);break;case 5:(0,i.assert)(o,"error should have stream controller"),o.controller.error(r(e.reason)),this.#pt(o,t);break;case 2:e.success?o.cancelCall.resolve():o.cancelCall.reject(r(e.reason)),this.#pt(o,t);break;case 1:if(!l)break;new Promise((function(t){t(l.onCancel?.(r(e.reason)))})).then((function(){s.postMessage({sourceName:n,targetName:a,stream:2,streamId:t,success:!0})}),(function(e){s.postMessage({sourceName:n,targetName:a,stream:2,streamId:t,reason:r(e)})})),l.sinkCapability.reject(r(e.reason)),l.isCancelled=!0,delete this.streamSinks[t];break;default:throw new Error("Unexpected stream case")}}async#pt(e,t){await Promise.allSettled([e.startCall?.promise,e.pullCall?.promise,e.cancelCall?.promise]),delete this.streamControllers[t]}destroy(){this.comObj.removeEventListener("message",this._onComObjOnMessage)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var i=n(1);t.Metadata=class{#ft;#mt;constructor({parsedData:e,rawData:t}){this.#ft=e,this.#mt=t}getRaw(){return this.#mt}get(e){return this.#ft.get(e)??null}getAll(){return(0,i.objectFromMap)(this.#ft)}has(e){return this.#ft.has(e)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var i=n(1),r=n(8);const a=Symbol("INTERNAL");class s{#gt=!0;constructor(e,t){this.name=e,this.intent=t}get visible(){return this.#gt}_setVisible(e,t){e!==a&&(0,i.unreachable)("Internal method `_setVisible` called."),this.#gt=t}}t.OptionalContentConfig=class{#vt=null;#yt=new Map;#bt=null;#_t=null;constructor(e){if(this.name=null,this.creator=null,null!==e){this.name=e.name,this.creator=e.creator,this.#_t=e.order;for(const t of e.groups)this.#yt.set(t.id,new s(t.name,t.intent));if("OFF"===e.baseState)for(const e of this.#yt.values())e._setVisible(a,!1);for(const t of e.on)this.#yt.get(t)._setVisible(a,!0);for(const t of e.off)this.#yt.get(t)._setVisible(a,!1);this.#bt=this.getHash()}}#wt(e){const t=e.length;if(t<2)return!0;const n=e[0];for(let r=1;r0?(0,i.objectFromMap)(this.#yt):null}getGroup(e){return this.#yt.get(e)||null}getHash(){if(null!==this.#vt)return this.#vt;const e=new r.MurmurHash3_64;for(const[t,n]of this.#yt)e.update(`${t}:${n.visible}`);return this.#vt=e.hexdigest()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0;var i=n(1),r=n(6);t.PDFDataTransportStream=class{constructor({length:e,initialData:t,progressiveDone:n=!1,contentDispositionFilename:r=null,disableRange:a=!1,disableStream:s=!1},o){if((0,i.assert)(o,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=n,this._contentDispositionFilename=r,t?.length>0){const e=t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength?t.buffer:new Uint8Array(t).buffer;this._queuedChunks.push(e)}this._pdfDataRangeTransport=o,this._isStreamingSupported=!s,this._isRangeSupported=!a,this._contentLength=e,this._fullRequestReader=null,this._rangeReaders=[],this._pdfDataRangeTransport.addRangeListener(((e,t)=>{this._onReceiveData({begin:e,chunk:t})})),this._pdfDataRangeTransport.addProgressListener(((e,t)=>{this._onProgress({loaded:e,total:t})})),this._pdfDataRangeTransport.addProgressiveReadListener((e=>{this._onReceiveData({chunk:e})})),this._pdfDataRangeTransport.addProgressiveDoneListener((()=>{this._onProgressiveDone()})),this._pdfDataRangeTransport.transportReady()}_onReceiveData({begin:e,chunk:t}){const n=t instanceof Uint8Array&&t.byteLength===t.buffer.byteLength?t.buffer:new Uint8Array(t).buffer;if(void 0===e)this._fullRequestReader?this._fullRequestReader._enqueue(n):this._queuedChunks.push(n);else{const t=this._rangeReaders.some((function(t){return t._begin===e&&(t._enqueue(n),!0)}));(0,i.assert)(t,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(e){void 0===e.total?this._rangeReaders[0]?.onProgress?.({loaded:e.loaded}):this._fullRequestReader?.onProgress?.({loaded:e.loaded,total:e.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){const t=this._rangeReaders.indexOf(e);t>=0&&this._rangeReaders.splice(t,1)}getFullReader(){(0,i.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");const e=this._queuedChunks;return this._queuedChunks=null,new a(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new s(this,e,t);return this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const t of this._rangeReaders.slice(0))t.cancel(e);this._pdfDataRangeTransport.abort()}};class a{constructor(e,t,n=!1,i=null){this._stream=e,this._done=n||!1,this._filename=(0,r.isPdfFile)(i)?i:null,this._queuedChunks=t||[],this._loaded=0;for(const e of this._queuedChunks)this._loaded+=e.byteLength;this._requests=[],this._headersReady=Promise.resolve(),e._fullRequestReader=this,this.onProgress=null}_enqueue(e){this._done||(this._requests.length>0?this._requests.shift().resolve({value:e,done:!1}):this._queuedChunks.push(e),this._loaded+=e.byteLength)}get headersReady(){return this._headersReady}get filename(){return this._filename}get isRangeSupported(){return this._stream._isRangeSupported}get isStreamingSupported(){return this._stream._isStreamingSupported}get contentLength(){return this._stream._contentLength}async read(){if(this._queuedChunks.length>0)return{value:this._queuedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=new i.PromiseCapability;return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}progressiveDone(){this._done||(this._done=!0)}}class s{constructor(e,t,n){this._stream=e,this._begin=t,this._end=n,this._queuedChunk=null,this._requests=[],this._done=!1,this.onProgress=null}_enqueue(e){if(!this._done){if(0===this._requests.length)this._queuedChunk=e;else{this._requests.shift().resolve({value:e,done:!1});for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}this._done=!0,this._stream._removeRangeReader(this)}}get isStreamingSupported(){return!1}async read(){if(this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=new i.PromiseCapability;return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._stream._removeRangeReader(this)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0;var i=n(1),r=n(20);function a(e,t,n){return{method:"GET",headers:e,signal:n.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function s(e){const t=new Headers;for(const n in e){const i=e[n];void 0!==i&&t.append(n,i)}return t}function o(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:((0,i.warn)(`getArrayBuffer - unexpected data format: ${e}`),new Uint8Array(e).buffer)}t.PDFFetchStream=class{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,i.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new l(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=new u(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class l{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;const t=e.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=new i.PromiseCapability,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=s(this._stream.httpHeaders);const n=t.url;fetch(n,a(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,r.validateResponseStatus)(e.status))throw(0,r.createResponseStatusError)(e.status,n);this._reader=e.body.getReader(),this._headersCapability.resolve();const t=t=>e.headers.get(t),{allowRangeRequests:a,suggestedLength:s}=(0,r.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=s||this._contentLength,this._filename=(0,r.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new i.AbortException("Streaming is disabled."))})).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:o(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}}class u{constructor(e,t,n){this._stream=e,this._reader=null,this._loaded=0;const o=e.source;this._withCredentials=o.withCredentials||!1,this._readCapability=new i.PromiseCapability,this._isStreamingSupported=!o.disableStream,this._abortController=new AbortController,this._headers=s(this._stream.httpHeaders),this._headers.append("Range",`bytes=${t}-${n-1}`);const l=o.url;fetch(l,a(this._headers,this._withCredentials,this._abortController)).then((e=>{if(!(0,r.validateResponseStatus)(e.status))throw(0,r.createResponseStatusError)(e.status,l);this._readCapability.resolve(),this._reader=e.body.getReader()})).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;const{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress?.({loaded:this._loaded}),{value:o(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new i.MissingPDFException('Missing PDF "'+t+'".'):new i.UnexpectedResponseException(`Unexpected server response (${e}) while retrieving PDF "${t}".`,e)},t.extractFilenameFromHeader=function(e){const t=e("Content-Disposition");if(t){let e=(0,r.getFilenameFromContentDispositionHeader)(t);if(e.includes("%"))try{e=decodeURIComponent(e)}catch{}if((0,a.isPdfFile)(e))return e}return null},t.validateRangeRequestCapabilities=function({getResponseHeader:e,isHttp:t,rangeChunkSize:n,disableRange:i}){const r={allowRangeRequests:!1,suggestedLength:void 0},a=parseInt(e("Content-Length"),10);return Number.isInteger(a)?(r.suggestedLength=a,a<=2*n||i||!t||"bytes"!==e("Accept-Ranges")||"identity"!==(e("Content-Encoding")||"identity")||(r.allowRangeRequests=!0),r):r},t.validateResponseStatus=function(e){return 200===e||206===e};var i=n(1),r=n(21),a=n(6)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){let t=!0,n=r("filename\\*","i").exec(e);if(n){n=n[1];let e=o(n);return e=unescape(e),e=l(e),e=u(e),s(e)}if(n=function(e){const t=[];let n;const i=r("filename\\*((?!0\\d)\\d+)(\\*?)","ig");for(;null!==(n=i.exec(e));){let[,e,i,r]=n;if(e=parseInt(e,10),e in t){if(0===e)break}else t[e]=[i,r]}const a=[];for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0;var i=n(1),r=n(20);class a{constructor(e,t={}){this.url=e,this.isHttp=/^https?:/i.test(e),this.httpHeaders=this.isHttp&&t.httpHeaders||Object.create(null),this.withCredentials=t.withCredentials||!1,this.currXhrId=0,this.pendingRequests=Object.create(null)}requestRange(e,t,n){const i={begin:e,end:t};for(const e in n)i[e]=n[e];return this.request(i)}requestFull(e){return this.request(e)}request(e){const t=new XMLHttpRequest,n=this.currXhrId++,i=this.pendingRequests[n]={xhr:t};t.open("GET",this.url),t.withCredentials=this.withCredentials;for(const e in this.httpHeaders){const n=this.httpHeaders[e];void 0!==n&&t.setRequestHeader(e,n)}return this.isHttp&&"begin"in e&&"end"in e?(t.setRequestHeader("Range",`bytes=${e.begin}-${e.end-1}`),i.expectedStatus=206):i.expectedStatus=200,t.responseType="arraybuffer",e.onError&&(t.onerror=function(n){e.onError(t.status)}),t.onreadystatechange=this.onStateChange.bind(this,n),t.onprogress=this.onProgress.bind(this,n),i.onHeadersReceived=e.onHeadersReceived,i.onDone=e.onDone,i.onError=e.onError,i.onProgress=e.onProgress,t.send(null),n}onProgress(e,t){const n=this.pendingRequests[e];n&&n.onProgress?.(t)}onStateChange(e,t){const n=this.pendingRequests[e];if(!n)return;const r=n.xhr;if(r.readyState>=2&&n.onHeadersReceived&&(n.onHeadersReceived(),delete n.onHeadersReceived),4!==r.readyState)return;if(!(e in this.pendingRequests))return;if(delete this.pendingRequests[e],0===r.status&&this.isHttp)return void n.onError?.(r.status);const a=r.status||200;if((200!==a||206!==n.expectedStatus)&&a!==n.expectedStatus)return void n.onError?.(r.status);const s=function(e){const t=e.response;return"string"!=typeof t?t:(0,i.stringToBytes)(t).buffer}(r);if(206===a){const e=r.getResponseHeader("Content-Range"),t=/bytes (\d+)-(\d+)\/(\d+)/.exec(e);n.onDone({begin:parseInt(t[1],10),chunk:s})}else s?n.onDone({begin:0,chunk:s}):n.onError?.(r.status)}getRequestXhr(e){return this.pendingRequests[e].xhr}isPendingRequest(e){return e in this.pendingRequests}abortRequest(e){const t=this.pendingRequests[e].xhr;delete this.pendingRequests[e],t.abort()}}t.PDFNetworkStream=class{constructor(e){this._source=e,this._manager=new a(e.url,{httpHeaders:e.httpHeaders,withCredentials:e.withCredentials}),this._rangeChunkSize=e.rangeChunkSize,this._fullRequestReader=null,this._rangeRequestReaders=[]}_onRangeRequestReaderClosed(e){const t=this._rangeRequestReaders.indexOf(e);t>=0&&this._rangeRequestReaders.splice(t,1)}getFullReader(){return(0,i.assert)(!this._fullRequestReader,"PDFNetworkStream.getFullReader can only be called once."),this._fullRequestReader=new s(this._manager,this._source),this._fullRequestReader}getRangeReader(e,t){const n=new o(this._manager,e,t);return n.onClosed=this._onRangeRequestReaderClosed.bind(this),this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class s{constructor(e,t){this._manager=e;const n={onHeadersReceived:this._onHeadersReceived.bind(this),onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=t.url,this._fullRequestId=e.requestFull(n),this._headersReceivedCapability=new i.PromiseCapability,this._disableRange=t.disableRange||!1,this._contentLength=t.length,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!1,this._isRangeSupported=!1,this._cachedChunks=[],this._requests=[],this._done=!1,this._storedError=void 0,this._filename=null,this.onProgress=null}_onHeadersReceived(){const e=this._fullRequestId,t=this._manager.getRequestXhr(e),n=e=>t.getResponseHeader(e),{allowRangeRequests:i,suggestedLength:a}=(0,r.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});i&&(this._isRangeSupported=!0),this._contentLength=a||this._contentLength,this._filename=(0,r.extractFilenameFromHeader)(n),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e&&(this._requests.length>0?this._requests.shift().resolve({value:e.chunk,done:!1}):this._cachedChunks.push(e.chunk)),this._done=!0,!(this._cachedChunks.length>0)){for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0}}_onError(e){this._storedError=(0,r.createResponseStatusError)(e,this._url),this._headersReceivedCapability.reject(this._storedError);for(const e of this._requests)e.reject(this._storedError);this._requests.length=0,this._cachedChunks.length=0}_onProgress(e){this.onProgress?.({loaded:e.loaded,total:e.lengthComputable?e.total:this._contentLength})}get filename(){return this._filename}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}get contentLength(){return this._contentLength}get headersReady(){return this._headersReceivedCapability.promise}async read(){if(this._storedError)throw this._storedError;if(this._cachedChunks.length>0)return{value:this._cachedChunks.shift(),done:!1};if(this._done)return{value:void 0,done:!0};const e=new i.PromiseCapability;return this._requests.push(e),e.promise}cancel(e){this._done=!0,this._headersReceivedCapability.reject(e);for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._fullRequestId)&&this._manager.abortRequest(this._fullRequestId),this._fullRequestReader=null}}class o{constructor(e,t,n){this._manager=e;const i={onDone:this._onDone.bind(this),onError:this._onError.bind(this),onProgress:this._onProgress.bind(this)};this._url=e.url,this._requestId=e.requestRange(t,n,i),this._requests=[],this._queuedChunk=null,this._done=!1,this._storedError=void 0,this.onProgress=null,this.onClosed=null}_close(){this.onClosed?.(this)}_onDone(e){const t=e.chunk;this._requests.length>0?this._requests.shift().resolve({value:t,done:!1}):this._queuedChunk=t,this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._close()}_onError(e){this._storedError=(0,r.createResponseStatusError)(e,this._url);for(const e of this._requests)e.reject(this._storedError);this._requests.length=0,this._queuedChunk=null}_onProgress(e){this.isStreamingSupported||this.onProgress?.({loaded:e.loaded})}get isStreamingSupported(){return!1}async read(){if(this._storedError)throw this._storedError;if(null!==this._queuedChunk){const e=this._queuedChunk;return this._queuedChunk=null,{value:e,done:!1}}if(this._done)return{value:void 0,done:!0};const e=new i.PromiseCapability;return this._requests.push(e),e.promise}cancel(e){this._done=!0;for(const e of this._requests)e.resolve({value:void 0,done:!0});this._requests.length=0,this._manager.isPendingRequest(this._requestId)&&this._manager.abortRequest(this._requestId),this._close()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0;var i=n(1),r=n(20);const a=/^file:\/\/\/[a-zA-Z]:\//;t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){const t=__webpack_require__(66671),n=t.parse(e);return"file:"===n.protocol||n.host?n:/^[a-z]:[/\\]/i.test(e)?t.parse(`file:///${e}`):(n.host||(n.protocol="file:"),n)}(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,i.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=this.isFsUrl?new c(this):new u(this),this._fullRequestReader}getRangeReader(e,t){if(t<=this._progressiveDataLength)return null;const n=this.isFsUrl?new h(this,e,t):new d(this,e,t);return this._rangeRequestReaders.push(n),n}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class s{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;const t=e.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=new i.PromiseCapability,this._headersCapability=new i.PromiseCapability}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=new i.PromiseCapability,this.read()):(this._loaded+=e.length,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new i.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class o{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=new i.PromiseCapability;const t=e.source;this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;const e=this._readableStream.read();return null===e?(this._readCapability=new i.PromiseCapability,this.read()):(this._loaded+=e.length,this.onProgress?.({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){this._readableStream=e,e.on("readable",(()=>{this._readCapability.resolve()})),e.on("end",(()=>{e.destroy(),this._done=!0,this._readCapability.resolve()})),e.on("error",(e=>{this._error(e)})),this._storedError&&this._readableStream.destroy(this._storedError)}}function l(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class u extends s{constructor(e){super(e);const t=t=>{if(404===t.statusCode){const e=new i.MissingPDFException(`Missing PDF "${this._url}".`);return this._storedError=e,void this._headersCapability.reject(e)}this._headersCapability.resolve(),this._setReadableStream(t);const n=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:a,suggestedLength:s}=(0,r.validateRangeRequestCapabilities)({getResponseHeader:n,isHttp:e.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=a,this._contentLength=s||this._contentLength,this._filename=(0,r.extractFilenameFromHeader)(n)};if(this._request=null,"http:"===this._url.protocol){const n=__webpack_require__(97492);this._request=n.request(l(this._url,e.httpHeaders),t)}else{const n=__webpack_require__(31815);this._request=n.request(l(this._url,e.httpHeaders),t)}this._request.on("error",(e=>{this._storedError=e,this._headersCapability.reject(e)})),this._request.end()}}class d extends o{constructor(e,t,n){super(e),this._httpHeaders={};for(const t in e.httpHeaders){const n=e.httpHeaders[t];void 0!==n&&(this._httpHeaders[t]=n)}this._httpHeaders.Range=`bytes=${t}-${n-1}`;const r=e=>{if(404!==e.statusCode)this._setReadableStream(e);else{const e=new i.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=e}};if(this._request=null,"http:"===this._url.protocol){const e=__webpack_require__(97492);this._request=e.request(l(this._url,this._httpHeaders),r)}else{const e=__webpack_require__(31815);this._request=e.request(l(this._url,this._httpHeaders),r)}this._request.on("error",(e=>{this._storedError=e})),this._request.end()}}class c extends s{constructor(e){super(e);let t=decodeURIComponent(this._url.path);a.test(this._url.href)&&(t=t.replace(/^\//,""));const n=__webpack_require__(23237);n.lstat(t,((e,r)=>{if(e)return"ENOENT"===e.code&&(e=new i.MissingPDFException(`Missing PDF "${t}".`)),this._storedError=e,void this._headersCapability.reject(e);this._contentLength=r.size,this._setReadableStream(n.createReadStream(t)),this._headersCapability.resolve()}))}}class h extends o{constructor(e,t,n){super(e);let i=decodeURIComponent(this._url.path);a.test(this._url.href)&&(i=i.replace(/^\//,""));const r=__webpack_require__(23237);this._setReadableStream(r.createReadStream(i,{start:t,end:n-1}))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0;var i=n(6),r=n(1);const a="normal",s="#000000",o=["butt","round","square"],l=["miter","round","bevel"],u=function(e,t="",n=!1){if(URL.createObjectURL&&"undefined"!=typeof Blob&&!n)return URL.createObjectURL(new Blob([e],{type:t}));const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let r=`data:${t};base64,`;for(let t=0,n=e.length;t>2]+i[(3&a)<<4|s>>4]+i[t+1>6:64]+i[t+2>1&2147483647:n>>1&2147483647;t[e]=n}function n(e,n,i,r){let a=r;const s=n.length;i[a]=s>>24&255,i[a+1]=s>>16&255,i[a+2]=s>>8&255,i[a+3]=255&s,a+=4,i[a]=255&e.charCodeAt(0),i[a+1]=255&e.charCodeAt(1),i[a+2]=255&e.charCodeAt(2),i[a+3]=255&e.charCodeAt(3),a+=4,i.set(n,a),a+=n.length;const o=function(e,n,i){let r=-1;for(let a=n;a>>8^t[n]}return~r}(i,r+4,a);i[a]=o>>24&255,i[a+1]=o>>16&255,i[a+2]=o>>8&255,i[a+3]=255&o}function i(e){let t=e.length;const n=65535,i=Math.ceil(t/n),r=new Uint8Array(2+t+5*i+4);let a=0;r[a++]=120,r[a++]=156;let s=0;for(;t>n;)r[a++]=0,r[a++]=255,r[a++]=255,r[a++]=0,r[a++]=0,r.set(e.subarray(s,s+n),a),a+=n,s+=n,t-=n;r[a++]=1,r[a++]=255&t,r[a++]=t>>8&255,r[a++]=255&~t,r[a++]=(65535&~t)>>8&255,r.set(e.subarray(s),a),a+=e.length-s;const o=function(e,t,n){let i=1,r=0;for(let t=0;t>24&255,r[a++]=o>>16&255,r[a++]=o>>8&255,r[a++]=255&o,r}return function(t,a,s){return function(t,a,s,o){const l=t.width,d=t.height;let c,h,p;const f=t.data;switch(a){case r.ImageKind.GRAYSCALE_1BPP:h=0,c=1,p=l+7>>3;break;case r.ImageKind.RGB_24BPP:h=2,c=8,p=3*l;break;case r.ImageKind.RGBA_32BPP:h=6,c=8,p=4*l;break;default:throw new Error("invalid format")}const m=new Uint8Array((1+p)*d);let g=0,v=0;for(let e=0;e>24&255,l>>16&255,l>>8&255,255&l,d>>24&255,d>>16&255,d>>8&255,255&d,c,h,0,0,0]),b=function(e){if(!r.isNodeJS)return i(e);try{const t=parseInt(process.versions.node)>=8?e:Buffer.from(e),n=__webpack_require__(82787).deflateSync(t,{level:9});return n instanceof Uint8Array?n:new Uint8Array(n)}catch(e){(0,r.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}return i(e)}(m),_=e.length+36+y.length+b.length,w=new Uint8Array(_);let M=0;return w.set(e,M),M+=e.length,n("IHDR",y,w,M),M+=12+y.length,n("IDATA",b,w,M),M+=12+b.length,n("IEND",new Uint8Array(0),w,M),u(w,"image/png",s)}(t,void 0===t.kind?r.ImageKind.GRAYSCALE_1BPP:t.kind,a,s)}}();class c{constructor(){this.fontSizeScale=1,this.fontWeight=a,this.fontSize=0,this.textMatrix=r.IDENTITY_MATRIX,this.fontMatrix=r.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=r.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor=s,this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(e,t){this.x=e,this.y=t}}function h(e){if(Number.isInteger(e))return e.toString();const t=e.toFixed(10);let n=t.length-1;if("0"!==t[n])return t;do{n--}while("0"===t[n]);return t.substring(0,"."===t[n]?n:n+1)}function p(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":`scale(${h(e[0])} ${h(e[3])})`;if(e[0]===e[3]&&e[1]===-e[2])return`rotate(${h(180*Math.acos(e[0])/Math.PI)})`}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return`translate(${h(e[4])} ${h(e[5])})`;return`matrix(${h(e[0])} ${h(e[1])} ${h(e[2])} ${h(e[3])} ${h(e[4])} ${h(e[5])})`}let f=0,m=0,g=0;t.SVGGraphics=class{constructor(e,t,n=!1){(0,i.deprecated)("The SVG back-end is no longer maintained and *may* be removed in the future."),this.svgFactory=new i.DOMSVGFactory,this.current=new c,this.transformMatrix=r.IDENTITY_MATRIX,this.transformStack=[],this.extraStack=[],this.commonObjs=e,this.objs=t,this.pendingClip=null,this.pendingEOFill=!1,this.embedFonts=!1,this.embeddedFonts=Object.create(null),this.cssStyle=null,this.forceDataSchema=!!n,this._operatorIdMapping=[];for(const e in r.OPS)this._operatorIdMapping[r.OPS[e]]=e}getObject(e,t=null){return"string"==typeof e?e.startsWith("g_")?this.commonObjs.get(e):this.objs.get(e):t}save(){this.transformStack.push(this.transformMatrix);const e=this.current;this.extraStack.push(e),this.current=e.clone()}restore(){this.transformMatrix=this.transformStack.pop(),this.current=this.extraStack.pop(),this.pendingClip=null,this.tgrp=null}group(e){this.save(),this.executeOpTree(e),this.restore()}loadDependencies(e){const t=e.fnArray,n=e.argsArray;for(let e=0,i=t.length;e{e.get(t,n)}));this.current.dependencies.push(n)}return Promise.all(this.current.dependencies)}transform(e,t,n,i,a,s){const o=[e,t,n,i,a,s];this.transformMatrix=r.Util.transform(this.transformMatrix,o),this.tgrp=null}getSVG(e,t){this.viewport=t;const n=this._initialize(t);return this.loadDependencies(e).then((()=>(this.transformMatrix=r.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),n)))}convertOpList(e){const t=this._operatorIdMapping,n=e.argsArray,i=e.fnArray,r=[];for(let e=0,a=i.length;e0&&(this.current.lineWidth=e)}setLineCap(e){this.current.lineCap=o[e]}setLineJoin(e){this.current.lineJoin=l[e]}setMiterLimit(e){this.current.miterLimit=e}setStrokeAlpha(e){this.current.strokeAlpha=e}setStrokeRGBColor(e,t,n){this.current.strokeColor=r.Util.makeHexColor(e,t,n)}setFillAlpha(e){this.current.fillAlpha=e}setFillRGBColor(e,t,n){this.current.fillColor=r.Util.makeHexColor(e,t,n),this.current.tspan=this.svgFactory.createElement("svg:tspan"),this.current.xcoords=[],this.current.ycoords=[]}setStrokeColorN(e){this.current.strokeColor=this._makeColorN_Pattern(e)}setFillColorN(e){this.current.fillColor=this._makeColorN_Pattern(e)}shadingFill(e){const{width:t,height:n}=this.viewport,i=r.Util.inverseTransform(this.transformMatrix),[a,s,o,l]=r.Util.getAxialAlignedBoundingBox([0,0,t,n],i),u=this.svgFactory.createElement("svg:rect");u.setAttributeNS(null,"x",a),u.setAttributeNS(null,"y",s),u.setAttributeNS(null,"width",o-a),u.setAttributeNS(null,"height",l-s),u.setAttributeNS(null,"fill",this._makeShadingPattern(e)),this.current.fillAlpha<1&&u.setAttributeNS(null,"fill-opacity",this.current.fillAlpha),this._ensureTransformGroup().append(u)}_makeColorN_Pattern(e){return"TilingPattern"===e[0]?this._makeTilingPattern(e):this._makeShadingPattern(e)}_makeTilingPattern(e){const t=e[1],n=e[2],i=e[3]||r.IDENTITY_MATRIX,[a,s,o,l]=e[4],u=e[5],d=e[6],c=e[7],h="shading"+g++,[p,f,m,v]=r.Util.normalizeRect([...r.Util.applyTransform([a,s],i),...r.Util.applyTransform([o,l],i)]),[y,b]=r.Util.singularValueDecompose2dScale(i),_=u*y,w=d*b,M=this.svgFactory.createElement("svg:pattern");M.setAttributeNS(null,"id",h),M.setAttributeNS(null,"patternUnits","userSpaceOnUse"),M.setAttributeNS(null,"width",_),M.setAttributeNS(null,"height",w),M.setAttributeNS(null,"x",`${p}`),M.setAttributeNS(null,"y",`${f}`);const k=this.svg,S=this.transformMatrix,x=this.current.fillColor,L=this.current.strokeColor,C=this.svgFactory.create(m-p,v-f);if(this.svg=C,this.transformMatrix=i,2===c){const e=r.Util.makeHexColor(...t);this.current.fillColor=e,this.current.strokeColor=e}return this.executeOpTree(this.convertOpList(n)),this.svg=k,this.transformMatrix=S,this.current.fillColor=x,this.current.strokeColor=L,M.append(C.childNodes[0]),this.defs.append(M),`url(#${h})`}_makeShadingPattern(e){switch("string"==typeof e&&(e=this.objs.get(e)),e[0]){case"RadialAxial":const t="shading"+g++,n=e[3];let i;switch(e[1]){case"axial":const n=e[4],r=e[5];i=this.svgFactory.createElement("svg:linearGradient"),i.setAttributeNS(null,"id",t),i.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),i.setAttributeNS(null,"x1",n[0]),i.setAttributeNS(null,"y1",n[1]),i.setAttributeNS(null,"x2",r[0]),i.setAttributeNS(null,"y2",r[1]);break;case"radial":const a=e[4],s=e[5],o=e[6],l=e[7];i=this.svgFactory.createElement("svg:radialGradient"),i.setAttributeNS(null,"id",t),i.setAttributeNS(null,"gradientUnits","userSpaceOnUse"),i.setAttributeNS(null,"cx",s[0]),i.setAttributeNS(null,"cy",s[1]),i.setAttributeNS(null,"r",l),i.setAttributeNS(null,"fx",a[0]),i.setAttributeNS(null,"fy",a[1]),i.setAttributeNS(null,"fr",o);break;default:throw new Error(`Unknown RadialAxial type: ${e[1]}`)}for(const e of n){const t=this.svgFactory.createElement("svg:stop");t.setAttributeNS(null,"offset",e[0]),t.setAttributeNS(null,"stop-color",e[1]),i.append(t)}return this.defs.append(i),`url(#${t})`;case"Mesh":return(0,r.warn)("Unimplemented pattern Mesh"),null;case"Dummy":return"hotpink";default:throw new Error(`Unknown IR type: ${e[0]}`)}}setDash(e,t){this.current.dashArray=e,this.current.dashPhase=t}constructPath(e,t){const n=this.current;let i=n.x,a=n.y,s=[],o=0;for(const n of e)switch(0|n){case r.OPS.rectangle:i=t[o++],a=t[o++];const e=i+t[o++],n=a+t[o++];s.push("M",h(i),h(a),"L",h(e),h(a),"L",h(e),h(n),"L",h(i),h(n),"Z");break;case r.OPS.moveTo:i=t[o++],a=t[o++],s.push("M",h(i),h(a));break;case r.OPS.lineTo:i=t[o++],a=t[o++],s.push("L",h(i),h(a));break;case r.OPS.curveTo:i=t[o+4],a=t[o+5],s.push("C",h(t[o]),h(t[o+1]),h(t[o+2]),h(t[o+3]),h(i),h(a)),o+=6;break;case r.OPS.curveTo2:s.push("C",h(i),h(a),h(t[o]),h(t[o+1]),h(t[o+2]),h(t[o+3])),i=t[o+2],a=t[o+3],o+=4;break;case r.OPS.curveTo3:i=t[o+2],a=t[o+3],s.push("C",h(t[o]),h(t[o+1]),h(i),h(a),h(i),h(a)),o+=4;break;case r.OPS.closePath:s.push("Z")}s=s.join(" "),n.path&&e.length>0&&e[0]!==r.OPS.rectangle&&e[0]!==r.OPS.moveTo?s=n.path.getAttributeNS(null,"d")+s:(n.path=this.svgFactory.createElement("svg:path"),this._ensureTransformGroup().append(n.path)),n.path.setAttributeNS(null,"d",s),n.path.setAttributeNS(null,"fill","none"),n.element=n.path,n.setCurrentPoint(i,a)}endPath(){const e=this.current;if(e.path=null,!this.pendingClip)return;if(!e.element)return void(this.pendingClip=null);const t="clippath"+f++,n=this.svgFactory.createElement("svg:clipPath");n.setAttributeNS(null,"id",t),n.setAttributeNS(null,"transform",p(this.transformMatrix));const i=e.element.cloneNode(!0);if("evenodd"===this.pendingClip?i.setAttributeNS(null,"clip-rule","evenodd"):i.setAttributeNS(null,"clip-rule","nonzero"),this.pendingClip=null,n.append(i),this.defs.append(n),e.activeClipUrl){e.clipGroup=null;for(const e of this.extraStack)e.clipGroup=null;n.setAttributeNS(null,"clip-path",e.activeClipUrl)}e.activeClipUrl=`url(#${t})`,this.tgrp=null}clip(e){this.pendingClip=e}closePath(){const e=this.current;if(e.path){const t=`${e.path.getAttributeNS(null,"d")}Z`;e.path.setAttributeNS(null,"d",t)}}setLeading(e){this.current.leading=-e}setTextRise(e){this.current.textRise=e}setTextRenderingMode(e){this.current.textRenderingMode=e}setHScale(e){this.current.textHScale=e/100}setRenderingIntent(e){}setFlatness(e){}setGState(e){for(const[t,n]of e)switch(t){case"LW":this.setLineWidth(n);break;case"LC":this.setLineCap(n);break;case"LJ":this.setLineJoin(n);break;case"ML":this.setMiterLimit(n);break;case"D":this.setDash(n[0],n[1]);break;case"RI":this.setRenderingIntent(n);break;case"FL":this.setFlatness(n);break;case"Font":this.setFont(n);break;case"CA":this.setStrokeAlpha(n);break;case"ca":this.setFillAlpha(n);break;default:(0,r.warn)(`Unimplemented graphic state operator ${t}`)}}fill(){const e=this.current;e.element&&(e.element.setAttributeNS(null,"fill",e.fillColor),e.element.setAttributeNS(null,"fill-opacity",e.fillAlpha),this.endPath())}stroke(){const e=this.current;e.element&&(this._setStrokeAttributes(e.element),e.element.setAttributeNS(null,"fill","none"),this.endPath())}_setStrokeAttributes(e,t=1){const n=this.current;let i=n.dashArray;1!==t&&i.length>0&&(i=i.map((function(e){return t*e}))),e.setAttributeNS(null,"stroke",n.strokeColor),e.setAttributeNS(null,"stroke-opacity",n.strokeAlpha),e.setAttributeNS(null,"stroke-miterlimit",h(n.miterLimit)),e.setAttributeNS(null,"stroke-linecap",n.lineCap),e.setAttributeNS(null,"stroke-linejoin",n.lineJoin),e.setAttributeNS(null,"stroke-width",h(t*n.lineWidth)+"px"),e.setAttributeNS(null,"stroke-dasharray",i.map(h).join(" ")),e.setAttributeNS(null,"stroke-dashoffset",h(t*n.dashPhase)+"px")}eoFill(){this.current.element?.setAttributeNS(null,"fill-rule","evenodd"),this.fill()}fillStroke(){this.stroke(),this.fill()}eoFillStroke(){this.current.element?.setAttributeNS(null,"fill-rule","evenodd"),this.fillStroke()}closeStroke(){this.closePath(),this.stroke()}closeFillStroke(){this.closePath(),this.fillStroke()}closeEOFillStroke(){this.closePath(),this.eoFillStroke()}paintSolidColorImageMask(){const e=this.svgFactory.createElement("svg:rect");e.setAttributeNS(null,"x","0"),e.setAttributeNS(null,"y","0"),e.setAttributeNS(null,"width","1px"),e.setAttributeNS(null,"height","1px"),e.setAttributeNS(null,"fill",this.current.fillColor),this._ensureTransformGroup().append(e)}paintImageXObject(e){const t=this.getObject(e);t?this.paintInlineImageXObject(t):(0,r.warn)(`Dependent image with object ID ${e} is not ready yet`)}paintInlineImageXObject(e,t){const n=e.width,i=e.height,r=d(e,this.forceDataSchema,!!t),a=this.svgFactory.createElement("svg:rect");a.setAttributeNS(null,"x","0"),a.setAttributeNS(null,"y","0"),a.setAttributeNS(null,"width",h(n)),a.setAttributeNS(null,"height",h(i)),this.current.element=a,this.clip("nonzero");const s=this.svgFactory.createElement("svg:image");s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r),s.setAttributeNS(null,"x","0"),s.setAttributeNS(null,"y",h(-i)),s.setAttributeNS(null,"width",h(n)+"px"),s.setAttributeNS(null,"height",h(i)+"px"),s.setAttributeNS(null,"transform",`scale(${h(1/n)} ${h(-1/i)})`),t?t.append(s):this._ensureTransformGroup().append(s)}paintImageMaskXObject(e){const t=this.getObject(e.data,e);if(t.bitmap)return void(0,r.warn)("paintImageMaskXObject: ImageBitmap support is not implemented, ensure that the `isOffscreenCanvasSupported` API parameter is disabled.");const n=this.current,i=t.width,a=t.height,s=n.fillColor;n.maskId="mask"+m++;const o=this.svgFactory.createElement("svg:mask");o.setAttributeNS(null,"id",n.maskId);const l=this.svgFactory.createElement("svg:rect");l.setAttributeNS(null,"x","0"),l.setAttributeNS(null,"y","0"),l.setAttributeNS(null,"width",h(i)),l.setAttributeNS(null,"height",h(a)),l.setAttributeNS(null,"fill",s),l.setAttributeNS(null,"mask",`url(#${n.maskId})`),this.defs.append(o),this._ensureTransformGroup().append(l),this.paintInlineImageXObject(t,o)}paintFormXObjectBegin(e,t){if(Array.isArray(e)&&6===e.length&&this.transform(e[0],e[1],e[2],e[3],e[4],e[5]),t){const e=t[2]-t[0],n=t[3]-t[1],i=this.svgFactory.createElement("svg:rect");i.setAttributeNS(null,"x",t[0]),i.setAttributeNS(null,"y",t[1]),i.setAttributeNS(null,"width",h(e)),i.setAttributeNS(null,"height",h(n)),this.current.element=i,this.clip("nonzero"),this.endPath()}}paintFormXObjectEnd(){}_initialize(e){const t=this.svgFactory.create(e.width,e.height),n=this.svgFactory.createElement("svg:defs");t.append(n),this.defs=n;const i=this.svgFactory.createElement("svg:g");return i.setAttributeNS(null,"transform",p(e.transform)),t.append(i),this.svg=i,t}_ensureClipGroup(){if(!this.current.clipGroup){const e=this.svgFactory.createElement("svg:g");e.setAttributeNS(null,"clip-path",this.current.activeClipUrl),this.svg.append(e),this.current.clipGroup=e}return this.current.clipGroup}_ensureTransformGroup(){return this.tgrp||(this.tgrp=this.svgFactory.createElement("svg:g"),this.tgrp.setAttributeNS(null,"transform",p(this.transformMatrix)),this.current.activeClipUrl?this._ensureClipGroup().append(this.tgrp):this.svg.append(this.tgrp)),this.tgrp}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaText=void 0;class n{static textContent(e){const t=[],i={items:t,styles:Object.create(null)};return function e(i){if(!i)return;let r=null;const a=i.name;if("#text"===a)r=i.value;else{if(!n.shouldBuildText(a))return;i?.attributes?.textContent?r=i.attributes.textContent:i.value&&(r=i.value)}if(null!==r&&t.push({str:r}),i.children)for(const t of i.children)e(t)}(e),i}static shouldBuildText(e){return!("textarea"===e||"input"===e||"option"===e||"select"===e)}}t.XfaText=n},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerRenderTask=void 0,t.renderTextLayer=function(e){e.textContentSource||!e.textContent&&!e.textContentStream||((0,r.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),e.textContentSource=e.textContent||e.textContentStream);const{container:t,viewport:n}=e,i=getComputedStyle(t),a=i.getPropertyValue("visibility"),s=parseFloat(i.getPropertyValue("--scale-factor"));"visible"===a&&(!s||Math.abs(s-n.scale)>1e-5)&&console.error("The `--scale-factor` CSS-variable must be set, to the same value as `viewport.scale`, either on the `container`-element itself or higher up in the DOM.");const o=new d(e);return o._render(),o},t.updateTextLayer=function({container:e,viewport:t,textDivs:n,textDivProperties:i,isOffscreenCanvasSupported:a,mustRotate:s=!0,mustRescale:l=!0}){if(s&&(0,r.setLayerDimensions)(e,{rotation:t.rotation}),l){const e=o(0,a),r={prevFontSize:null,prevFontFamily:null,div:null,scale:t.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:e};for(const e of n)r.properties=i.get(e),r.div=e,u(r)}};var i=n(1),r=n(6);const a=30,s=new Map;function o(e,t){let n;if(t&&i.FeatureTest.isOffscreenCanvasSupported)n=new OffscreenCanvas(e,e).getContext("2d",{alpha:!1});else{const t=document.createElement("canvas");t.width=t.height=e,n=t.getContext("2d",{alpha:!1})}return n}function l(e,t,n){const r=document.createElement("span"),l={angle:0,canvasWidth:0,hasText:""!==t.str,hasEOL:t.hasEOL,fontSize:0};e._textDivs.push(r);const u=i.Util.transform(e._transform,t.transform);let d=Math.atan2(u[1],u[0]);const c=n[t.fontName];c.vertical&&(d+=Math.PI/2);const h=Math.hypot(u[2],u[3]),p=h*function(e,t){const n=s.get(e);if(n)return n;const i=o(a,t);i.font=`30px ${e}`;const r=i.measureText("");let l=r.fontBoundingBoxAscent,u=Math.abs(r.fontBoundingBoxDescent);if(l){const t=l/(l+u);return s.set(e,t),i.canvas.width=i.canvas.height=0,t}i.strokeStyle="red",i.clearRect(0,0,a,a),i.strokeText("g",0,0);let d=i.getImageData(0,0,a,a).data;u=0;for(let e=d.length-1-3;e>=0;e-=4)if(d[e]>0){u=Math.ceil(e/4/a);break}i.clearRect(0,0,a,a),i.strokeText("A",0,a),d=i.getImageData(0,0,a,a).data,l=0;for(let e=0,t=d.length;e0){l=a-Math.floor(e/4/a);break}if(i.canvas.width=i.canvas.height=0,l){const t=l/(l+u);return s.set(e,t),t}return s.set(e,.8),.8}(c.fontFamily,e._isOffscreenCanvasSupported);let f,m;0===d?(f=u[4],m=u[5]-p):(f=u[4]+p*Math.sin(d),m=u[5]-p*Math.cos(d));const g="calc(var(--scale-factor)*",v=r.style;e._container===e._rootContainer?(v.left=`${(100*f/e._pageWidth).toFixed(2)}%`,v.top=`${(100*m/e._pageHeight).toFixed(2)}%`):(v.left=`${g}${f.toFixed(2)}px)`,v.top=`${g}${m.toFixed(2)}px)`),v.fontSize=`${g}${h.toFixed(2)}px)`,v.fontFamily=c.fontFamily,l.fontSize=h,r.setAttribute("role","presentation"),r.textContent=t.str,r.dir=t.dir,e._fontInspectorEnabled&&(r.dataset.fontName=t.fontName),0!==d&&(l.angle=d*(180/Math.PI));let y=!1;if(t.str.length>1)y=!0;else if(" "!==t.str&&t.transform[0]!==t.transform[3]){const e=Math.abs(t.transform[0]),n=Math.abs(t.transform[3]);e!==n&&Math.max(e,n)/Math.min(e,n)>1.5&&(y=!0)}y&&(l.canvasWidth=c.vertical?t.height:t.width),e._textDivProperties.set(r,l),e._isReadableStream&&e._layoutText(r)}function u(e){const{div:t,scale:n,properties:i,ctx:r,prevFontSize:a,prevFontFamily:s}=e,{style:o}=t;let l="";if(0!==i.canvasWidth&&i.hasText){const{fontFamily:u}=o,{canvasWidth:d,fontSize:c}=i;a===c&&s===u||(r.font=`${c*n}px ${u}`,e.prevFontSize=c,e.prevFontFamily=u);const{width:h}=r.measureText(t.textContent);h>0&&(l=`scaleX(${d*n/h})`)}0!==i.angle&&(l=`rotate(${i.angle}deg) ${l}`),l.length>0&&(o.transform=l)}class d{constructor({textContentSource:e,container:t,viewport:n,textDivs:a,textDivProperties:s,textContentItemsStr:l,isOffscreenCanvasSupported:u}){this._textContentSource=e,this._isReadableStream=e instanceof ReadableStream,this._container=this._rootContainer=t,this._textDivs=a||[],this._textContentItemsStr=l||[],this._isOffscreenCanvasSupported=u,this._fontInspectorEnabled=!!globalThis.FontInspector?.enabled,this._reader=null,this._textDivProperties=s||new WeakMap,this._canceled=!1,this._capability=new i.PromiseCapability,this._layoutTextParams={prevFontSize:null,prevFontFamily:null,div:null,scale:n.scale*(globalThis.devicePixelRatio||1),properties:null,ctx:o(0,u)};const{pageWidth:d,pageHeight:c,pageX:h,pageY:p}=n.rawDims;this._transform=[1,0,0,-1,-h,p+c],this._pageWidth=d,this._pageHeight=c,(0,r.setLayerDimensions)(t,n),this._capability.promise.finally((()=>{this._layoutTextParams=null})).catch((()=>{}))}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new i.AbortException("TextLayer task cancelled.")).catch((()=>{})),this._reader=null),this._capability.reject(new i.AbortException("TextLayer task cancelled."))}_processItems(e,t){for(const n of e)if(void 0!==n.str)this._textContentItemsStr.push(n.str),l(this,n,t);else if("beginMarkedContentProps"===n.type||"beginMarkedContent"===n.type){const e=this._container;this._container=document.createElement("span"),this._container.classList.add("markedContent"),null!==n.id&&this._container.setAttribute("id",`${n.id}`),e.append(this._container)}else"endMarkedContent"===n.type&&(this._container=this._container.parentNode)}_layoutText(e){const t=this._layoutTextParams.properties=this._textDivProperties.get(e);if(this._layoutTextParams.div=e,u(this._layoutTextParams),t.hasText&&this._container.append(e),t.hasEOL){const e=document.createElement("br");e.setAttribute("role","presentation"),this._container.append(e)}}_render(){const e=new i.PromiseCapability;let t=Object.create(null);if(this._isReadableStream){const n=()=>{this._reader.read().then((({value:i,done:r})=>{r?e.resolve():(Object.assign(t,i.styles),this._processItems(i.items,t),n())}),e.reject)};this._reader=this._textContentSource.getReader(),n()}else{if(!this._textContentSource)throw new Error('No "textContentSource" parameter specified.');{const{items:t,styles:n}=this._textContentSource;this._processItems(t,n),e.resolve()}}e.promise.then((()=>{t=null,function(e){if(e._canceled)return;const t=e._textDivs,n=e._capability;if(t.length>1e5)n.resolve();else{if(!e._isReadableStream)for(const n of t)e._layoutText(n);n.resolve()}}(this)}),this._capability.reject)}}t.TextLayerRenderTask=d},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayer=void 0;var i=n(1),r=n(4),a=n(28),s=n(33),o=n(6),l=n(34);class u{#Mt;#kt=!1;#St=null;#xt=this.pointerup.bind(this);#Lt=this.pointerdown.bind(this);#Ct=new Map;#Tt=!1;#Et=!1;#At=!1;#Dt;static _initialized=!1;constructor({uiManager:e,pageIndex:t,div:n,accessibilityManager:i,annotationLayer:r,viewport:o,l10n:d}){const c=[a.FreeTextEditor,s.InkEditor,l.StampEditor];if(!u._initialized){u._initialized=!0;for(const e of c)e.initialize(d)}e.registerEditorTypes(c),this.#Dt=e,this.pageIndex=t,this.div=n,this.#Mt=i,this.#St=r,this.viewport=o,this.#Dt.addLayer(this)}get isEmpty(){return 0===this.#Ct.size}updateToolbar(e){this.#Dt.updateToolbar(e)}updateMode(e=this.#Dt.getMode()){this.#Pt(),e===i.AnnotationEditorType.INK?(this.addInkEditorIfNeeded(!1),this.disableClick()):this.enableClick(),e!==i.AnnotationEditorType.NONE&&(this.div.classList.toggle("freeTextEditing",e===i.AnnotationEditorType.FREETEXT),this.div.classList.toggle("inkEditing",e===i.AnnotationEditorType.INK),this.div.classList.toggle("stampEditing",e===i.AnnotationEditorType.STAMP),this.div.hidden=!1)}addInkEditorIfNeeded(e){if(e||this.#Dt.getMode()===i.AnnotationEditorType.INK){if(!e)for(const e of this.#Ct.values())if(e.isEmpty())return void e.setInBackground();this.#Ot({offsetX:0,offsetY:0},!1).setInBackground()}}setEditingState(e){this.#Dt.setEditingState(e)}addCommands(e){this.#Dt.addCommands(e)}enable(){this.div.style.pointerEvents="auto";const e=new Set;for(const t of this.#Ct.values())t.enableEditing(),t.annotationElementId&&e.add(t.annotationElementId);if(!this.#St)return;const t=this.#St.getEditableAnnotations();for(const n of t){if(n.hide(),this.#Dt.isDeletedAnnotationElement(n.data.id))continue;if(e.has(n.data.id))continue;const t=this.deserialize(n);t&&(this.addOrRebuild(t),t.enableEditing())}}disable(){this.#At=!0,this.div.style.pointerEvents="none";const e=new Set;for(const t of this.#Ct.values())t.disableEditing(),t.annotationElementId&&null===t.serialize()?(this.getEditableAnnotation(t.annotationElementId)?.show(),t.remove()):e.add(t.annotationElementId);if(this.#St){const t=this.#St.getEditableAnnotations();for(const n of t){const{id:t}=n.data;e.has(t)||this.#Dt.isDeletedAnnotationElement(t)||n.show()}}this.#Pt(),this.isEmpty&&(this.div.hidden=!0),this.#At=!1}getEditableAnnotation(e){return this.#St?.getEditableAnnotation(e)||null}setActiveEditor(e){this.#Dt.getActive()!==e&&this.#Dt.setActiveEditor(e)}enableClick(){this.div.addEventListener("pointerdown",this.#Lt),this.div.addEventListener("pointerup",this.#xt)}disableClick(){this.div.removeEventListener("pointerdown",this.#Lt),this.div.removeEventListener("pointerup",this.#xt)}attach(e){this.#Ct.set(e.id,e);const{annotationElementId:t}=e;t&&this.#Dt.isDeletedAnnotationElement(t)&&this.#Dt.removeDeletedAnnotationElement(e)}detach(e){this.#Ct.delete(e.id),this.#Mt?.removePointerInTextLayer(e.contentDiv),!this.#At&&e.annotationElementId&&this.#Dt.addDeletedAnnotationElement(e)}remove(e){this.detach(e),this.#Dt.removeEditor(e),e.div.contains(document.activeElement)&&setTimeout((()=>{this.#Dt.focusMainContainer()}),0),e.div.remove(),e.isAttachedToDOM=!1,this.#Et||this.addInkEditorIfNeeded(!1)}changeParent(e){e.parent!==this&&(e.annotationElementId&&(this.#Dt.addDeletedAnnotationElement(e.annotationElementId),r.AnnotationEditor.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),e.parent?.detach(e),e.setParent(this),e.div&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div)))}add(e){if(this.changeParent(e),this.#Dt.addEditor(e),this.attach(e),!e.isAttachedToDOM){const t=e.render();this.div.append(t),e.isAttachedToDOM=!0}e.fixAndSetPosition(),e.onceAdded(),this.#Dt.addToAnnotationStorage(e)}moveEditorInDOM(e){if(!e.isAttachedToDOM)return;const{activeElement:t}=document;e.div.contains(t)&&(e._focusEventsAllowed=!1,setTimeout((()=>{e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",(()=>{e._focusEventsAllowed=!0}),{once:!0}),t.focus())}),0)),e._structTreeParentId=this.#Mt?.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}addOrRebuild(e){e.needsToBeRebuilt()?e.rebuild():this.add(e)}addUndoableEditor(e){this.addCommands({cmd:()=>e._uiManager.rebuild(e),undo:()=>{e.remove()},mustExec:!1})}getNextId(){return this.#Dt.getId()}#jt(e){switch(this.#Dt.getMode()){case i.AnnotationEditorType.FREETEXT:return new a.FreeTextEditor(e);case i.AnnotationEditorType.INK:return new s.InkEditor(e);case i.AnnotationEditorType.STAMP:return new l.StampEditor(e)}return null}pasteEditor(e,t){this.#Dt.updateToolbar(e),this.#Dt.updateMode(e);const{offsetX:n,offsetY:i}=this.#It(),r=this.getNextId(),a=this.#jt({parent:this,id:r,x:n,y:i,uiManager:this.#Dt,isCentered:!0,...t});a&&this.add(a)}deserialize(e){switch(e.annotationType??e.annotationEditorType){case i.AnnotationEditorType.FREETEXT:return a.FreeTextEditor.deserialize(e,this,this.#Dt);case i.AnnotationEditorType.INK:return s.InkEditor.deserialize(e,this,this.#Dt);case i.AnnotationEditorType.STAMP:return l.StampEditor.deserialize(e,this,this.#Dt)}return null}#Ot(e,t){const n=this.getNextId(),i=this.#jt({parent:this,id:n,x:e.offsetX,y:e.offsetY,uiManager:this.#Dt,isCentered:t});return i&&this.add(i),i}#It(){const{x:e,y:t,width:n,height:i}=this.div.getBoundingClientRect(),r=Math.max(0,e),a=Math.max(0,t),s=(r+Math.min(window.innerWidth,e+n))/2-e,o=(a+Math.min(window.innerHeight,t+i))/2-t,[l,u]=this.viewport.rotation%180==0?[s,o]:[o,s];return{offsetX:l,offsetY:u}}addNewEditor(){this.#Ot(this.#It(),!0)}setSelected(e){this.#Dt.setSelected(e)}toggleSelected(e){this.#Dt.toggleSelected(e)}isSelected(e){return this.#Dt.isSelected(e)}unselect(e){this.#Dt.unselect(e)}pointerup(e){const{isMac:t}=i.FeatureTest.platform;0!==e.button||e.ctrlKey&&t||e.target===this.div&&this.#Tt&&(this.#Tt=!1,this.#kt?this.#Dt.getMode()!==i.AnnotationEditorType.STAMP?this.#Ot(e,!1):this.#Dt.unselectAll():this.#kt=!0)}pointerdown(e){if(this.#Tt)return void(this.#Tt=!1);const{isMac:t}=i.FeatureTest.platform;if(0!==e.button||e.ctrlKey&&t)return;if(e.target!==this.div)return;this.#Tt=!0;const n=this.#Dt.getActive();this.#kt=!n||n.isEmpty()}findNewParent(e,t,n){const i=this.#Dt.findParent(t,n);return null!==i&&i!==this&&(i.changeParent(e),!0)}destroy(){this.#Dt.getActive()?.parent===this&&(this.#Dt.commitOrRemove(),this.#Dt.setActiveEditor(null));for(const e of this.#Ct.values())this.#Mt?.removePointerInTextLayer(e.contentDiv),e.setParent(null),e.isAttachedToDOM=!1,e.div.remove();this.div=null,this.#Ct.clear(),this.#Dt.removeLayer(this)}#Pt(){this.#Et=!0;for(const e of this.#Ct.values())e.isEmpty()&&e.remove();this.#Et=!1}render({viewport:e}){this.viewport=e,(0,o.setLayerDimensions)(this.div,e);for(const e of this.#Dt.getEditors(this.pageIndex))this.add(e);this.updateMode()}update({viewport:e}){this.#Dt.commitOrRemove(),this.viewport=e,(0,o.setLayerDimensions)(this.div,{rotation:e.rotation}),this.updateMode()}get pageDimensions(){const{pageWidth:e,pageHeight:t}=this.viewport.rawDims;return[e,t]}}t.AnnotationEditorLayer=u},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FreeTextEditor=void 0;var i=n(1),r=n(5),a=n(4),s=n(29);class o extends a.AnnotationEditor{#Rt=this.editorDivBlur.bind(this);#Ft=this.editorDivFocus.bind(this);#Yt=this.editorDivInput.bind(this);#Vt=this.editorDivKeydown.bind(this);#Nt;#Ht="";#zt=`${this.id}-editor`;#Ut;#Bt=null;static _freeTextDefaultContent="";static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static get _keyboardManager(){const e=o.prototype,t=e=>e.isEmpty(),n=r.AnnotationEditorUIManager.TRANSLATE_SMALL,a=r.AnnotationEditorUIManager.TRANSLATE_BIG;return(0,i.shadow)(this,"_keyboardManager",new r.KeyboardManager([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],e.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],e.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],e._translateEmpty,{args:[-n,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e._translateEmpty,{args:[-a,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e._translateEmpty,{args:[n,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e._translateEmpty,{args:[a,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e._translateEmpty,{args:[0,-n],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e._translateEmpty,{args:[0,-a],checker:t}],[["ArrowDown","mac+ArrowDown"],e._translateEmpty,{args:[0,n],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e._translateEmpty,{args:[0,a],checker:t}]]))}static _type="freetext";constructor(e){super({...e,name:"freeTextEditor"}),this.#Nt=e.color||o._defaultColor||a.AnnotationEditor._defaultLineColor,this.#Ut=e.fontSize||o._defaultFontSize}static initialize(e){a.AnnotationEditor.initialize(e,{strings:["free_text2_default_content","editor_free_text2_aria_label"]});const t=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(t.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,t){switch(e){case i.AnnotationEditorParamsType.FREETEXT_SIZE:o._defaultFontSize=t;break;case i.AnnotationEditorParamsType.FREETEXT_COLOR:o._defaultColor=t}}updateParams(e,t){switch(e){case i.AnnotationEditorParamsType.FREETEXT_SIZE:this.#Wt(t);break;case i.AnnotationEditorParamsType.FREETEXT_COLOR:this.#$t(t)}}static get defaultPropertiesToUpdate(){return[[i.AnnotationEditorParamsType.FREETEXT_SIZE,o._defaultFontSize],[i.AnnotationEditorParamsType.FREETEXT_COLOR,o._defaultColor||a.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[i.AnnotationEditorParamsType.FREETEXT_SIZE,this.#Ut],[i.AnnotationEditorParamsType.FREETEXT_COLOR,this.#Nt]]}#Wt(e){const t=e=>{this.editorDiv.style.fontSize=`calc(${e}px * var(--scale-factor))`,this.translate(0,-(e-this.#Ut)*this.parentScale),this.#Ut=e,this.#qt()},n=this.#Ut;this.addCommands({cmd:()=>{t(e)},undo:()=>{t(n)},mustExec:!0,type:i.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}#$t(e){const t=this.#Nt;this.addCommands({cmd:()=>{this.#Nt=this.editorDiv.style.color=e},undo:()=>{this.#Nt=this.editorDiv.style.color=t},mustExec:!0,type:i.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}_translateEmpty(e,t){this._uiManager.translateSelectedEditors(e,t,!0)}getInitialTranslation(){const e=this.parentScale;return[-o._internalPadding*e,-(o._internalPadding+this.#Ut)*e]}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.isAttachedToDOM||this.parent.add(this)))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(i.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",this.#Vt),this.editorDiv.addEventListener("focus",this.#Ft),this.editorDiv.addEventListener("blur",this.#Rt),this.editorDiv.addEventListener("input",this.#Yt))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",this.#zt),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",this.#Vt),this.editorDiv.removeEventListener("focus",this.#Ft),this.editorDiv.removeEventListener("blur",this.#Rt),this.editorDiv.removeEventListener("input",this.#Yt),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}focusin(e){this._focusEventsAllowed&&(super.focusin(e),e.target!==this.editorDiv&&this.editorDiv.focus())}onceAdded(){this.width?this.#Kt():(this.enableEditMode(),this.editorDiv.focus(),this._initialOptions?.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||""===this.editorDiv.innerText.trim()}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freeTextEditing")),super.remove()}#Gt(){const e=this.editorDiv.getElementsByTagName("div");if(0===e.length)return this.editorDiv.innerText;const t=[];for(const n of e)t.push(n.innerText.replace(/\r\n?|\n/,""));return t.join("\n")}#qt(){const[e,t]=this.parentDimensions;let n;if(this.isAttachedToDOM)n=this.div.getBoundingClientRect();else{const{currentLayer:e,div:t}=this,i=t.style.display;t.style.display="hidden",e.div.append(this.div),n=t.getBoundingClientRect(),t.remove(),t.style.display=i}this.rotation%180==this.parentRotation%180?(this.width=n.width/e,this.height=n.height/t):(this.width=n.height/e,this.height=n.width/t),this.fixAndSetPosition()}commit(){if(!this.isInEditMode())return;super.commit(),this.disableEditMode();const e=this.#Ht,t=this.#Ht=this.#Gt().trimEnd();if(e===t)return;const n=e=>{this.#Ht=e,e?(this.#Jt(),this._uiManager.rebuild(this),this.#qt()):this.remove()};this.addCommands({cmd:()=>{n(t)},undo:()=>{n(e)},mustExec:!1}),this.#qt()}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(e){this.enterInEditMode()}keydown(e){e.target===this.div&&"Enter"===e.key&&(this.enterInEditMode(),e.preventDefault())}editorDivKeydown(e){o._keyboardManager.exec(this,e)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}editorDivInput(e){this.parent.div.classList.toggle("freeTextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(this.div)return this.div;let e,t;this.width&&(e=this.x,t=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",this.#zt),this.enableEditing(),a.AnnotationEditor._l10nPromise.get("editor_free_text2_aria_label").then((e=>this.editorDiv?.setAttribute("aria-label",e))),a.AnnotationEditor._l10nPromise.get("free_text2_default_content").then((e=>this.editorDiv?.setAttribute("default-content",e))),this.editorDiv.contentEditable=!0;const{style:n}=this.editorDiv;if(n.fontSize=`calc(${this.#Ut}px * var(--scale-factor))`,n.color=this.#Nt,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,r.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[n,i]=this.parentDimensions;if(this.annotationElementId){const{position:r}=this.#Bt;let[a,s]=this.getInitialTranslation();[a,s]=this.pageTranslationToScreen(a,s);const[o,l]=this.pageDimensions,[u,d]=this.pageTranslation;let c,h;switch(this.rotation){case 0:c=e+(r[0]-u)/o,h=t+this.height-(r[1]-d)/l;break;case 90:c=e+(r[0]-u)/o,h=t-(r[1]-d)/l,[a,s]=[s,-a];break;case 180:c=e-this.width+(r[0]-u)/o,h=t-(r[1]-d)/l,[a,s]=[-a,-s];break;case 270:c=e+(r[0]-u-this.height*l)/o,h=t+(r[1]-d-this.width*o)/l,[a,s]=[-s,a]}this.setAt(c*n,h*i,a,s)}else this.setAt(e*n,t*i,this.width*n,this.height*i);this.#Jt(),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0;return this.div}#Jt(){if(this.editorDiv.replaceChildren(),this.#Ht)for(const e of this.#Ht.split("\n")){const t=document.createElement("div");t.append(e?document.createTextNode(e):document.createElement("br")),this.editorDiv.append(t)}}get contentDiv(){return this.editorDiv}static deserialize(e,t,n){let r=null;if(e instanceof s.FreeTextAnnotationElement){const{data:{defaultAppearanceData:{fontSize:t,fontColor:n},rect:a,rotation:s,id:o},textContent:l,textPosition:u,parent:{page:{pageNumber:d}}}=e;if(!l||0===l.length)return null;r=e={annotationType:i.AnnotationEditorType.FREETEXT,color:Array.from(n),fontSize:t,value:l.join("\n"),position:u,pageIndex:d-1,rect:a,rotation:s,id:o,deleted:!1}}const a=super.deserialize(e,t,n);return a.#Ut=e.fontSize,a.#Nt=i.Util.makeHexColor(...e.color),a.#Ht=e.value,a.annotationElementId=e.id||null,a.#Bt=r,a}serialize(e=!1){if(this.isEmpty())return null;if(this.deleted)return{pageIndex:this.pageIndex,id:this.annotationElementId,deleted:!0};const t=o._internalPadding*this.parentScale,n=this.getRect(t,t),r=a.AnnotationEditor._colorManager.convert(this.isAttachedToDOM?getComputedStyle(this.editorDiv).color:this.#Nt),s={annotationType:i.AnnotationEditorType.FREETEXT,color:r,fontSize:this.#Ut,value:this.#Ht,pageIndex:this.pageIndex,rect:n,rotation:this.rotation,structTreeParentId:this._structTreeParentId};return e?s:this.annotationElementId&&!this.#Xt(s)?null:(s.id=this.annotationElementId,s)}#Xt(e){const{value:t,fontSize:n,color:i,rect:r,pageIndex:a}=this.#Bt;return e.value!==t||e.fontSize!==n||e.rect.some(((e,t)=>Math.abs(e-r[t])>=1))||e.color.some(((e,t)=>e!==i[t]))||e.pageIndex!==a}#Kt(e=!1){if(!this.annotationElementId)return;if(this.#qt(),!e&&(0===this.width||0===this.height))return void setTimeout((()=>this.#Kt(!0)),0);const t=o._internalPadding*this.parentScale;this.#Bt.rect=this.getRect(t,t)}}t.FreeTextEditor=o},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StampAnnotationElement=t.InkAnnotationElement=t.FreeTextAnnotationElement=t.AnnotationLayer=void 0;var i=n(1),r=n(6),a=n(3),s=n(30),o=n(31),l=n(32);const u=1e3,d=new WeakSet;function c(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class h{static create(e){switch(e.data.annotationType){case i.AnnotationType.LINK:return new f(e);case i.AnnotationType.TEXT:return new m(e);case i.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new v(e);case"Btn":return e.data.radioButton?new _(e):e.data.checkBox?new b(e):new w(e);case"Ch":return new M(e);case"Sig":return new y(e)}return new g(e);case i.AnnotationType.POPUP:return new k(e);case i.AnnotationType.FREETEXT:return new x(e);case i.AnnotationType.LINE:return new L(e);case i.AnnotationType.SQUARE:return new C(e);case i.AnnotationType.CIRCLE:return new T(e);case i.AnnotationType.POLYLINE:return new E(e);case i.AnnotationType.CARET:return new D(e);case i.AnnotationType.INK:return new P(e);case i.AnnotationType.POLYGON:return new A(e);case i.AnnotationType.HIGHLIGHT:return new O(e);case i.AnnotationType.UNDERLINE:return new j(e);case i.AnnotationType.SQUIGGLY:return new I(e);case i.AnnotationType.STRIKEOUT:return new R(e);case i.AnnotationType.STAMP:return new F(e);case i.AnnotationType.FILEATTACHMENT:return new Y(e);default:return new p(e)}}}class p{#Zt=!1;constructor(e,{isRenderable:t=!1,ignoreBorder:n=!1,createQuadrilaterals:i=!1}={}){this.isRenderable=t,this.data=e.data,this.layer=e.layer,this.linkService=e.linkService,this.downloadManager=e.downloadManager,this.imageResourcesPath=e.imageResourcesPath,this.renderForms=e.renderForms,this.svgFactory=e.svgFactory,this.annotationStorage=e.annotationStorage,this.enableScripting=e.enableScripting,this.hasJSActions=e.hasJSActions,this._fieldObjects=e.fieldObjects,this.parent=e.parent,t&&(this.container=this._createContainer(n)),i&&this._createQuadrilaterals()}static _hasPopupData({titleObj:e,contentsObj:t,richText:n}){return!!(e?.str||t?.str||n?.str)}get hasPopupData(){return p._hasPopupData(this.data)}_createContainer(e){const{data:t,parent:{page:n,viewport:r}}=this,a=document.createElement("section");a.setAttribute("data-annotation-id",t.id),this instanceof g||(a.tabIndex=u),a.style.zIndex=this.parent.zIndex++,this.data.popupRef&&a.setAttribute("aria-haspopup","dialog"),t.noRotate&&a.classList.add("norotate");const{pageWidth:s,pageHeight:o,pageX:l,pageY:d}=r.rawDims;if(!t.rect||this instanceof k){const{rotation:e}=t;return t.hasOwnCanvas||0===e||this.setRotation(e,a),a}const{width:h,height:p}=c(t.rect),f=i.Util.normalizeRect([t.rect[0],n.view[3]-t.rect[1]+n.view[1],t.rect[2],n.view[3]-t.rect[3]+n.view[1]]);if(!e&&t.borderStyle.width>0){a.style.borderWidth=`${t.borderStyle.width}px`;const e=t.borderStyle.horizontalCornerRadius,n=t.borderStyle.verticalCornerRadius;if(e>0||n>0){const t=`calc(${e}px * var(--scale-factor)) / calc(${n}px * var(--scale-factor))`;a.style.borderRadius=t}else if(this instanceof _){const e=`calc(${h}px * var(--scale-factor)) / calc(${p}px * var(--scale-factor))`;a.style.borderRadius=e}switch(t.borderStyle.style){case i.AnnotationBorderStyleType.SOLID:a.style.borderStyle="solid";break;case i.AnnotationBorderStyleType.DASHED:a.style.borderStyle="dashed";break;case i.AnnotationBorderStyleType.BEVELED:(0,i.warn)("Unimplemented border style: beveled");break;case i.AnnotationBorderStyleType.INSET:(0,i.warn)("Unimplemented border style: inset");break;case i.AnnotationBorderStyleType.UNDERLINE:a.style.borderBottomStyle="solid"}const r=t.borderColor||null;r?(this.#Zt=!0,a.style.borderColor=i.Util.makeHexColor(0|r[0],0|r[1],0|r[2])):a.style.borderWidth=0}a.style.left=100*(f[0]-l)/s+"%",a.style.top=100*(f[1]-d)/o+"%";const{rotation:m}=t;return t.hasOwnCanvas||0===m?(a.style.width=100*h/s+"%",a.style.height=100*p/o+"%"):this.setRotation(m,a),a}setRotation(e,t=this.container){if(!this.data.rect)return;const{pageWidth:n,pageHeight:i}=this.parent.viewport.rawDims,{width:r,height:a}=c(this.data.rect);let s,o;e%180==0?(s=100*r/n,o=100*a/i):(s=100*a/n,o=100*r/i),t.style.width=`${s}%`,t.style.height=`${o}%`,t.setAttribute("data-main-rotation",(360-e)%360)}get _commonActions(){const e=(e,t,n)=>{const i=n.detail[e],r=i[0],a=i.slice(1);n.target.style[t]=s.ColorConverters[`${r}_HTML`](a),this.annotationStorage.setValue(this.data.id,{[t]:s.ColorConverters[`${r}_rgb`](a)})};return(0,i.shadow)(this,"_commonActions",{display:e=>{const{display:t}=e.detail,n=t%2==1;this.container.style.visibility=n?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:n,noPrint:1===t||2===t})},print:e=>{this.annotationStorage.setValue(this.data.id,{noPrint:!e.detail.print})},hidden:e=>{const{hidden:t}=e.detail;this.container.style.visibility=t?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:t,noView:t})},focus:e=>{setTimeout((()=>e.target.focus({preventScroll:!1})),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.target.disabled=e.detail.readonly},required:e=>{this._setRequired(e.target,e.detail.required)},bgColor:t=>{e("bgColor","backgroundColor",t)},fillColor:t=>{e("fillColor","backgroundColor",t)},fgColor:t=>{e("fgColor","color",t)},textColor:t=>{e("textColor","color",t)},borderColor:t=>{e("borderColor","borderColor",t)},strokeColor:t=>{e("strokeColor","borderColor",t)},rotation:e=>{const t=e.detail.rotation;this.setRotation(t),this.annotationStorage.setValue(this.data.id,{rotation:t})}})}_dispatchEventFromSandbox(e,t){const n=this._commonActions;for(const i of Object.keys(t.detail)){const r=e[i]||n[i];r?.(t)}}_setDefaultPropertiesFromJS(e){if(!this.enableScripting)return;const t=this.annotationStorage.getRawValue(this.data.id);if(!t)return;const n=this._commonActions;for(const[i,r]of Object.entries(t)){const a=n[i];a&&(a({detail:{[i]:r},target:e}),delete t[i])}}_createQuadrilaterals(){if(!this.container)return;const{quadPoints:e}=this.data;if(!e)return;const[t,n,i,r]=this.data.rect;if(1===e.length){const[,{x:a,y:s},{x:o,y:l}]=e[0];if(i===a&&r===s&&t===o&&n===l)return}const{style:a}=this.container;let s;if(this.#Zt){const{borderColor:e,borderWidth:t}=a;a.borderWidth=0,s=["url('data:image/svg+xml;utf8,",'',``],this.container.classList.add("hasBorder")}const o=i-t,l=r-n,{svgFactory:u}=this,d=u.createElement("svg");d.classList.add("quadrilateralsContainer"),d.setAttribute("width",0),d.setAttribute("height",0);const c=u.createElement("defs");d.append(c);const h=u.createElement("clipPath"),p=`clippath_${this.data.id}`;h.setAttribute("id",p),h.setAttribute("clipPathUnits","objectBoundingBox"),c.append(h);for(const[,{x:n,y:i},{x:a,y:d}]of e){const e=u.createElement("rect"),c=(a-t)/o,p=(r-i)/l,f=(n-a)/o,m=(i-d)/l;e.setAttribute("x",c),e.setAttribute("y",p),e.setAttribute("width",f),e.setAttribute("height",m),h.append(e),s?.push(``)}this.#Zt&&(s.push("')"),a.backgroundImage=s.join("")),this.container.append(d),this.container.style.clipPath=`url(#${p})`}_createPopup(){const{container:e,data:t}=this;e.setAttribute("aria-haspopup","dialog");const n=new k({data:{color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,parentRect:t.rect,borderStyle:0,id:`popup_${t.id}`,rotation:t.rotation},parent:this.parent,elements:[this]});this.parent.div.append(n.render())}render(){(0,i.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(e,t=null){const n=[];if(this._fieldObjects){const r=this._fieldObjects[e];if(r)for(const{page:e,id:a,exportValues:s}of r){if(-1===e)continue;if(a===t)continue;const r="string"==typeof s?s:null,o=document.querySelector(`[data-element-id="${a}"]`);!o||d.has(o)?n.push({id:a,exportValue:r,domElement:o}):(0,i.warn)(`_getElementsByName - element not allowed: ${a}`)}return n}for(const i of document.getElementsByName(e)){const{exportValue:e}=i,r=i.getAttribute("data-element-id");r!==t&&d.has(i)&&n.push({id:r,exportValue:e,domElement:i})}return n}show(){this.container&&(this.container.hidden=!1),this.popup?.maybeShow()}hide(){this.container&&(this.container.hidden=!0),this.popup?.forceHide()}getElementsToTriggerPopup(){return this.container}addHighlightArea(){const e=this.getElementsToTriggerPopup();if(Array.isArray(e))for(const t of e)t.classList.add("highlightArea");else e.classList.add("highlightArea")}_editOnDoubleClick(){const{annotationEditorType:e,data:{id:t}}=this;this.container.addEventListener("dblclick",(()=>{this.linkService.eventBus?.dispatch("switchannotationeditormode",{source:this,mode:e,editId:t})}))}}class f extends p{constructor(e,t=null){super(e,{isRenderable:!0,ignoreBorder:!!t?.ignoreBorder,createQuadrilaterals:!0}),this.isTooltipOnly=e.data.isTooltipOnly}render(){const{data:e,linkService:t}=this,n=document.createElement("a");n.setAttribute("data-element-id",e.id);let i=!1;return e.url?(t.addLinkAttributes(n,e.url,e.newWindow),i=!0):e.action?(this._bindNamedAction(n,e.action),i=!0):e.attachment?(this._bindAttachment(n,e.attachment),i=!0):e.setOCGState?(this.#Qt(n,e.setOCGState),i=!0):e.dest?(this._bindLink(n,e.dest),i=!0):(e.actions&&(e.actions.Action||e.actions["Mouse Up"]||e.actions["Mouse Down"])&&this.enableScripting&&this.hasJSActions&&(this._bindJSAction(n,e),i=!0),e.resetForm?(this._bindResetFormAction(n,e.resetForm),i=!0):this.isTooltipOnly&&!i&&(this._bindLink(n,""),i=!0)),this.container.classList.add("linkAnnotation"),i&&this.container.append(n),this.container}#en(){this.container.setAttribute("data-internal-link","")}_bindLink(e,t){e.href=this.linkService.getDestinationHash(t),e.onclick=()=>(t&&this.linkService.goToDestination(t),!1),(t||""===t)&&this.#en()}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),this.#en()}_bindAttachment(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.downloadManager?.openOrDownloadData(this.container,t.content,t.filename),!1),this.#en()}#Qt(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(t),!1),this.#en()}_bindJSAction(e,t){e.href=this.linkService.getAnchorUrl("");const n=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const i of Object.keys(t.actions)){const r=n.get(i);r&&(e[r]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t.id,name:i}}),!1))}e.onclick||(e.onclick=()=>!1),this.#en()}_bindResetFormAction(e,t){const n=e.onclick;if(n||(e.href=this.linkService.getAnchorUrl("")),this.#en(),!this._fieldObjects)return(0,i.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),void(n||(e.onclick=()=>!1));e.onclick=()=>{n?.();const{fields:e,refs:r,include:a}=t,s=[];if(0!==e.length||0!==r.length){const t=new Set(r);for(const n of e){const e=this._fieldObjects[n]||[];for(const{id:n}of e)t.add(n)}for(const e of Object.values(this._fieldObjects))for(const n of e)t.has(n.id)===a&&s.push(n)}else for(const e of Object.values(this._fieldObjects))s.push(...e);const o=this.annotationStorage,l=[];for(const e of s){const{id:t}=e;switch(l.push(t),e.type){case"text":{const n=e.defaultValue||"";o.setValue(t,{value:n});break}case"checkbox":case"radiobutton":{const n=e.defaultValue===e.exportValues;o.setValue(t,{value:n});break}case"combobox":case"listbox":{const n=e.defaultValue||"";o.setValue(t,{value:n});break}default:continue}const n=document.querySelector(`[data-element-id="${t}"]`);n&&(d.has(n)?n.dispatchEvent(new Event("resetform")):(0,i.warn)(`_bindResetFormAction - element not allowed: ${t}`))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:l,name:"ResetForm"}}),!1}}}class m extends p{constructor(e){super(e,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");const e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(e),this.container}}class g extends p{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}showElementAndHideCanvas(e){this.data.hasOwnCanvas&&("CANVAS"===e.previousSibling?.nodeName&&(e.previousSibling.hidden=!0),e.hidden=!1)}_getKeyModifier(e){const{isWin:t,isMac:n}=i.FeatureTest.platform;return t&&e.ctrlKey||n&&e.metaKey}_setEventListener(e,t,n,i,r){n.includes("mouse")?e.addEventListener(n,(e=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:r(e),shift:e.shiftKey,modifier:this._getKeyModifier(e)}})})):e.addEventListener(n,(e=>{if("blur"===n){if(!t.focused||!e.relatedTarget)return;t.focused=!1}else if("focus"===n){if(t.focused)return;t.focused=!0}r&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:r(e)}})}))}_setEventListeners(e,t,n,i){for(const[r,a]of n)("Action"===a||this.data.actions?.[a])&&("Focus"!==a&&"Blur"!==a||(t||={focused:!1}),this._setEventListener(e,t,r,a,i),"Focus"!==a||this.data.actions?.Blur?"Blur"!==a||this.data.actions?.Focus||this._setEventListener(e,t,"focus","Focus",null):this._setEventListener(e,t,"blur","Blur",null))}_setBackgroundColor(e){const t=this.data.backgroundColor||null;e.style.backgroundColor=null===t?"transparent":i.Util.makeHexColor(t[0],t[1],t[2])}_setTextStyle(e){const{fontColor:t}=this.data.defaultAppearanceData,n=this.data.defaultAppearanceData.fontSize||9,r=e.style;let a;const s=e=>Math.round(10*e)/10;if(this.data.multiLine){const e=Math.abs(this.data.rect[3]-this.data.rect[1]-2),t=e/(Math.round(e/(i.LINE_FACTOR*n))||1);a=Math.min(n,s(t/i.LINE_FACTOR))}else{const e=Math.abs(this.data.rect[3]-this.data.rect[1]-2);a=Math.min(n,s(e/i.LINE_FACTOR))}r.fontSize=`calc(${a}px * var(--scale-factor))`,r.color=i.Util.makeHexColor(t[0],t[1],t[2]),null!==this.data.textAlignment&&(r.textAlign=["left","center","right"][this.data.textAlignment])}_setRequired(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}}class v extends g{constructor(e){super(e,{isRenderable:e.renderForms||!e.data.hasAppearance&&!!e.data.fieldValue})}setPropertyOnSiblings(e,t,n,i){const r=this.annotationStorage;for(const a of this._getElementsByName(e.name,e.id))a.domElement&&(a.domElement[t]=n),r.setValue(a.id,{[i]:n})}render(){const e=this.annotationStorage,t=this.data.id;this.container.classList.add("textWidgetAnnotation");let n=null;if(this.renderForms){const i=e.getValue(t,{value:this.data.fieldValue});let r=i.value||"";const a=e.getValue(t,{charLimit:this.data.maxLen}).charLimit;a&&r.length>a&&(r=r.slice(0,a));let s=i.formattedValue||this.data.textContent?.join("\n")||null;s&&this.data.comb&&(s=s.replaceAll(/\s+/g,""));const o={userValue:r,formattedValue:s,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?(n=document.createElement("textarea"),n.textContent=s??r,this.data.doNotScroll&&(n.style.overflowY="hidden")):(n=document.createElement("input"),n.type="text",n.setAttribute("value",s??r),this.data.doNotScroll&&(n.style.overflowX="hidden")),this.data.hasOwnCanvas&&(n.hidden=!0),d.add(n),n.setAttribute("data-element-id",t),n.disabled=this.data.readOnly,n.name=this.data.fieldName,n.tabIndex=u,this._setRequired(n,this.data.required),a&&(n.maxLength=a),n.addEventListener("input",(i=>{e.setValue(t,{value:i.target.value}),this.setPropertyOnSiblings(n,"value",i.target.value,"value"),o.formattedValue=null})),n.addEventListener("resetform",(e=>{const t=this.data.defaultFieldValue??"";n.value=o.userValue=t,o.formattedValue=null}));let l=e=>{const{formattedValue:t}=o;null!=t&&(e.target.value=t),e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){n.addEventListener("focus",(e=>{if(o.focused)return;const{target:t}=e;o.userValue&&(t.value=o.userValue),o.lastCommittedValue=t.value,o.commitKey=1,o.focused=!0})),n.addEventListener("updatefromsandbox",(n=>{this.showElementAndHideCanvas(n.target);const i={value(n){o.userValue=n.detail.value??"",e.setValue(t,{value:o.userValue.toString()}),n.target.value=o.userValue},formattedValue(n){const{formattedValue:i}=n.detail;o.formattedValue=i,null!=i&&n.target!==document.activeElement&&(n.target.value=i),e.setValue(t,{formattedValue:i})},selRange(e){e.target.setSelectionRange(...e.detail.selRange)},charLimit:n=>{const{charLimit:i}=n.detail,{target:r}=n;if(0===i)return void r.removeAttribute("maxLength");r.setAttribute("maxLength",i);let a=o.userValue;!a||a.length<=i||(a=a.slice(0,i),r.value=o.userValue=a,e.setValue(t,{value:a}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:a,willCommit:!0,commitKey:1,selStart:r.selectionStart,selEnd:r.selectionEnd}}))}};this._dispatchEventFromSandbox(i,n)})),n.addEventListener("keydown",(e=>{o.commitKey=1;let n=-1;if("Escape"===e.key?n=0:"Enter"!==e.key||this.data.multiLine?"Tab"===e.key&&(o.commitKey=3):n=2,-1===n)return;const{value:i}=e.target;o.lastCommittedValue!==i&&(o.lastCommittedValue=i,o.userValue=i,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:i,willCommit:!0,commitKey:n,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))}));const i=l;l=null,n.addEventListener("blur",(e=>{if(!o.focused||!e.relatedTarget)return;o.focused=!1;const{value:n}=e.target;o.userValue=n,o.lastCommittedValue!==n&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:n,willCommit:!0,commitKey:o.commitKey,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}),i(e)})),this.data.actions?.Keystroke&&n.addEventListener("beforeinput",(e=>{o.lastCommittedValue=null;const{data:n,target:i}=e,{value:r,selectionStart:a,selectionEnd:s}=i;let l=a,u=s;switch(e.inputType){case"deleteWordBackward":{const e=r.substring(0,a).match(/\w*[^\w]*$/);e&&(l-=e[0].length);break}case"deleteWordForward":{const e=r.substring(a).match(/^[^\w]*\w*/);e&&(u+=e[0].length);break}case"deleteContentBackward":a===s&&(l-=1);break;case"deleteContentForward":a===s&&(u+=1)}e.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:r,change:n||"",willCommit:!1,selStart:l,selEnd:u}})})),this._setEventListeners(n,o,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.value))}if(l&&n.addEventListener("blur",l),this.data.comb){const e=(this.data.rect[2]-this.data.rect[0])/a;n.classList.add("comb"),n.style.letterSpacing=`calc(${e}px * var(--scale-factor) - 1ch)`}}else n=document.createElement("div"),n.textContent=this.data.fieldValue,n.style.verticalAlign="middle",n.style.display="table-cell";return this._setTextStyle(n),this._setBackgroundColor(n),this._setDefaultPropertiesFromJS(n),this.container.append(n),this.container}}class y extends g{constructor(e){super(e,{isRenderable:!!e.data.hasOwnCanvas})}}class b extends g{constructor(e){super(e,{isRenderable:e.renderForms})}render(){const e=this.annotationStorage,t=this.data,n=t.id;let i=e.getValue(n,{value:t.exportValue===t.fieldValue}).value;"string"==typeof i&&(i="Off"!==i,e.setValue(n,{value:i})),this.container.classList.add("buttonWidgetAnnotation","checkBox");const r=document.createElement("input");return d.add(r),r.setAttribute("data-element-id",n),r.disabled=t.readOnly,this._setRequired(r,this.data.required),r.type="checkbox",r.name=t.fieldName,i&&r.setAttribute("checked",!0),r.setAttribute("exportValue",t.exportValue),r.tabIndex=u,r.addEventListener("change",(i=>{const{name:r,checked:a}=i.target;for(const i of this._getElementsByName(r,n)){const n=a&&i.exportValue===t.exportValue;i.domElement&&(i.domElement.checked=n),e.setValue(i.id,{value:n})}e.setValue(n,{value:a})})),r.addEventListener("resetform",(e=>{const n=t.defaultFieldValue||"Off";e.target.checked=n===t.exportValue})),this.enableScripting&&this.hasJSActions&&(r.addEventListener("updatefromsandbox",(t=>{const i={value(t){t.target.checked="Off"!==t.detail.value,e.setValue(n,{value:t.target.checked})}};this._dispatchEventFromSandbox(i,t)})),this._setEventListeners(r,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class _ extends g{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const e=this.annotationStorage,t=this.data,n=t.id;let i=e.getValue(n,{value:t.fieldValue===t.buttonValue}).value;"string"==typeof i&&(i=i!==t.buttonValue,e.setValue(n,{value:i}));const r=document.createElement("input");if(d.add(r),r.setAttribute("data-element-id",n),r.disabled=t.readOnly,this._setRequired(r,this.data.required),r.type="radio",r.name=t.fieldName,i&&r.setAttribute("checked",!0),r.tabIndex=u,r.addEventListener("change",(t=>{const{name:i,checked:r}=t.target;for(const t of this._getElementsByName(i,n))e.setValue(t.id,{value:!1});e.setValue(n,{value:r})})),r.addEventListener("resetform",(e=>{const n=t.defaultFieldValue;e.target.checked=null!=n&&n===t.buttonValue})),this.enableScripting&&this.hasJSActions){const i=t.buttonValue;r.addEventListener("updatefromsandbox",(t=>{const r={value:t=>{const r=i===t.detail.value;for(const i of this._getElementsByName(t.target.name)){const t=r&&i.id===n;i.domElement&&(i.domElement.checked=t),e.setValue(i.id,{value:t})}}};this._dispatchEventFromSandbox(r,t)})),this._setEventListeners(r,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],(e=>e.target.checked))}return this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class w extends f{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){const e=super.render();e.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(e.title=this.data.alternativeText);const t=e.lastChild;return this.enableScripting&&this.hasJSActions&&t&&(this._setDefaultPropertiesFromJS(t),t.addEventListener("updatefromsandbox",(e=>{this._dispatchEventFromSandbox({},e)}))),e}}class M extends g{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const e=this.annotationStorage,t=this.data.id,n=e.getValue(t,{value:this.data.fieldValue}),i=document.createElement("select");d.add(i),i.setAttribute("data-element-id",t),i.disabled=this.data.readOnly,this._setRequired(i,this.data.required),i.name=this.data.fieldName,i.tabIndex=u;let r=this.data.combo&&this.data.options.length>0;this.data.combo||(i.size=this.data.options.length,this.data.multiSelect&&(i.multiple=!0)),i.addEventListener("resetform",(e=>{const t=this.data.defaultFieldValue;for(const e of i.options)e.selected=e.value===t}));for(const e of this.data.options){const t=document.createElement("option");t.textContent=e.displayValue,t.value=e.exportValue,n.value.includes(e.exportValue)&&(t.setAttribute("selected",!0),r=!1),i.append(t)}let a=null;if(r){const e=document.createElement("option");e.value=" ",e.setAttribute("hidden",!0),e.setAttribute("selected",!0),i.prepend(e),a=()=>{e.remove(),i.removeEventListener("input",a),a=null},i.addEventListener("input",a)}const s=e=>{const t=e?"value":"textContent",{options:n,multiple:r}=i;return r?Array.prototype.filter.call(n,(e=>e.selected)).map((e=>e[t])):-1===n.selectedIndex?null:n[n.selectedIndex][t]};let o=s(!1);const l=e=>{const t=e.target.options;return Array.prototype.map.call(t,(e=>({displayValue:e.textContent,exportValue:e.value})))};return this.enableScripting&&this.hasJSActions?(i.addEventListener("updatefromsandbox",(n=>{const r={value(n){a?.();const r=n.detail.value,l=new Set(Array.isArray(r)?r:[r]);for(const e of i.options)e.selected=l.has(e.value);e.setValue(t,{value:s(!0)}),o=s(!1)},multipleSelection(e){i.multiple=!0},remove(n){const r=i.options,a=n.detail.remove;r[a].selected=!1,i.remove(a),r.length>0&&-1===Array.prototype.findIndex.call(r,(e=>e.selected))&&(r[0].selected=!0),e.setValue(t,{value:s(!0),items:l(n)}),o=s(!1)},clear(n){for(;0!==i.length;)i.remove(0);e.setValue(t,{value:null,items:[]}),o=s(!1)},insert(n){const{index:r,displayValue:a,exportValue:u}=n.detail.insert,d=i.children[r],c=document.createElement("option");c.textContent=a,c.value=u,d?d.before(c):i.append(c),e.setValue(t,{value:s(!0),items:l(n)}),o=s(!1)},items(n){const{items:r}=n.detail;for(;0!==i.length;)i.remove(0);for(const e of r){const{displayValue:t,exportValue:n}=e,r=document.createElement("option");r.textContent=t,r.value=n,i.append(r)}i.options.length>0&&(i.options[0].selected=!0),e.setValue(t,{value:s(!0),items:l(n)}),o=s(!1)},indices(n){const i=new Set(n.detail.indices);for(const e of n.target.options)e.selected=i.has(e.index);e.setValue(t,{value:s(!0)}),o=s(!1)},editable(e){e.target.disabled=!e.detail.editable}};this._dispatchEventFromSandbox(r,n)})),i.addEventListener("input",(n=>{const i=s(!0);e.setValue(t,{value:i}),n.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t,name:"Keystroke",value:o,changeEx:i,willCommit:!1,commitKey:1,keyDown:!1}})})),this._setEventListeners(i,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],(e=>e.target.value))):i.addEventListener("input",(function(n){e.setValue(t,{value:s(!0)})})),this.data.combo&&this._setTextStyle(i),this._setBackgroundColor(i),this._setDefaultPropertiesFromJS(i),this.container.append(i),this.container}}class k extends p{constructor(e){const{data:t,elements:n}=e;super(e,{isRenderable:p._hasPopupData(t)}),this.elements=n}render(){this.container.classList.add("popupAnnotation");const e=new S({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),t=[];for(const n of this.elements)n.popup=e,t.push(n.data.id),n.addHighlightArea();return this.container.setAttribute("aria-controls",t.map((e=>`${i.AnnotationPrefix}${e}`)).join(",")),this.container}}class S{#tn=null;#nn=this.#in.bind(this);#rn=this.#an.bind(this);#sn=this.#on.bind(this);#ln=this.#un.bind(this);#Nt=null;#Pe=null;#dn=null;#cn=null;#hn=null;#pn=null;#fn=!1;#mn=null;#gn=null;#vn=null;#yn=null;#bn=!1;constructor({container:e,color:t,elements:n,titleObj:i,modificationDate:a,contentsObj:s,richText:o,parent:l,rect:u,parentRect:d,open:c}){this.#Pe=e,this.#yn=i,this.#dn=s,this.#vn=o,this.#hn=l,this.#Nt=t,this.#gn=u,this.#pn=d,this.#cn=n;const h=r.PDFDateString.toDateObject(a);h&&(this.#tn=l.l10n.get("annotation_date_string",{date:h.toLocaleDateString(),time:h.toLocaleTimeString()})),this.trigger=n.flatMap((e=>e.getElementsToTriggerPopup()));for(const e of this.trigger)e.addEventListener("click",this.#ln),e.addEventListener("mouseenter",this.#sn),e.addEventListener("mouseleave",this.#rn),e.classList.add("popupTriggerArea");for(const e of n)e.container?.addEventListener("keydown",this.#nn);this.#Pe.hidden=!0,c&&this.#un()}render(){if(this.#mn)return;const{page:{view:e},viewport:{rawDims:{pageWidth:t,pageHeight:n,pageX:r,pageY:a}}}=this.#hn,s=this.#mn=document.createElement("div");if(s.className="popup",this.#Nt){const e=s.style.outlineColor=i.Util.makeHexColor(...this.#Nt);if(CSS.supports("background-color","color-mix(in srgb, red 30%, white)"))s.style.backgroundColor=`color-mix(in srgb, ${e} 30%, white)`;else{const e=.7;s.style.backgroundColor=i.Util.makeHexColor(...this.#Nt.map((t=>Math.floor(e*(255-t)+t))))}}const o=document.createElement("span");o.className="header";const u=document.createElement("h1");if(o.append(u),({dir:u.dir,str:u.textContent}=this.#yn),s.append(o),this.#tn){const e=document.createElement("span");e.classList.add("popupDate"),this.#tn.then((t=>{e.textContent=t})),o.append(e)}const d=this.#dn,c=this.#vn;if(!c?.str||d?.str&&d.str!==c.str){const e=this._formatContents(d);s.append(e)}else l.XfaLayer.render({xfaHtml:c.html,intent:"richText",div:s}),s.lastChild.classList.add("richText","popupContent");let h=!!this.#pn,p=h?this.#pn:this.#gn;for(const e of this.#cn)if(!p||null!==i.Util.intersect(e.data.rect,p)){p=e.data.rect,h=!0;break}const f=i.Util.normalizeRect([p[0],e[3]-p[1]+e[1],p[2],e[3]-p[3]+e[1]]),m=h?p[2]-p[0]+5:0,g=f[0]+m,v=f[1],{style:y}=this.#Pe;y.left=100*(g-r)/t+"%",y.top=100*(v-a)/n+"%",this.#Pe.append(s)}_formatContents({str:e,dir:t}){const n=document.createElement("p");n.classList.add("popupContent"),n.dir=t;const i=e.split(/(?:\r\n?|\n)/);for(let e=0,t=i.length;e{"Enter"===e.key&&(r?e.metaKey:e.ctrlKey)&&this.#Ln()})),!t.popupRef&&this.hasPopupData?this._createPopup():n.classList.add("popupTriggerArea"),e.append(n),e}getElementsToTriggerPopup(){return this.#xn}addHighlightArea(){this.container.classList.add("highlightArea")}#Ln(){this.downloadManager?.openOrDownloadData(this.container,this.content,this.filename)}}t.AnnotationLayer=class{#Mt=null;#Cn=null;#Tn=new Map;constructor({div:e,accessibilityManager:t,annotationCanvasMap:n,l10n:i,page:r,viewport:a}){this.div=e,this.#Mt=t,this.#Cn=n,this.l10n=i,this.page=r,this.viewport=a,this.zIndex=0,this.l10n||=o.NullL10n}#En(e,t){const n=e.firstChild||e;n.id=`${i.AnnotationPrefix}${t}`,this.div.append(e),this.#Mt?.moveElementInDOM(this.div,e,n,!1)}async render(e){const{annotations:t}=e,n=this.div;(0,r.setLayerDimensions)(n,this.viewport);const s=new Map,o={data:null,layer:n,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:!1!==e.renderForms,svgFactory:new r.DOMSVGFactory,annotationStorage:e.annotationStorage||new a.AnnotationStorage,enableScripting:!0===e.enableScripting,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,parent:this,elements:null};for(const e of t){if(e.noHTML)continue;const t=e.annotationType===i.AnnotationType.POPUP;if(t){const t=s.get(e.id);if(!t)continue;o.elements=t}else{const{width:t,height:n}=c(e.rect);if(t<=0||n<=0)continue}o.data=e;const n=h.create(o);if(!n.isRenderable)continue;if(!t&&e.popupRef){const t=s.get(e.popupRef);t?t.push(n):s.set(e.popupRef,[n])}n.annotationEditorType>0&&this.#Tn.set(n.data.id,n);const r=n.render();e.hidden&&(r.style.visibility="hidden"),this.#En(r,e.id)}this.#An(),await this.l10n.translate(n)}update({viewport:e}){const t=this.div;this.viewport=e,(0,r.setLayerDimensions)(t,{rotation:e.rotation}),this.#An(),t.hidden=!1}#An(){if(!this.#Cn)return;const e=this.div;for(const[t,n]of this.#Cn){const i=e.querySelector(`[data-annotation-id="${t}"]`);if(!i)continue;const{firstChild:r}=i;r?"CANVAS"===r.nodeName?r.replaceWith(n):r.before(n):i.append(n)}this.#Cn.clear()}getEditableAnnotations(){return Array.from(this.#Tn.values())}getEditableAnnotation(e){return this.#Tn.get(e)}}},(e,t)=>{function n(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}function i(e){return Math.max(0,Math.min(255,255*e))}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0,t.ColorConverters=class{static CMYK_G([e,t,n,i]){return["G",1-Math.min(1,.3*e+.59*n+.11*t+i)]}static G_CMYK([e]){return["CMYK",0,0,0,1-e]}static G_RGB([e]){return["RGB",e,e,e]}static G_rgb([e]){return[e=i(e),e,e]}static G_HTML([e]){const t=n(e);return`#${t}${t}${t}`}static RGB_G([e,t,n]){return["G",.3*e+.59*t+.11*n]}static RGB_rgb(e){return e.map(i)}static RGB_HTML(e){return`#${e.map(n).join("")}`}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB([e,t,n,i]){return["RGB",1-Math.min(1,e+i),1-Math.min(1,n+i),1-Math.min(1,t+i)]}static CMYK_rgb([e,t,n,r]){return[i(1-Math.min(1,e+r)),i(1-Math.min(1,n+r)),i(1-Math.min(1,t+r))]}static CMYK_HTML(e){const t=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(t)}static RGB_CMYK([e,t,n]){const i=1-e,r=1-t,a=1-n;return["CMYK",i,r,a,Math.min(i,r,a)]}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NullL10n=void 0,t.getL10nFallback=i;const n={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",annotation_date_string:"{{date}}, {{time}}",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing…",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image",editor_alt_text_button_label:"Alt text",editor_alt_text_edit_button_label:"Edit alt text",editor_alt_text_decorative_tooltip:"Marked as decorative"};function i(e,t){switch(e){case"find_match_count":e=`find_match_count[${1===t.total?"one":"other"}]`;break;case"find_match_count_limit":e=`find_match_count_limit[${1===t.limit?"one":"other"}]`}return n[e]||""}n.print_progress_percent="{{progress}}%";const r={getLanguage:async()=>"en-us",getDirection:async()=>"ltr",get:async(e,t=null,n=i(e,t))=>function(e,t){return t?e.replaceAll(/\{\{\s*(\w+)\s*\}\}/g,((e,n)=>n in t?t[n]:"{{"+n+"}}")):e}(n,t),async translate(e){}};t.NullL10n=r},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0;var i=n(25);t.XfaLayer=class{static setupStorage(e,t,n,i,r){const a=i.getValue(t,{value:null});switch(n.name){case"textarea":if(null!==a.value&&(e.textContent=a.value),"print"===r)break;e.addEventListener("input",(e=>{i.setValue(t,{value:e.target.value})}));break;case"input":if("radio"===n.attributes.type||"checkbox"===n.attributes.type){if(a.value===n.attributes.xfaOn?e.setAttribute("checked",!0):a.value===n.attributes.xfaOff&&e.removeAttribute("checked"),"print"===r)break;e.addEventListener("change",(e=>{i.setValue(t,{value:e.target.checked?e.target.getAttribute("xfaOn"):e.target.getAttribute("xfaOff")})}))}else{if(null!==a.value&&e.setAttribute("value",a.value),"print"===r)break;e.addEventListener("input",(e=>{i.setValue(t,{value:e.target.value})}))}break;case"select":if(null!==a.value){e.setAttribute("value",a.value);for(const e of n.children)e.attributes.value===a.value?e.attributes.selected=!0:e.attributes.hasOwnProperty("selected")&&delete e.attributes.selected}e.addEventListener("input",(e=>{const n=e.target.options,r=-1===n.selectedIndex?"":n[n.selectedIndex].value;i.setValue(t,{value:r})}))}}static setAttributes({html:e,element:t,storage:n=null,intent:i,linkService:r}){const{attributes:a}=t,s=e instanceof HTMLAnchorElement;"radio"===a.type&&(a.name=`${a.name}-${i}`);for(const[t,n]of Object.entries(a))if(null!=n)switch(t){case"class":n.length&&e.setAttribute(t,n.join(" "));break;case"dataId":break;case"id":e.setAttribute("data-element-id",n);break;case"style":Object.assign(e.style,n);break;case"textContent":e.textContent=n;break;default:(!s||"href"!==t&&"newWindow"!==t)&&e.setAttribute(t,n)}s&&r.addLinkAttributes(e,a.href,a.newWindow),n&&a.dataId&&this.setupStorage(e,a.dataId,t,n)}static render(e){const t=e.annotationStorage,n=e.linkService,r=e.xfaHtml,a=e.intent||"display",s=document.createElement(r.name);r.attributes&&this.setAttributes({html:s,element:r,intent:a,linkService:n});const o=[[r,-1,s]],l=e.div;if(l.append(s),e.viewport){const t=`matrix(${e.viewport.transform.join(",")})`;l.style.transform=t}"richText"!==a&&l.setAttribute("class","xfaLayer xfaFont");const u=[];for(;o.length>0;){const[e,r,s]=o.at(-1);if(r+1===e.children.length){o.pop();continue}const l=e.children[++o.at(-1)[1]];if(null===l)continue;const{name:d}=l;if("#text"===d){const e=document.createTextNode(l.value);u.push(e),s.append(e);continue}const c=l?.attributes?.xmlns?document.createElementNS(l.attributes.xmlns,d):document.createElement(d);if(s.append(c),l.attributes&&this.setAttributes({html:c,element:l,storage:t,intent:a,linkService:n}),l.children&&l.children.length>0)o.push([l,-1,c]);else if(l.value){const e=document.createTextNode(l.value);i.XfaText.shouldBuildText(d)&&u.push(e),c.append(e)}}for(const e of l.querySelectorAll(".xfaNonInteractive input, .xfaNonInteractive textarea"))e.setAttribute("readOnly",!0);return{textDivs:u}}static update(e){const t=`matrix(${e.viewport.transform.join(",")})`;e.div.style.transform=t,e.div.hidden=!1}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InkEditor=void 0;var i=n(1),r=n(4),a=n(29),s=n(6),o=n(5);class l extends r.AnnotationEditor{#Dn=0;#Pn=0;#On=this.canvasPointermove.bind(this);#jn=this.canvasPointerleave.bind(this);#In=this.canvasPointerup.bind(this);#Rn=this.canvasPointerdown.bind(this);#Fn=new Path2D;#Yn=!1;#Vn=!1;#Nn=!1;#Hn=null;#zn=0;#Un=0;#Bn=null;static _defaultColor=null;static _defaultOpacity=1;static _defaultThickness=1;static _type="ink";constructor(e){super({...e,name:"inkEditor"}),this.color=e.color||null,this.thickness=e.thickness||null,this.opacity=e.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0,this._willKeepAspectRatio=!0}static initialize(e){r.AnnotationEditor.initialize(e,{strings:["editor_ink_canvas_aria_label","editor_ink2_aria_label"]})}static updateDefaultParams(e,t){switch(e){case i.AnnotationEditorParamsType.INK_THICKNESS:l._defaultThickness=t;break;case i.AnnotationEditorParamsType.INK_COLOR:l._defaultColor=t;break;case i.AnnotationEditorParamsType.INK_OPACITY:l._defaultOpacity=t/100}}updateParams(e,t){switch(e){case i.AnnotationEditorParamsType.INK_THICKNESS:this.#Wn(t);break;case i.AnnotationEditorParamsType.INK_COLOR:this.#$t(t);break;case i.AnnotationEditorParamsType.INK_OPACITY:this.#$n(t)}}static get defaultPropertiesToUpdate(){return[[i.AnnotationEditorParamsType.INK_THICKNESS,l._defaultThickness],[i.AnnotationEditorParamsType.INK_COLOR,l._defaultColor||r.AnnotationEditor._defaultLineColor],[i.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*l._defaultOpacity)]]}get propertiesToUpdate(){return[[i.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||l._defaultThickness],[i.AnnotationEditorParamsType.INK_COLOR,this.color||l._defaultColor||r.AnnotationEditor._defaultLineColor],[i.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(this.opacity??l._defaultOpacity))]]}#Wn(e){const t=this.thickness;this.addCommands({cmd:()=>{this.thickness=e,this.#qn()},undo:()=>{this.thickness=t,this.#qn()},mustExec:!0,type:i.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}#$t(e){const t=this.color;this.addCommands({cmd:()=>{this.color=e,this.#Kn()},undo:()=>{this.color=t,this.#Kn()},mustExec:!0,type:i.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}#$n(e){e/=100;const t=this.opacity;this.addCommands({cmd:()=>{this.opacity=e,this.#Kn()},undo:()=>{this.opacity=t,this.#Kn()},mustExec:!0,type:i.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}rebuild(){this.parent&&(super.rebuild(),null!==this.div&&(this.canvas||(this.#Gn(),this.#Jn()),this.isAttachedToDOM||(this.parent.add(this),this.#Xn()),this.#qn()))}remove(){null!==this.canvas&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,this.#Hn.disconnect(),this.#Hn=null,super.remove())}setParent(e){!this.parent&&e?this._uiManager.removeShouldRescale(this):this.parent&&null===e&&this._uiManager.addShouldRescale(this),super.setParent(e)}onScaleChanging(){const[e,t]=this.parentDimensions,n=this.width*e,i=this.height*t;this.setDimensions(n,i)}enableEditMode(){this.#Yn||null===this.canvas||(super.enableEditMode(),this._isDraggable=!1,this.canvas.addEventListener("pointerdown",this.#Rn))}disableEditMode(){this.isInEditMode()&&null!==this.canvas&&(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",this.#Rn))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return 0===this.paths.length||1===this.paths.length&&0===this.paths[0].length}#Zn(){const{parentRotation:e,parentDimensions:[t,n]}=this;switch(e){case 90:return[0,n,n,t];case 180:return[t,n,t,n];case 270:return[t,0,n,t];default:return[0,0,t,n]}}#Qn(){const{ctx:e,color:t,opacity:n,thickness:i,parentScale:r,scaleFactor:a}=this;e.lineWidth=i*r/a,e.lineCap="round",e.lineJoin="round",e.miterLimit=10,e.strokeStyle=`${t}${(0,o.opacityToHex)(n)}`}#ei(e,t){this.canvas.addEventListener("contextmenu",s.noContextMenu),this.canvas.addEventListener("pointerleave",this.#jn),this.canvas.addEventListener("pointermove",this.#On),this.canvas.addEventListener("pointerup",this.#In),this.canvas.removeEventListener("pointerdown",this.#Rn),this.isEditing=!0,this.#Nn||(this.#Nn=!0,this.#Xn(),this.thickness||=l._defaultThickness,this.color||=l._defaultColor||r.AnnotationEditor._defaultLineColor,this.opacity??=l._defaultOpacity),this.currentPath.push([e,t]),this.#Vn=!1,this.#Qn(),this.#Bn=()=>{this.#ti(),this.#Bn&&window.requestAnimationFrame(this.#Bn)},window.requestAnimationFrame(this.#Bn)}#ni(e,t){const[n,i]=this.currentPath.at(-1);if(this.currentPath.length>1&&e===n&&t===i)return;const r=this.currentPath;let a=this.#Fn;if(r.push([e,t]),this.#Vn=!0,r.length<=2)return a.moveTo(...r[0]),void a.lineTo(e,t);3===r.length&&(this.#Fn=a=new Path2D,a.moveTo(...r[0])),this.#ii(a,...r.at(-3),...r.at(-2),e,t)}#ri(){if(0===this.currentPath.length)return;const e=this.currentPath.at(-1);this.#Fn.lineTo(...e)}#ai(e,t){let n;if(this.#Bn=null,e=Math.min(Math.max(e,0),this.canvas.width),t=Math.min(Math.max(t,0),this.canvas.height),this.#ni(e,t),this.#ri(),1!==this.currentPath.length)n=this.#si();else{const i=[e,t];n=[[i,i.slice(),i.slice(),i]]}const i=this.#Fn,r=this.currentPath;this.currentPath=[],this.#Fn=new Path2D,this.addCommands({cmd:()=>{this.allRawPaths.push(r),this.paths.push(n),this.bezierPath2D.push(i),this.rebuild()},undo:()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),0===this.paths.length?this.remove():(this.canvas||(this.#Gn(),this.#Jn()),this.#qn())},mustExec:!0})}#ti(){if(!this.#Vn)return;this.#Vn=!1,Math.ceil(this.thickness*this.parentScale);const e=this.currentPath.slice(-3),t=e.map((e=>e[0])),n=e.map((e=>e[1])),{ctx:i}=(Math.min(...t),Math.max(...t),Math.min(...n),Math.max(...n),this);i.save(),i.clearRect(0,0,this.canvas.width,this.canvas.height);for(const e of this.bezierPath2D)i.stroke(e);i.stroke(this.#Fn),i.restore()}#ii(e,t,n,i,r,a,s){const o=(t+i)/2,l=(n+r)/2,u=(i+a)/2,d=(r+s)/2;e.bezierCurveTo(o+2*(i-o)/3,l+2*(r-l)/3,u+2*(i-u)/3,d+2*(r-d)/3,u,d)}#si(){const e=this.currentPath;if(e.length<=2)return[[e[0],e[0],e.at(-1),e.at(-1)]];const t=[];let n,[i,r]=e[0];for(n=1;n{this.canvas.removeEventListener("contextmenu",s.noContextMenu)}),10),this.#ai(e.offsetX,e.offsetY),this.addToAnnotationStorage(),this.setInBackground()}#Gn(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",r.AnnotationEditor._l10nPromise.get("editor_ink_canvas_aria_label").then((e=>this.canvas?.setAttribute("aria-label",e))),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}#Jn(){this.#Hn=new ResizeObserver((e=>{const t=e[0].contentRect;t.width&&t.height&&this.setDimensions(t.width,t.height)})),this.#Hn.observe(this.div)}get isResizable(){return!this.isEmpty()&&this.#Yn}render(){if(this.div)return this.div;let e,t;this.width&&(e=this.x,t=this.y),super.render(),r.AnnotationEditor._l10nPromise.get("editor_ink2_aria_label").then((e=>this.div?.setAttribute("aria-label",e)));const[n,i,a,s]=this.#Zn();if(this.setAt(n,i,0,0),this.setDims(a,s),this.#Gn(),this.width){const[n,i]=this.parentDimensions;this.setAspectRatio(this.width*n,this.height*i),this.setAt(e*n,t*i,this.width*n,this.height*i),this.#Nn=!0,this.#Xn(),this.setDims(this.width*n,this.height*i),this.#Kn(),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();return this.#Jn(),this.div}#Xn(){if(!this.#Nn)return;const[e,t]=this.parentDimensions;this.canvas.width=Math.ceil(this.width*e),this.canvas.height=Math.ceil(this.height*t),this.#oi()}setDimensions(e,t){const n=Math.round(e),i=Math.round(t);if(this.#zn===n&&this.#Un===i)return;this.#zn=n,this.#Un=i,this.canvas.style.visibility="hidden";const[r,a]=this.parentDimensions;this.width=e/r,this.height=t/a,this.fixAndSetPosition(),this.#Yn&&this.#ui(e,t),this.#Xn(),this.#Kn(),this.canvas.style.visibility="visible",this.fixDims()}#ui(e,t){const n=this.#di(),i=(e-n)/this.#Pn,r=(t-n)/this.#Dn;this.scaleFactor=Math.min(i,r)}#oi(){const e=this.#di()/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+e,this.translationY*this.scaleFactor+e)}static#ci(e){const t=new Path2D;for(let n=0,i=e.length;n{Object.defineProperty(t,"__esModule",{value:!0}),t.StampEditor=void 0;var i=n(1),r=n(4),a=n(6),s=n(29);class o extends r.AnnotationEditor{#gi=null;#vi=null;#yi=null;#bi=null;#_i=null;#wi=null;#Hn=null;#Mi=null;#ki=!1;#Si=!1;static _type="stamp";constructor(e){super({...e,name:"stampEditor"}),this.#bi=e.bitmapUrl,this.#_i=e.bitmapFile}static initialize(e){r.AnnotationEditor.initialize(e)}static get supportedTypes(){return(0,i.shadow)(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map((e=>`image/${e}`)))}static get supportedTypesStr(){return(0,i.shadow)(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(e){return this.supportedTypes.includes(e)}static paste(e,t){t.pasteEditor(i.AnnotationEditorType.STAMP,{bitmapFile:e.getAsFile()})}#xi(e,t=!1){e?(this.#gi=e.bitmap,t||(this.#vi=e.id,this.#ki=e.isSvg),this.#Gn()):this.remove()}#Li(){this.#yi=null,this._uiManager.enableWaiting(!1),this.#wi&&this.div.focus()}#Ci(){if(this.#vi)return this._uiManager.enableWaiting(!0),void this._uiManager.imageManager.getFromId(this.#vi).then((e=>this.#xi(e,!0))).finally((()=>this.#Li()));if(this.#bi){const e=this.#bi;return this.#bi=null,this._uiManager.enableWaiting(!0),void(this.#yi=this._uiManager.imageManager.getFromUrl(e).then((e=>this.#xi(e))).finally((()=>this.#Li())))}if(this.#_i){const e=this.#_i;return this.#_i=null,this._uiManager.enableWaiting(!0),void(this.#yi=this._uiManager.imageManager.getFromFile(e).then((e=>this.#xi(e))).finally((()=>this.#Li())))}const e=document.createElement("input");e.type="file",e.accept=o.supportedTypesStr,this.#yi=new Promise((t=>{e.addEventListener("change",(async()=>{if(e.files&&0!==e.files.length){this._uiManager.enableWaiting(!0);const t=await this._uiManager.imageManager.getFromFile(e.files[0]);this.#xi(t)}else this.remove();t()})),e.addEventListener("cancel",(()=>{this.remove(),t()}))})).finally((()=>this.#Li())),e.click()}remove(){this.#vi&&(this.#gi=null,this._uiManager.imageManager.deleteId(this.#vi),this.#wi?.remove(),this.#wi=null,this.#Hn?.disconnect(),this.#Hn=null),super.remove()}rebuild(){this.parent?(super.rebuild(),null!==this.div&&(this.#vi&&this.#Ci(),this.isAttachedToDOM||this.parent.add(this))):this.#vi&&this.#Ci()}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(this.#yi||this.#gi||this.#bi||this.#_i)}get isResizable(){return!0}render(){if(this.div)return this.div;let e,t;if(this.width&&(e=this.x,t=this.y),super.render(),this.div.hidden=!0,this.#gi?this.#Gn():this.#Ci(),this.width){const[n,i]=this.parentDimensions;this.setAt(e*n,t*i,this.width*n,this.height*i)}return this.div}#Gn(){const{div:e}=this;let{width:t,height:n}=this.#gi;const[i,r]=this.pageDimensions,a=.75;if(this.width)t=this.width*i,n=this.height*r;else if(t>a*i||n>a*r){const e=Math.min(a*i/t,a*r/n);t*=e,n*=e}const[s,o]=this.parentDimensions;this.setDims(t*s/i,n*o/r),this._uiManager.enableWaiting(!1);const l=this.#wi=document.createElement("canvas");e.append(l),e.hidden=!1,this.#Ti(t,n),this.#Jn(),this.#Si||(this.parent.addUndoableEditor(this),this.#Si=!0),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"inserted_image"}}}),this.addAltTextButton()}#Ei(e,t){const[n,i]=this.parentDimensions;this.width=e/n,this.height=t/i,this.setDims(e,t),this._initialOptions?.isCentered?this.center():this.fixAndSetPosition(),this._initialOptions=null,null!==this.#Mi&&clearTimeout(this.#Mi),this.#Mi=setTimeout((()=>{this.#Mi=null,this.#Ti(e,t)}),200)}#Ai(e,t){const{width:n,height:i}=this.#gi;let r=n,a=i,s=this.#gi;for(;r>2*e||a>2*t;){const n=r,i=a;r>2*e&&(r=r>=16384?Math.floor(r/2)-1:Math.ceil(r/2)),a>2*t&&(a=a>=16384?Math.floor(a/2)-1:Math.ceil(a/2));const o=new OffscreenCanvas(r,a);o.getContext("2d").drawImage(s,0,0,n,i,0,0,r,a),s=o.transferToImageBitmap()}return s}#Ti(e,t){e=Math.ceil(e),t=Math.ceil(t);const n=this.#wi;if(!n||n.width===e&&n.height===t)return;n.width=e,n.height=t;const i=this.#ki?this.#gi:this.#Ai(e,t),r=n.getContext("2d");r.filter=this._uiManager.hcmFilter,r.drawImage(i,0,0,i.width,i.height,0,0,e,t)}#Di(e){if(e){if(this.#ki){const e=this._uiManager.imageManager.getSvgUrl(this.#vi);if(e)return e}const e=document.createElement("canvas");return({width:e.width,height:e.height}=this.#gi),e.getContext("2d").drawImage(this.#gi,0,0),e.toDataURL()}if(this.#ki){const[e,t]=this.pageDimensions,n=Math.round(this.width*e*a.PixelsPerInch.PDF_TO_CSS_UNITS),i=Math.round(this.height*t*a.PixelsPerInch.PDF_TO_CSS_UNITS),r=new OffscreenCanvas(n,i);return r.getContext("2d").drawImage(this.#gi,0,0,this.#gi.width,this.#gi.height,0,0,n,i),r.transferToImageBitmap()}return structuredClone(this.#gi)}#Jn(){this.#Hn=new ResizeObserver((e=>{const t=e[0].contentRect;t.width&&t.height&&this.#Ei(t.width,t.height)})),this.#Hn.observe(this.div)}static deserialize(e,t,n){if(e instanceof s.StampAnnotationElement)return null;const i=super.deserialize(e,t,n),{rect:r,bitmapUrl:a,bitmapId:o,isSvg:l,accessibilityData:u}=e;o&&n.imageManager.isValidId(o)?i.#vi=o:i.#bi=a,i.#ki=l;const[d,c]=i.pageDimensions;return i.width=(r[2]-r[0])/d,i.height=(r[3]-r[1])/c,u&&(i.altTextData=u),i}serialize(e=!1,t=null){if(this.isEmpty())return null;const n={annotationType:i.AnnotationEditorType.STAMP,bitmapId:this.#vi,pageIndex:this.pageIndex,rect:this.getRect(0,0),rotation:this.rotation,isSvg:this.#ki,structTreeParentId:this._structTreeParentId};if(e)return n.bitmapUrl=this.#Di(!0),n.accessibilityData=this.altTextData,n;const{decorative:r,altText:a}=this.altTextData;if(!r&&a&&(n.accessibilityData={type:"Figure",alt:a}),null===t)return n;t.stamps||=new Map;const s=this.#ki?(n.rect[2]-n.rect[0])*(n.rect[3]-n.rect[1]):null;if(t.stamps.has(this.#vi)){if(this.#ki){const e=t.stamps.get(this.#vi);s>e.area&&(e.area=s,e.serialized.bitmap.close(),e.serialized.bitmap=this.#Di(!1))}}else t.stamps.set(this.#vi,{area:s,serialized:n}),n.bitmap=this.#Di(!1);return n}}t.StampEditor=o}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e](n,n.exports,__w_pdfjs_require__),n.exports}var __nested_webpack_exports__={};return(()=>{var e=__nested_webpack_exports__;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AbortException",{enumerable:!0,get:function(){return t.AbortException}}),Object.defineProperty(e,"AnnotationEditorLayer",{enumerable:!0,get:function(){return a.AnnotationEditorLayer}}),Object.defineProperty(e,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return t.AnnotationEditorParamsType}}),Object.defineProperty(e,"AnnotationEditorType",{enumerable:!0,get:function(){return t.AnnotationEditorType}}),Object.defineProperty(e,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return s.AnnotationEditorUIManager}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return o.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(e,"DOMSVGFactory",{enumerable:!0,get:function(){return i.DOMSVGFactory}}),Object.defineProperty(e,"FeatureTest",{enumerable:!0,get:function(){return t.FeatureTest}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return l.GlobalWorkerOptions}}),Object.defineProperty(e,"ImageKind",{enumerable:!0,get:function(){return t.ImageKind}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return n.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return i.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return n.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return i.PixelsPerInch}}),Object.defineProperty(e,"PromiseCapability",{enumerable:!0,get:function(){return t.PromiseCapability}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return i.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return n.SVGGraphics}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return u.XfaLayer}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return n.build}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return n.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return i.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return i.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return i.getXfaPageViewport}}),Object.defineProperty(e,"isDataScheme",{enumerable:!0,get:function(){return i.isDataScheme}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return i.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return i.loadScript}}),Object.defineProperty(e,"noContextMenu",{enumerable:!0,get:function(){return i.noContextMenu}}),Object.defineProperty(e,"normalizeUnicode",{enumerable:!0,get:function(){return t.normalizeUnicode}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return r.renderTextLayer}}),Object.defineProperty(e,"setLayerDimensions",{enumerable:!0,get:function(){return i.setLayerDimensions}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(e,"updateTextLayer",{enumerable:!0,get:function(){return r.updateTextLayer}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return n.version}});var t=__w_pdfjs_require__(1),n=__w_pdfjs_require__(2),i=__w_pdfjs_require__(6),r=__w_pdfjs_require__(26),a=__w_pdfjs_require__(27),s=__w_pdfjs_require__(5),o=__w_pdfjs_require__(29),l=__w_pdfjs_require__(14),u=__w_pdfjs_require__(32)})(),__nested_webpack_exports__})(),module.exports=root.pdfjsLib=factory()},80865:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=n(5623),s=n(85185),o=i(n(33670)),l=i(n(96877)),u=i(n(93019)),d=n(34600),c={New:"new",Editing:"editing",Saved:"saved",Viewing:"viewing",Removed:"removed",Draft:"draft"};class h extends o.default{static schema(...e){return o.default.schema({type:"editgrid",label:"Edit Grid",key:"editGrid",clearOnHide:!0,input:!0,tree:!0,removeRow:"Cancel",defaultOpen:!1,openWhenEmpty:!1,modal:!1,components:[],inlineEdit:!1,templates:{header:h.defaultHeaderTemplate,row:h.defaultRowTemplate,tableHeader:h.defaultTableHeaderTemplate,tableRow:h.defaultTableRowTemplate,footer:""}},...e)}static get builderInfo(){return{title:"Edit Grid",icon:"tasks",group:"data",documentation:"/userguide/form-building/data-components#edit-grid",showPreview:!1,weight:30,schema:h.schema()}}static get defaultHeaderTemplate(){return'
    \n {% util.eachComponent(components, function(component) { %}\n {% if (displayValue(component)) { %}\n
    {{ t(component.label) }}
    \n {% } %}\n {% }) %}\n
    '}static get defaultTableHeaderTemplate(){return'\n \n {% util.eachComponent(components, function(component) { %}\n {% if (!component.hasOwnProperty(\'tableView\') || component.tableView) { %}\n {{ component.label }}\n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n Actions\n {% } %}\n \n '}static get defaultRowTemplate(){return'
    \n {% util.eachComponent(components, function(component) { %}\n {% if (displayValue(component)) { %}\n
    \n {{ isVisibleInRow(component) ? getView(component, row[component.key]) : \'\'}}\n
    \n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n
    \n
    \n \n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n \n {% } %}\n
    \n
    \n {% } %}\n
    '}static get defaultTableRowTemplate(){return'\n {% util.eachComponent(components, function(component) { %}\n {% if (!component.hasOwnProperty(\'tableView\') || component.tableView) { %}\n \n {{ getView(component, row[component.key]) }}\n \n {% } %}\n {% }) %}\n {% if (!instance.options.readOnly && !instance.disabled) { %}\n \n
    \n \n {% if (!instance.hasRemoveButtons || instance.hasRemoveButtons()) { %}\n \n {% } %}\n
    \n \n {% } %}\n '}get defaultDialogTemplate(){return`\n

    ${this.t("Do you want to clear data?")}

    \n
    \n \n \n
    \n `}get defaultRowTemplate(){return this.displayAsTable?h.defaultTableRowTemplate:h.defaultRowTemplate}get defaultHeaderTemplate(){return this.displayAsTable?h.defaultTableHeaderTemplate:h.defaultHeaderTemplate}get rowTemplate(){let e;return e=d.Evaluator.noeval?this.displayAsTable?s.editgrid.tableRow:s.editgrid.row:this.displayAsTable?r.default.get(this.component,"templates.tableRow",this.defaultRowTemplate):r.default.get(this.component,"templates.row",this.defaultRowTemplate),e}get headerTemplate(){let e;return e=d.Evaluator.noeval?this.displayAsTable?s.editgrid.tableHeader:s.editgrid.header:this.displayAsTable?r.default.get(this.component,"templates.tableHeader",this.defaultHeaderTemplate):r.default.get(this.component,"templates.header",this.defaultHeaderTemplate),e}get hasScopedChildren(){return!this.inlineEditMode}get defaultSchema(){return h.schema()}get emptyValue(){return[]}get editgridKey(){return`editgrid-${this.key}`}get rowRef(){return`${this.editgridKey}-row`}get rowElements(){return this.refs[this.rowRef]}get rowRefs(){return this.refs[`editgrid-${this.component.key}-row`]}get addRowRef(){return`${this.editgridKey}-addRow`}get addRowElements(){return this.refs[this.addRowRef]}get saveRowRef(){return`${this.editgridKey}-saveRow`}get saveRowElements(){return this.refs[this.saveRowRef]}get cancelRowRef(){return`${this.editgridKey}-cancelRow`}get cancelRowElements(){return this.refs[this.cancelRowRef]}get inlineEditMode(){return this.component.inlineEdit}get saveEditMode(){return!this.inlineEditMode}get minLength(){return this.builderMode?0:r.default.get(this.component,"validate.minLength",0)}get data(){return this._data}get dataValue(){return super.dataValue||[]}set dataValue(e){super.dataValue=e}get displayAsTable(){return this.component.displayAsTable}set data(e){this._data=e;const t=this.dataValue;(this.editRows||[]).forEach(((e,n)=>{t[n]||e.state===c.New||(t[n]={});const i=t[n]||{};e.data=i,e.components.forEach((e=>{e.data=i}))}))}get iteratableRows(){return this.editRows}get defaultValue(){const e=super.defaultValue,t=Array.isArray(e)?e:[];return r.default.times(this.minLength-t.length,(()=>t.push({}))),t}constructor(...e){super(...e),this.type="editgrid"}hasRemoveButtons(){return!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&this.dataValue.length>r.default.get(this.component,"validate.minLength",0)}init(){if(this.builderMode)return this.editRows=[],super.init();this.components=this.components||[];const e=this.dataValue;if(!e.length&&this.component.openWhenEmpty){const e={};this.editRows=[],this.createRow(e,0)}else this.editRows=e.map(((e,t)=>({components:this.lazyLoad?[]:this.createRowComponents(e,t),data:e,state:c.Saved,backup:null,error:null,rowIndex:t})));this.prevHasAddButton=this.hasAddButton(),this.checkData(),this.setVariableTypeComponents(),this.variableTypeComponentsIndexes.length&&r.default.each(this.editRows||[],((e,t)=>this.checkRowVariableTypeComponents(e,t)))}checkRowVariableTypeComponents(e,t){const n=e.components;r.default.some(this.variableTypeComponentsIndexes,(e=>{const t=n[e];return t.type!==t.component.type}))&&(e.components=this.createRowComponents(e.data,t,!0))}setVariableTypeComponents(){this.variableTypeComponentsIndexes=[],r.default.each(this.component.components,((e,t)=>{e.typeChangeEnabled&&this.variableTypeComponentsIndexes.push(t)}))}isOpen(e){return[c.New,c.Editing,c.Viewing].includes(e.state)}isComponentVisibleInSomeRow(e){const t=this.editRows,n=[c.Saved,c.Editing,c.Draft],i=t.filter((e=>r.default.includes(n,e.state)));this.visibleInHeader=this.visibleInHeader||[];const a=(e,t)=>{t||r.default.remove(this.visibleInHeader,(t=>t===e.key)),t&&!r.default.includes(this.visibleInHeader,e.key)&&this.visibleInHeader.push(e.key)};if(r.default.isEmpty(t)){const t=this.createRowComponents({},0);let n;(0,d.eachComponent)(t,(t=>{t.component.key===e.key&&(n=t),t.checkConditions()}));const i=!n||n.visible;return[...this.components].forEach((e=>this.removeComponent(e,this.components))),a(e,i),i}const s=r.default.get(this.component,"openWhenEmpty")&&1===t.length&&t[0].state===c.New;return r.default.isEmpty(t)||!r.default.isEmpty(i)||s?r.default.some(s?t:i,((t,n)=>{let i;if(t.state===c.Editing)i=r.default.includes(this.visibleInHeader,e.key);else{const t=this.flattenComponents(n)[e.key];i=!t||t.visible,a(e,i)}return i})):r.default.includes(this.visibleInHeader,e.key)}render(e){if(this.builderMode)return super.render();const t=this.dataValue,n=this.headerTemplate,i=this.t.bind(this),a=this.displayAsTable?"editgridTable":"editgrid";return super.render(e||this.renderTemplate(a,{ref:{row:this.rowRef,addRow:this.addRowRef,saveRow:this.saveRowRef,cancelRow:this.cancelRowRef},header:this.renderString(n,{displayValue:e=>this.displayComponentValue(e,!0),components:this.component.components,value:t,t:i}),footer:this.renderString(r.default.get(this.component,"templates.footer"),{components:this.component.components,value:t,t:i}),rows:this.editRows.map(this.renderRow.bind(this)),openRows:this.editRows.map((e=>this.isOpen(e))),errors:this.editRows.map((e=>e.error)),hasAddButton:this.hasAddButton(),hasRemoveButtons:this.hasRemoveButtons()}))}renderComponents(e){const t=(e=e||this.getComponents()).map((e=>e.render())),n=this.displayAsTable&&this.prevHasAddButton?"tableComponents":"components";return this.renderTemplate(n,{children:t,components:e})}attach(e){if(this.builderMode)return super.attach(e);this.loadRefs(e,{[this.addRowRef]:"multiple",[this.saveRowRef]:"multiple",[this.cancelRowRef]:"multiple",[this.rowRef]:"multiple"}),this.addRowElements.forEach((e=>{this.addEventListener(e,"click",(()=>this.addRow()))}));let t=0;return this.rowElements.forEach(((e,n)=>{const i=this.editRows[n];(null==i?void 0:i.isRowSelected)&&e.classList.add("selected"),this.isOpen(i)?(this.attachComponents(e,i.components),this.addEventListener(this.saveRowElements[t],"click",(()=>this.saveRow(n,!0))),this.addEventListener(this.cancelRowElements[t],"click",(()=>this.cancelRow(n))),t++):[{className:"removeRow",event:"click",action:()=>this.removeRow(n,!0)},{className:"editRow",event:"click",action:()=>{this.editRow(n).then((()=>{var e;if(this.component.rowDrafts){const t=this.validateRow(i,!1);this.component.modal&&t.length&&(null===(e=this.root)||void 0===e?void 0:e.submitted)&&(this.alert.showErrors(t,!1),i.alerts=!0)}}))}},{className:"row",event:"click",action:()=>{e.classList.toggle("selected");let t="editGridSelectRow";Array.from(e.classList).includes("selected")?i.isRowSelected=!0:(delete i.isRowSelected,t="editGridUnSelectRow"),this.emit(t,{component:this.component,data:this.dataValue[n]})}}].forEach((({className:t,event:n,action:i})=>{const a=e.getElementsByClassName(t);Array.prototype.forEach.call(a,(e=>{this.options.pdf&&r.default.intersection(e.classList,["editRow","removeRow"]).length?e.style.display="none":this.addEventListener(e,n,i)}))}))})),t?this.addClass(this.refs.component,`formio-component-${this.component.type}-row-open`):this.removeClass(this.refs.component,`formio-component-${this.component.type}-row-open`),super.attach(e)}flattenRowDataValue(e){const t={};return Object.keys(e).forEach((n=>{r.default.isObject(e[n])&&!r.default.isNil(e[n])?Object.assign(t,this.flattenRowDataValue(e[n])):t[n]=e[n]})),t}isComponentVisibleInRow(e,t){const n=t[e.key];return!n||n.visible}displayComponentValue(e,t){return!!(e.hasOwnProperty("tableView")&&!e.tableView||!t?r.default.includes(this.visibleInHeader,e.key):this.isComponentVisibleInSomeRow(e))}renderRow(e,t){const n=this.dataValue;if(this.isOpen(e))return this.renderComponents(e.components);{const e=this.flattenComponents(t),i=this.rowTemplate;return this.renderString(i,{row:n[t]||{},data:this.data,rowIndex:t,components:this.component.components,flattenedComponents:e,displayValue:e=>this.displayComponentValue(e),isVisibleInRow:t=>this.isComponentVisibleInRow(t,e),getView:(t,n)=>{var i,r;const a=e[t.key],s=a?a.getView(n||a.dataValue):"",o=new RegExp("<(.*?)>");return"string"==typeof s&&s.length&&!(null===(i=a.component)||void 0===i?void 0:i.template)&&o.test(s)&&"html"!==(null===(r=a.component)||void 0===r?void 0:r.inputFormat)?``:s},state:this.editRows[t].state,t:this.t.bind(this)})}}eachComponent(e,t){r.default.each(this.getComponents(t),((t,n)=>{if(!1===e(t,n))return!1}))}restoreComponentsContext(){this.getComponents().forEach((e=>{var t;const n=this.dataValue[e.rowIndex],i=null===(t=this.editRows[e.rowIndex])||void 0===t?void 0:t.data;e.data=n||i}))}flattenComponents(e){const t={};return this.everyComponent((e=>{t[e.component.flattenAs||e.key]=e}),e),t}getComponents(e){var t;return this.editRows=this.editRows||[],this.builderMode?super.getComponents():r.default.isNumber(e)?(null===(t=this.editRows[e])||void 0===t?void 0:t.components)||[]:this.editRows.reduce(((e,t)=>e.concat(t.components||[])),[])}destroy(e=!1){this.calculatedValue=void 0,super.destroy(e)}destroyComponents(e=!1,t=0){if(this.builderMode)return super.destroyComponents(e);this.getComponents(t).slice().forEach((t=>this.removeComponent(t,this.components,e)))}createRow(e,t){const n={components:this.createRowComponents(e,t),data:e,state:c.New,backup:null,error:null,rowIndex:t};return this.editRows.push(n),this.inlineEditMode&&this.dataValue.push(e),n}addRow(){if(this.options.readOnly)return;const e=this.editRows.length,t=this.createRow({},e);return t.state===c.New&&(this.emptyRow=(0,d.fastCloneDeep)(t.data)),this.inlineEditMode&&this.triggerChange(),this.emit("editGridAddRow",{component:this.component,row:t}),this.processRow("checkData",null,{},t.data,t.components),this.component.modal?this.addRowModal(e):this.redraw(),t}addRowModal(e){const t=this.ce("div"),n=this.editRows[e];n.willBeSaved=!1;const{components:i}=n;t.innerHTML=this.renderComponents(i);const r=this.component.modal?this.createModal(t,{},(()=>this.showDialog(e))):void 0;return r.classList.add(`editgrid-row-modal-${this.id}`),n.dialog=r,this.alert&&(this.alert.clear(),this.alert=null),this.alert=new u.default(r.refs.dialogContents,this),this.addEventListener(r,"close",(()=>{n.willBeSaved||(this.editRows[e]&&this.editRows[e].state!==c.New&&this.editRows[e].components.forEach((e=>{e.setPristine(!0)})),this.cancelRow(e)),this.alert&&(this.alert.clear(),this.alert=null),delete n.confirmationDialog,delete n.dialog})),r.refs.dialogContents.appendChild(this.ce("button",{class:"btn btn-primary",onClick:()=>{this.component.rowDrafts||n.components.forEach((e=>e.setPristine(!1)));const t=this.validateRow(n,!0);!t.length||this.component.rowDrafts?(n.willBeSaved=!0,r.close(),this.saveRow(e,!0)):(this.alert.showErrors(t,!1),n.alerts=!0)}},this.component.saveRow||"Save")),this.attachComponents(t,i)}showDialog(e){const t=this.editRows[e];if(t.state===c.New?r.default.isEqual(this.emptyRow,t.data):r.default.isEqual(t.backup,t.data))return Promise.resolve();const n=this.ce("div",{ref:"confirmationDialog"}),i=this.component.dialogTemplate||this.defaultDialogTemplate;n.innerHTML=i,n.refs={},this.loadRefs.call(n,n,{dialogHeader:"single",dialogCancelButton:"single",dialogYesButton:"single"});const a=this.createModal(n);a.classList.add(`editgrid-row-modal-confirmation-${this.id}`);const s=e=>{e.preventDefault(),a.close()};let o;const l=new Promise(((e,t)=>{o={resolve:e,reject:t}}));return this.addEventListener(n.refs.dialogYesButton,"click",(e=>{s(e),o.resolve()})),this.addEventListener(n.refs.dialogCancelButton,"click",(e=>{s(e),o.reject()})),t.confirmationDialog=a,l}editRow(e){const t=this.editRows[e],n=t.state===c.Editing||t.state===c.New;if(!t||n)return Promise.resolve();t.prevState=t.state,t.state=this.options.readOnly?c.Viewing:c.Editing,this.lazyLoad&&0===t.components.length&&(t.components=this.createRowComponents(t.data,e));const i=(0,d.fastCloneDeep)(t.data);return this.inlineEditMode?t.backup=i:(t.backup=(0,d.fastCloneDeep)(t.data),t.data=i,this.restoreRowContext(t)),this.component.modal?this.addRowModal(e):this.redraw()}clearErrors(e){const t=this.editRows[e];t&&Array.isArray(t.components)&&t.components.forEach((e=>{e.setPristine(!0),e.setCustomValidity("")}))}cancelRow(e){if(this.options.readOnly)return;const t=this.editRows[e];switch(t.state){case c.New:t.state=c.Removed,this.clearErrors(e),this.destroyComponents(!1,e),this.inlineEditMode&&this.splice(e),this.editRows.splice(e,1),this.openWhenEmpty();break;case c.Editing:t.state=t.prevState,this.inlineEditMode&&(this.dataValue[e]=t.backup),t.data=t.backup,t.backup=null,this.restoreRowContext(t),this.clearErrors(e)}this.emit("editGridCancelRow",{instance:this,component:this.component,editRow:t}),this.checkValidity(null,!0),this.redraw(),this.component.rowDrafts&&this.checkValidity(this.data,!1)}saveRow(e,t){var n,i;const r=this.editRows[e];if(this.options.readOnly)return;this.component.rowDrafts||r.components.forEach((e=>e.setPristine(!1)));const a=this.validateRow(r,!0);if(!this.component.rowDrafts&&a.length)return!1;if(this.saveEditMode){const t=this.dataValue;switch((null===(i=null===(n=this.root)||void 0===n?void 0:n.focusedComponent)||void 0===i?void 0:i.component.typeChangeEnabled)&&(this.root.focusedComponent=null),r.state){case c.New:{const n=t.length;t.push(r.data),r.components.forEach((e=>e.rowIndex=n)),e!==n&&(this.editRows.splice(e,1),this.editRows.splice(n,0,r));break}case c.Editing:t[e]=r.data}}return r.state=this.component.rowDrafts&&a.length?c.Draft:c.Saved,r.backup=null,this.updateValue(),this.emit("editGridSaveRow",{component:this.component,row:r.data,instance:this}),this.triggerChange({modified:t,noPristineChangeOnModified:t&&this.component.rowDrafts,isolateRow:!0}),this.component.rowDrafts&&r.components.forEach((e=>e.setPristine(this.pristine))),this.checkValidity(null,!0),this.redraw(),r.alerts&&(r.alerts=!1),!0}beforeFocus(e){"beforeFocus"in this.parent&&this.parent.beforeFocus(this);const t=this.getRelativePath(e.path),n=(0,d.getArrayFromComponentPath)(t),i=n[0];let a=n[0];this.editRows.forEach(((e,t)=>{e.rowIndex===i&&(a=t)})),r.default.isNumber(a)&&this.editRow(a)}updateComponentsRowIndex(e,t){e.forEach(((e,n)=>{e.rowIndex=t,e.row=`${t}-${n}`}))}updateRowsComponents(e){this.editRows.slice(e).forEach(((t,n)=>{this.updateComponentsRowIndex(t.components,e+n)}))}baseRemoveRow(e){const t=this.editRows[e];return t.state=c.Removed,this.destroyComponents(!1,e),t}removeRow(e,t){this.options.readOnly||(this.clearErrors(e),this.baseRemoveRow(e),this.removeSubmissionMetadataRow(e),this.splice(e),this.emit("editGridDeleteRow",{index:e}),this.editRows.splice(e,1),this.openWhenEmpty(),this.updateRowsComponents(e),this.updateValue(),this.triggerChange({modified:t,noPristineChangeOnModified:t&&this.component.rowDrafts,isolateRow:!0}),this.checkValidity(null,!0),this.checkData(),this.redraw())}createRowComponents(e,t,n){if(this.components)for(let e=0;e{var o;if(n&&i&&this.variableTypeComponentsIndexes.length){const e=i[s];if(!r.default.includes(this.variableTypeComponentsIndexes,s)||(null==e?void 0:e.type)===(null===(o=null==e?void 0:e.component)||void 0===o?void 0:o.type))return e;a=e.component}const l=r.default.clone(a),u=r.default.clone(this.options);u.name+=`[${t}]`,u.row=`${t}-${s}`,u.onChange=(e={},n,i)=>{var r,a;if((null===(r=n.instance.root)||void 0===r?void 0:r.id)&&(null===(a=this.root)||void 0===a?void 0:a.id)!==n.instance.root.id?n.instance.root.triggerChange(e,n,i):this.component.modal||this.triggerRootChange(e,n,i),this.inlineEditMode)return;const s=this.editRows[t];s&&(this.processRow("checkData",null,Object.assign(Object.assign({},e),{changed:n}),s.data,s.components),this.validateRow(s,!1)),this.variableTypeComponentsIndexes.length&&(this.checkRowVariableTypeComponents(s,t),this.redraw())};const d=this.createComponent(r.default.assign({},l,{row:u.row}),u,e,null,n&&i?i[s]:null);return d.rowIndex=t,d.inEditGrid=!0,d}))}hasOpenRows(){return this.editRows.some((e=>this.isOpen(e)))}getAttachedData(e=null){const t=(0,d.fastCloneDeep)(e||this._data||this.rootValue);return r.default.set(t,this.key,this.editRows.map((e=>e.data))),t}shouldValidateDraft(e){var t,n;return e.state===c.Draft&&!this.pristine&&!(null===(t=this.root)||void 0===t?void 0:t.pristine)&&!this.hasOpenRows()||(null===(n=this.root)||void 0===n?void 0:n.submitted)}shouldValidateRow(e,t,n){return this.shouldValidateDraft(e)||e.state===c.New||e.state===c.Editing||e.alerts||n||t}validateRow(e,t,n,i){var s;if(e.errors=[],this.shouldValidateRow(e,t,i)){const i=this.component.rowDrafts&&!this.shouldValidateDraft(e)||n,s=(0,d.fastCloneDeep)(this.rootValue),o=r.default.get(s,this.path,[]);o[e.rowIndex]=e.data,r.default.set(s,this.path,o);const l=e=>this.validationProcessor(e,{dirty:t,silentCheck:i}),u=(0,a.processSync)({components:(0,d.fastCloneDeep)(this.component.components).map((t=>(t.parentPath=`${this.path}[${e.rowIndex}]`,t))),data:s,row:e.data,process:"validateRow",instances:this.componentsMap,scope:{errors:[]},processors:[{process:l,processSync:l}]}).errors;e.errors=this.component.modal||this.component.rowDrafts?u:u.filter((e=>r.default.find(this.visibleErrors,["component.id",e.component.id])))}if(this.component.validate&&this.component.validate.row){const t=this.evaluate(this.component.validate.row,{valid:0===e.length,row:e.data},"valid",!0);"true"!==t.toString()&&e.errors.push({type:"error",rowError:!0,message:t.toString()}),null===t&&e.errors.push({type:"error",message:`Invalid row validation for ${this.key}`})}return this.component.rowDrafts&&!(null===(s=this.root)||void 0===s?void 0:s.submitted)||this.showRowErrorAlerts(e,e.errors),e.errors}showRowErrorAlerts(e,t){e.alerts&&this.alert&&(t.length?(this.alert.showErrors(t,!1),e.alerts=!0):(this.alert.clear(),this.alert=null))}get processOwnValidation(){return!0}checkComponentValidity(e,t,n,i={},r=[]){var a,s;const{silentCheck:o,fromSubmission:l}=i,u=super.checkComponentValidity(e,t,n,i,r);if(!u&&!this.alert&&!this.hasOpenRows())return!1;let d=!1;const c=[];if(this.editRows.forEach(((e,n)=>{const i=this.validateRow(e,t,o,l);if(r.push(...i),c.push(...i),this.rowRefs){const t=this.rowRefs[n];if(t){const n=t.querySelector(".editgrid-row-error");if(i.length&&n&&(!this.component.rowDrafts||this.shouldValidateDraft(e))){const e=i.find((e=>e.rowError));this.addClass(n,"help-block"),n.textContent=this.t(e?e.message:this.errorMessage("invalidRowError"))}else n&&(n.textContent="",this.removeClass(n,"help-block"))}}d|=t&&this.isOpen(e)})),c.length)return o||!t&&!this.dirty||this.component.rowDrafts&&!(null===(a=this.root)||void 0===a?void 0:a.submitted)||(this.setCustomValidity(this.t(this.errorMessage("invalidRowsError")),t),this.removeClass(this.element,"has-error")),!1;if(d&&this.saveEditMode&&!this.component.openWhenEmpty)return this._errors=this.setCustomValidity(this.t(this.errorMessage("unsavedRowsError")),t),r.push(...this._errors),!1;const h=this.invalid||this.invalidMessage(e,t,!1,n);return c.length&&(null===(s=this.root)||void 0===s?void 0:s.submitted)&&!h?(this._errors=this.setCustomValidity(h,t),r.push(...this._errors),this.root.showErrors([h])):(this._errors=this.setCustomValidity(h,t),r.push(...this._errors)),u}setRowInvalid(e,t){const n=this.editRows[t],i=e.querySelector(".editgrid-row-error");!i||this.component.rowDrafts&&!this.shouldValidateDraft(n)?i&&(i.textContent=""):(this.addClass(i,"help-block"),i.textContent=this.t(this.errorMessage("invalidRowError")))}changeState(e,t){this.visible&&(e||t.resetValue&&this.component.modalEdit)?this.rebuild():this.redraw()}setValue(e,t={}){if(e||(e=this.defaultValue),!Array.isArray(e)){if("object"!=typeof e)return!1;e=[e]}const n=this.hasChanged(e,this.dataValue);this.parent&&!this.options.server&&this.parent.checkComponentConditions(),this.dataValue=e,this.dataValue.forEach(((e,n)=>{const i=this.editRows[n];i?(i.data=e,this.restoreRowContext(i,t),i.state=c.Saved,i.backup=null,i.errors=[]):this.editRows[n]={components:this.lazyLoad?[]:this.createRowComponents(e,n),data:e,state:c.Saved,backup:null,errors:[]}}));let{length:i}=this.dataValue;return this.editRows[i]&&this.editRows[i].state===c.New&&(i+=1),this.editRows.slice(i).forEach(((e,t)=>this.baseRemoveRow(i+t))),this.editRows=this.editRows.slice(0,i),this.openWhenEmpty(),this.updateOnChange(t,n),this.options.server||this.checkData(),this.changeState(n,t),n}openWhenEmpty(){const e=!this.dataValue.length&&this.component.openWhenEmpty;if(!this.editRows.length&&e&&!this.builderMode){const e={};this.createRow(e,0)}}restoreRowContext(e,t={}){e.components.forEach((n=>{n.data=e.data,this.setNestedValue(n,e.data,t)}))}emptyRows(){this.editRows.forEach(((e,t)=>this.destroyComponents(!1,t))),this.editRows=[]}resetValue(){super.resetValue(),this.emptyRows()}}t.default=h,h.prototype.hasChanged=l.default.prototype.hasChanged},80945:(e,t,n)=>{var i=n(80079),r=n(68223),a=n(53661);e.exports=function(e,t){var n=this.__data__;if(n instanceof i){var s=n.__data__;if(!r||s.length<199)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new a(s)}return n.set(e,t),this.size=n.size,this}},81018:(e,t)=>{t.defaults={},t.set=function(e,n,i){var r=i||{},a=t.defaults,s=r.expires||a.expires,o=r.domain||a.domain,l=void 0!==r.path?r.path:void 0!==a.path?a.path:"/",u=void 0!==r.secure?r.secure:a.secure,d=void 0!==r.httponly?r.httponly:a.httponly,c=void 0!==r.samesite?r.samesite:a.samesite,h=s?new Date("number"==typeof s?(new Date).getTime()+864e5*s:s):0;document.cookie=e.replace(/[^+#$&^`|]/g,encodeURIComponent).replace("(","%28").replace(")","%29")+"="+n.replace(/[^+#$&/:<-\[\]-}]/g,encodeURIComponent)+(h&&h.getTime()>=0?";expires="+h.toUTCString():"")+(o?";domain="+o:"")+(l?";path="+l:"")+(u?";secure":"")+(d?";httponly":"")+(c?";samesite="+c:"")},t.get=function(e){for(var t=document.cookie.split(";");t.length;){var n=t.pop(),i=n.indexOf("=");if(i=i<0?n.length:i,decodeURIComponent(n.slice(0,i).replace(/^\s+/,""))===e)return decodeURIComponent(n.slice(i+1))}return null},t.erase=function(e,n){t.set(e,"",{expires:-1,domain:n&&n.domain,path:n&&n.path,secure:0,httponly:0})},t.all=function(){for(var e={},t=document.cookie.split(";");t.length;){var n=t.pop(),i=n.indexOf("=");i=i<0?n.length:i,e[decodeURIComponent(n.slice(0,i).replace(/^\s+/,""))]=decodeURIComponent(n.slice(i+1))}return e}},81042:(e,t,n)=>{var i=n(56110)(Object,"create");e.exports=i},81047:(e,t,n)=>{var i=n.g.CustomEvent;e.exports=function(){try{var e=new i("cat",{detail:{foo:"bar"}});return"cat"===e.type&&"bar"===e.detail.foo}catch(e){}return!1}()?i:"undefined"!=typeof document&&"function"==typeof document.createEvent?function(e,t){var n=document.createEvent("CustomEvent");return t?n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail):n.initCustomEvent(e,!1,!1,void 0),n}:function(e,t){var n=document.createEventObject();return n.type=e,t?(n.bubbles=Boolean(t.bubbles),n.cancelable=Boolean(t.cancelable),n.detail=t.detail):(n.bubbles=!1,n.cancelable=!1,n.detail=void 0),n}},81741:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{weight:125,key:"validate.minWords",label:"Minimum Word Length",placeholder:"Minimum Word Length",type:"number",tooltip:"The minimum amount of words that can be added to this field.",input:!0},{weight:126,key:"validate.maxWords",label:"Maximum Word Length",placeholder:"Maximum Word Length",type:"number",tooltip:"The maximum amount of words that can be added to this field.",input:!0}]},81765:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(95093))},81841:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=i(n(33670)),s=n(34600),o=i(n(87422)),l=i(n(5427));class u extends a.default{static schema(...e){return a.default.schema({label:"Data Grid",key:"dataGrid",type:"datagrid",clearOnHide:!0,input:!0,tree:!0,components:[]},...e)}static get builderInfo(){return{title:"Data Grid",icon:"th",group:"data",documentation:"/userguide/form-building/data-components#data-grid",showPreview:!1,weight:30,schema:u.schema()}}constructor(...e){super(...e),this.type="datagrid",this.tabIndex=0}init(){this.components=this.components||[],this.rows=[],this.columns=[...this.component.components],!this.initRows&&r.default.isEqual(this.dataValue,this.emptyValue)||this.createRows(!0),this.visibleColumns={},this.prevHasAddButton=this.hasAddButton(),this.checkColumns()}get dataValue(){const e=super.dataValue;return e&&Array.isArray(e)?e:this.emptyValue}set dataValue(e){super.dataValue=e}get defaultSchema(){return u.schema()}get initEmpty(){return this.component.initEmpty||this.component.noFirstRow}get initRows(){return this.builderMode||"defaultValue"===this.path||!this.initEmpty}get emptyValue(){return this.initEmpty?[]:[{}]}get addAnotherPosition(){return r.default.get(this.component,"addAnotherPosition","bottom")}get minLength(){return this.hasRowGroups()?r.default.sum(this.getGroupSizes()):r.default.get(this.component,"validate.minLength",0)}get defaultValue(){const e=this.builderMode,t=this.initEmpty;if(e||t&&!this.dataValue.length)return t&&!e?[]:[{}];const n=super.defaultValue;let i;i=Array.isArray(n)?n:n&&"object"==typeof n?[n]:this.emptyValue;for(let e=i.length;e{t.disabled=e})),r.default.each(this.refs[`${this.datagridKey}-removeRow`],(t=>{t.disabled=e}))}get disabled(){return super.disabled}get datagridKey(){return`datagrid-${this.key}`}get allowReorder(){return!this.options.readOnly&&r.default.get(this.component,"reorder",!1)}get iteratableRows(){return this.rows.map(((e,t)=>({components:e,data:this.dataValue[t]})))}isEmpty(e=this.dataValue){var t;const n=super.isEmpty(e);return(null===(t=this.components)||void 0===t?void 0:t.length)?this.components.reduce(((e,t)=>e&&t.isEmpty()),!0):n}getRowChunks(e,t){const[,n]=e.reduce((([e,t],n)=>{const i=e+n;return[i,[...t,[e,i]]]}),[0,[]]);return n.map((e=>r.default.slice(t,...e)))}getGroups(){const e=r.default.get(this.component,"rowGroups",[]),t=r.default.map(e,"numberOfRows").slice(0,-1).reduce(((e,t)=>{const n=e[e.length-1];return e.concat(n+t)}),[0]);return e.reduce(((e,n,i)=>Object.assign(Object.assign({},e),{[t[i]]:n})),{})}getGroupSizes(){return r.default.map(r.default.get(this.component,"rowGroups",[]),"numberOfRows")}hasRowGroups(){return r.default.get(this,"component.enableRowGroups",!1)&&!this.builderMode}totalRowsNumber(e){return r.default.sum(r.default.map(e,"numberOfRows"))}setStaticValue(e){this.dataValue=r.default.range(e).map((()=>({})))}hasExtraColumn(){return this.hasRemoveButtons()||this.canAddColumn}hasRemoveButtons(){return!this.builderMode&&!this.component.disableAddingRemovingRows&&!this.options.readOnly&&!this.disabled&&this.fullMode&&this.dataValue.length>r.default.get(this.component,"validate.minLength",0)}hasTopSubmit(){return this.hasAddButton()&&["top","both"].includes(this.addAnotherPosition)}hasBottomSubmit(){return this.hasAddButton()&&["bottom","both"].includes(this.addAnotherPosition)}get canAddColumn(){return this.builderMode&&!this.options.design}render(){const e=this.getColumns();let t=0;const n=this.hasRemoveButtons();this.component.reorder&&t++,n&&t++,this.canAddColumn&&t++;const i=Math.floor(12/(e.length+t));return super.render(this.renderTemplate("datagrid",{rows:this.getRows(),columns:e,groups:this.hasRowGroups()?this.getGroups():[],visibleColumns:this.visibleColumns,hasToggle:r.default.get(this,"component.groupToggle",!1),hasHeader:this.hasHeader(),hasExtraColumn:this.hasExtraColumn(),hasAddButton:this.hasAddButton(),hasRemoveButtons:n,hasTopSubmit:this.hasTopSubmit(),hasBottomSubmit:this.hasBottomSubmit(),hasGroups:this.hasRowGroups(),numColumns:e.length+(this.hasExtraColumn()?1:0),datagridKey:this.datagridKey,allowReorder:this.allowReorder,builder:this.builderMode,canAddColumn:this.canAddColumn,tabIndex:this.tabIndex,placeholder:this.renderTemplate("builderPlaceholder",{position:this.componentComponents.length}),colWidth:i.toString()}))}getRows(){return this.rows.map((e=>{const t={};return r.default.each(e,((e,n)=>{t[n]=e.render()})),t}))}getColumns(){return this.columns.filter((e=>!this.visibleColumns.hasOwnProperty(e.key)||this.visibleColumns[e.key]))}hasHeader(){return this.component.components.reduce(((e,t)=>e||(t.label||t.title)&&!t.hideLabel),!1)}attach(e){this.loadRefs(e,{[`${this.datagridKey}-row`]:"multiple",[`${this.datagridKey}-tbody`]:"single",[`${this.datagridKey}-addRow`]:"multiple",[`${this.datagridKey}-removeRow`]:"multiple",[`${this.datagridKey}-group-header`]:"multiple",[this.datagridKey]:"multiple"}),this.allowReorder&&(this.refs[`${this.datagridKey}-row`].forEach(((e,t)=>{e.dragInfo={index:t}})),this.dragula=(0,l.default)([this.refs[`${this.datagridKey}-tbody`]],{moves:(e,t,n)=>{const i=n.getAttribute("data-key");if(t.getAttribute("data-key")===i)return n.classList.contains("formio-drag-button")}}).on("drop",this.onReorder.bind(this)),this.dragula.on("cloned",((e,t)=>{e&&e.children&&t&&t.children&&r.default.each(t.children,((t,n)=>{const i=getComputedStyle(t,null);if(""!==i.cssText)e.children[n].style.cssText=i.cssText;else{const t=Object.values(i).reduce(((e,t)=>`${e}${t}:${i.getPropertyValue(t)};`),"");e.children[n].style.cssText=t}}))}))),this.refs[`${this.datagridKey}-addRow`].forEach((e=>{this.addEventListener(e,"click",this.addRow.bind(this))})),this.refs[`${this.datagridKey}-removeRow`].forEach(((e,t)=>{this.addEventListener(e,"click",this.removeRow.bind(this,t))})),this.hasRowGroups()&&(this.refs.chunks=this.getRowChunks(this.getGroupSizes(),this.refs[`${this.datagridKey}-row`]),this.refs[`${this.datagridKey}-group-header`].forEach(((e,t)=>{this.addEventListener(e,"click",(()=>this.toggleGroup(e,t)))})));const t=this.getColumns(),n=t.length;return this.rows.forEach(((e,i)=>{let r=0;t.forEach((e=>{this.attachComponents(this.refs[this.datagridKey][i*n+r],[this.rows[i][e.key]],this.getComponentsContainer()),r++}))})),super.attach(e)}getComponentsContainer(){return this.component.components}reorderValues(e,t,n,i){if(!r.default.isArray(e)||r.default.isEmpty(e))return;const a=e[t];e.splice(n,0,a),e.splice(i?t:t+1,1)}onReorder(e,t,n,i){if(!e.dragInfo||i&&!i.dragInfo)return void console.warn("There is no Drag Info available for either dragged or sibling element");const a=e.dragInfo.index,o=i?i.dragInfo.index:this.dataValue.length,l=o>a,u=(0,s.fastCloneDeep)(this.dataValue);this.reorderValues(u,a,o,l),this.reorderValues(r.default.get(this.root,`submission.metadata.selectData.${this.path}`,[]),a,o,l),this.setValue(u,{isReordered:!0}),this.rebuild()}focusOnNewRowElement(e){Object.keys(e).find((t=>{const n=e[t].element;if(n){const e=(0,s.getFocusableElements)(n);if(e&&e[0])return e[0].focus(),!0}return!1}))}addRow(){const e=this.rows.length;let t;this.dataValue.length===e&&this.dataValue.push({});const n=this.dataValue,i=this.defaultValue;this.initEmpty&&i[e]?(t=i[e],n[e]=t):t=n[e],this.rows[e]=this.createRowComponents(t,e),this.emit("dataGridAddRow",{component:this.component,row:t}),this.checkConditions(),this.triggerChange(),this.redraw().then((()=>{this.focusOnNewRowElement(this.rows[e])}))}updateComponentsRowIndex(e,t){e.forEach(((e,n)=>{var i;if(null===(i=e.options)||void 0===i?void 0:i.name){const n=`[${this.key}][${t}]`;e.options.name=e.options.name.replace(`[${this.key}][${e.rowIndex}]`,n)}e.rowIndex=t,e.row=`${t}-${n}`,e.path=o.default.getComponentPath(e)}))}updateRowsComponents(e){this.rows.slice(e).forEach(((t,n)=>{this.updateComponentsRowIndex(Object.values(t),e+n)}))}removeRow(e){const t=0===e&&1===this.rows.length,n={isReordered:!t,resetValue:t};this.splice(e,n),this.emit("dataGridDeleteRow",{index:e});const[i]=this.rows.splice(e,1);this.removeSubmissionMetadataRow(e),this.removeRowComponents(i),this.updateRowsComponents(e),this.setValue(this.dataValue,n),this.redraw()}removeRowComponents(e){r.default.each(e,(e=>this.removeComponent(e)))}getRowValues(){return this.dataValue}setRowComponentsData(e,t){r.default.each(this.rows[e],(e=>{e.data=t}))}createRows(e,t){let n=!1;const i=this.getRowValues();i.forEach(((e,i)=>{!t&&this.rows[i]?this.setRowComponentsData(i,e):(this.rows[i]&&this.removeRowComponents(this.rows[i]),this.rows[i]=this.createRowComponents(e,i),n=!0)}));const r=this.rows.splice(i.length),a=!!r.length;return a&&r.forEach((e=>this.removeRowComponents(e))),e||!n&&!a||this.redraw(),n}createRowComponents(e,t){const n={};return this.tabIndex=0,this.component.components.map(((i,a)=>{const s=r.default.clone(this.options);let o;s.name+=`[${t}]`,s.row=`${t}-${a}`,this.builderMode?(i.id=i.id+t,o=i):o=Object.assign(Object.assign({},i),{id:i.id+t});const l=this.createComponent(o,s,e);l.parentDisabled=!!this.disabled,l.rowIndex=t,l.inDataGrid=!0,o.tabindex&&parseInt(o.tabindex)>this.tabIndex&&(this.tabIndex=parseInt(o.tabindex)),n[i.key]=l})),n}checkColumns(e,t={}){e=e||this.rootValue;let n=!1;if(!this.rows||!this.rows.length)return{rebuild:!1,show:!1};if(this.builderMode)return{rebuild:!1,show:!0};const i={};let a=!1;const s=this.dataValue;this.rows.forEach(((n,o)=>{r.default.each(n,((n,l)=>{if(n&&"function"==typeof n.checkConditions){const u=void 0===i[l];if(i[l]=!!i[l]||n.checkConditions(e,t,s[o])&&"hidden"!==n.type,n.component.logic&&u){const e=r.default.findIndex(this.columns,["key",l]),t=r.default.isEqualWith(this.columns[e],n.component,((e,t,n)=>{if("id"===n)return!0}));t||(a=!0,this.columns[e]=n.component)}}}))}));const o=!r.default.isEqual(i,this.visibleColumns)||a;return r.default.each(i,(e=>{n|=e})),this.visibleColumns=i,{rebuild:o,show:n}}checkComponentConditions(e,t,n){const i=this.visible;if(!super.checkComponentConditions(e,t,n))return!1;const{rebuild:r,show:a}=this.checkColumns(e,t);return!r&&i||this.createRows(!1,r),a}setValue(e,t={}){if(!e)return this.dataValue=this.defaultValue,this.createRows(),!1;Array.isArray(e)||("object"==typeof e?e=[e]:(this.createRows(),e=[{}])),!e||e.length||this.initEmpty||e.push({});const n=t.fromSubmission&&!r.default.isEqual(e,this.emptyValue),i=this.hasChanged(e,this.dataValue);return this.dataValue=e,(this.initRows||n||Array.isArray(this.dataValue)&&this.dataValue.length!==this.rows.length)&&!this.createRows()&&i&&this.redraw(),this.componentModal&&n&&this.componentModal.setValue(e),this.rows.forEach(((n,i)=>{e.length<=i||r.default.each(n,(n=>{n.rowIndex=i,this.setNestedValue(n,e[i],t)}))})),this.updateOnChange(t,i),i}restoreComponentsContext(){this.rows.forEach(((e,t)=>r.default.forIn(e,(e=>e.data=this.dataValue[t]))))}getComponent(e,t){e=Array.isArray(e)?e:[e];const[n,...i]=e;let a=[];if(r.default.isNumber(n)&&i.length){const e=i.pop();return a=this.rows[n][e],a||Object.entries(this.rows[n]).forEach((([,n])=>{if("getComponent"in n){const i=n.getComponent([e],t);i&&(a=i)}})),a&&r.default.isFunction(t)&&t(a,this.getComponents()),i.length&&"getComponent"in a?a.getComponent(i,t):a}return r.default.isString(n)?(this.everyComponent(((e,r)=>{if(e.component.key===n){let n=e;i.length>0&&"getComponent"in e?n=e.getComponent(i,t):t&&t(e,r),a=a.concat(n)}})),a.length>0?a:null):a}toggleGroup(e,t){e.classList.toggle("collapsed"),r.default.each(this.refs.chunks[t],(e=>{e.classList.toggle("hidden")}))}}t.default=u},81937:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(27836));class a extends r.default{static get operatorKey(){return"notIncludes"}static get displayedName(){return"Not Includes"}execute(e){return!super.execute(e)}}t.default=a},82199:(e,t,n)=>{var i=n(14528),r=n(56449);e.exports=function(e,t,n){var a=t(e);return r(e)?a:i(a,n(e))}},82218:function(e,t,n){!function(e){"use strict";e.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(95093))},82271:function(e,t,n){!function(e){"use strict";function t(e,t,n){return"m"===n?t?"минута":"минуту":e+" "+(i=+e,r={ss:t?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:t?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),i%10==1&&i%100!=11?r[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?r[1]:r[2]);var i,r}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];e.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(e){if(e.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:t,m:t,mm:t,h:"час",hh:t,d:"день",dd:t,w:"неделя",ww:t,M:"месяц",MM:t,y:"год",yy:t},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(e){return/^(дня|вечера)$/.test(e)},meridiem:function(e,t,n){return e<4?"ночи":e<12?"утра":e<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(e,t){switch(t){case"M":case"d":case"DDD":return e+"-й";case"D":return e+"-го";case"w":case"W":return e+"-я";default:return e}},week:{dow:1,doy:4}})}(n(95093))},82396:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(36382);t.default={form:i.default}},82464:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateMinimumValueInfo=t.validateMinimumValueSync=t.validateMinimumValue=t.shouldValidate=void 0;const r=n(54008),a=e=>{var t;let n=null===(t=e.validate)||void 0===t?void 0:t.min;return"string"==typeof n&&(n=parseFloat(n)),n};t.shouldValidate=e=>{const{component:t,value:n}=e;return!!(e=>{var t;return e&&(null===(t=e.validate)||void 0===t?void 0:t.hasOwnProperty("min"))})(t)&&!Number.isNaN(parseFloat(n))&&!Number.isNaN(a(t))},t.validateMinimumValue=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateMinimumValueSync)(e)})),t.validateMinimumValueSync=e=>{const{component:n,value:i}=e;if(!(0,t.shouldValidate)(e))return null;const s=a(n);if(void 0===s)return null;const o="string"==typeof i?parseFloat(i):Number(i);if(Number.isNaN(o))throw new r.ProcessorError(`Cannot validate value ${o} because it is invalid`,e,"validate:validateMinimumValue");return o>=s?null:new r.FieldError("min",Object.assign(Object.assign({},e),{min:String(s),setting:String(s)}))},t.validateMinimumValueInfo={name:"validateMinimumValue",process:t.validateMinimumValue,processSync:t.validateMinimumValueSync,shouldProcess:t.shouldValidate}},82647:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),a=i(n(24494));t.default=function(...e){return r.default.baseEditForm([{key:"data",components:a.default}],...e)}},82669:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},82682:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};e.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,n){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(95093))},82690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"textfield",input:!0,key:"dataFormat",label:"Data Format",placeholder:"HH:mm:ss",tooltip:"The moment.js format for saving the value of this field.",weight:25}]},82710:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(33844));t.default=[r.default.javaScriptValue("Custom Default Value","customDefaultValue","customDefaultValue",120,'

    Example:

    value = data.firstName + " " + data.lastName;

    ','

    Example:

    {"cat": [{"var": "data.firstName"}, " ", {"var": "data.lastName"}]}
    '),r.default.javaScriptValue("Calculated Value","calculateValue","calculateValue",130,"

    Example:

    value = data.a + data.b + data.c;

    ",'

    Example:

    {"+": [{"var": "data.a"}, {"var": "data.b"}, {"var": "data.c"}]}

    Click here for an example

    '),{weight:140,type:"checkbox",label:"Clear Value When Hidden",key:"clearOnHide",defaultValue:!0,tooltip:"When a field is hidden, clear the value.",input:!0}]},82787:()=>{},82839:(e,t,n)=>{"use strict";var i=n(22195).navigator,r=i&&i.userAgent;e.exports=r?String(r):""},82861:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateMinimumSelectedCountInfo=t.validateMinimumSelectedCountSync=t.validateMinimumSelectedCount=t.shouldValidate=void 0;const r=n(54008),a=e=>{var t;let n=null===(t=e.validate)||void 0===t?void 0:t.minSelectedCount;return"string"==typeof n&&(n=parseFloat(n)),n};t.shouldValidate=e=>{const{component:t,value:n}=e;return!!(e=>{var t;return e&&(null===(t=e.validate)||void 0===t?void 0:t.hasOwnProperty("minSelectedCount"))})(t)&&!!n&&!!a(t)},t.validateMinimumSelectedCount=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateMinimumSelectedCountSync)(e)})),t.validateMinimumSelectedCountSync=e=>{const{component:n,value:i}=e;try{if(!(0,t.shouldValidate)(e))return null;!function(e,t){if(null==e||"object"!=typeof e)throw new r.ProcessorError(`Cannot validate maximum selected count for value ${e} as it is not an object`,t,"validate:validateMinimumSelectedCount");if(!Object.values(e).every((e=>"boolean"==typeof e)))throw new r.ProcessorError(`Cannot validate maximum selected count for value ${e} because it has non-boolean members`,t,"validate:validateMinimumSelectedCount")}(i,e);const s=a(n);if(!s)return null;const o=Object.keys(i).reduce(((e,t)=>i[t]?++e:e),0);return o<=0?null:o{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},83037:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Template=void 0;const i=n(2543);class r{static addTemplates(e){var t=r.framework;r.templates=(0,i.merge)(r.templates,e),r.framework=t}static addTemplate(e,t){r.templates[e]=(0,i.merge)(r.current,t),r.templates.hasOwnProperty(r._framework)&&(r._current=r.templates[r._framework])}static extendTemplate(e,t){r.templates[e]=(0,i.merge)(r.templates[e],t),r.templates.hasOwnProperty(r._framework)&&(r._current=r.templates[r._framework])}static setTemplate(e,t){r.addTemplate(e,t)}static set current(e){const t=r.current;r._current=(0,i.merge)(t,e)}static get current(){return r._current}static set framework(e){r._framework=e,r.templates.hasOwnProperty(e)&&(r._current=r.templates[e])}static get framework(){return r._framework}static render(e,t,n="html",i=null){return"function"==typeof e?e(t):this.current[e]&&this.current[e][n]?this.current[e][n](t):i?i(t):"Unknown template"}}t.Template=r,r.templates={},r._current={},r._framework="bootstrap"},83041:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(45753);t.default={form:i.default}},83120:(e,t,n)=>{var i=n(14528),r=n(45891);e.exports=function e(t,n,a,s,o){var l=-1,u=t.length;for(a||(a=r),o||(o=[]);++l0&&a(d)?n>1?e(d,n-1,a,s,o):i(o,d):s||(o[o.length]=d)}return o}},83175:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
    \n ',e.disableBuilderActions||(n+='\n
    \n \n \n
    \n ',e.design||(n+='\n \n \n
    \n \n \n
    \n \n \n \n '),n+='\n \n \n \n ',e.design&&"reviewpage"===e.childComponent.type||(n+='\n \n \n \n '),n+="\n \n "),n+"\n "+(null==(t=e.html)?"":t)+"\n\n"}},83218:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(3300);t.default={form:i.default}},83244:(e,t,n)=>{"use strict";var i=n(54715);e.exports=i},83258:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(33844)),a=n(34600);t.default=[{weight:0,input:!0,label:"Advanced Logic",key:"logic",templates:{header:'
    \n
    \n {{ value.length }} {{ ctx.t("Advanced Logic Configured") }}\n
    \n
    ',row:'
    \n
    \n
    {{ row.name }}
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    ',footer:""},type:"editgrid",addAnother:"Add Logic",saveRow:"Save Logic",components:[{weight:0,input:!0,inputType:"text",label:"Logic Name",key:"name",validate:{required:!0},type:"textfield"},{weight:10,key:"triggerPanel",input:!1,title:"Trigger",tableView:!1,components:[{weight:0,input:!0,tableView:!1,components:[{weight:0,input:!0,label:"Type",key:"type",tableView:!1,data:{values:[{value:"simple",label:"Simple"},{value:"javascript",label:"Javascript"},{value:"json",label:"JSON Logic"},{value:"event",label:"Event"}]},dataSrc:"values",template:"{{ item.label }}",type:"select"},{weight:10,label:"",key:"simple",type:"container",tableView:!1,customConditional:({row:e})=>"simple"===e.type,components:[{input:!0,key:"show",label:"Show",type:"hidden",tableView:!1,calculateValue:()=>!0},{type:"select",input:!0,label:"When the form component:",key:"when",dataSrc:"custom",valueProperty:"value",tableView:!1,data:{custom:e=>(0,a.getContextComponents)(e)}},{type:"textfield",input:!0,label:"Has the value:",key:"eq",tableView:!1}]},{weight:10,type:"textarea",key:"javascript",rows:5,editor:"ace",as:"javascript",input:!0,tableView:!1,placeholder:"result = (data['mykey'] > 1);",description:'"row", "data", and "component" variables are available. Return "result".',customConditional:({row:e})=>"javascript"===e.type},{weight:10,type:"textarea",key:"json",rows:5,editor:"ace",label:"JSON Logic",as:"json",input:!0,tableView:!1,placeholder:"{ ... }",description:'"row", "data", "component" and "_" variables are available. Return the result to be passed to the action if truthy.',customConditional:({row:e})=>"json"===e.type},{weight:10,type:"textfield",key:"event",label:"Event Name",placeholder:"event",description:"The event that will trigger this logic. You can trigger events externally or via a button.",tableView:!1,customConditional:({row:e})=>"event"===e.type}],key:"trigger",type:"container"}],type:"panel"},{weight:20,input:!0,label:"Actions",key:"actions",tableView:!1,templates:{header:'
    \n
    {{ value.length }} {{ ctx.t("actions") }}
    \n
    ',row:'
    \n
    \n
    {{ row.name }}
    \n
    \n
    \n
    \n \n \n
    \n
    \n
    ',footer:""},type:"editgrid",addAnother:"Add Action",saveRow:"Save Action",components:[{weight:0,title:"Action",input:!1,key:"actionPanel",type:"panel",components:[{weight:0,input:!0,inputType:"text",label:"Action Name",key:"name",validate:{required:!0},type:"textfield"},{weight:10,input:!0,label:"Type",key:"type",data:{values:[{value:"property",label:"Property"},{value:"value",label:"Value"},{label:"Merge Component Schema",value:"mergeComponentSchema"},{label:"Custom Action",value:"customAction"}]},dataSrc:"values",template:"{{ item.label }}",type:"select"},{weight:20,type:"select",template:"{{ item.label }}",dataSrc:"json",tableView:!1,data:{json:[{label:"Hidden",value:"hidden",type:"boolean"},{label:"Required",value:"validate.required",type:"boolean"},{label:"Disabled",value:"disabled",type:"boolean"},{label:"Label",value:"label",type:"string"},{label:"Title",value:"title",type:"string"},{label:"Prefix",value:"prefix",type:"string"},{label:"Suffix",value:"suffix",type:"string"},{label:"Tooltip",value:"tooltip",type:"string"},{label:"Description",value:"description",type:"string"},{label:"Placeholder",value:"placeholder",type:"string"},{label:"Input Mask",value:"inputMask",type:"string"},{label:"CSS Class",value:"className",type:"string"},{label:"Container Custom Class",value:"customClass",type:"string"}]},key:"property",label:"Component Property",input:!0,customConditional:({row:e})=>"property"===e.type},{weight:30,input:!0,label:"Set State",key:"state",tableView:!1,data:{values:[{label:"True",value:"true"},{label:"False",value:"false"}]},dataSrc:"values",template:"{{ item.label }}",type:"select",customConditional:({row:e})=>"property"===e.type&&e.hasOwnProperty("property")&&"boolean"===e.property.type},{weight:30,type:"textfield",key:"text",label:"Text",inputType:"text",input:!0,tableView:!1,description:'Can use templating with {{ data.myfield }}. "data", "row", "component" and "result" variables are available.',customConditional:({row:e})=>"property"===e.type&&e.hasOwnProperty("property")&&"string"===e.property.type&&!e.property.component},{weight:20,input:!0,label:"Value (Javascript)",key:"value",editor:"ace",as:"javascript",rows:5,placeholder:"value = data.myfield;",type:"textarea",tableView:!1,description:'"row", "data", "component", and "result" variables are available. Return the value.',customConditional:({row:e})=>"value"===e.type},{weight:20,input:!0,label:"Schema Definition",key:"schemaDefinition",editor:"ace",as:"javascript",rows:5,placeholder:"schema = { label: 'Updated' };",type:"textarea",tableView:!1,description:'"row", "data", "component", and "result" variables are available. Return the schema.',customConditional:({row:e})=>"mergeComponentSchema"===e.type},Object.assign(r.default.logicVariablesTable("inputThe value that was input into this component"),{customConditional:({row:e})=>"customAction"===e.type}),{weight:20,input:!0,label:"Custom Action (Javascript)",key:"customAction",editor:"ace",rows:5,placeholder:"value = data.myfield;",type:"textarea",tableView:!1,customConditional:({row:e})=>"customAction"===e.type}]}]}]}]},83349:(e,t,n)=>{var i=n(82199),r=n(86375),a=n(37241);e.exports=function(e){return i(e,a,r)}},83488:e=>{e.exports=function(e){return e}},83693:(e,t,n)=>{var i=n(64894),r=n(40346);e.exports=function(e){return r(e)&&i(e)}},83729:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n{var i=n(38859),r=n(15325),a=n(29905),s=n(34932),o=n(27301),l=n(19219);e.exports=function(e,t,n,u){var d=-1,c=r,h=!0,p=e.length,f=[],m=t.length;if(!p)return f;n&&(t=s(t,o(n))),u?(c=a,h=!1):t.length>=200&&(c=l,h=!1,t=new i(t));e:for(;++d{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(89721),r=n(25730);t.default={form:i.default,html:r.default}},84113:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"checkbox",input:!0,key:"enableMinDateInput",label:"Use Input to add moment.js for minDate",persistent:!1,weight:10,tooltip:"Enables to use input for moment functions instead of calendar."},{type:"datetime",input:!0,key:"datePicker.minDate",label:"Use calendar to set minDate",skipMerge:!0,weight:10,tooltip:"Enables to use calendar to set date.",customConditional:({data:e,component:t})=>!(t.datePicker&&t.datePicker.minDate&&-1!==t.datePicker.minDate.indexOf("moment")||e.enableMinDateInput)},{type:"textfield",input:!0,enableTime:!1,key:"datePicker.minDate",skipMerge:!0,label:"Minimum Date",weight:10,tooltip:"The minimum date that can be picked. You can also use Moment.js functions. For example: \n \n moment().subtract(10, 'days')",customConditional:({data:e,component:t})=>!(!t.datePicker||!t.datePicker.minDate||-1===t.datePicker.minDate.indexOf("moment"))||e.enableMinDateInput},{type:"checkbox",input:!0,key:"enableMaxDateInput",label:"Use Input to add moment.js for maxDate",persistent:!1,weight:20,tooltip:"Enables to use input for moment functions instead of calendar."},{type:"datetime",input:!0,key:"datePicker.maxDate",skipMerge:!0,label:"Use calendar to set maxDate",weight:20,tooltip:"Enables to use calendar to set date.",customConditional:({data:e,component:t})=>!(t.datePicker&&t.datePicker.maxDate&&-1!==t.datePicker.maxDate.indexOf("moment")||e.enableMaxDateInput)},{type:"textfield",input:!0,enableTime:!1,key:"datePicker.maxDate",skipMerge:!0,label:"Maximum Date",tooltip:"The maximum date that can be picked. You can also use Moment.js functions. For example: \n \n moment().add(10, 'days')",weight:20,customConditional:({data:e,component:t})=>!(!t.datePicker||!t.datePicker.maxDate||-1===t.datePicker.maxDate.indexOf("moment"))||e.enableMaxDateInput}]},84119:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(94259)),a=i(n(30062)),s=i(n(17382)),o=i(n(17277));t.default=function(...e){return(0,r.default)([{key:"display",components:a.default},{key:"data",components:s.default},{key:"validation",components:o.default}],...e)}},84247:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},84270:(e,t,n)=>{"use strict";var i=n(69565),r=n(94901),a=n(20034),s=TypeError;e.exports=function(e,t){var n,o;if("string"===t&&r(n=e.toString)&&!a(o=i(n,e)))return o;if(r(n=e.valueOf)&&!a(o=i(n,e)))return o;if("string"!==t&&r(n=e.toString)&&!a(o=i(n,e)))return o;throw new s("Can't convert object to primitive value")}},84324:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},84451:function(e,t,n){!function(e){"use strict";var t={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};e.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(e){return e.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(e,t){return 12===e&&(e=0),"ರಾತ್ರಿ"===t?e<4?e:e+12:"ಬೆಳಿಗ್ಗೆ"===t?e:"ಮಧ್ಯಾಹ್ನ"===t?e>=10?e:e+12:"ಸಂಜೆ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"ರಾತ್ರಿ":e<10?"ಬೆಳಿಗ್ಗೆ":e<17?"ಮಧ್ಯಾಹ್ನ":e<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(e){return e+"ನೇ"},week:{dow:0,doy:6}})}(n(95093))},84591:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(69619));t.default={bootstrap:r.default.templates.bootstrap5}},84625:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateValuePropertyInfo=t.validateValuePropertySync=t.validateValueProperty=t.shouldValidate=void 0;const r=n(54008);t.shouldValidate=e=>{var t;const{component:n,instance:i}=e;return!(!(r=n)||!r.type||"selectboxes"!==r.type||"url"!==n.dataSrc||!(null===(t=null==i?void 0:i.options)||void 0===t?void 0:t.building));var r},t.validateValueProperty=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateValuePropertySync)(e)})),t.validateValuePropertySync=e=>{var n;const{value:i,instance:a}=e;if(!(0,t.shouldValidate)(e))return null;const s=new r.FieldError("invalidValueProperty",e);return Object.entries(i).some((([e,t])=>t&&("[object Object]"===e||"true"===e||"false"===e)))||a&&(null===(n=a.loadedOptions)||void 0===n?void 0:n.some((e=>e.invalid)))?s:null},t.validateValuePropertyInfo={name:"validateValueProperty",process:t.validateValueProperty,processSync:t.validateValuePropertySync,shouldProcess:t.shouldValidate}},84679:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.dom=t.Utils=t.unwind=t.override=t.sanitize=t.JSONLogicEvaluator=t.BaseEvaluator=t.Evaluator=void 0;var o=n(70678);Object.defineProperty(t,"Evaluator",{enumerable:!0,get:function(){return o.Evaluator}}),Object.defineProperty(t,"BaseEvaluator",{enumerable:!0,get:function(){return o.BaseEvaluator}});var l=n(79092);Object.defineProperty(t,"JSONLogicEvaluator",{enumerable:!0,get:function(){return l.JSONLogicEvaluator}});var u=n(29688);Object.defineProperty(t,"sanitize",{enumerable:!0,get:function(){return u.sanitize}});var d=n(62243);Object.defineProperty(t,"override",{enumerable:!0,get:function(){return d.override}});var c=n(17690);Object.defineProperty(t,"unwind",{enumerable:!0,get:function(){return c.unwind}}),t.Utils=a(n(96690)),t.dom=a(n(55223)),s(n(10002),t),s(n(49599),t),s(n(715),t),s(n(60554),t),s(n(13778),t)},84803:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(94233),a=n(78443),s=i(n(2543)),o=i(n(17389)),l=n(34600);class u extends o.default{static schema(...e){return o.default.schema({type:"number",label:"Number",key:"number",validate:{min:"",max:"",step:"any",integer:""}},...e)}static get builderInfo(){return{title:"Number",icon:"hashtag",group:"basic",documentation:"/userguide/form-building/form-components#number",weight:30,schema:u.schema()}}static get serverConditionSettings(){return u.conditionOperatorsSettings}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{operators:[...super.conditionOperatorsSettings.operators,"lessThan","greaterThan","lessThanOrEqual","greaterThanOrEqual"],valueComponent:e=>Object.assign(Object.assign({},e),{type:"number"})})}static savedValueTypes(e){return e=e||{},(0,l.getComponentSavedTypes)(e)||[l.componentValueTypes.number]}constructor(...e){var t,n,i;super(...e);const r=(0,l.getNumberSeparators)(this.options.language||navigator.language);this.decimalSeparator=this.options.decimalSeparator=this.component.decimalSymbol||this.options.decimalSeparator||(null===(t=this.options.properties)||void 0===t?void 0:t.decimalSeparator)||r.decimalSeparator,this.component.delimiter?this.delimiter=this.component.thousandsSeparator||(null===(n=this.options.properties)||void 0===n?void 0:n.thousandsSeparator)||this.options.thousandsSeparator||r.delimiter:((this.component.thousandsSeparator||(null===(i=this.options.properties)||void 0===i?void 0:i.thousandsSeparator)||this.options.thousandsSeparator)&&console.warn("In order for thousands separator to work properly, you must set the delimiter to true in the component json"),this.delimiter="");const a=s.default.get(this.component,"requireDecimal",!1);if(this.decimalLimit=(0,l.getNumberDecimalLimit)(this.component,a?2:20),s.default.has(this.options,`languageOverride.${this.options.language}`)){const e=s.default.get(this.options,`languageOverride.${this.options.language}`);this.decimalSeparator=e.decimalSeparator,this.delimiter=e.delimiter}this.numberMask=this.createNumberMask()}createNumberMask(){return(0,r.createNumberMask)({prefix:"",suffix:"",requireDecimal:s.default.get(this.component,"requireDecimal",!1),thousandsSeparatorSymbol:this.delimiter||"",decimalSymbol:s.default.get(this.component,"decimalSymbol",this.decimalSeparator),decimalLimit:s.default.get(this.component,"decimalLimit",this.decimalLimit),allowNegative:s.default.get(this.component,"allowNegative",!0),allowDecimal:this.isDecimalAllowed()})}get defaultSchema(){return u.schema()}get defaultValue(){let e=super.defaultValue;return"string"==typeof e&&(e=this.parseNumber(e)),e||0!==this.component.defaultValue||(e=this.component.defaultValue),!this.component.multiple&&s.default.isArray(e)&&(e=e[0]||0===e[0]?e[0]:null),e}isDecimalAllowed(){return s.default.get(this.component,"allowDecimal",!(this.component.validate&&this.component.validate.integer))}parseNumber(e){return e=e.split(this.delimiter).join("").replace(this.decimalSeparator,"."),this.component.validate&&this.component.validate.integer?parseInt(e,10):parseFloat(e)}setInputMask(e){let t="[0-9";t+=this.decimalSeparator||"",t+=this.delimiter||"",t+="]*",e.setAttribute("pattern",t),e.mask=(0,a.maskInput)({inputElement:e,mask:this.numberMask,shadowRoot:this.root?this.root.shadowRoot:null})}get inputInfo(){const e=super.inputInfo;return this.component.mask?e.attr.type="password":e.attr.type="text",e.attr.inputmode=this.isDecimalAllowed()?"decimal":"numeric",e.changeEvent="input",e}getValueAt(e){if(!this.refs.input.length||!this.refs.input[e])return null;const t=this.refs.input[e].value;return t&&"-_"!==t?this.parseNumber(t):null}setValueAt(e,t,n={}){return super.setValueAt(e,this.formatValue(this.parseValue(t)),n)}parseValue(e){"string"==typeof e&&(e=e.split(this.delimiter).join("").replace(this.decimalSeparator,"."));let t=parseFloat(e);return t=s.default.isNaN(t)?null:/e/i.test(String(t))?t.toExponential(this.decimalLimit):String(t).replace(".",this.decimalSeparator),t}formatValue(e){return this.component.requireDecimal&&e&&!e.includes(this.decimalSeparator)?`${e}${this.decimalSeparator}${s.default.repeat("0",this.decimalLimit)}`:this.component.requireDecimal&&e&&e.includes(this.decimalSeparator)?`${e}${s.default.repeat("0",this.decimalLimit-e.split(this.decimalSeparator)[1].length)}`:e}focus(){const e=this.refs.input[0];e&&(super.focus.call(this),e.setSelectionRange(0,e.value.length))}getMaskedValue(e){return(e=null===e?"0":e.toString()).includes(".")&&"."!==this.decimalSeparator&&(e=e.replace(".",this.decimalSeparator)),(0,a.conformToMask)(this.formatValue(e),this.numberMask).conformedValue}getValueAsString(e,t){return e||0===e?(e=this.getWidgetValueAsString(e,t),Array.isArray(e)?e.map((e=>this.getMaskedValue(e))).join(", "):this.getMaskedValue(e)):""}addFocusBlurEvents(e){super.addFocusBlurEvents(e),this.addEventListener(e,"blur",(()=>{e.value=this.getValueAsString(this.formatValue(this.parseValue(e.value)))}))}}t.default=u},84850:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
    '+(null==(t=e.t(e.component.title,{_userInput:!0}))?"":t)+"
    \n"}},85096:function(e,t,n){!function(e){"use strict";var t={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};e.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(e,t,n){return e<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(e){return"ös"===e||"ÖS"===e},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(e,n){switch(n){case"d":case"D":case"Do":case"DD":return e;default:if(0===e)return e+"'ıncı";var i=e%10;return e+(t[i]||t[e%100-i]||t[e>=100?100:null])}},week:{dow:1,doy:7}})}(n(95093))},85153:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(96377);t.default={form:i.default}},85179:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=n(34600);t.default=class{static render(e,t,n){const i=e.renderTemplate("component",t,n);return e.renderTemplate("componentModal",Object.assign(Object.assign({},t),{children:i}))}constructor(e,t,n,i,r="ref"){this._referenceAttributeName=r,this.isOpened=n,this.component=e,this.element=t,this.currentValue=(0,a.fastCloneDeep)(null!=i?i:this.component.getValue()),this.dataLoaded=!1,this.init()}get refs(){return this.component.refs}init(){this.openModalListener=this.openModalHandler.bind(this),this.showDialogListener=e=>{this.isValueChanged()&&!this.component.disabled?this.showDialog():this.closeModalHandler(e)},this.closeModalListener=this.closeModalHandler.bind(this),this.saveModalListener=this.saveModalValueHandler.bind(this),this.closeDialogListener=this.closeDialog.bind(this),this.saveDialogListener=this.saveDialog.bind(this),this.loadRefs()}setValue(e){this.dataLoaded&&this.currentValue===e||(this.currentValue=(0,a.fastCloneDeep)(e),this.dataLoaded=!0,this.updateView())}setOpenModalElement(e){var t;(null===(t=this.component)||void 0===t?void 0:t.visible)&&(this.openModalTemplate=e,this.component.setContent(this.refs.openModalWrapper,e),this.loadRefs(),this.setEventListeners(),this.isOpened&&(this.refs.modalWrapper.classList.add("formio-dialog-disabled-animation"),this.openModal()))}get templateRefs(){return{modalOverlay:"single",modalContents:"single",modalClose:"single",openModalWrapper:"single",openModal:"single",modalSave:"single",modalWrapper:"single"}}loadRefs(){this.component.loadRefs(this.element,this.templateRefs)}removeEventListeners(){this.component.removeEventListener(this.refs.openModal,"click",this.openModalListener),this.component.removeEventListener(this.refs.modalOverlay,"click",this.refs.modalSave?this.showDialogListener:this.saveModalListener),this.component.removeEventListener(this.refs.modalClose,"click",this.showDialogListener),this.component.removeEventListener(this.refs.modalSave,"click",this.saveModalListener)}setEventListeners(){this.removeEventListeners(),this.component.addEventListener(this.refs.openModal,"click",this.openModalListener),this.component.addEventListener(this.refs.modalOverlay,"click",this.refs.modalSave?this.showDialogListener:this.saveModalListener),this.component.addEventListener(this.refs.modalClose,"click",this.showDialogListener),this.component.addEventListener(this.refs.modalSave,"click",this.saveModalListener)}isValueChanged(){let e=this.component.getValue(),t=this.currentValue;return e&&e.data&&e.metadata&&(e=this.component.getValue().data,t=this.currentValue.data),!r.default.isEqual((0,a.fastCloneDeep)(e),t)}setOpenEventListener(){var e;this.component.removeEventListener(this.refs.openModal,"click",this.openModalListener),this.component.loadRefs(null!==(e=this.refs.openModalWrapper)&&void 0!==e?e:this.element,{openModal:"single"}),this.component.addEventListener(this.refs.openModal,"click",this.openModalListener)}openModalHandler(e){e.preventDefault(),this.openModal()}positionOverElement(){let e=this.element.getBoundingClientRect().top-this.refs.modalContents.getBoundingClientRect().height-10;e=e>0?e:10,this.refs.modalWrapper.style.paddingTop=`${e}px`}openModal(){this.isOpened=!0,this.refs.modalWrapper.classList.remove("component-rendering-hidden"),"signature"===this.component.component.type&&this.positionOverElement()}updateView(){const e=r.default.isEqual(this.currentValue,this.component.defaultValue)?this.openModalTemplate:this.component.getModalPreviewTemplate();this.component.setContent(this.refs.openModalWrapper,e),this.setOpenEventListener()}closeModal(){this.refs.modalWrapper.classList.remove("formio-dialog-disabled-animation"),this.refs.modalWrapper.classList.add("component-rendering-hidden"),this.isOpened=!1,this.updateView()}closeModalHandler(e){e.preventDefault(),this.component.disabled||this.component.setValue(r.default.cloneDeep(this.currentValue),{resetValue:!0}),this.closeModal()}showDialog(){this.dialogElement=this.component.ce("div");const e=`\n

    ${this.component.t("Do you want to clear changes?")}

    \n
    \n \n \n
    \n `;this.dialogElement.innerHTML=e,this.dialogElement.refs={},this.component.loadRefs.call(this.dialogElement,this.dialogElement,{dialogHeader:"single",dialogCancelButton:"single",dialogYesButton:"single"}),this.dialog=this.component.createModal(this.dialogElement),this.component.addEventListener(this.dialogElement.refs.dialogYesButton,"click",this.saveDialogListener),this.component.addEventListener(this.dialogElement.refs.dialogCancelButton,"click",this.closeDialogListener)}closeDialog(e){e.preventDefault(),this.dialog.close(),this.component.removeEventListener(this.dialogElement.refs.dialogYesButton,"click",this.saveDialogListener),this.component.removeEventListener(this.dialogElement.refs.dialogCancelButton,"click",this.closeDialogListener)}saveDialog(e){this.closeDialog(e),this.closeModalHandler(e)}saveModalValueHandler(e){var t;e.preventDefault(),this.currentValue=(0,a.fastCloneDeep)(null!==(t=this.component.dataValue)&&void 0!==t?t:this.component.getValue()),this.closeModal()}}},85185:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.editgrid=void 0;const i=n(76274);t.editgrid=i.default},85231:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.lodashOperators=void 0,t.lodashOperators=["chunk","compact","concat","difference","differenceBy","differenceWith","drop","dropRight","dropRightWhile","dropWhile","findIndex","findLastIndex","first","flatten","flattenDeep","flattenDepth","fromPairs","head","indexOf","initial","intersection","intersectionBy","intersectionWith","join","last","lastIndexOf","nth","slice","sortedIndex","sortedIndexBy","sortedIndexOf","sortedLastIndex","sortedLastIndexBy","sortedLastIndexOf","sortedUniq","sortedUniqBy","tail","take","takeRight","takeRightWhile","takeWhile","union","unionBy","unionWith","uniq","uniqBy","uniqWith","unzip","unzipWith","without","xor","xorBy","xorWith","zip","zipObject","zipObjectDeep","zipWith","countBy","every","filter","find","findLast","flatMap","flatMapDeep","flatMapDepth","groupBy","includes","invokeMap","keyBy","map","orderBy","partition","reduce","reduceRight","reject","sample","sampleSize","shuffle","size","some","sortBy","now","flip","negate","overArgs","partial","partialRight","rearg","rest","spread","castArray","clone","cloneDeep","cloneDeepWith","cloneDeep","conformsTo","eq","gt","gte","isArguments","isArray","isArrayBuffer","isArrayLike","isArrayLikeObject","isBoolean","isBuffer","isDate","isElement","isEmpty","isEqual","isEqualWith","isError","isFinite","isFunction","isInteger","isLength","isMap","isMatch","isMatchWith","isNaN","isNative","isNil","isNull","isNumber","isObject","isObjectLike","isPlainObject","isRegExp","isSafeInteger","isSet","isString","isSymbol","isTypedArray","isUndefined","isWeakMap","isWeakSet","lt","lte","toArray","toFinite","toInteger","toLength","toNumber","toPlainObject","toSafeInteger","toString","add","ceil","divide","floor","max","maxBy","mean","meanBy","min","minBy","multiply","round","subtract","sum","sumBy","clamp","inRange","random","at","entries","entriesIn","findKey","findLastKey","functions","functionsIn","get","has","hasIn","invert","invertBy","invoke","keys","keysIn","mapKeys","mapValues","omit","omitBy","pick","pickBy","result","toPairs","toPairsIn","transform","values","valuesIn","camelCase","capitalize","deburr","endsWith","escape","escapeRegExp","kebabCase","lowerCase","lowerFirst","pad","padEnd","padStart","parseInt","repeat","replace","snakeCase","split","startCase","startsWith","toLower","toUpper","trim","trimEnd","trimStart","truncate","unescape","upperCase","upperFirst","words","cond","conforms","constant","defaultTo","flow","flowRight","identity","iteratee","matches","matchesProperty","method","methodOf","nthArg","over","overEvery","overSome","property","propertyOf","range","rangeRight","stubArray","stubFalse","stubObject","stubString","stubTrue","times","toPath","uniqueId"]},85311:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateJsonInfo=t.validateJsonSync=t.validateJson=t.shouldValidate=void 0;const r=n(79092),a=n(54008),s=n(2543);t.shouldValidate=e=>{var t;const{component:n}=e;return!(!(null===(t=n.validate)||void 0===t?void 0:t.json)||!(0,s.isObject)(n.validate.json))},t.validateJson=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateJsonSync)(e)})),t.validateJsonSync=e=>{var n;const{component:i,value:s,evalContext:o}=e;if(!(0,t.shouldValidate)(e))return null;const l=null===(n=null==i?void 0:i.validate)||void 0===n?void 0:n.json,u=o?o(e):e;u.value=s||null;const d=r.JSONLogicEvaluator.evaluate(l,Object.assign(Object.assign({},u),{input:s}),"valid");return null===d||!0===d?null:new a.FieldError(d||"jsonLogic",Object.assign(Object.assign({},e),{setting:l}),"json")},t.validateJsonInfo={name:"validateJson",process:t.validateJson,processSync:t.validateJsonSync,shouldProcess:t.shouldValidate}},85463:e=>{e.exports=function(e){return e!=e}},85498:function(e,t,n){!function(e){"use strict";var t=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];e.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:t,monthsShortRegex:t,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(e,t){switch(t){case"D":return e+(1===e?"er":"");default:case"M":case"Q":case"DDD":case"d":return e+(1===e?"er":"e");case"w":case"W":return e+(1===e?"re":"e")}},week:{dow:1,doy:4}})}(n(95093))},85636:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(16166);t.default={form:i.default}},85650:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.defaultValueProcessInfo=t.serverDefaultValueProcessInfo=t.customDefaultValueProcessInfo=t.defaultValueProcessSync=t.defaultValueProcess=t.serverDefaultValueProcessSync=t.serverDefaultValueProcess=t.customDefaultValueProcessSync=t.customDefaultValueProcess=t.hasDefaultValue=t.hasServerDefaultValue=t.hasCustomDefaultValue=void 0;const r=n(79092),a=n(2543),s=n(96690);t.hasCustomDefaultValue=e=>{const{component:t}=e;return!!t.customDefaultValue},t.hasServerDefaultValue=e=>{const{component:t}=e;return!!t.hasOwnProperty("defaultValue")},t.hasDefaultValue=e=>(0,t.hasCustomDefaultValue)(e)||(0,t.hasServerDefaultValue)(e),t.customDefaultValueProcess=e=>i(void 0,void 0,void 0,(function*(){return(0,t.customDefaultValueProcessSync)(e)})),t.customDefaultValueProcessSync=e=>{const{component:n,row:i,data:o,scope:l,evalContext:u,path:d}=e;if(!(0,t.hasCustomDefaultValue)(e))return;if(l.defaultValues||(l.defaultValues=[]),(0,a.has)(i,(0,s.getComponentKey)(n)))return;let c=null;if(n.customDefaultValue){const t=u?u(e):e;t.value=null,c=r.JSONLogicEvaluator.evaluate(n.customDefaultValue,t,"value"),n.multiple&&!Array.isArray(c)&&(c=c?[c]:[]),l.defaultValues.push({path:d,value:c})}null!=c&&(0,a.set)(o,d,c)},t.serverDefaultValueProcess=e=>i(void 0,void 0,void 0,(function*(){return(0,t.serverDefaultValueProcessSync)(e)})),t.serverDefaultValueProcessSync=e=>{const{component:n,row:i,data:r,scope:o,path:l}=e;if(!(0,t.hasServerDefaultValue)(e))return;if(o.defaultValues||(o.defaultValues=[]),(0,a.has)(i,(0,s.getComponentKey)(n)))return;let u=null;void 0!==n.defaultValue&&null!==n.defaultValue&&(u=n.defaultValue,n.multiple&&!Array.isArray(u)&&(u=u?[u]:[]),o.defaultValues.push({path:l,value:u})),null!=u&&(0,a.set)(r,l,u)},t.defaultValueProcess=e=>i(void 0,void 0,void 0,(function*(){return(0,t.defaultValueProcessSync)(e)})),t.defaultValueProcessSync=e=>{(0,t.customDefaultValueProcessSync)(e),(0,t.serverDefaultValueProcessSync)(e)},t.customDefaultValueProcessInfo={name:"customDefaultValue",process:t.customDefaultValueProcess,processSync:t.customDefaultValueProcessSync,shouldProcess:t.hasCustomDefaultValue},t.serverDefaultValueProcessInfo={name:"serverDefaultValue",process:t.serverDefaultValueProcess,processSync:t.serverDefaultValueProcessSync,shouldProcess:t.hasServerDefaultValue},t.defaultValueProcessInfo={name:"defaultValue",process:t.defaultValueProcess,processSync:t.defaultValueProcessSync,shouldProcess:t.hasDefaultValue}},85765:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(39493);t.default={form:i.default}},85783:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=i(n(87338)),s=i(n(39142));class o extends s.default{static emptyTable(e,t){const n=[];for(let i=0;i{e.rows&&e.rows.length||(e.rows=o.emptyTable(this.component.numRows,this.component.numCols)),e.rows[t.tableRow]||(e.rows[t.tableRow]=[]),e.rows[t.tableRow][t.tableColumn]||(e.rows[t.tableRow][t.column]={components:[]}),e.rows[t.tableRow][t.tableColumn].components.push(t.schema)})),e.rows.length||(e.rows=o.emptyTable(this.component.numRows,this.component.numCols)),e}get className(){let e=`table-responsive ${super.className}`;return this.component.bordered||(e+=" no-top-border-table"),e}get cellClassName(){let e="";return this.component.cellAlignment&&(e=`cell-align-${this.component.cellAlignment}`),e}get tableKey(){return`table-${this.key}`}get colWidth(){const{numCols:e}=this.component;return e&&"number"==typeof e?Math.floor(12/e).toString():""}constructor(...e){super(...e),this.noField=!0}init(){super.init();for(let e=0;e{this.table[n]=[],r.default.each(t,((t,i)=>{this.table[n][i]=[],this.component.cloneRows&&(t.components.length?e[i]=t:e[i]&&(t.components=r.default.cloneDeep(e[i].components),a.default.uniquify(this.root._form.components,t))),r.default.each(t.components,(e=>{let t;this.builderMode?(e.id=e.id+n,t=e):t=Object.assign(Object.assign({},e),{id:e.id+n});const r=this.createComponent(t);r.tableRow=n,r.tableColumn=i,this.table[n][i].push(r)}))}))}))}render(){return super.render(this.renderTemplate("table",{cellClassName:this.cellClassName,tableKey:this.tableKey,colWidth:this.colWidth,tableComponents:this.table.map((e=>e.map((e=>this.renderComponents(e)))))}))}attach(e){const t=this.table.reduce(((e,t,n)=>(e[`${this.tableKey}-${n}`]="multiple",e)),{});this.loadRefs(e,t);const n=super.attach(e);return this.table.forEach(((e,t)=>{e.forEach(((e,n)=>{this.attachComponents(this.refs[`${this.tableKey}-${t}`][n],this.table[t][n],this.component.rows[t][n].components)}))})),n}destroy(e=!1){super.destroy(e),delete this.table}}t.default=o},85955:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(59287)),a=i(n(9823));t.default=function(...e){return(0,r.default)([{key:"data",components:[{key:"dataType",ignore:!0}]},{key:"validation",components:a.default}],...e)}},86009:(e,t,n)=>{e=n.nmd(e);var i=n(34840),r=t&&!t.nodeType&&t,a=r&&e&&!e.nodeType&&e,s=a&&a.exports===r&&i.process,o=function(){try{return a&&a.require&&a.require("util").types||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=o},86129:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),a=i(n(10518)),s=i(n(670)),o=i(n(74736)),l=i(n(39277));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:s.default},{key:"data",components:a.default},{label:"File",key:"file",weight:5,components:o.default},{key:"validation",components:l.default}],...e)}},86169:function(e,t,n){!function(e){"use strict";var t={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function i(e,t,n,i){var r="";if(t)switch(n){case"s":r="काही सेकंद";break;case"ss":r="%d सेकंद";break;case"m":r="एक मिनिट";break;case"mm":r="%d मिनिटे";break;case"h":r="एक तास";break;case"hh":r="%d तास";break;case"d":r="एक दिवस";break;case"dd":r="%d दिवस";break;case"M":r="एक महिना";break;case"MM":r="%d महिने";break;case"y":r="एक वर्ष";break;case"yy":r="%d वर्षे"}else switch(n){case"s":r="काही सेकंदां";break;case"ss":r="%d सेकंदां";break;case"m":r="एका मिनिटा";break;case"mm":r="%d मिनिटां";break;case"h":r="एका तासा";break;case"hh":r="%d तासां";break;case"d":r="एका दिवसा";break;case"dd":r="%d दिवसां";break;case"M":r="एका महिन्या";break;case"MM":r="%d महिन्यां";break;case"y":r="एका वर्षा";break;case"yy":r="%d वर्षां"}return r.replace(/%d/i,e)}e.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},preparse:function(e){return e.replace(/[१२३४५६७८९०]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(e,t){return 12===e&&(e=0),"पहाटे"===t||"सकाळी"===t?e:"दुपारी"===t||"सायंकाळी"===t||"रात्री"===t?e>=12?e:e+12:void 0},meridiem:function(e,t,n){return e>=0&&e<6?"पहाटे":e<12?"सकाळी":e<17?"दुपारी":e<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(95093))},86309:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=i(n(96877)),s=i(n(85179)),o=i(n(30228)),l=n(34600),u=n(29857),d=i(n(18633));class c extends a.default{static schema(...e){return a.default.schema({label:"Form",type:"form",key:"form",src:"",reference:!0,form:"",path:"",tableView:!0},...e)}static get builderInfo(){return{title:"Nested Form",icon:"wpforms",group:"premium",documentation:"/userguide/form-building/premium-components#nested-form",weight:110,schema:c.schema()}}static savedValueTypes(){return[l.componentValueTypes.object]}init(){if(super.init(),this.formObj={display:this.component.display,settings:this.component.settings,components:this.component.components},this.valueChanged=!1,this.subForm=null,this.formSrc="",this.component.src&&(this.formSrc=this.component.src),this.component.src||this.options.formio||!this.component.form&&!this.component.path||(this.component.project?(this.formSrc=u.Formio.getBaseUrl(),(0,l.isMongoId)(this.component.project)&&(this.formSrc+="/project"),this.formSrc+=`/${this.component.project}`,this.options.project=this.formSrc):(this.formSrc=u.Formio.getProjectUrl(),this.options.project=this.formSrc),this.component.form?(0,l.isMongoId)(this.component.form)?this.formSrc+=`/form/${this.component.form}`:this.formSrc+=`/${this.component.form}`:this.component.path&&(this.formSrc+=`/${this.component.path}`)),!this.formSrc&&this.options.formio){const e=this.options.formio.formsUrl;if(this.component.form&&(0,l.isMongoId)(this.component.form))this.formSrc=`${e}/${this.component.form}`;else{const t=this.component.path||this.component.form;this.formSrc=`${e.replace(/\/form$/,"")}/${t}`}}return this.builderMode&&this.component.hasOwnProperty("formRevision")&&(this.component.revision=this.component.formRevision,delete this.component.formRevision),(this.component.revision||0===this.component.revision||this.component.formRevision||0===this.component.formRevision||this.component.revisionId)&&this.setFormRevision(this.component.revisionId||this.component.revision||this.component.formRevision),this.createSubForm()}get dataReady(){return this.subFormReady||Promise.resolve()}get defaultValue(){return this.subForm?super.defaultValue:null}get defaultSchema(){return c.schema()}get emptyValue(){return{data:{}}}get ready(){return this.subFormReady||Promise.resolve()}get useOriginalRevision(){var e,t;return(null===(e=this.component)||void 0===e?void 0:e.useOriginalRevision)&&!!(null===(t=this.formObj)||void 0===t?void 0:t.revisions)}setFormRevision(e){this.formSrc=this.formSrc.replace(/\/v\/[0-9a-z]+/,"");const t=Number.parseInt(e);isNaN(t)?this.subFormRevision=void 0:(this.subFormRevision=e,this.formSrc+=`/v/${e}`)}getComponent(e,t){"data"===(e=(0,l.getArrayFromComponentPath)(e))[0]&&e.shift();const n=`${this.path}.data.${(0,l.getStringFromComponentPath)(e)}`;if(this.subForm)return this.subForm.getComponent(e,t,n)}getSubOptions(e={}){return e.events=this.createEmitter(),r.default.set(e,"buttonSettings.showSubmit",!1),e.parent=this,e.parentVisible=this.visible,this.options?(this.options.base&&(e.base=this.options.base),this.options.project&&(e.project=this.options.project),(this.options.readOnly||this.component.disabled)&&(e.readOnly=this.options.readOnly||this.component.disabled),this.options.breadcrumbSettings&&(e.breadcrumbSettings=this.options.breadcrumbSettings),this.options.buttonSettings&&(e.buttonSettings=r.default.clone(this.options.buttonSettings)),this.options.viewAsHtml&&(e.viewAsHtml=this.options.viewAsHtml),this.options.language&&(e.language=this.options.language),this.options.template&&(e.template=this.options.template),this.options.templates&&(e.templates=this.options.templates),this.options.renderMode&&(e.renderMode=this.options.renderMode),this.options.attachMode&&(e.attachMode=this.options.attachMode),this.options.iconset&&(e.iconset=this.options.iconset),this.options.fileService&&(e.fileService=this.options.fileService),this.options.onChange&&(e.onChange=this.options.onChange),this.options.preview&&(e.preview=this.options.preview),this.options.inEditGrid&&(e.inEditGrid=this.options.inEditGrid),this.options.saveDraft&&(e.saveDraft=this.options.saveDraft,e.formio=new u.Formio(this.formSrc)),this.options.saveDraftThrottle&&(e.saveDraftThrottle=this.options.saveDraftThrottle),this.options.skipDraftRestore&&(e.skipDraftRestore=this.options.skipDraftRestore),e):e}render(){if(this.builderMode)return super.render(this.component.label||"Nested form");const e=this.subForm?this.subForm.render():this.renderTemplate("loading");return super.render(e)}asString(e){return this.getValueAsString(e)}getValueAsString(e,t){if(!e)return"No data provided";if(!e.data&&e._id)return e._id;if(!e.data||!Object.keys(e.data).length)return"No data provided";if(null==t?void 0:t.email){let e='\n \n \n ';return this.everyComponent((n=>{n.isInputComponent&&n.visible&&!n.skipInEmail&&(e+=`\n \n \n \n \n `)}),Object.assign(Object.assign({},t),{fromRoot:!0})),e+="\n \n
    ${n.label}${n.getView(n.dataValue,t)}
    \n ",e}return r.default.isEmpty(e)?"":"[Complex Data]"}attach(e){return this.builderMode?super.attach(e):super.attach(e).then((()=>(!this.isSubFormLazyLoad()||this.hasLoadedForm||this.subFormLoading||this.createSubForm(!0),this.subFormReady.then((()=>{if(this.empty(e),this.options.builder)this.setContent(e,this.ce("div",{class:"text-muted text-center p-2"},this.text(this.formObj.title)));else{if(this.setContent(e,this.render()),this.subForm&&(this.isNestedWizard&&(e=this.root.element),this.subForm.attach(e),this.valueChanged=this.hasSetValue,this.valueChanged||"submitted"===this.dataValue.state?this.restoreValue():this.setDefaultValue()),!this.builderMode&&this.component.modalEdit){const t=!!this.componentModal&&this.componentModal.isOpened,n=t?this.componentModal.currentValue:this.dataValue;this.componentModal=new s.default(this,e,t,n,this._referenceAttributeName),this.setOpenModalElement()}this.calculateValue()}})))))}detach(){this.subForm&&this.subForm.detach(),super.detach()}get currentForm(){return this._currentForm}get hasLoadedForm(){return this.formObj&&this.formObj.components&&Array.isArray(this.formObj.components)&&this.formObj.components.length}set currentForm(e){this._currentForm=e,this.subForm&&this.subForm.getComponents().forEach((e=>{e.currentForm=this}))}get isRevisionChanged(){return r.default.isNumber(this.subFormRevision)&&r.default.isNumber(this.formObj._vid)&&this.formObj._vid!==this.subFormRevision}destroy(e=!1){this.subForm&&(this.subForm.destroy(e),this.subForm=null,this.subFormReady=null),super.destroy(e)}redraw(){return this.subForm&&(this.subForm.form=this.formObj,this.setSubFormDisabled(this.subForm)),super.redraw()}everyComponent(...e){this.subForm&&this.subForm.everyComponent(...e)}setSubFormDisabled(e){e.disabled=this.disabled}updateSubWizards(e){var t,n;if(this.isNestedWizard&&(null===(t=this.root)||void 0===t?void 0:t.subWizards)&&"wizard"===(null===(n=null==e?void 0:e._form)||void 0===n?void 0:n.display)){const t=this.root.subWizards.findIndex((e=>e.component.form===this.component.form));-1!==t?this.root.subWizards[t]=this:this.root.subWizards.push(this),this.emit("subWizardsUpdated",e)}}createSubForm(e){return this.subFormReady=this.loadSubForm(e).then((e=>{if(e)return(0,l.eachComponent)(e.components,(e=>{this.hideSubmitButton(e)})),this.subForm&&this.subForm.destroy(),new d.default(e,this.getSubOptions()).ready.then((e=>(this.subForm=e,this.subForm.currentForm=this,this.subForm.on("change",(()=>{this.subForm&&(this.dataValue=this.subForm.getValue(),this.triggerChange({noEmit:!0}))})),this.subForm.url=this.formSrc,this.subForm.nosubmit=!0,this.subForm.root=this.root,this.subForm.localRoot=this.isNestedWizard?this.localRoot:this.subForm,this.restoreValue(),this.valueChanged=this.hasSetValue,this.onChange(),this.subForm)))})).then((e=>(this.updateSubWizards(e),e))),this.subFormReady}hideSubmitButton(e){"button"===e.type&&("submit"===e.action||!e.action)&&(e.hidden=!0)}loadSubForm(e){var t,n,i,a,s;if(this.builderMode||this.isHidden()||this.isSubFormLazyLoad()&&!e)return Promise.resolve();if(!(!this.hasLoadedForm||this.isRevisionChanged||this.options.pdf&&(null===(t=this.component)||void 0===t?void 0:t.useOriginalRevision)&&r.default.isNull(this.subForm)&&!this.subFormLoading))return this.root&&this.root.form&&this.root.form.config&&!this.formObj.config&&(this.formObj.config=this.root.form.config),Promise.resolve(this.formObj);if(this.formSrc){this.subFormLoading=!0;const e=(null===(i=null===(n=this.root)||void 0===n?void 0:n.formio)||void 0===i?void 0:i.base)&&(null===(s=null===(a=this.root)||void 0===a?void 0:a.formio)||void 0===s?void 0:s.projectUrl)?{base:this.root.formio.base,project:this.root.formio.projectUrl}:{};return new u.Formio(this.formSrc,e).loadForm({params:{live:1}}).then((e=>(this.formObj=e,this.options.pdf&&this.component.useOriginalRevision&&(this.formObj.display="form"),this.subFormLoading=!1,e))).catch((e=>(console.log(e),null)))}return Promise.resolve()}get subFormData(){var e;return(null===(e=this.dataValue)||void 0===e?void 0:e.data)||{}}checkComponentValidity(e,t,n,i,r=[]){const a=(i=i||{}).silentCheck||!1;return this.subForm?this.subForm.checkValidity(this.subFormData,t,null,a,r):super.checkComponentValidity(e,t,n,i,r)}checkComponentConditions(e,t,n){const i=super.checkComponentConditions(e,t,n);return i?this.subForm?this.subForm.checkConditions(this.subFormData):(this.subFormReady&&this.subFormReady.then((()=>{if(this.subForm)return this.subForm.checkConditions(this.subFormData)})),i):i}calculateValue(e,t,n){return this.subForm?this.subForm.calculateValue(this.subFormData,t):super.calculateValue(e,t,n)}setPristine(e){super.setPristine(e),this.subForm&&this.subForm.setPristine(e)}get shouldSubmit(){return this.subFormReady&&(!this.component.hasOwnProperty("reference")||this.component.reference)&&!this.isHidden()}getSubFormData(){return"pdf"===r.default.get(this.subForm,"form.display")?this.subForm.getSubmission():Promise.resolve(this.dataValue)}submitSubForm(){return this.shouldSubmit?this.subFormReady.then((()=>this.subForm?(this.subForm.nosubmit=!1,this.subForm.submitted=!0,this.subForm.submitForm().then((e=>(this.subForm.loading=!1,this.subForm.showAllErrors=!1,this.dataValue=e.submission,this.dataValue))).catch((e=>(this.subForm.showAllErrors=!0,this.subForm.onSubmissionError(e),Promise.reject(e))))):this.dataValue)):this.getSubFormData()}beforePage(e){return e?this.submitSubForm(!0).then((()=>super.beforePage(e))):super.beforePage(e)}beforeSubmit(){var e,t,n;const i=this.dataValue;(null===(e=this.subForm)||void 0===e?void 0:e.draftEnabled)&&(null===(t=this.subForm.triggerSaveDraft)||void 0===t?void 0:t.cancel)&&this.subForm.triggerSaveDraft.cancel();const r=i&&i._id&&i.form,a=this.options.saveDraft&&"draft"===i.state;return!r||(null===(n=this.subForm)||void 0===n?void 0:n.wizard)||a?this.submitSubForm(!1).then((()=>this.dataValue)).then((()=>super.beforeSubmit())):(this.dataValue=i,Promise.resolve(this.dataValue))}isSubFormLazyLoad(){var e,t;return"wizard"===(null===(t=null===(e=this.root)||void 0===e?void 0:e._form)||void 0===t?void 0:t.display)&&this.component.lazyLoad}isHidden(){return!this.visible||!super.checkConditions(this.rootValue)}setValue(e,t={}){var n;const i=super.setValue(e,t);if(this.valueChanged=!0,this.subForm){const i=e._frid?"_frid":"_vid";this.useOriginalRevision&&(r.default.isNumber(e[i])||r.default.isNumber(e._fvid))&&r.default.isNumber(null===(n=this.subForm.form)||void 0===n?void 0:n[i])&&e._fvid!==this.subForm.form[i]?(this.setFormRevision(e._frid||e._fvid),this.createSubForm().then((()=>{this.attach(this.element)}))):this.setSubFormValue(e,t)}return i}setSubFormValue(e,t){var n,i,a,s;const o=e&&e._id&&this.subForm.formio&&r.default.isEmpty(e.data),l=this.options.saveDraft&&r.default.isEmpty(e.data)&&r.default.get(this.subForm,"submission._id");if(o||l){const t=e.form||this.formObj.form||this.component.form,r=`${this.subForm.formio.formsUrl}/${t}/submission/${e._id||this.subForm.submission._id}`,o=(null===(i=null===(n=this.root)||void 0===n?void 0:n.formio)||void 0===i?void 0:i.base)&&(null===(s=null===(a=this.root)||void 0===a?void 0:a.formio)||void 0===s?void 0:s.projectUrl)?{base:this.root.formio.base,project:this.root.formio.projectUrl}:{};this.subForm.setUrl(r,Object.assign(Object.assign({},this.options),o)),this.subForm.loadSubmission().catch((t=>{console.error(`Unable to load subform submission ${e._id}:`,t)}))}else this.subForm.setValue(e,t)}isEmpty(e=this.dataValue){return null===e||r.default.isEqual(e,this.emptyValue)||this.areAllComponentsEmpty(null==e?void 0:e.data)&&!(null==e?void 0:e._id)}areAllComponentsEmpty(e){let t=!0;return this.subForm?this.subForm.everyComponent((n=>{const i=r.default.get(e,n.key);t&=n.isEmpty(i)})):t=!1,t}getValue(){return this.subForm?this.subForm.getValue():this.dataValue}get errors(){let e=super.errors;return this.subForm&&(e=e.concat(this.subForm.errors)),e}updateSubFormVisibility(){this.subForm&&(this.subForm.parentVisible=this.visible)}get isNestedWizard(){var e,t,n,i,r;return"wizard"===(null===(t=null===(e=this.subForm)||void 0===e?void 0:e._form)||void 0===t?void 0:t.display)&&"wizard"===(null===(r=null===(i=null===(n=this.parent)||void 0===n?void 0:n.parent)||void 0===i?void 0:i._form)||void 0===r?void 0:r.display)}get visible(){return super.visible}set visible(e){const t=this.isNestedWizard;if(this._visible!==e){if(this._visible=e,!this.subForm&&e)return this.createSubForm(),this.subFormReady.then((()=>{this.updateSubFormVisibility(),this.clearOnHide()})),void this.redraw();this.updateSubFormVisibility(),this.clearOnHide(),t?this.rebuild():this.redraw()}!e&&t&&this.root.redraw()}get parentVisible(){return super.parentVisible}set parentVisible(e){if(this._parentVisible!==e){if(this._parentVisible=e,this.clearOnHide(),!this.subForm&&e)return this.createSubForm(),this.subFormReady.then((()=>{this.updateSubFormVisibility()})),void this.redraw();this.updateSubFormVisibility(),this.redraw()}}isInternalEvent(e){switch(e){case"focus":case"blur":case"componentChange":case"componentError":case"error":case"formLoad":case"languageChanged":case"render":case"checkValidity":case"initialized":case"submit":case"submitButton":case"nosubmit":case"updateComponent":case"submitDone":case"submissionDeleted":case"requestDone":case"nextPage":case"prevPage":case"wizardNavigationClicked":case"updateWizardNav":case"restoreDraft":case"saveDraft":case"saveComponent":case"pdfUploaded":return!0;default:return!1}}createEmitter(){const e=new o.default,t=e.emit,n=this;return e.emit=function(e,...i){const r=e.replace(`${n.options.namespace}.`,"");t.call(this,e,...i),n.isInternalEvent(r)||n.emit(r,...i)},e}deleteValue(){super.setValue(null,{noUpdateEvent:!0,noDefault:!0}),this.unset()}}t.default=c},86375:(e,t,n)=>{var i=n(14528),r=n(28879),a=n(4664),s=n(63345),o=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)i(t,a(e)),e=r(e);return t}:s;e.exports=o},86571:function(e,t,n){!function(e){"use strict";var t={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};e.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(e,t){return 12===e&&(e=0),"шаб"===t?e<4?e:e+12:"субҳ"===t?e:"рӯз"===t?e>=11?e:e+12:"бегоҳ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"шаб":e<11?"субҳ":e<16?"рӯз":e<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(e){return e+(t[e]||t[e%10]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},86641:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(3577)),a=i(n(2543));class s extends r.default{static get operatorKey(){return"lessThanOrEqual"}static get displayedName(){return"Less Than Or Equal To"}execute({value:e,comparedValue:t}){return a.default.isNumber(e)&&(e{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"select",input:!0,dataSrc:"url",data:{url:"/form?limit=1000000&select=_id,title,display"},searchField:"title__regex",template:"{{ item.title }}",valueProperty:"_id",authenticate:!0,label:"Form",key:"form",weight:10,lazyLoad:!1,tooltip:"The form to load within this form component.",validate:{required:!0}},{label:"Lazy Load",inputType:"checkbox",defaultValue:!0,clearOnHide:!0,errorLabel:"",key:"lazyLoad",type:"checkbox",tooltip:"if it is checked, the subform is loaded after navigation to the page with this component within the wizard.",input:!0,customConditional({instance:e,data:t}){var n,i,r,a;const s=null===(i=null===(n=e.root)||void 0===n?void 0:n.getComponent("form"))||void 0===i?void 0:i.defaultDownloadedResources.find((e=>e._id===t.form)),o="wizard";return(null===(a=null===(r=e.options)||void 0===r?void 0:r.editForm)||void 0===a?void 0:a.display)===o&&s&&s.display!==o}},{type:"select",input:!0,dataSrc:"url",data:{url:"/form/{{ data.form }}/v"},searchField:"title__regex",template:"{{ item._vid }}",valueProperty:"_id",authenticate:!0,label:"Form Revision",key:"revision",weight:10,lazyLoad:!0,tooltip:"You can lock the nested form to a specific revision by choosing the revision number here.",customConditional:"show = !!data.form"},{type:"checkbox",input:!0,weight:19,key:"useOriginalRevision",label:"Use Original Revision while Submissions Viewing",tooltip:"Using this option will make form load the original revision (the one which was used to make a submission) when viewing a submission."},{type:"checkbox",input:!0,weight:20,key:"reference",label:"Save as reference",tooltip:"Using this option will save this field as a reference and link its value to the value of the origin record."}]},86928:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
    ',e.displayValue?n+=null==(t=e.displayValue)?"":t:n+="-",n+"
    \n"}},87068:(e,t,n)=>{var i=n(37217),r=n(25911),a=n(21986),s=n(50689),o=n(5861),l=n(56449),u=n(3656),d=n(37167),c="[object Arguments]",h="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=l(e),b=l(t),_=y?h:o(e),w=b?h:o(t),M=(_=_==c?p:_)==p,k=(w=w==c?p:w)==p,S=_==w;if(S&&u(e)){if(!u(t))return!1;y=!0,M=!1}if(S&&!M)return v||(v=new i),y||d(e)?r(e,t,n,m,g,v):a(e,t,_,n,m,g,v);if(!(1&n)){var x=M&&f.call(e,"__wrapped__"),L=k&&f.call(t,"__wrapped__");if(x||L){var C=x?e.value():e,T=L?t.value():t;return v||(v=new i),g(C,T,n,m,v)}}return!!S&&(v||(v=new i),s(e,t,n,m,g,v))}},87078:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n ',e.hasHeader&&(n+="\n \n \n ",e.columns.forEach((function(i){n+='\n \n "})),n+="\n \n \n "),n+="\n \n ",e.rows.forEach((function(i){n+="\n \n ",e.columns.forEach((function(r){n+='\n \n "})),n+="\n \n "})),n+="\n \n
    \n '+(null==(t=i.hideLabel?"":e.t(i.label||i.title,{_userInput:!0}))?"":t)+"\n ",i.tooltip&&(n+=' '),n+="\n
    \n '+(null==(t=i[r.key])?"":t)+"\n
    \n"}},87278:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
    \n
    \n '+(null==(t=e.sidebar)?"":t)+'\n
    \n
    \n\t
    \n '+(null==(t=e.form)?"":t)+"\n
    \n
    \n"}},87296:(e,t,n)=>{var i,r=n(55481),a=(i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!a&&a in e}},87338:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=n(34600);t.default={uniquify(e,t){let n=!1;const i={};return(0,a.eachComponent)(e,(e=>{if(i[e.key]=!0,["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree)return!0}),!0),(0,a.eachComponent)([t],(e=>{if(!e.key)return;const t=(0,a.uniqueKey)(i,e.key);return t!==e.key&&(e.key=t,n=!0),i[t]=!0,!!(["address","container","datagrid","editgrid","dynamicWizard","tree"].includes(e.type)||e.tree||e.arrayTree)||void 0}),!0),n},additionalShortcuts:{button:["Enter","Esc"]},getAlphaShortcuts:()=>r.default.range("A".charCodeAt(),"Z".charCodeAt()+1).map((e=>String.fromCharCode(e))),getAdditionalShortcuts(e){return this.additionalShortcuts[e]||[]},getBindedShortcuts(e,t){const n=[];return(0,a.eachComponent)(e,(e=>{e!==t&&(e.shortcut&&n.push(e.shortcut),e.values&&e.values.forEach((e=>{e.shortcut&&n.push(e.shortcut)})))}),!0),n},getAvailableShortcuts(e,t){return t?[""].concat(r.default.difference(this.getAlphaShortcuts().concat(this.getAdditionalShortcuts(t.type)),this.getBindedShortcuts(e.components,t))).map((e=>({label:e,value:e}))):[]}}},87378:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{type:"textfield",input:!0,key:"footer",label:"Footer Label",tooltip:"The footer text that appears below the signature area.",placeholder:"Footer Label",weight:10},{type:"textfield",input:!0,key:"width",label:"Width",tooltip:"The width of the signature area.",placeholder:"Width",conditional:{json:{"!":[{var:"data.keepOverlayRatio"}]}},weight:50},{type:"textfield",input:!0,key:"height",label:"Height",tooltip:"The height of the signature area.",placeholder:"Height",conditional:{json:{"!":[{var:"data.keepOverlayRatio"}]}},weight:51},{weight:52,type:"checkbox",label:"Keep Overlay Aspect Ratio",tooltip:"If checked, the field will have the same aspect ratio as its preview.",key:"keepOverlayRatio",customConditional:({options:e})=>{var t;return"pdf"===(null===(t=null==e?void 0:e.editForm)||void 0===t?void 0:t.display)},input:!0},{type:"textfield",input:!0,key:"backgroundColor",label:"Background Color",tooltip:"The background color of the signature area.",placeholder:"Background Color",weight:52},{type:"textfield",input:!0,key:"penColor",label:"Pen Color",tooltip:"The ink color for the signature area.",placeholder:"Pen Color",weight:53},{key:"placeholder",ignore:!0},{key:"autofocus",ignore:!0}]},87422:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96877)),a=i(n(33844)),s=i(n(21445)),o=n(34600),l=i(n(2543));class u{static set EditFormUtils(e){u._editFormUtils=e}static get EditFormUtils(){return u._editFormUtils}static set baseEditForm(e){u._baseEditForm=e}static get baseEditForm(){return u._baseEditForm}static recalculateComponents(){window&&window.Formio&&window.Formio.AllComponents&&u.setComponents(window.Formio.AllComponents)}static get components(){return u._components||(u._components={}),u._components}static setComponents(e){e.base&&(e.base.tableView=function(e,t){return u.create(t.component,t.options||{},t.data||{},!0).getView(e)}),l.default.assign(u.components,e)}static addComponent(e,t){return u.setComponent(e,t)}static setComponent(e,t){u.components[e]=t}static getComponentPath(e){var t;let n="";const i=(0,o.getComponentKey)(e.component);if(i){let r=(null===(t=e.options)||void 0===t?void 0:t.parent)||e;for(;r&&!r.allowData&&r.parent;)r=r.parent;const a=e.row,s=a&&!["container"].includes(r.component.type)?`[${Number.parseInt(a)}]`:"";return n=`${r.path}${s}.`,s&&"nestedDataArray"===(0,o.getModelType)(r)&&(n=`${n}data.`),n+=i,l.default.trim(n,".")}return n}static create(e,t,n){let i=null;i=e.type&&u.components.hasOwnProperty(e.type)?new u.components[e.type](e,t,n):e.arrayTree?new u.components.datagrid(e,t,n):e.tree?new u.components.nesteddata(e,t,n):Array.isArray(e.components)?new u.components.nested(e,t,n):t&&t.server?new u.components.hidden(e,t,n):new r.default(e,t,n);const a=u.getComponentPath(i);return a&&(i.path=a,i.componentsMap[i.path]=i),i}}u._editFormUtils=a.default,u._baseEditForm=s.default,t.default=u},87468:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFormioUploadAdapterPlugin=void 0;const i=n(34600);class r{constructor(e,t,n){this.loader=e,this.fileService=t,this.component=n}upload(){return this.loader.file.then((e=>new Promise(((t,n)=>{const{uploadStorage:r,uploadUrl:a,uploadOptions:s,uploadDir:o,fileKey:l}=this.component.component,u=[r,e,(0,i.uniqueName)(e.name),o||"",e=>this.onUploadProgress(e),a,s,l,null,null],d=this.fileService.uploadFile(...u,(()=>this.component.emit("fileUploadingStart",d))).then((e=>this.fileService.downloadFile(e))).then((e=>t({default:e.url}))).catch((e=>{console.warn("An Error occured while uploading file",e),n(e)})).finally((()=>{this.component.emit("fileUploadingEnd",d)}))}))))}abort(){}onUploadProgress(e){e.lengthComputable&&(this.loader.uploadTotal=e.total,this.loader.uploaded=e.loaded)}}t.getFormioUploadAdapterPlugin=(e,t)=>n=>{n.plugins.get("FileRepository").createUploadAdapter=n=>new r(n,e,t)}},87509:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
    \n ',e.values.forEach((function(e){n+='\n
    \n '+(null==(t=e)?"":t)+"\n
    \n "})),n+='\n
    \n
    \n ',e.node.hasChildren&&(n+='\n \n "),n+="\n ",e.readOnly||(n+='\n \n \n \n ",e.node.revertAvailable&&(n+='\n \n "),n+="\n "),n+="\n
    \n
    \n
    \n"}},87730:(e,t,n)=>{var i=n(29172),r=n(27301),a=n(86009),s=a&&a.isMap,o=s?r(s):i;e.exports=o},87733:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(91477);t.default={form:i.default}},87815:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),a=i(n(82690)),s=i(n(77298));t.default=function(...e){return r.default.baseEditForm([{key:"data",components:a.default},{key:"display",components:s.default}],...e)}},87970:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t;return""+'
    '+(null==(t=e.message)?"":t)+"
    \n"}},87978:(e,t,n)=>{var i=n(60270),r=n(58156),a=n(80631),s=n(28586),o=n(30756),l=n(67197),u=n(77797);e.exports=function(e,t){return s(e)&&o(t)?l(u(e),t):function(n){var s=r(n,e);return void 0===s&&s===t?a(n,e):i(t,s,3)}}},88131:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=i(n(95093)),s=i(n(30301)),o=n(34600),l=i(n(17389));class u extends l.default{static schema(...e){return l.default.schema({type:"datetime",label:"Date / Time",key:"dateTime",format:"yyyy-MM-dd hh:mm a",useLocaleSettings:!1,allowInput:!0,enableDate:!0,enableTime:!0,defaultValue:"",defaultDate:"",displayInTimezone:"viewer",timezone:"",datepickerMode:"day",datePicker:{showWeeks:!0,startingDay:0,initDate:"",minMode:"day",maxMode:"year",yearRows:4,yearColumns:5,minDate:null,maxDate:null},timePicker:{hourStep:1,minuteStep:1,showMeridian:!0,readonlyInput:!1,mousewheel:!0,arrowkeys:!0},customOptions:{}},...e)}static get builderInfo(){return{title:"Date / Time",group:"advanced",icon:"calendar",documentation:"/userguide/form-building/advanced-components#date-and-time",weight:40,schema:u.schema()}}static get serverConditionSettings(){return u.conditionOperatorsSettings}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{operators:["isDateEqual","isNotDateEqual","isEmpty","isNotEmpty","dateLessThan","dateGreaterThan","dateLessThanOrEqual","dateGreaterThanOrEqual"],valueComponent:e=>Object.assign(Object.assign({},e),{type:"datetime"})})}static savedValueTypes(e){return e=e||{},(0,o.getComponentSavedTypes)(e)||[o.componentValueTypes.date]}constructor(e,t,n){super(e,t,n);const i=this.component.timezone||this.options.timezone,a=!r.default.get(this.component,"timePicker.showMeridian",!0);this.component.enableDate?this.component.enableDate&&!/[yMd]/.test(this.component.format)&&this.builderMode&&(this.component.format=`yyyy-MM-dd ${this.component.format}`):this.component.format=this.component.format.replace(/yyyy-MM-dd /g,""),this.component.enableTime?this.component.enableTime&&!/[mhH]/.test(this.component.format)&&this.builderMode?this.component.format=`${this.component.format} hh:mm a`:this.component.format=a?this.component.format.replace(/hh:mm a$/g,"HH:mm"):this.component.format.replace(/HH:mm$/g,"hh:mm a"):this.component.format=this.component.format.replace(/ hh:mm a$/g,"");let s=this.component.customOptions||{};if("string"==typeof s)try{s=JSON.parse(s)}catch(e){console.warn(e.message),s={}}this.component.widget=Object.assign({type:"calendar",timezone:i,displayInTimezone:r.default.get(this.component,"displayInTimezone","viewer"),locale:this.options.language,useLocaleSettings:r.default.get(this.component,"useLocaleSettings",!1),allowInput:r.default.get(this.component,"allowInput",!0),mode:"single",enableTime:r.default.get(this.component,"enableTime",!0),noCalendar:!r.default.get(this.component,"enableDate",!0),format:this.component.format,hourIncrement:r.default.get(this.component,"timePicker.hourStep",1),minuteIncrement:r.default.get(this.component,"timePicker.minuteStep",5),time_24hr:a,readOnly:this.options.readOnly,minDate:r.default.get(this.component,"datePicker.minDate"),disabledDates:r.default.get(this.component,"datePicker.disable"),disableWeekends:r.default.get(this.component,"datePicker.disableWeekends"),disableWeekdays:r.default.get(this.component,"datePicker.disableWeekdays"),disableFunction:r.default.get(this.component,"datePicker.disableFunction"),maxDate:r.default.get(this.component,"datePicker.maxDate")},s)}get defaultSchema(){return u.schema()}get defaultValue(){let e=super.defaultValue;return!e&&this.component.defaultDate&&(e=s.default.getDateSetting(this.component.defaultDate),e=e?e.toISOString():""),e}get emptyValue(){return""}get momentFormat(){return s.default.convertFormatToMoment(this.component.format)}isEmpty(e=this.dataValue){return!(!e||"Invalid Date"!==e.toString())||super.isEmpty(e)}formatValue(e){const t=a.default.utc(e).toISOString();return"Invalid date"===t?e:t}isEqual(e,t=this.dataValue){return this.isEmpty(e)&&this.isEmpty(t)||a.default.utc(e).format(this.momentFormat)===a.default.utc(t).format(this.momentFormat)}createWrapper(){return!1}checkValidity(e,t,n){return this.refs.input&&this.refs.input.forEach((e=>{e.widget&&e.widget.enteredDate&&(t=!0)})),super.checkValidity(e,t,n)}getValueAsString(e){let t=s.default.convertFormatToMoment(this.component.format);t+=t.match(/z$/)?"":" z";const n=this.timezone;return e&&!this.attached&&n?Array.isArray(e)&&this.component.multiple?e.map((e=>r.default.trim(s.default.momentDate(e,t,n).format(t)))).join(", "):r.default.trim(s.default.momentDate(e,t,n).format(t)):Array.isArray(e)&&this.component.multiple?e.map((e=>r.default.trim((0,a.default)(e).format(t)))).join(", "):(e?r.default.trim((0,a.default)(e).format(t)):e)||""}}t.default=u},88307:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateUrlSelectValueInfo=t.validateUrlSelectValue=t.shouldValidate=t.generateUrl=void 0;const r=n(54008),a=n(84679),s=n(47499),o=n(16469);t.generateUrl=(e,t,n)=>{const i=e,r=i.searchParams;if(t.searchField){let e=n;e=t.valueProperty?n[t.valueProperty]:n,r.set(t.searchField,"string"==typeof e?e:JSON.stringify(e))}return t.selectFields&&r.set("select",t.selectFields),t.sort&&r.set("sort",t.sort),t.filter&&new URLSearchParams(t.filter).forEach(((e,t)=>r.set(t,e))),i},t.shouldValidate=e=>{var t;const{component:n,value:i,config:r}=e;return!(!(null==r?void 0:r.server)||!(e=>{var t;return e&&"select"===e.type&&(0,s.toBoolean)("url"===e.dataSrc)&&(0,s.toBoolean)(null===(t=e.validate)||void 0===t?void 0:t.select)})(n)||!i||(0,s.isEmptyObject)(i)||Array.isArray(i)&&0===i.length||"url"!==n.dataSrc||!(null===(t=n.data)||void 0===t?void 0:t.url)||!n.searchField)},t.validateUrlSelectValue=e=>i(void 0,void 0,void 0,(function*(){const{component:n,value:i,data:l,config:u}=e;let d=null;try{d=e.fetch?e.fetch:fetch}catch(e){d=null}try{if(!d)return console.log("You must provide a fetch interface to the fetch processor."),null;if(!(0,t.shouldValidate)(e))return null;const o=new URL(a.Evaluator?a.Evaluator.interpolate(n.data.url,l,{}):n.data.url),c=(0,t.generateUrl)(o,n,i),h=n.data.headers?n.data.headers.reduce(((e,t)=>Object.assign(Object.assign({},e),{[t.key]:t.value})),{}):{};n.authenticate&&u&&u.tokens&&Object.assign(h,u.tokens);try{const t=yield d(c.toString(),{method:"GET",headers:h});if(t.ok){const n=yield t.json(),i=new r.FieldError("select",e);return Array.isArray(n)?n&&n.length?null:i:n?(0,s.isEmptyObject)(n)?i:null:i}const i=yield t.text();throw new r.ProcessorError(`Component with path ${n.key} returned an error while validating remote value: ${i}`,e,"validate:validateRemoteSelectValue")}catch(t){throw new r.ProcessorError(`Component with path ${n.key} returned an error while validating remote value: ${t}`,e,"validate:validateRemoteSelectValue")}}catch(e){return console.error((0,o.getErrorMessage)(e)),null}})),t.validateUrlSelectValueInfo={name:"validateUrlSelectValue",process:t.validateUrlSelectValue,shouldProcess:t.shouldValidate}},88383:function(e,t,n){!function(e){"use strict";e.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){return 0===this.day()?"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT":"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(95093))},88569:function(e){e.exports=function(){"use strict";var e={year:0,month:1,day:2,hour:3,minute:4,second:5},t={};return function(n,i,r){var a,s=function(e,n,i){void 0===i&&(i={});var r=new Date(e),a=function(e,n){void 0===n&&(n={});var i=n.timeZoneName||"short",r=e+"|"+i,a=t[r];return a||(a=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),t[r]=a),a}(n,i);return a.formatToParts(r)},o=function(t,n){for(var i=s(t,n),a=[],o=0;o=0&&(a[c]=parseInt(d,10))}var h=a[3],p=24===h?0:h,f=a[0]+"-"+a[1]+"-"+a[2]+" "+p+":"+a[4]+":"+a[5]+":000",m=+t;return(r.utc(f).valueOf()-(m-=m%1e3))/6e4},l=i.prototype;l.tz=function(e,t){void 0===e&&(e=a);var n,i=this.utcOffset(),s=this.toDate(),o=s.toLocaleString("en-US",{timeZone:e}),l=Math.round((s-new Date(o))/1e3/60),u=15*-Math.round(s.getTimezoneOffset()/15)-l;if(Number(u)){if(n=r(o,{locale:this.$L}).$set("millisecond",this.$ms).utcOffset(u,!0),t){var d=n.utcOffset();n=n.add(i-d,"minute")}}else n=this.utcOffset(0,t);return n.$x.$timezone=e,n},l.offsetName=function(e){var t=this.$x.$timezone||r.tz.guess(),n=s(this.valueOf(),t,{timeZoneName:e}).find((function(e){return"timezonename"===e.type.toLowerCase()}));return n&&n.value};var u=l.startOf;l.startOf=function(e,t){if(!this.$x||!this.$x.$timezone)return u.call(this,e,t);var n=r(this.format("YYYY-MM-DD HH:mm:ss:SSS"),{locale:this.$L});return u.call(n,e,t).tz(this.$x.$timezone,!0)},r.tz=function(e,t,n){var i=n&&t,s=n||t||a,l=o(+r(),s);if("string"!=typeof e)return r(e).tz(s);var u=function(e,t,n){var i=e-60*t*1e3,r=o(i,n);if(t===r)return[i,t];var a=o(i-=60*(r-t)*1e3,n);return r===a?[i,r]:[e-60*Math.min(r,a)*1e3,Math.max(r,a)]}(r.utc(e,i).valueOf(),l,s),d=u[0],c=u[1],h=r(d).utcOffset(c);return h.$x.$timezone=s,h},r.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},r.tz.setDefault=function(e){a=e}}}()},88727:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},88984:(e,t,n)=>{var i=n(55527),r=n(3650),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=[];for(var n in Object(e))a.call(e,n)&&"constructor"!=n&&t.push(n);return t}},89126:function(e,t,n){"use strict";var i,r=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FormBuilder=t.Form=t.Formio=void 0;const s=a(n(1704));class o{static setLicense(e,t=!1){i.license=e,!t&&i.FormioClass&&i.FormioClass.setLicense(e)}static setBaseUrl(e,t=!1){i.baseUrl=e,!t&&i.FormioClass&&i.FormioClass.setBaseUrl(e)}static setApiUrl(e,t=!1){i.baseUrl=e,!t&&i.FormioClass&&i.FormioClass.setApiUrl(e)}static setProjectUrl(e,t=!1){i.projectUrl=e,!t&&i.FormioClass&&i.FormioClass.setProjectUrl(e)}static setAppUrl(e,t=!1){i.projectUrl=e,!t&&i.FormioClass&&i.FormioClass.setAppUrl(e)}static setPathType(e,t=!1){i.pathType=e,!t&&i.FormioClass&&i.FormioClass.setPathType(e)}static debug(...e){i.config.debug&&console.log(...e)}static clearCache(){i.FormioClass&&i.FormioClass.clearCache()}static global(e,t=""){const n=window[e];return t&&n&&!n[t]?null:(i.debug(`Getting global ${e}`,n),n)}static use(e){i.FormioClass&&i.FormioClass.isRenderer?i.FormioClass.use(e):i.modules.push(e)}static createElement(e,t,n){const r=document.createElement(e);return t?(Object.keys(t).forEach((e=>{r.setAttribute(e,t[e])})),(n||[]).forEach((e=>{r.appendChild(i.createElement(e.tag,e.attrs,e.children))})),r):r}static addScript(e,t,n,a=""){return r(this,void 0,void 0,(function*(){if(!t)return Promise.resolve();if("string"!=typeof t&&t.length)return Promise.all(t.map((t=>i.addScript(e,t))));if(n&&i.global(n,a))return i.debug(`${n} already loaded.`),Promise.resolve(i.global(n));i.debug("Adding Script",t);try{e.appendChild(i.createElement("script",{src:t}))}catch(e){return i.debug(e),Promise.resolve()}return n?new Promise((e=>{i.debug(`Waiting to load ${n}`);const t=setInterval((()=>{i.global(n,a)&&(clearInterval(t),i.debug(`${n} loaded.`),e(i.global(n)))}),100)})):Promise.resolve()}))}static addStyles(e,t){return r(this,void 0,void 0,(function*(){t&&("string"!=typeof t&&t.length?t.forEach((t=>i.addStyles(e,t))):(i.debug("Adding Styles",t),e.appendChild(i.createElement("link",{rel:"stylesheet",href:t}))))}))}static submitDone(e,t){return r(this,void 0,void 0,(function*(){i.debug("Submision Complete",t),i.config.submitDone&&i.config.submitDone(t,e);const n=(i.config.success||"").toString();n&&"false"!==n.toLowerCase()&&e.element&&(e.element.innerHTML=``);let r=i.config.redirect;if(!r&&e._form&&e._form.settings&&(e._form.settings.returnUrl||e._form.settings.redirect)&&(i.debug("Return url found in form configuration"),r=e._form.settings.returnUrl||e._form.settings.redirect),r){const n=e.formio?e.formio.formUrl:"",a=!!r.match(/\?/),s=0===r.indexOf(location.origin);r+=a?"&":"?",r+=`sub=${t._id}`,!s&&n&&(r+=`&form=${encodeURIComponent(n)}`),i.debug("Return URL",r),window.location.href=r,s&&window.location.reload()}}))}static formioScript(e,t){return t=t||i.config.includeBuilder,i.fullAdded||t?(i.fullAdded=!0,e.replace("formio.form","formio.full")):e}static addLibrary(e,t,n){return r(this,void 0,void 0,(function*(){if(t){if(t.dependencies)for(let n=0;n{i.config.libs[e]={dependencies:["bootstrap-icons"],css:`${i.cdn.bootswatch}/dist/${e}/bootstrap.min.css`}}));const r=i.config.id||`formio-${Math.random().toString(36).substring(7)}`;let a=i.createElement("div",{id:`${r}-wrapper`});e.parentNode.insertBefore(a,e);const o=i.config.includeLibs&&!i.config.noshadow&&"function"==typeof a.attachShadow;o&&(a=a.attachShadow({mode:"open"}),t.shadowRoot=a),e.parentNode.removeChild(e),a.appendChild(e);const l=o?a:document.body;yield i.addStyles(l,i.config.embedCSS||`${i.cdn.js}/formio.embed.css`),i.addLoader(a);const u=i.config.full?"formio.full":"formio.form",d=i.config.debug?u:`${u}.min`;if(i.FormioClass=yield i.addScript(l,i.formioScript(i.config.script||`${i.cdn.js}/${d}.js`,n),"Formio",n?"isBuilder":"isRenderer"),i.FormioClass.cdn=i.cdn,i.FormioClass.setBaseUrl(t.baseUrl||i.baseUrl||i.config.base),i.FormioClass.setProjectUrl(t.projectUrl||i.projectUrl||i.config.project),i.FormioClass.language=i.language,i.setLicense(i.license||i.config.license||!1),i.modules.forEach((e=>{i.FormioClass.use(e)})),i.icons&&(i.FormioClass.icons=i.icons),i.pathType&&i.FormioClass.setPathType(i.pathType),i.config.template&&i.config.includeLibs&&(yield i.addLibrary(l,i.config.libs[i.config.template],i.config.template)),i.config.libraries||(i.config.libraries=i.config.modules||{}),i.config.premium&&(i.config.libraries.premium=i.config.premium),i.config.libraries)for(const e in i.config.libraries){const t=i.config.libraries[e];t.use=t.use||!0,yield i.addLibrary(l,t,e)}return yield i.addStyles(l,i.formioScript(i.config.style||`${i.cdn.js}/${d}.css`,n)),i.config.before&&(yield i.config.before(i.FormioClass,e,i.config)),i.FormioClass.license=!0,i._formioReady(i.FormioClass),a}))}static afterCreate(e,t,n){return r(this,void 0,void 0,(function*(){const r=t.querySelector(".formio-loader");return r&&t.removeChild(r),i.FormioClass.events.emit(n,e),i.config.after&&(i.debug("Calling ready callback"),i.config.after(e,i.config)),e}))}static createForm(e,t,n={}){return r(this,void 0,void 0,(function*(){if(i.FormioClass)return i.FormioClass.createForm(e,t,Object.assign(Object.assign({},n),{noLoader:!0}));const r=yield i.init(e,n);return i.FormioClass.createForm(e,t,Object.assign(Object.assign({},n),{noLoader:!0})).then((e=>(i.config.submission&&(i.debug("Setting submission",i.config.submission),e.submission=i.config.submission),i.afterCreate(e,r,"formEmbedded"),e)))}))}static builder(e,t,n={}){var a;return r(this,void 0,void 0,(function*(){if(null===(a=i.FormioClass)||void 0===a?void 0:a.builder)return i.FormioClass.builder(e,t,n);const r=yield i.init(e,n,!0);return i.FormioClass.builder(e,t,n).then((e=>(i.afterCreate(e,r,"builderEmbedded"),e)))}))}}t.Formio=o,i=o,o.FormioClass=null,o.config={},o.modules=[],o.icons="",o.license="",o.formioReady=new Promise(((e,t)=>{i._formioReady=e,i._formioReadyReject=t})),o.version="5.0.1",o.Report={create:(e,t,n={})=>r(void 0,void 0,void 0,(function*(){var r;if(null===(r=i.FormioClass)||void 0===r?void 0:r.Report)return i.FormioClass.Report.create(e,t,n);const a=yield i.init(e,n,!0);return i.FormioClass.Report.create(e,t,n).then((e=>(i.afterCreate(e,a,"reportEmbedded"),e)))}))},s.default.defaultCDN=o.version.includes("rc")?"https://cdn.test-form.io":"https://cdn.form.io";class l{constructor(e,t,n){this.form=t,this.element=e,this.options=n||{},this.init(),this.instance={proxy:!0,ready:this.ready,destroy:()=>{}}}init(){this.instance&&!this.instance.proxy&&this.instance.destroy(),this.element.innerHTML="",this.ready=this.create().then((e=>(this.instance=e,this.form=e.form,e)))}create(){return o.createForm(this.element,this.form,this.options)}setForm(e){this.form=e,this.instance&&this.instance.setForm(e)}setDisplay(e){return this.instance.proxy||(this.form.display=e,this.instance.destroy(),this.ready=this.create().then((e=>{this.instance=e,this.setForm(this.form)}))),this.ready}}t.Form=l;class u extends l{create(){return o.builder(this.element,this.form,this.options)}}t.FormBuilder=u,o.Form=l,o.FormBuilder=u},89374:function(e,t,n){!function(e){"use strict";function t(e){return e%100==11||e%10!=1}function n(e,n,i,r){var a=e+" ";switch(i){case"s":return n||r?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return t(e)?a+(n||r?"sekúndur":"sekúndum"):a+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return t(e)?a+(n||r?"mínútur":"mínútum"):n?a+"mínúta":a+"mínútu";case"hh":return t(e)?a+(n||r?"klukkustundir":"klukkustundum"):a+"klukkustund";case"d":return n?"dagur":r?"dag":"degi";case"dd":return t(e)?n?a+"dagar":a+(r?"daga":"dögum"):n?a+"dagur":a+(r?"dag":"degi");case"M":return n?"mánuður":r?"mánuð":"mánuði";case"MM":return t(e)?n?a+"mánuðir":a+(r?"mánuði":"mánuðum"):n?a+"mánuður":a+(r?"mánuð":"mánuði");case"y":return n||r?"ár":"ári";case"yy":return t(e)?a+(n||r?"ár":"árum"):a+(n||r?"ár":"ári")}}e.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},89480:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(2543);t.default=class{static get operatorKey(){return""}static get displayedName(){return""}static get requireValue(){return!0}execute(){return!0}getResult(e={}){const{value:t}=e;return(0,i.isArray)(t)?(0,i.some)(t,(t=>this.execute(Object.assign(Object.assign({},e),{value:t})))):this.execute(e)}}},89721:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+=(null==(t=e.element)?"":t)+'\n\n \n \n \n \n ',e.required&&(n+='\n \n '),n+='\n \n\n',e.component.footer&&(n+='\n \n"),n+"\n"}},89722:function(e,t,n){!function(e){"use strict";e.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(e,t){return 12===e&&(e=0),"enjing"===t?e:"siyang"===t?e>=11?e:e+12:"sonten"===t||"ndalu"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"enjing":e<15?"siyang":e<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(95093))},89756:function(e,t,n){!function(e){"use strict";e.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(95093))},89935:e=>{e.exports=function(){return!1}},90177:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(29857),a=i(n(97567)),s=n(34600);class o extends a.default{constructor(e,t){t.display="pdf",super(e,t),this.components=[]}init(){super.init(),this.on("iframe-submission",(e=>this.setValue(e,{fromIframe:!0})),!0),this.on("iframe-change",(e=>this.setValue(e,{fromIframe:!0})),!0),this.on("iframe-getIframePositions",(e=>{const t=document.getElementById(`iframe-${e.formId}`);if(t){const n=t.getBoundingClientRect();this.postMessage({name:"iframePositions",data:{formId:e.formId,iframe:{top:n.top},scrollY:window.scrollY||window.pageYOffset}})}})),this.on("iframe-ready",(()=>this.iframeReadyResolve()),!0)}render(){return this.submitButton=this.addComponent({disabled:this.form.disableWizardSubmit,input:!0,type:"button",action:"submit",internal:!0,label:"Submit",key:"submit",ref:"button",hidden:this.isSubmitButtonHidden()}),this.renderTemplate("pdf",{submitButton:this.submitButton.render(),classes:"formio-form-pdf",children:this.renderComponents()})}redraw(){return this.postMessage({name:"redraw"}),this.builderMode?Promise.resolve():super.redraw()}destroy(e=!1){this.iframeElement&&(delete this.iframeElement.formioComponent,this.iframeElement.formioComponent=null),super.destroy(e)}rebuild(){return this.builderMode&&this.component.components?(this.destroyComponents(),this.addComponents(),Promise.resolve()):(this.postMessage({name:"redraw"}),super.rebuild())}attachComponents(e,t,n){return t=t||this.components,n=n||this.component.components,e=this.hook("attachComponents",e,t,n,this),Promise.resolve()}attach(e){return super.attach(e).then((()=>{this.loadRefs(e,{button:"single",buttonMessageContainer:"single",buttonMessage:"single",zoomIn:"single",zoomOut:"single",iframeContainer:"single"}),this.submitButton.refs=Object.assign({},this.refs),this.submitButton.attachButton(),this.iframeReady=new Promise(((e,t)=>{this.iframeReadyResolve=e,this.iframeReadyReject=t})),this.iframeElement=this.ce("iframe",{src:this.getSrc(),id:`iframe-${this.id}`,seamless:!0,class:"formio-iframe"}),this.iframeElement.formioContainer=this.component.components,this.iframeElement.formioComponent=this,this.empty(this.refs.iframeContainer),this.appendChild(this.refs.iframeContainer,this.iframeElement),this.form.base=r.Formio.getBaseUrl(),this.form.projectUrl=r.Formio.getProjectUrl(),this.postMessage({name:"form",data:this.form});const t=this.components.find((e=>e.element===this.refs.button));t&&this.refs.button.classList.toggle("hidden",!t.visible),this.addEventListener(this.refs.zoomIn,"click",(e=>{e.preventDefault(),this.postMessage({name:"zoomIn"})})),this.addEventListener(this.refs.zoomOut,"click",(e=>{e.preventDefault(),this.postMessage({name:"zoomOut"})}));const n=(0,s.fastCloneDeep)(this.form);this.formio&&(n.projectUrl=this.formio.projectUrl,n.url=this.formio.formUrl,n.base=this.formio.base,this.postMessage({name:"token",data:this.formio.getToken()})),this.emit("attach")}))}getSubmission(){return new Promise((e=>{this.once("iframe-submission",e),this.postMessage({name:"getSubmission"})}))}submitForm(e={}){return this.postMessage({name:"getErrors"}),this.getSubmission().then((()=>super.submitForm(e)))}getSrc(){if(!this._form||!this._form.settings||!this._form.settings.pdf)return"";let e=`${this._form.settings.pdf.src}.html`;const t=[`id=${this.id}`];return(this.options.showCheckboxBackground||this._form.settings.showCheckboxBackground)&&t.push("checkboxbackground=1"),this.options.readOnly&&t.push("readonly=1"),this.options.zoom&&t.push(`zoom=${this.options.zoom}`),this.builderMode&&t.push("builder=1"),t.length&&(e+=`?${t.join("&")}`),e}setForm(e,t={}){return super.setForm(e,t).then((()=>{this.formio&&(e.projectUrl=this.formio.projectUrl,e.url=this.formio.formUrl,e.base=this.formio.base,this.postMessage({name:"token",data:this.formio.getToken()})),this.postMessage({name:"form",data:this.form})}))}setValue(e,t={}){const n=super.setValue(e,t);return t&&t.fromIframe||this.once("iframe-ready",(()=>{n&&this.postMessage({name:"submission",data:e})})),n}postMessage(e){this.iframeReady&&(e.type||(e.type="iframe-data"),this.iframeReady.then((()=>{!this.iframeElement||!this.iframeElement.contentWindow||"form"===e.name&&this.iframeFormSetUp||(this.iframeElement.contentWindow.postMessage(JSON.stringify(e),"*"),this.iframeFormSetUp="form"===e.name)})))}focusOnComponent(e){this.postMessage({name:"focusErroredField",data:e})}clear(){}showErrors(e,t){var n;const i=document.getElementById("submit-error"),r=this.t("submitError"),a=(null===(n=this.refs.buttonMessage)||void 0===n?void 0:n.textContent.trim())===r;if(!i&&e.length&&!a){const e=this.ce("p",{class:"help-block"});this.setContent(e,r),e.addEventListener("click",(()=>{window.scrollTo(0,0)}));const t=this.ce("div",{id:"submit-error",class:"has-error"});this.appendTo(e,t),this.appendTo(t,this.element)}!e.length&&i&&i.remove(),super.showErrors(e,t)}isSubmitButtonHidden(){let e=!1;return(0,s.eachComponent)(this.component.components,(t=>{"button"!==t.type||"submit"!==t.action&&t.action||(e=t.hidden||!1)})),e}}t.default=o,"undefined"!=typeof window&&window.addEventListener("message",(e=>{let t=null;try{t=JSON.parse(e.data)}catch(e){t=null}t&&t.name&&t.formId&&r.Formio.forms.hasOwnProperty(t.formId)&&r.Formio.forms[t.formId].emit(`iframe-${t.name}`,t.data)}))},90179:(e,t,n)=>{var i=n(34932),r=n(9999),a=n(19931),s=n(31769),o=n(21791),l=n(53138),u=n(38816),d=n(83349),c=u((function(e,t){var n={};if(null==e)return n;var u=!1;t=i(t,(function(t){return t=s(t,e),u||(u=t.length>1),t})),o(e,d(e),n),u&&(n=r(n,7,l));for(var c=t.length;c--;)a(n,t[c]);return n}));e.exports=c},90181:e=>{e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},90289:(e,t,n)=>{var i=n(12651);e.exports=function(e){return i(this,e).get(e)}},90309:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.applyActions=t.setCustomAction=t.setMergeComponentSchema=t.setValueProperty=t.setActionProperty=t.setActionStringProperty=t.setActionBooleanProperty=t.checkTrigger=t.hasLogic=void 0;const i=n(28953),r=n(2543),a=n(79092),s=n(10002),o=n(96690);function l(e,t){var n,i;const{component:a,scope:l,path:u}=e,d=(0,o.getComponentAbsolutePath)(a)||u,c=t.property.value,h=(0,r.get)(a,c,!1).toString(),p=t.state.toString();if(h!==p){if((0,r.set)(a,c,"true"===p),"hidden"===c&&d){l.conditionals||(l.conditionals=[]);const e=null===(n=l.conditionals)||void 0===n?void 0:n.find((e=>e.path===d));e?(e.conditionallyHidden=!!a.hidden,(0,s.registerEphermalState)(a,"conditionallyHidden",!!a.hidden)):null===(i=l.conditionals)||void 0===i||i.push({path:d,conditionallyHidden:!!a.hidden})}return!0}return!1}function u(e,t){const{component:n}=e,i=t.property.value,s=t.property.component?t[t.property.component]:t.text,o=(0,r.get)(n,i,""),l=(0,a.interpolate)(Object.assign(Object.assign({},e),{value:""}),s,(e=>{e.value=o}));return l!==o&&((0,r.set)(n,i,l),!0)}function d(e,t){switch(t.property.type){case"boolean":return l(e,t);case"string":return u(e,t)}return!1}function c(e,t){const{component:n,data:s,path:o}=e,l=(0,r.get)(s,o),u=(0,a.evaluate)(e,t.value,"value",(e=>{e.value=(0,r.clone)(l)}));return!((0,r.isEqual)(l,u)||n.clearOnHide&&(0,i.conditionallyHidden)(e)||((0,r.set)(s,o,u),0))}function h(e,t){const{component:n,data:i,path:s}=e,o=(0,r.get)(i,s),l=(0,a.evaluate)(Object.assign(Object.assign({},e),{value:{}}),t.schemaDefinition,"schema",(e=>{e.value=(0,r.clone)(o)})),u=(0,r.assign)({},n,l);return!(0,r.isEqual)(n,u)&&((0,r.assign)(n,l),!0)}function p(e,t){return c(e,{type:"value",value:t.customAction})}t.hasLogic=e=>{const{component:t}=e,{logic:n}=t;return!(!n||!n.length)},t.checkTrigger=(e,t)=>{let n=!1;switch(t.type){case"simple":n=(0,i.isLegacyConditional)(t.simple)?(0,i.checkLegacyConditional)(t.simple,e):(0,i.checkSimpleConditional)(t.simple,e);break;case"javascript":n=(0,i.checkCustomConditional)(t.javascript,e,"result");break;case"json":n=(0,i.checkJsonConditional)(t,e);break;default:n=!1}return null!==n&&n},t.setActionBooleanProperty=l,t.setActionStringProperty=u,t.setActionProperty=d,t.setValueProperty=c,t.setMergeComponentSchema=h,t.setCustomAction=p,t.applyActions=e=>{const{component:n}=e,{logic:i}=n;return!(!i||!i.length)&&i.reduce(((n,i)=>{const{actions:r,trigger:a}=i;return a&&r&&r.length&&(0,t.checkTrigger)(e,a)?r.reduce(((t,n)=>{switch(n.type){case"property":return!!d(e,n)||t;case"value":return c(e,n)||t;case"mergeComponentSchema":return!!h(e,n)||t;case"customAction":return p(e,n)||t;default:return t}}),n):n}),!1)}},90409:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
      \n ',e.header&&(n+='\n
    • \n '+(null==(t=e.header)?"":t)+"\n
    • \n "),n+="\n ",e.rows.forEach((function(i,r){n+='\n
    • \n '+(null==(t=i)?"":t)+"\n ",e.openRows[r]&&!e.readOnly&&(n+='\n
      \n \n ",e.component.removeRow&&(n+='\n \n "),n+="\n
      \n "),n+='\n
      \n
      \n '+(null==(t=e.errors[r])?"":t)+"\n
      \n
      \n
    • \n "})),n+="\n ",e.footer&&(n+='\n \n "),n+="\n
    \n",!e.readOnly&&e.hasAddButton&&(n+='\n\n"),n+="\n"}},90445:function(e){e.exports=function(){"use strict";var e={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"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,i=/\d\d/,r=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,s={},o=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],d=function(e){var t=s[e];return t&&(t.indexOf?t:t.s.concat(t.f))},c=function(e,t){var n,i=s.meridiem;if(i){for(var r=1;r<=24;r+=1)if(e.indexOf(i(r,0,t))>-1){n=r>12;break}}else n=e===(t?"pm":"PM");return n},h={A:[a,function(e){this.afternoon=c(e,!1)}],a:[a,function(e){this.afternoon=c(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[i,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,l("seconds")],ss:[r,l("seconds")],m:[r,l("minutes")],mm:[r,l("minutes")],H:[r,l("hours")],h:[r,l("hours")],HH:[r,l("hours")],hh:[r,l("hours")],D:[r,l("day")],DD:[i,l("day")],Do:[a,function(e){var t=s.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var i=1;i<=31;i+=1)t(i).replace(/\[|\]/g,"")===e&&(this.day=i)}],w:[r,l("week")],ww:[i,l("week")],M:[r,l("month")],MM:[i,l("month")],MMM:[a,function(e){var t=d("months"),n=(d("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[a,function(e){var t=d("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[i,function(e){this.year=o(e)}],YYYY:[/\d{4}/,l("year")],Z:u,ZZ:u};function p(n){var i,r;i=n,r=s&&s.formats;for(var a=(n=i.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,i){var a=i&&i.toUpperCase();return n||r[i]||e[i]||r[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),o=a.length,l=0;l-1)return new Date(("X"===t?1e3:1)*e);var r=p(t)(e),a=r.year,s=r.month,o=r.day,l=r.hours,u=r.minutes,d=r.seconds,c=r.milliseconds,h=r.zone,f=r.week,m=new Date,g=o||(a||s?1:m.getDate()),v=a||m.getFullYear(),y=0;a&&!s||(y=s>0?s-1:m.getMonth());var b,_=l||0,w=u||0,M=d||0,k=c||0;return h?new Date(Date.UTC(v,y,g,_,w,M,k+60*h.offset*1e3)):n?new Date(Date.UTC(v,y,g,_,w,M,k)):(b=new Date(v,y,g,_,w,M,k),f&&(b=i(b).week(f).toDate()),b)}catch(e){return new Date("")}}(t,o,i,n),this.init(),c&&!0!==c&&(this.$L=this.locale(c).$L),d&&t!=this.format(o)&&(this.$d=new Date("")),s={}}else if(o instanceof Array)for(var h=o.length,f=1;f<=h;f+=1){a[1]=o[f-1];var m=n.apply(this,a);if(m.isValid()){this.$d=m.$d,this.$L=m.$L,this.init();break}f===h&&(this.$d=new Date(""))}else r.call(this,e)}}}()},90527:function(e,t,n){!function(e){"use strict";var t="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",t[7],t[8],t[9]];function i(e,i,r,a){var s="";switch(r){case"s":return a?"muutaman sekunnin":"muutama sekunti";case"ss":s=a?"sekunnin":"sekuntia";break;case"m":return a?"minuutin":"minuutti";case"mm":s=a?"minuutin":"minuuttia";break;case"h":return a?"tunnin":"tunti";case"hh":s=a?"tunnin":"tuntia";break;case"d":return a?"päivän":"päivä";case"dd":s=a?"päivän":"päivää";break;case"M":return a?"kuukauden":"kuukausi";case"MM":s=a?"kuukauden":"kuukautta";break;case"y":return a?"vuoden":"vuosi";case"yy":s=a?"vuoden":"vuotta"}return function(e,i){return e<10?i?n[e]:t[e]:e}(e,a)+" "+s}e.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},90609:function(e,t,n){!function(e){"use strict";var t="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(e,t,n,i){var r=e;switch(n){case"s":return i||t?"néhány másodperc":"néhány másodperce";case"ss":return r+(i||t)?" másodperc":" másodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return r+(i||t?" perc":" perce");case"h":return"egy"+(i||t?" óra":" órája");case"hh":return r+(i||t?" óra":" órája");case"d":return"egy"+(i||t?" nap":" napja");case"dd":return r+(i||t?" nap":" napja");case"M":return"egy"+(i||t?" hónap":" hónapja");case"MM":return r+(i||t?" hónap":" hónapja");case"y":return"egy"+(i||t?" év":" éve");case"yy":return r+(i||t?" év":" éve")}return""}function i(e){return(e?"":"[múlt] ")+"["+t[this.day()]+"] LT[-kor]"}e.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(e){return"u"===e.charAt(1).toLowerCase()},meridiem:function(e,t,n){return e<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},90761:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n '+(null==(t=e.t(e.component.label,{_userInput:!0}))?"":t)+"\n ","number"!==e.component.type&&"phoneNumber"!==e.component.type&&"currency"!==e.component.type||(n+='\n , '+(null==(t=e.t("numeric only"))?"":t)+",\n "),n+="\n ",e.component.tooltip&&(n+='\n \n '),n+"\n\n"}},90938:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},91033:e=>{e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},91181:(e,t,n)=>{"use strict";var i,r,a,s=n(58622),o=n(22195),l=n(20034),u=n(66699),d=n(39297),c=n(77629),h=n(66119),p=n(30421),f="Object already initialized",m=o.TypeError,g=o.WeakMap;if(s||c.state){var v=c.state||(c.state=new g);v.get=v.get,v.has=v.has,v.set=v.set,i=function(e,t){if(v.has(e))throw new m(f);return t.facade=e,v.set(e,t),t},r=function(e){return v.get(e)||{}},a=function(e){return v.has(e)}}else{var y=h("state");p[y]=!0,i=function(e,t){if(d(e,y))throw new m(f);return t.facade=e,u(e,y,t),t},r=function(e){return d(e,y)?e[y]:{}},a=function(e){return d(e,y)}}e.exports={set:i,get:r,has:a,enforce:function(e){return a(e)?r(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=r(t)).type!==e)throw new m("Incompatible receiver, "+e+" required");return n}}}},91291:(e,t,n)=>{"use strict";var i=n(80741);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},91477:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
    \n
    \n
    \n
    \n
    '+(null==(t=e.t(e.component.label))?"":t)+(null==(t=e.self.isIE()?", dialog":"")?"":t)+"\n ",e.options.vpat?n+='\n \n ':n+='\n \n ',n+='\n
    \n ',e.visible&&(n+='\n
    '+(null==(t=e.children)?"":t)+"
    \n "),n+='\n
    \n ',e.options.vpat&&(n+='\n \n "),n+'\n \n
    \n
    \n
    \n \n
    \n
    \n'}},91670:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0},{type:"datagrid",input:!0,label:"Questions",key:"questions",tooltip:"The questions you would like to ask in this survey question.",weight:0,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}},{label:"Tooltip",key:"tooltip",input:!0,type:"textfield"}]},{type:"datagrid",input:!0,label:"Values",key:"values",tooltip:"The values that can be selected per question. Example: 'Satisfied', 'Very Satisfied', etc.",weight:1,reorder:!0,defaultValue:[{label:"",value:""}],components:[{label:"Label",key:"label",input:!0,type:"textfield"},{label:"Value",key:"value",input:!0,type:"textfield",allowCalculateOverride:!0,calculateValue:{_camelCase:[{var:"row.label"}]}},{label:"Tooltip",key:"tooltip",input:!0,type:"textfield"}]}]},92140:(e,t,n)=>{"use strict";var i={};i[n(78227)("toStringTag")]="z",e.exports="[object z]"===String(i)},92271:(e,t,n)=>{var i=n(21791),r=n(4664);e.exports=function(e,t){return i(e,r(e),t)}},92297:function(e,t,n){!function(e){"use strict";e.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(e,t){return 12===e&&(e=0),"pagi"===t?e:"tengahari"===t?e>=11?e:e+12:"petang"===t||"malam"===t?e+12:void 0},meridiem:function(e,t,n){return e<11?"pagi":e<15?"tengahari":e<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(95093))},92383:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const a=r(n(96877)),s=n(29857),o=r(n(58156)),l=r(n(38221));class u extends a.default{static schema(...e){return a.default.schema({type:"recaptcha",key:"recaptcha",label:"reCAPTCHA"},...e)}static get builderInfo(){return{}}static savedValueTypes(){return[]}static get conditionOperatorsSettings(){return Object.assign(Object.assign({},super.conditionOperatorsSettings),{operators:["isEmpty","isNotEmpty"]})}static get serverConditionSettings(){return u.conditionOperatorsSettings}render(){return this.recaptchaResult=null,this.builderMode?super.render("reCAPTCHA"):super.render("",!0)}createInput(){if(this.builderMode)this.append(this.text(this.name));else{const e=(0,o.default)(this.root.form,"settings.recaptcha.siteKey");if(e){const t=`https://www.google.com/recaptcha/api.js?render=${e}`;this.recaptchaApiReady=s.Formio.requireLibrary("googleRecaptcha","grecaptcha",t,!0)}else console.warn("There is no Site Key specified in settings in form JSON")}}createLabel(){}get skipInEmail(){return!0}verify(e){return i(this,void 0,void 0,(function*(){const t=(0,o.default)(this.root.form,"settings.recaptcha.siteKey");if(t){if(!this.recaptchaApiReady){const e=`https://www.google.com/recaptcha/api.js?render=${(0,o.default)(this.root.form,"settings.recaptcha.siteKey")}`;this.recaptchaApiReady=s.Formio.requireLibrary("googleRecaptcha","grecaptcha",e,!0)}try{yield this.recaptchaApiReady,this.recaptchaVerifiedPromise=new Promise(((n,r)=>{this.isLoading||(this.isLoading=!0,grecaptcha.ready((0,l.default)((()=>i(this,void 0,void 0,(function*(){try{const i=yield grecaptcha.execute(t,{action:e}),r=yield this.sendVerificationRequest(i);return this.recaptchaResult=Object.assign(Object.assign({},r),{token:i}),this.updateValue(this.recaptchaResult),this.isLoading=!1,n(r)}catch(e){this.isLoading=!1,r(e)}}))),1e3)))}))}catch(e){this.loading=!1}}else console.warn("There is no Site Key specified in settings in form JSON")}))}beforeSubmit(){return this.recaptchaVerifiedPromise?this.recaptchaVerifiedPromise.then((()=>super.beforeSubmit())):super.beforeSubmit()}sendVerificationRequest(e){return s.Formio.makeStaticRequest(`${s.Formio.projectUrl}/recaptcha?recaptchaToken=${e}`)}checkComponentValidity(e,t,n,i={},r=[]){e=e||this.rootValue,n=n||this.data;const{async:a=!1}=i;if(!a)return super.checkComponentValidity(e,t,n,i,r);const s=n[this.component.key];return s&&s.token?s.success?Promise.resolve(!0):(this.setCustomValidity(this.t("reCaptchaTokenValidationError")),Promise.resolve(!1)):(this.setCustomValidity(this.t("reCaptchaTokenNotSpecifiedError")),Promise.resolve(!1))}normalizeValue(e){return this.recaptchaResult?this.recaptchaResult:e}}t.default=u},92565:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(3577)),a=i(n(2543)),s=n(34600);class o extends r.default{static get operatorKey(){return"isEqual"}static get displayedName(){return"Is Equal To"}execute({value:e,comparedValue:t,instance:n,conditionComponentPath:i}){var r,o;if((e||!1===e)&&t&&typeof e!=typeof t&&a.default.isString(t))try{t=JSON.parse(t)}catch(e){}if(null===(r=null==n?void 0:n.root)||void 0===r?void 0:r.getComponent){const r=n.root.getComponent(i);if(r&&(0,s.isSelectResourceWithObjectValue)(r.component)&&(null===(o=r.component)||void 0===o?void 0:o.template))return(0,s.compareSelectResourceWithObjectTypeValues)(e,t,r.component)}return a.default.isObject(e)&&t&&a.default.isBoolean(e[t])?e[t]:a.default.isEqual(e,t)}}t.default=o},92572:function(e,t,n){!function(e){"use strict";var t="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^(maart|mrt\.?)$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],r=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;e.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(e){return e+(1===e||8===e||e>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(95093))},92595:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=t.Builders=t.FormBuilder=void 0;const s=a(n(76482));t.FormBuilder=s.default;const o=a(n(64142));t.Builders=o.default;const l=n(577);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return l.Formio}}),l.Formio.Builders=o.default,l.Formio.isBuilder=!0,l.Formio.use=(0,l.useModule)(((e,t)=>"builders"===e&&(l.Formio.Builders.addBuilders(t.builders),!0))),r(n(577),t)},92796:(e,t,n)=>{"use strict";var i=n(79039),r=n(94901),a=/#|\.prototype\./,s=function(e,t){var n=l[o(e)];return n===d||n!==u&&(r(t)?i(t):!!t)},o=s.normalize=function(e){return String(e).replace(a,".").toLowerCase()},l=s.data={},u=s.NATIVE="N",d=s.POLYFILL="P";e.exports=s},93019:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=n(34600);t.default=class{constructor(e,t){this.container=e,this.alert=null,this.parentComponent=t,this.refs={},this.loadRefs=this.parentComponent.loadRefs.bind(this)}get refsNames(){return{messageRef:"multiple"}}get alertTypes(){return{error:"danger",success:"success",info:"info",warning:"warning"}}showErrors(e=[],t=!1,n={}){e=r.default.isArray(e)?e:[e];const i=this.createMessagesList("error",e);return this.showAlert("error",i,n),t&&this.parentComponent.emit("error",e),e}showMessage(e,t,n={}){let i=e;i instanceof HTMLElement?i.setAttribute("ref","messageRef"):i=this.parentComponent.ce("p",{ref:"messageRef"}),this.showAlert(t,i,n)}createMessagesList(e,...t){if("error"===e)return this.createErrorList(...t)}createErrorList(e){const t=this.parentComponent.ce("p");this.parentComponent.setContent(t,this.parentComponent.t("error"));const n=this.parentComponent.ce("ul"),i=document.createDocumentFragment();return e.forEach((e=>this.appendErrorToList(e,n))),t.appendChild(n),i.appendChild(t),i}showAlert(e,t,n={}){const{customClasses:i,customEvents:r}=n;this.setAlert(e,t,{customClasses:i}),this.alert&&(this.attach({customEvents:r}),this.parentComponent.prependTo(this.alert,this.container))}setAlert(e,t,n={}){const i=this.alertTypes[e];if(this.alert&&this.clear(),t){const{id:r=`${e}-list-${this.parentComponent.id}`,customClasses:a=`alert alert-${i}`}=n;this.alert=this.parentComponent.ce("div",{id:r,class:a}),t instanceof HTMLElement?this.parentComponent.appendTo(t,this.alert):this.parentComponent.setContent(this.alert,t)}}attach(e){var t,n,i;let{customEvents:r={}}=e;this.eventListenersKeys=[],this.loadRefs(this.alert,this.refsNames);const a=(null===(t=r.click)||void 0===t?void 0:t.listeners)||[],s=(null===(n=r.keypress)||void 0===n?void 0:n.listeners)||[];r=Object.assign(Object.assign({},r),{click:[...a,e=>{const t=e.currentTarget.dataset.componentKey;this.focusOnComponent(t)}],keypress:[...s,e=>{const t=e.currentTarget.dataset.componentKey;this.focusOnComponent(t)}]}),(null===(i=this.refs.messageRef)||void 0===i?void 0:i.length)&&this.refs.messageRef.forEach((e=>{Object.entries(r).forEach((([t,n])=>{n.forEach((n=>this.parentComponent.addEventListener(e,t,n))),this.eventListenersKeys.push(t)}))}))}clear(){var e;try{(null===(e=this.refs.messageRef)||void 0===e?void 0:e.length)&&this.refs.messageRef.forEach((e=>{this.eventListenersKeys.forEach((t=>this.parentComponent.removeEventListener(e,t)))})),this.refs={},this.parentComponent.removeChildFrom(this.alert,this.container),this.alert=null}catch(e){}}focusOnComponent(e){var t;if(e){const n=this.parentComponent._parentPath?e.replace(this.parentComponent._parentPath,""):e,i=null===(t=this.parentComponent.root)||void 0===t?void 0:t.getComponent(n,null,e);i&&r.default.isFunction(i.focus)&&i.focus()}}createMessage(e,t,n,i,r){if("error"===e)return this.createErrorMessage(t,n,i,r)}createErrorMessage(e,t,n,i){var s,o;const l={style:"cursor: pointer",ref:"messageRef",tabIndex:0,"aria-label":`${t}. Click to navigate to the field with following error.`},u=this.parentComponent.ce("li",l);this.parentComponent.setContent(u,t);const d=!r.default.isUndefined(n)&&(null===(s=null==i?void 0:i.messages)||void 0===s?void 0:s[n]),c=(null==d?void 0:d.path)||(null===(o=null==i?void 0:i.component)||void 0===o?void 0:o.key);if(c){const e=(0,a.getStringFromComponentPath)(c);u.dataset.componentKey=e}this.parentComponent.appendTo(u,e)}appendErrorToList(e,t){var n;if(null===(n=null==e?void 0:e.messages)||void 0===n?void 0:n.length)e.messages.forEach((({message:n},i)=>{this.createMessage("error",t,n,i,e)}));else if(e){const n=r.default.isObject(e)?e.message||"":e;this.createMessage("error",t,n)}}}},93243:(e,t,n)=>{var i=n(56110),r=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},93290:(e,t,n)=>{e=n.nmd(e);var i=n(9325),r=t&&!t.nodeType&&t,a=r&&e&&!e.nodeType&&e,s=a&&a.exports===r?i.Buffer:void 0,o=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,i=o?o(n):new e.constructor(n);return e.copy(i),i}},93308:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(89480)),a=n(2543);class s extends r.default{static get operatorKey(){return"startsWith"}static get displayedName(){return"Starts With"}execute({value:e,comparedValue:t}){return(0,a.startsWith)(e,t)}}t.default=s},93383:function(e,t,n){!function(e){"use strict";function t(e,t,n,i){var r={s:["thoddea sekondamni","thodde sekond"],ss:[e+" sekondamni",e+" sekond"],m:["eka mintan","ek minut"],mm:[e+" mintamni",e+" mintam"],h:["eka voran","ek vor"],hh:[e+" voramni",e+" voram"],d:["eka disan","ek dis"],dd:[e+" disamni",e+" dis"],M:["eka mhoinean","ek mhoino"],MM:[e+" mhoineamni",e+" mhoine"],y:["eka vorsan","ek voros"],yy:[e+" vorsamni",e+" vorsam"]};return i?r[n][0]:r[n][1]}e.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(e,t){return"D"===t?e+"er":e},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(e,t){return 12===e&&(e=0),"rati"===t?e<4?e:e+12:"sokallim"===t?e:"donparam"===t?e>12?e:e+12:"sanje"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"rati":e<12?"sokallim":e<16?"donparam":e<20?"sanje":"rati"}})}(n(95093))},93432:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(41552)),a=i(n(78940)),s=i(n(66427)),o=i(n(63696)),l=i(n(52297)),u=i(n(92565)),d=i(n(48421)),c=i(n(61268)),h=i(n(19107)),p=i(n(30091)),f=i(n(19184)),m=i(n(16296)),g=i(n(60126)),v=i(n(55709)),y=i(n(86641)),b=i(n(74842)),_=i(n(54952)),w=i(n(59013)),M={[`${r.default.operatorKey}`]:r.default,[`${u.default.operatorKey}`]:u.default,[`${a.default.operatorKey}`]:a.default,[`${s.default.operatorKey}`]:s.default,[`${o.default.operatorKey}`]:o.default,[`${l.default.operatorKey}`]:l.default,[`${d.default.operatorKey}`]:d.default,[`${c.default.operatorKey}`]:c.default,[`${h.default.operatorKey}`]:h.default,[`${p.default.operatorKey}`]:p.default,[`${m.default.operatorKey}`]:m.default,[`${f.default.operatorKey}`]:f.default,[`${g.default.operatorKey}`]:g.default,[`${v.default.operatorKey}`]:v.default,[`${y.default.operatorKey}`]:y.default,[`${b.default.operatorKey}`]:b.default,[`${_.default.operatorKey}`]:_.default,[`${w.default.operatorKey}`]:w.default};t.default=M},93601:function(e,t,n){!function(e){"use strict";e.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},93643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,e.options.vpat&&(n+='\n \n'),n+="\n",e.self.imageUpload?(n+="\n
    \n ",e.files.forEach((function(i){n+='\n
    \n \n '+(null==(t=i.originalName||i.name)?\n ',e.disabled||(n+='\n \n '),n+="\n \n
    \n "})),n+="\n
    \n"):(n+="\n ",e.options.vpat&&(n+="\n
    "+(null==(t=e.component.filePattern&&"*"!==e.component.filePattern?e.t("Allowed file types: ")+e.component.filePattern:"Any file types are allowed")?"":t)+"
    \n "),n+='\n
      \n \n ",e.files.forEach((function(i){n+='\n
    • \n
      \n
      \n ',e.component.uploadOnly?n+="\n "+(null==(t=i.originalName||i.name)?"":t)+"\n ":n+='\n \n '+(null==(t=e.t("Press to open "))?"":t)+""+(null==(t=i.originalName||i.name)?"":t)+"\n \n ",n+='\n
      \n
      '+(null==(t=e.fileSize(i.size))?"":t)+"
      \n ",e.self.hasTypes&&!e.disabled&&(n+='\n
      \n \n
      \n "),n+="\n ",e.self.hasTypes&&e.disabled&&(n+='\n
      '+(null==(t=i.fileType)?"":t)+"
      \n "),n+="\n ",e.disabled||(n+='\n
      \n '),n+="\n
      \n
    • \n "})),n+="\n ",e.filesToDelete.forEach((function(i){n+='\n
    • \n
      \n
      \n
      '+(null==(t=i.originalName||i.name)?"":t)+'
      \n
      '+(null==(t=e.t(i.message))?"":t)+'
      \n
      \n
      '+(null==(t=e.fileSize(i.size))?"":t)+"
      \n ",e.self.hasTypes&&(n+='\n
      \n \n
      \n "),n+="\n ",e.isSyncing||"success"===i.status||(n+='\n
      \n '),n+="\n
      \n
    • \n "})),n+="\n ",e.filesToUpload.forEach((function(i){n+='\n
    • \n
      \n
      \n
      '+(null==(t=i.originalName||i.name)?"":t)+"
      \n ","progress"===i.status?n+='\n
      \n
      \n '+(null==(t=i.progress)?"":t)+"% "+(null==(t=e.t("Complete"))?"":t)+"\n
      \n
      \n ":n+='\n
      '+(null==(t=e.t(i.message))?"":t)+"
      \n ",n+='\n
      \n
      '+(null==(t=e.fileSize(i.size))?"":t)+"
      \n ",e.self.hasTypes&&(n+='\n
      \n \n
      \n "),n+="\n ","progress"===i.status?n+='\n
      \n ':e.isSyncing||"success"===i.status||(n+='\n
      \n '),n+="\n
      \n
    • \n "})),n+="\n
    \n"),n+="\n",e.disabled||!e.component.multiple&&e.files.length||(n+="\n ",e.self.useWebViewCamera?n+='\n
    \n \n \n
    \n ":e.self.cameraMode?n+='\n
    \n \n
    \n \n \n ":(n+='\n \n '),n+="\n"),n+="\n",e.component.storage&&!e.support.hasWarning||(n+='\n
    \n ',e.component.storage||(n+="\n

    "+(null==(t=e.t("No storage has been set for this field. File uploads are disabled until storage is set up."))?"":t)+"

    \n "),n+="\n ",e.support.filereader||(n+="\n

    "+(null==(t=e.t("File API & FileReader API not supported."))?"":t)+"

    \n "),n+="\n ",e.support.formdata||(n+="\n

    "+(null==(t=e.t("XHR2's FormData is not supported."))?"":t)+"

    \n "),n+="\n ",e.support.progress||(n+="\n

    "+(null==(t=e.t("XHR2's upload progress isn't supported."))?"":t)+"

    \n "),n+="\n
    \n"),n+="\n"}},93663:(e,t,n)=>{var i=n(41799),r=n(10776),a=n(67197);e.exports=function(e){var t=r(e);return 1==t.length&&t[0][2]?a(t[0][0],t[0][1]):function(n){return n===e||i(n,e,t)}}},93736:(e,t,n)=>{var i=n(51873),r=i?i.prototype:void 0,a=r?r.valueOf:void 0;e.exports=function(e){return a?Object(a.call(e)):{}}},93751:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={"border-default":"","formio-tab-panel-active":"active","formio-tab-link-active":"active","formio-tab-link-container-active":"active","formio-form-error":"formio-error-wrapper has-message","formio-form-alert":"alert alert-danger","formio-label-error":"","formio-input-error":"","formio-alert-danger":"alert alert-danger","formio-alert-success":"alert alert-success","formio-alert-warning":"alert alert-warning","formio-modal-cancel-button":"btn btn-danger formio-dialog-button","formio-modal-confirm-button":"btn btn-primary formio-dialog-button","form-group":"formio-form-group"}},93794:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"multiple",ignore:!0},{key:"defaultValue",ignore:!0},{key:"dbIndex",ignore:!0}]},94233:function(e){e.exports=function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);Object.defineProperty(t,"createAutoCorrectedDatePipe",{enumerable:!0,get:function(){return i(r).default}});var a=n(2);Object.defineProperty(t,"createNumberMask",{enumerable:!0,get:function(){return i(a).default}});var s=n(3);Object.defineProperty(t,"emailMask",{enumerable:!0,get:function(){return i(s).default}})},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"mm dd yyyy",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.minYear,a=void 0===r?1:r,s=t.maxYear,o=void 0===s?9999:s,l=e.split(/[^dmyHMS]+/).sort((function(e,t){return i.indexOf(e)-i.indexOf(t)}));return function(t){var i=[],r={dd:31,mm:12,yy:99,yyyy:o,HH:23,MM:59,SS:59},s={dd:1,mm:1,yy:0,yyyy:a,HH:0,MM:0,SS:0},u=t.split("");l.forEach((function(t){var n=e.indexOf(t),a=parseInt(r[t].toString().substr(0,1),10);parseInt(u[n],10)>a&&(u[n+1]=u[n],u[n]=0,i.push(n))}));var d=0,c=l.some((function(i){var l=e.indexOf(i),u=i.length,c=t.substr(l,u).replace(/\D/g,""),h=parseInt(c,10);"mm"===i&&(d=h||0);var p="dd"===i?n[d]:r[i];if("yyyy"===i&&(1!==a||9999!==o)){var f=parseInt(r[i].toString().substring(0,c.length),10);return hf}return h>p||c.length===u&&h0&&void 0!==arguments[0]?arguments[0]:o,s=t.length;if(t===o||t[0]===v[0]&&1===s)return v.split(o).concat([f]).concat(b.split(o));if(t===C&&x)return v.split(o).concat(["0",C,f]).concat(b.split(o));var l=t[0]===d&&O;l&&(t=t.toString().substr(1));var u=t.lastIndexOf(C),g=-1!==u,y=void 0,_=void 0,M=void 0;if(t.slice(-1*H)===b&&(t=t.slice(0,-1*H)),g&&(x||D)?(y=t.slice(t.slice(0,N)===v?N:0,u),_=i((_=t.slice(u+1,s)).replace(h,o))):y=t.slice(0,N)===v?t.slice(N):t,F&&(void 0===F?"undefined":a(F))===p){var S="."===k?"[.]":""+k,L=(y.match(new RegExp(S,"g"))||[]).length;y=y.slice(0,F+L*z)}if(y=y.replace(h,o),I||(y=y.replace(/^0+(0$|[^0])/,"$1")),M=i(y=w?function(e,t){return e.replace(/\B(?=(\d{3})+(?!\d))/g,t)}(y,k):y),(g&&x||!0===D)&&(t[u-1]!==C&&M.push(m),M.push(C,m),_&&((void 0===E?"undefined":a(E))===p&&(_=_.slice(0,E)),M=M.concat(_)),!0===D&&t[u-1]===C&&M.push(f)),N>0&&(M=v.split(o).concat(M)),l&&(M.length===N&&M.push(f),M=[c].concat(M)),b.length>0&&(M=M.concat(b.split(o))),V&&/[eE]/.test(t)){var T=t.split(/[eE]/),A=r(T,2),P=A[0],j=A[1],R=P.match(/^[-+]?[0-9]*\.?[0-9]+/),Y=j&&j.match(/^[-+]?[0-9]+$/);if(R&&(!j||Y)){var U=e(R[0]),B=Y?i(Y[0]):[];return[].concat(n(U),["e"],n(B))}}return M}var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},g=t.prefix,v=void 0===g?s:g,y=t.suffix,b=void 0===y?o:y,_=t.includeThousandsSeparator,w=void 0===_||_,M=t.thousandsSeparatorSymbol,k=void 0===M?l:M,S=t.allowDecimal,x=void 0!==S&&S,L=t.decimalSymbol,C=void 0===L?u:L,T=t.decimalLimit,E=void 0===T?2:T,A=t.requireDecimal,D=void 0!==A&&A,P=t.allowNegative,O=void 0!==P&&P,j=t.allowLeadingZeroes,I=void 0!==j&&j,R=t.integerLimit,F=void 0===R?null:R,Y=t.allowScientificNotation,V=void 0===Y||Y,N=v&&v.length||0,H=b&&b.length||0,z=k&&k.length||0;return e.instanceOf="createNumberMask",e};var s="$",o="",l=",",u=".",d="-",c=/-/,h=/\D+/g,p="number",f=/\d/,m="[]"},function(e,t,n){"use strict";function i(e,t,n){var i=[];return e[t]===n?i.push(n):i.push(h,n),i.push(h),i}function r(e,t,n,i){var r=d;return-1!==t&&(r=-1===n?e.slice(t+1,e.length):e.slice(t+1,n)),(r=r.replace(new RegExp("[\\s"+i+"]",f),d))===c?l:r.length<1?p:r[r.length-1]===u?r.slice(0,r.length-1):r}function a(e,t,n,i){var r=d;return-1!==t&&(r=e.slice(t+1,e.length)),0===(r=r.replace(new RegExp("[\\s"+n+".]",f),d)).length?e[t-1]===u&&i!==e.length?l:d:r}function s(e,t){return e.split(d).map((function(e){return e===p?e:t?g:m}))}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){return e&&e.__esModule?e:{default:e}}(n(4)),l="*",u=".",d="",c="@",h="[]",p=" ",f="g",m=/[^\s]/,g=/[^.\s]/,v=/\s/g;t.default={mask:function(e,t){e=e.replace(v,d);var n=t.placeholderChar,o=t.currentCaretPosition,l=e.indexOf(c),h=e.lastIndexOf(u),p=h1&&f.substr(-1)===o&&r!==c.length&&(f=f.slice(0,f.length-1)),f};var i="@",r=/@/g,a="",s="@.",o=".",l="..",u=[],d=/\./g}])},94259:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(87422)),a=i(n(66024)),s=i(n(18824)),o=i(n(62627));t.default=function(...e){return r.default.baseEditForm([{key:"display",components:s.default},{key:"data",components:a.default},{key:"validation",components:o.default}],...e)}},94394:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Formio=void 0;var i=n(31870);Object.defineProperty(t,"Formio",{enumerable:!0,get:function(){return i.Formio}})},94418:function(e,t,n){!function(e){"use strict";var t="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),i=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function r(e){return e%10<5&&e%10>1&&~~(e/10)%10!=1}function a(e,t,n){var i=e+" ";switch(n){case"ss":return i+(r(e)?"sekundy":"sekund");case"m":return t?"minuta":"minutę";case"mm":return i+(r(e)?"minuty":"minut");case"h":return t?"godzina":"godzinę";case"hh":return i+(r(e)?"godziny":"godzin");case"ww":return i+(r(e)?"tygodnie":"tygodni");case"MM":return i+(r(e)?"miesiące":"miesięcy");case"yy":return i+(r(e)?"lata":"lat")}}e.defineLocale("pl",{months:function(e,i){return e?/D MMMM/.test(i)?n[e.month()]:t[e.month()]:t},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:a,m:a,mm:a,h:a,hh:a,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:a,M:"miesiąc",MM:a,y:"rok",yy:a},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(95093))},94901:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},95050:function(e,t,n){!function(e){"use strict";var t={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};e.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(e){return e.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(e,t){return 12===e&&(e=0),"રાત"===t?e<4?e:e+12:"સવાર"===t?e:"બપોર"===t?e>=10?e:e+12:"સાંજ"===t?e+12:void 0},meridiem:function(e,t,n){return e<4?"રાત":e<10?"સવાર":e<17?"બપોર":e<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(95093))},95093:function(e,t,n){(e=n.nmd(e)).exports=function(){"use strict";var t,i;function r(){return t.apply(null,arguments)}function a(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function o(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function l(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(o(e,t))return!1;return!0}function u(e){return void 0===e}function d(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function c(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function h(e,t){var n,i=[],r=e.length;for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var P=/(\[[^\[]*\])|(\\)?([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,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,j={},I={};function R(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(I[e]=r),t&&(I[t[0]]=function(){return D(r.apply(this,arguments),t[1],t[2])}),n&&(I[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function F(e,t){return e.isValid()?(t=Y(t,e.localeData()),j[t]=j[t]||function(e){var t,n,i,r=e.match(P);for(t=0,n=r.length;t=0&&O.test(e);)e=e.replace(O,i),O.lastIndex=0,n-=1;return e}var V={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 N(e){return"string"==typeof e?V[e]||V[e.toLowerCase()]:void 0}function H(e){var t,n,i={};for(n in e)o(e,n)&&(t=N(n))&&(i[t]=e[n]);return i}var z={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};var U,B=/\d/,W=/\d\d/,$=/\d{3}/,q=/\d{4}/,K=/[+-]?\d{6}/,G=/\d\d?/,J=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,Z=/\d{1,3}/,Q=/\d{1,4}/,ee=/[+-]?\d{1,6}/,te=/\d+/,ne=/[+-]?\d+/,ie=/Z|[+-]\d\d:?\d\d/gi,re=/Z|[+-]\d\d(?::?\d\d)?/gi,ae=/[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,se=/^[1-9]\d?/,oe=/^([1-9]\d|\d)/;function le(e,t,n){U[e]=T(t)?t:function(e,i){return e&&n?n:t}}function ue(e,t){return o(U,e)?U[e](t._strict,t._locale):new RegExp(de(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,i,r){return t||n||i||r}))))}function de(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ce(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function he(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ce(t)),n}U={};var pe={};function fe(e,t){var n,i,r=t;for("string"==typeof e&&(e=[e]),d(t)&&(r=function(e,n){n[t]=he(e)}),i=e.length,n=0;n68?1900:2e3)};var Te,Ee=Ae("FullYear",!0);function Ae(e,t){return function(n){return null!=n?(Pe(this,e,n),r.updateOffset(this,t),this):De(this,e)}}function De(e,t){if(!e.isValid())return NaN;var n=e._d,i=e._isUTC;switch(t){case"Milliseconds":return i?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return i?n.getUTCSeconds():n.getSeconds();case"Minutes":return i?n.getUTCMinutes():n.getMinutes();case"Hours":return i?n.getUTCHours():n.getHours();case"Date":return i?n.getUTCDate():n.getDate();case"Day":return i?n.getUTCDay():n.getDay();case"Month":return i?n.getUTCMonth():n.getMonth();case"FullYear":return i?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Pe(e,t,n){var i,r,a,s,o;if(e.isValid()&&!isNaN(n)){switch(i=e._d,r=e._isUTC,t){case"Milliseconds":return void(r?i.setUTCMilliseconds(n):i.setMilliseconds(n));case"Seconds":return void(r?i.setUTCSeconds(n):i.setSeconds(n));case"Minutes":return void(r?i.setUTCMinutes(n):i.setMinutes(n));case"Hours":return void(r?i.setUTCHours(n):i.setHours(n));case"Date":return void(r?i.setUTCDate(n):i.setDate(n));case"FullYear":break;default:return}a=n,s=e.month(),o=29!==(o=e.date())||1!==s||ve(a)?o:28,r?i.setUTCFullYear(a,s,o):i.setFullYear(a,s,o)}}function Oe(e,t){if(isNaN(e)||isNaN(t))return NaN;var n,i=(t%(n=12)+n)%n;return e+=(t-i)/12,1===i?ve(e)?29:28:31-i%7%2}Te=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0?(o=new Date(e+400,t,n,i,r,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,i,r,a,s),o}function Be(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function We(e,t,n){var i=7+t-n;return-(7+Be(e,0,i).getUTCDay()-t)%7+i-1}function $e(e,t,n,i,r){var a,s,o=1+7*(t-1)+(7+n-i)%7+We(e,i,r);return o<=0?s=Ce(a=e-1)+o:o>Ce(e)?(a=e+1,s=o-Ce(e)):(a=e,s=o),{year:a,dayOfYear:s}}function qe(e,t,n){var i,r,a=We(e.year(),t,n),s=Math.floor((e.dayOfYear()-a-1)/7)+1;return s<1?i=s+Ke(r=e.year()-1,t,n):s>Ke(e.year(),t,n)?(i=s-Ke(e.year(),t,n),r=e.year()+1):(r=e.year(),i=s),{week:i,year:r}}function Ke(e,t,n){var i=We(e,t,n),r=We(e+1,t,n);return(Ce(e)-i+r)/7}R("w",["ww",2],"wo","week"),R("W",["WW",2],"Wo","isoWeek"),le("w",G,se),le("ww",G,W),le("W",G,se),le("WW",G,W),me(["w","ww","W","WW"],(function(e,t,n,i){t[i.substr(0,1)]=he(e)}));function Ge(e,t){return e.slice(t,7).concat(e.slice(0,t))}R("d",0,"do","day"),R("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),R("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),R("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),R("e",0,0,"weekday"),R("E",0,0,"isoWeekday"),le("d",G),le("e",G),le("E",G),le("dd",(function(e,t){return t.weekdaysMinRegex(e)})),le("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),le("dddd",(function(e,t){return t.weekdaysRegex(e)})),me(["dd","ddd","dddd"],(function(e,t,n,i){var r=n._locale.weekdaysParse(e,i,n._strict);null!=r?t.d=r:m(n).invalidWeekday=e})),me(["d","e","E"],(function(e,t,n,i){t[i]=he(e)}));var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ze="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Qe=ae,et=ae,tt=ae;function nt(e,t,n){var i,r,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(r=Te.call(this._weekdaysParse,s))?r:null:"ddd"===t?-1!==(r=Te.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=Te.call(this._minWeekdaysParse,s))?r:null:"dddd"===t?-1!==(r=Te.call(this._weekdaysParse,s))||-1!==(r=Te.call(this._shortWeekdaysParse,s))||-1!==(r=Te.call(this._minWeekdaysParse,s))?r:null:"ddd"===t?-1!==(r=Te.call(this._shortWeekdaysParse,s))||-1!==(r=Te.call(this._weekdaysParse,s))||-1!==(r=Te.call(this._minWeekdaysParse,s))?r:null:-1!==(r=Te.call(this._minWeekdaysParse,s))||-1!==(r=Te.call(this._weekdaysParse,s))||-1!==(r=Te.call(this._shortWeekdaysParse,s))?r:null}function it(){function e(e,t){return t.length-e.length}var t,n,i,r,a,s=[],o=[],l=[],u=[];for(t=0;t<7;t++)n=f([2e3,1]).day(t),i=de(this.weekdaysMin(n,"")),r=de(this.weekdaysShort(n,"")),a=de(this.weekdays(n,"")),s.push(i),o.push(r),l.push(a),u.push(i),u.push(r),u.push(a);s.sort(e),o.sort(e),l.sort(e),u.sort(e),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function rt(){return this.hours()%12||12}function at(e,t){R(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function st(e,t){return t._meridiemParse}R("H",["HH",2],0,"hour"),R("h",["hh",2],0,rt),R("k",["kk",2],0,(function(){return this.hours()||24})),R("hmm",0,0,(function(){return""+rt.apply(this)+D(this.minutes(),2)})),R("hmmss",0,0,(function(){return""+rt.apply(this)+D(this.minutes(),2)+D(this.seconds(),2)})),R("Hmm",0,0,(function(){return""+this.hours()+D(this.minutes(),2)})),R("Hmmss",0,0,(function(){return""+this.hours()+D(this.minutes(),2)+D(this.seconds(),2)})),at("a",!0),at("A",!1),le("a",st),le("A",st),le("H",G,oe),le("h",G,se),le("k",G,se),le("HH",G,W),le("hh",G,W),le("kk",G,W),le("hmm",J),le("hmmss",X),le("Hmm",J),le("Hmmss",X),fe(["H","HH"],we),fe(["k","kk"],(function(e,t,n){var i=he(e);t[we]=24===i?0:i})),fe(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),fe(["h","hh"],(function(e,t,n){t[we]=he(e),m(n).bigHour=!0})),fe("hmm",(function(e,t,n){var i=e.length-2;t[we]=he(e.substr(0,i)),t[Me]=he(e.substr(i)),m(n).bigHour=!0})),fe("hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[we]=he(e.substr(0,i)),t[Me]=he(e.substr(i,2)),t[ke]=he(e.substr(r)),m(n).bigHour=!0})),fe("Hmm",(function(e,t,n){var i=e.length-2;t[we]=he(e.substr(0,i)),t[Me]=he(e.substr(i))})),fe("Hmmss",(function(e,t,n){var i=e.length-4,r=e.length-2;t[we]=he(e.substr(0,i)),t[Me]=he(e.substr(i,2)),t[ke]=he(e.substr(r))}));var ot=Ae("Hours",!0);var lt,ut={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{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"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{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"},months:je,monthsShort:Ie,week:{dow:0,doy:6},weekdays:Je,weekdaysMin:Ze,weekdaysShort:Xe,meridiemParse:/[ap]\.?m?\.?/i},dt={},ct={};function ht(e,t){var n,i=Math.min(e.length,t.length);for(n=0;n0;){if(i=ft(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&ht(r,n)>=t-1)break;t--}a++}return lt}(e)}function yt(e){var t,n=e._a;return n&&-2===m(e).overflow&&(t=n[be]<0||n[be]>11?be:n[_e]<1||n[_e]>Oe(n[ye],n[be])?_e:n[we]<0||n[we]>24||24===n[we]&&(0!==n[Me]||0!==n[ke]||0!==n[Se])?we:n[Me]<0||n[Me]>59?Me:n[ke]<0||n[ke]>59?ke:n[Se]<0||n[Se]>999?Se:-1,m(e)._overflowDayOfYear&&(t_e)&&(t=_e),m(e)._overflowWeeks&&-1===t&&(t=xe),m(e)._overflowWeekday&&-1===t&&(t=Le),m(e).overflow=t),e}var bt=/^\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)?)?$/,_t=/^\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)?)?$/,wt=/Z|[+-]\d\d(?::?\d\d)?/,Mt=[["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]],kt=[["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/]],St=/^\/?Date\((-?\d+)/i,xt=/^(?:(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}))$/,Lt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ct(e){var t,n,i,r,a,s,o=e._i,l=bt.exec(o)||_t.exec(o),u=Mt.length,d=kt.length;if(l){for(m(e).iso=!0,t=0,n=u;t7)&&(l=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,u=qe(It(),a,s),n=At(t.gg,e._a[ye],u.year),i=At(t.w,u.week),null!=t.d?((r=t.d)<0||r>6)&&(l=!0):null!=t.e?(r=t.e+a,(t.e<0||t.e>6)&&(l=!0)):r=a),i<1||i>Ke(n,a,s)?m(e)._overflowWeeks=!0:null!=l?m(e)._overflowWeekday=!0:(o=$e(n,i,r,a,s),e._a[ye]=o.year,e._dayOfYear=o.dayOfYear)}(e),null!=e._dayOfYear&&(s=At(e._a[ye],i[ye]),(e._dayOfYear>Ce(s)||0===e._dayOfYear)&&(m(e)._overflowDayOfYear=!0),n=Be(s,0,e._dayOfYear),e._a[be]=n.getUTCMonth(),e._a[_e]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=o[t]=i[t];for(;t<7;t++)e._a[t]=o[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[we]&&0===e._a[Me]&&0===e._a[ke]&&0===e._a[Se]&&(e._nextDay=!0,e._a[we]=0),e._d=(e._useUTC?Be:Ue).apply(null,o),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[we]=24),e._w&&void 0!==e._w.d&&e._w.d!==a&&(m(e).weekdayMismatch=!0)}}function Pt(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],m(e).empty=!0;var t,n,i,a,s,o,l,u=""+e._i,d=u.length,c=0;for(l=(i=Y(e._f,e._locale).match(P)||[]).length,t=0;t0&&m(e).unusedInput.push(s),u=u.slice(u.indexOf(n)+n.length),c+=n.length),I[a]?(n?m(e).empty=!1:m(e).unusedTokens.push(a),ge(a,n,e)):e._strict&&!n&&m(e).unusedTokens.push(a);m(e).charsLeftOver=d-c,u.length>0&&m(e).unusedInput.push(u),e._a[we]<=12&&!0===m(e).bigHour&&e._a[we]>0&&(m(e).bigHour=void 0),m(e).parsedDateParts=e._a.slice(0),m(e).meridiem=e._meridiem,e._a[we]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((i=e.isPM(n))&&t<12&&(t+=12),i||12!==t||(t=0),t):t}(e._locale,e._a[we],e._meridiem),null!==(o=m(e).era)&&(e._a[ye]=e._locale.erasConvertYear(o,e._a[ye])),Dt(e),yt(e)}else Et(e);else Ct(e)}function Ot(e){var t=e._i,n=e._f;return e._locale=e._locale||vt(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),M(t)?new w(yt(t)):(c(t)?e._d=t:a(n)?function(e){var t,n,i,r,a,s,o=!1,l=e._f.length;if(0===l)return m(e).invalidFormat=!0,void(e._d=new Date(NaN));for(r=0;rthis?this:e:v()}));function Yt(e,t){var n,i;if(1===t.length&&a(t[0])&&(t=t[0]),!t.length)return It();for(n=t[0],i=1;i=0?new Date(e+400,t,n)-fn:new Date(e,t,n).valueOf()}function vn(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-fn:Date.UTC(e,t,n)}function yn(e,t){return t.erasAbbrRegex(e)}function bn(){var e,t,n,i,r,a=[],s=[],o=[],l=[],u=this.eras();for(e=0,t=u.length;e(a=Ke(e,i,r))&&(t=a),Mn.call(this,e,t,n,i,r))}function Mn(e,t,n,i,r){var a=$e(e,t,n,i,r),s=Be(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}R("N",0,0,"eraAbbr"),R("NN",0,0,"eraAbbr"),R("NNN",0,0,"eraAbbr"),R("NNNN",0,0,"eraName"),R("NNNNN",0,0,"eraNarrow"),R("y",["y",1],"yo","eraYear"),R("y",["yy",2],0,"eraYear"),R("y",["yyy",3],0,"eraYear"),R("y",["yyyy",4],0,"eraYear"),le("N",yn),le("NN",yn),le("NNN",yn),le("NNNN",(function(e,t){return t.erasNameRegex(e)})),le("NNNNN",(function(e,t){return t.erasNarrowRegex(e)})),fe(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,i){var r=n._locale.erasParse(e,i,n._strict);r?m(n).era=r:m(n).invalidEra=e})),le("y",te),le("yy",te),le("yyy",te),le("yyyy",te),le("yo",(function(e,t){return t._eraYearOrdinalRegex||te})),fe(["y","yy","yyy","yyyy"],ye),fe(["yo"],(function(e,t,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[ye]=n._locale.eraYearOrdinalParse(e,r):t[ye]=parseInt(e,10)})),R(0,["gg",2],0,(function(){return this.weekYear()%100})),R(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),_n("gggg","weekYear"),_n("ggggg","weekYear"),_n("GGGG","isoWeekYear"),_n("GGGGG","isoWeekYear"),le("G",ne),le("g",ne),le("GG",G,W),le("gg",G,W),le("GGGG",Q,q),le("gggg",Q,q),le("GGGGG",ee,K),le("ggggg",ee,K),me(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,i){t[i.substr(0,2)]=he(e)})),me(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),R("Q",0,"Qo","quarter"),le("Q",B),fe("Q",(function(e,t){t[be]=3*(he(e)-1)})),R("D",["DD",2],"Do","date"),le("D",G,se),le("DD",G,W),le("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),fe(["D","DD"],_e),fe("Do",(function(e,t){t[_e]=he(e.match(G)[0])}));var kn=Ae("Date",!0);R("DDD",["DDDD",3],"DDDo","dayOfYear"),le("DDD",Z),le("DDDD",$),fe(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=he(e)})),R("m",["mm",2],0,"minute"),le("m",G,oe),le("mm",G,W),fe(["m","mm"],Me);var Sn=Ae("Minutes",!1);R("s",["ss",2],0,"second"),le("s",G,oe),le("ss",G,W),fe(["s","ss"],ke);var xn,Ln,Cn=Ae("Seconds",!1);for(R("S",0,0,(function(){return~~(this.millisecond()/100)})),R(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),R(0,["SSS",3],0,"millisecond"),R(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),R(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),R(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),R(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),R(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),R(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),le("S",Z,B),le("SS",Z,W),le("SSS",Z,$),xn="SSSS";xn.length<=9;xn+="S")le(xn,te);function Tn(e,t){t[Se]=he(1e3*("0."+e))}for(xn="S";xn.length<=9;xn+="S")fe(xn,Tn);Ln=Ae("Milliseconds",!1),R("z",0,0,"zoneAbbr"),R("zz",0,0,"zoneName");var En=w.prototype;function An(e){return e}En.add=nn,En.calendar=function(e,t){1===arguments.length&&(arguments[0]?sn(arguments[0])?(e=arguments[0],t=void 0):function(e){var t,n=s(e)&&!l(e),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;tn.valueOf():n.valueOf()9999?F(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",F(n,"Z")):F(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},En.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=r+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(En[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),En.toJSON=function(){return this.isValid()?this.toISOString():null},En.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},En.unix=function(){return Math.floor(this.valueOf()/1e3)},En.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},En.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},En.eraName=function(){var e,t,n,i=this.localeData().eras();for(e=0,t=i.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},En.isLocal=function(){return!!this.isValid()&&!this._isUTC},En.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},En.isUtc=Kt,En.isUTC=Kt,En.zoneAbbr=function(){return this._isUTC?"UTC":""},En.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},En.dates=S("dates accessor is deprecated. Use date instead.",kn),En.months=S("months accessor is deprecated. Use month instead",He),En.years=S("years accessor is deprecated. Use year instead",Ee),En.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()})),En.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!u(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=Ot(t))._a?(e=t._isUTC?f(t._a):It(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var i,r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),s=0;for(i=0;i0):this._isDSTShifted=!1,this._isDSTShifted}));var Dn=A.prototype;function Pn(e,t,n,i){var r=vt(),a=f().set(i,t);return r[n](a,e)}function On(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||"",null!=t)return Pn(e,t,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Pn(e,i,n,"month");return r}function jn(e,t,n,i){"boolean"==typeof e?(d(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||"");var r,a=vt(),s=e?a._week.dow:0,o=[];if(null!=n)return Pn(t,(n+s)%7,i,"day");for(r=0;r<7;r++)o[r]=Pn(t,(r+s)%7,i,"day");return o}Dn.calendar=function(e,t,n){var i=this._calendar[e]||this._calendar.sameElse;return T(i)?i.call(t,n):i},Dn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(P).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])},Dn.invalidDate=function(){return this._invalidDate},Dn.ordinal=function(e){return this._ordinal.replace("%d",e)},Dn.preparse=An,Dn.postformat=An,Dn.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return T(r)?r(e,t,n,i):r.replace(/%d/i,e)},Dn.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return T(n)?n(t):n.replace(/%s/i,t)},Dn.set=function(e){var t,n;for(n in e)o(e,n)&&(T(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Dn.eras=function(e,t){var n,i,a,s=this._eras||vt("en")._eras;for(n=0,i=s.length;n=0)return l[i]},Dn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n},Dn.erasAbbrRegex=function(e){return o(this,"_erasAbbrRegex")||bn.call(this),e?this._erasAbbrRegex:this._erasRegex},Dn.erasNameRegex=function(e){return o(this,"_erasNameRegex")||bn.call(this),e?this._erasNameRegex:this._erasRegex},Dn.erasNarrowRegex=function(e){return o(this,"_erasNarrowRegex")||bn.call(this),e?this._erasNarrowRegex:this._erasRegex},Dn.months=function(e,t){return e?a(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Re).test(t)?"format":"standalone"][e.month()]:a(this._months)?this._months:this._months.standalone},Dn.monthsShort=function(e,t){return e?a(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Re.test(t)?"format":"standalone"][e.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Dn.monthsParse=function(e,t,n){var i,r,a;if(this._monthsParseExact)return Ve.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},Dn.monthsRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||ze.call(this),e?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Ye),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Dn.monthsShortRegex=function(e){return this._monthsParseExact?(o(this,"_monthsRegex")||ze.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=Fe),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Dn.week=function(e){return qe(e,this._week.dow,this._week.doy).week},Dn.firstDayOfYear=function(){return this._week.doy},Dn.firstDayOfWeek=function(){return this._week.dow},Dn.weekdays=function(e,t){var n=a(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Ge(n,this._week.dow):e?n[e.day()]:n},Dn.weekdaysMin=function(e){return!0===e?Ge(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Dn.weekdaysShort=function(e){return!0===e?Ge(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Dn.weekdaysParse=function(e,t,n){var i,r,a;if(this._weekdaysParseExact)return nt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[i].test(e))return i;if(n&&"ddd"===t&&this._shortWeekdaysParse[i].test(e))return i;if(n&&"dd"===t&&this._minWeekdaysParse[i].test(e))return i;if(!n&&this._weekdaysParse[i].test(e))return i}},Dn.weekdaysRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||it.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Qe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Dn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||it.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=et),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Dn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||it.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=tt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Dn.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Dn.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},mt("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;return e+(1===he(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=S("moment.lang is deprecated. Use moment.locale instead.",mt),r.langData=S("moment.langData is deprecated. Use moment.localeData instead.",vt);var In=Math.abs;function Rn(e,t,n,i){var r=Xt(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function Fn(e){return e<0?Math.floor(e):Math.ceil(e)}function Yn(e){return 4800*e/146097}function Vn(e){return 146097*e/4800}function Nn(e){return function(){return this.as(e)}}var Hn=Nn("ms"),zn=Nn("s"),Un=Nn("m"),Bn=Nn("h"),Wn=Nn("d"),$n=Nn("w"),qn=Nn("M"),Kn=Nn("Q"),Gn=Nn("y"),Jn=Hn;function Xn(e){return function(){return this.isValid()?this._data[e]:NaN}}var Zn=Xn("milliseconds"),Qn=Xn("seconds"),ei=Xn("minutes"),ti=Xn("hours"),ni=Xn("days"),ii=Xn("months"),ri=Xn("years");var ai=Math.round,si={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function oi(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}var li=Math.abs;function ui(e){return(e>0)-(e<0)||+e}function di(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,i,r,a,s,o,l=li(this._milliseconds)/1e3,u=li(this._days),d=li(this._months),c=this.asSeconds();return c?(e=ce(l/60),t=ce(e/60),l%=60,e%=60,n=ce(d/12),d%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=c<0?"-":"",a=ui(this._months)!==ui(c)?"-":"",s=ui(this._days)!==ui(c)?"-":"",o=ui(this._milliseconds)!==ui(c)?"-":"",r+"P"+(n?a+n+"Y":"")+(d?a+d+"M":"")+(u?s+u+"D":"")+(t||e||l?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(l?o+i+"S":"")):"P0D"}var ci=Nt.prototype;return ci.isValid=function(){return this._isValid},ci.abs=function(){var e=this._data;return this._milliseconds=In(this._milliseconds),this._days=In(this._days),this._months=In(this._months),e.milliseconds=In(e.milliseconds),e.seconds=In(e.seconds),e.minutes=In(e.minutes),e.hours=In(e.hours),e.months=In(e.months),e.years=In(e.years),this},ci.add=function(e,t){return Rn(this,e,t,1)},ci.subtract=function(e,t){return Rn(this,e,t,-1)},ci.as=function(e){if(!this.isValid())return NaN;var t,n,i=this._milliseconds;if("month"===(e=N(e))||"quarter"===e||"year"===e)switch(t=this._days+i/864e5,n=this._months+Yn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(Vn(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},ci.asMilliseconds=Hn,ci.asSeconds=zn,ci.asMinutes=Un,ci.asHours=Bn,ci.asDays=Wn,ci.asWeeks=$n,ci.asMonths=qn,ci.asQuarters=Kn,ci.asYears=Gn,ci.valueOf=Jn,ci._bubble=function(){var e,t,n,i,r,a=this._milliseconds,s=this._days,o=this._months,l=this._data;return a>=0&&s>=0&&o>=0||a<=0&&s<=0&&o<=0||(a+=864e5*Fn(Vn(o)+s),s=0,o=0),l.milliseconds=a%1e3,e=ce(a/1e3),l.seconds=e%60,t=ce(e/60),l.minutes=t%60,n=ce(t/60),l.hours=n%24,s+=ce(n/24),o+=r=ce(Yn(s)),s-=Fn(Vn(r)),i=ce(o/12),o%=12,l.days=s,l.months=o,l.years=i,this},ci.clone=function(){return Xt(this)},ci.get=function(e){return e=N(e),this.isValid()?this[e+"s"]():NaN},ci.milliseconds=Zn,ci.seconds=Qn,ci.minutes=ei,ci.hours=ti,ci.days=ni,ci.weeks=function(){return ce(this.days()/7)},ci.months=ii,ci.years=ri,ci.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,a=si;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(a=Object.assign({},si,t),null!=t.s&&null==t.ss&&(a.ss=t.s-1)),i=function(e,t,n,i){var r=Xt(e).abs(),a=ai(r.as("s")),s=ai(r.as("m")),o=ai(r.as("h")),l=ai(r.as("d")),u=ai(r.as("M")),d=ai(r.as("w")),c=ai(r.as("y")),h=a<=n.ss&&["s",a]||a0,h[4]=i,oi.apply(null,h)}(this,!r,a,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},ci.toISOString=di,ci.toString=di,ci.toJSON=di,ci.locale=ln,ci.localeData=dn,ci.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",di),ci.lang=un,R("X",0,0,"unix"),R("x",0,0,"valueOf"),le("x",ne),le("X",/[+-]?\d+(\.\d{1,3})?/),fe("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),fe("x",(function(e,t,n){n._d=new Date(he(e))})),r.version="2.30.1",t=It,r.fn=En,r.min=function(){return Yt("isBefore",[].slice.call(arguments,0))},r.max=function(){return Yt("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=f,r.unix=function(e){return It(1e3*e)},r.months=function(e,t){return On(e,t,"months")},r.isDate=c,r.locale=mt,r.invalid=v,r.duration=Xt,r.isMoment=M,r.weekdays=function(e,t,n){return jn(e,t,n,"weekdays")},r.parseZone=function(){return It.apply(null,arguments).parseZone()},r.localeData=vt,r.isDuration=Ht,r.monthsShort=function(e,t){return On(e,t,"monthsShort")},r.weekdaysMin=function(e,t,n){return jn(e,t,n,"weekdaysMin")},r.defineLocale=gt,r.updateLocale=function(e,t){if(null!=t){var n,i,r=ut;null!=dt[e]&&null!=dt[e].parentLocale?dt[e].set(E(dt[e]._config,t)):(null!=(i=ft(e))&&(r=i._config),t=E(r,t),null==i&&(t.abbr=e),(n=new A(t)).parentLocale=dt[e],dt[e]=n),mt(e)}else null!=dt[e]&&(null!=dt[e].parentLocale?(dt[e]=dt[e].parentLocale,e===mt()&&mt(e)):null!=dt[e]&&delete dt[e]);return dt[e]},r.locales=function(){return x(dt)},r.weekdaysShort=function(e,t,n){return jn(e,t,n,"weekdaysShort")},r.normalizeUnits=N,r.relativeTimeRounding=function(e){return void 0===e?ai:"function"==typeof e&&(ai=e,!0)},r.relativeTimeThreshold=function(e,t){return void 0!==si[e]&&(void 0===t?si[e]:(si[e]=t,"s"===e&&(si.ss=t-1),!0))},r.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=En,r.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"},r}()},95201:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(10280)),a=i(n(69922));t.default=function(...e){return(0,r.default)([{key:"display",components:a.default}],...e)}},95211:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(96877)),a=i(n(2543));class s extends r.default{static schema(...e){return r.default.schema({label:"Content",type:"content",key:"content",input:!1,html:""},...e)}static get builderInfo(){return{title:"Content",group:"layout",icon:"html5",preview:!1,showPreview:!1,documentation:"/userguide/form-building/layout-components#content",weight:5,schema:s.schema()}}static savedValueTypes(){return[]}get defaultSchema(){return s.schema()}get content(){if(this.builderMode)return this.component.html||"Content";const e=a.default.get(this.root,"submission",{});return this.component.html?this.interpolate(this.component.html,{metadata:e.metadata||{},submission:e,data:this.rootValue,row:this.data}):""}render(){return super.render(this.renderTemplate("html",{tag:"div",attrs:[],content:this.content}))}get dataReady(){var e;return(null===(e=this.root)||void 0===e?void 0:e.submissionReady)||Promise.resolve()}attach(e){return this.loadRefs(e,{html:"single"}),this.dataReady.then((()=>{this.refs.html&&this.setContent(this.refs.html,this.content)})),this.component.refreshOnChange&&this.on("change",(()=>{this.refs.html&&this.setContent(this.refs.html,this.content)}),!0),super.attach(e)}get emptyValue(){return""}}t.default=s},95309:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"placeholder",ignore:!0},{key:"tabindex",ignore:!0},{type:"textfield",label:"Label for Key column",key:"keyLabel",tooltip:"Provide a label text for Key column (otherwise 'Key' will be used)",weight:404,input:!0},{type:"checkbox",label:"Disable Adding / Removing Rows",key:"disableAddingRemovingRows",tooltip:"Check if you want to hide Add Another button and Remove Row button",weight:405,input:!0},{type:"checkbox",label:"Show key column before value",key:"keyBeforeValue",tooltip:"Check if you would like to show the Key before the Value column.",weight:406,input:!0},{type:"textfield",label:"Add Another Text",key:"addAnother",tooltip:"Set the text of the Add Another button.",placeholder:"Add Another",weight:410,input:!0,customConditional:e=>!e.data.disableAddingRemovingRows}]},95357:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(74425)),a=i(n(75779));t.default={input:r.default,calendar:a.default}},95434:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";for(var i in Array.prototype.join,n+="\n"}},95461:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),n(96522);const r=n(94394),a=n(84679),s=n(77644),o=n(26131),l=n(2543),u=i(n(54221)),d=i(n(12191));class c extends r.Formio{static usePlugin(e,t){switch(e){case"options":if(!r.Formio.options)return;r.Formio.options=(0,l.merge)(r.Formio.options,t);break;case"templates":if(!r.Formio.Templates)return;const n=r.Formio.Templates.framework||"bootstrap";for(const e of Object.keys(t))r.Formio.Templates.extendTemplate(e,t[e]);t[n]&&(r.Formio.Templates.current=t[n]);break;case"components":if(!r.Formio.Components)return;r.Formio.Components.setComponents(t);break;case"framework":if(!r.Formio.Templates)return;r.Formio.Templates.framework=t;break;case"fetch":for(const e of Object.keys(t))r.Formio.registerPlugin(t[e],e);break;case"rules":if(!r.Formio.Rules)return;r.Formio.Rules.addRules(t);break;case"evaluator":if(!r.Formio.Evaluator)return;r.Formio.Evaluator.registerEvaluator(t);break;default:console.log("Unknown plugin option",e)}}static useModule(e){if("object"==typeof e)for(const t of Object.keys(e))c.usePlugin(t,e[t])}static use(...e){e.forEach((e=>{Array.isArray(e)?e.forEach((e=>c.useModule(e))):c.useModule(e)}))}}c.Components=s.Components,c.render=s.render,c.Evaluator=a.Evaluator,c.Utils=a.Utils,c.Templates=o.Template,t.default=c,c.use(u.default),c.use(d.default)},95533:function(e,t,n){!function(e){"use strict";var t={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};e.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(e){return/^(gündüz|axşam)$/.test(e)},meridiem:function(e,t,n){return e<4?"gecə":e<12?"səhər":e<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(e){if(0===e)return e+"-ıncı";var n=e%10;return e+(t[n]||t[e%100-n]||t[e>=100?100:null])},week:{dow:1,doy:7}})}(n(95093))},95764:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(89480)),a=n(2543);class s extends r.default{static get operatorKey(){return"greaterThan"}static get displayedName(){return"Greater Than"}execute({value:e,comparedValue:t}){return(0,a.isNumber)(e)&&e>t}}t.default=s},95828:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(27094),r=n(61801);t.default={form:i.default,html:r.default}},95950:(e,t,n)=>{var i=n(70695),r=n(88984),a=n(64894);e.exports=function(e){return a(e)?i(e):r(e)}},95995:function(e,t,n){!function(e){"use strict";e.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(e){return e},week:{dow:1,doy:4}})}(n(95093))},96012:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='
    \n ',e.label.hidden||(n+='\n
    \n '+(null==(t=e.labelMarkup)?"":t)+"\n
    \n "),n+="\n\n ",e.label.hidden&&e.label.className&&e.component.validate.required&&(n+='\n
    \n \n
    \n '),n+='\n\n
    \n '+(null==(t=e.element)?"":t)+"\n
    \n
    \n\n",e.component.description&&(n+='\n
    '+(null==(t=e.t(e.component.description,{_userInput:!0}))?"":t)+"
    \n"),n+"\n"}},96034:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(38644);t.default={form:i.default}},96131:(e,t,n)=>{var i=n(2523),r=n(85463),a=n(76959);e.exports=function(e,t,n){return t==t?a(e,t,n):i(e,r,n)}},96337:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=i(n(39142));class s extends a.default{static schema(...e){return a.default.schema({label:"Tabs",type:"tabs",input:!1,key:"tabs",persistent:!1,tableView:!1,components:[{label:"Tab 1",key:"tab1",components:[]}],verticalLayout:!1},...e)}static get builderInfo(){return{title:"Tabs",group:"layout",icon:"folder-o",weight:50,documentation:"/userguide/form-building/layout-components#tabs",showPreview:!1,schema:s.schema()}}static savedValueTypes(){return[]}get defaultSchema(){return s.schema()}get schema(){const e=super.schema,t=r.default.cloneDeep(this.component.components);return e.components=t.map(((e,t)=>(e.components=this.tabs[t].map((e=>e.schema)),e))),e}get tabKey(){return`tab-${this.key}`}get tabLikey(){return`tabLi-${this.key}`}get tabLinkKey(){return`tabLink-${this.key}`}constructor(...e){super(...e),this.currentTab=0,this.noField=!0}init(){this.components=[],this.tabs=[],r.default.each(this.component.components,((e,t)=>{this.tabs[t]=[],e.components=e.components||[],r.default.each(e.components,(e=>{const n=this.createComponent(e);n.tab=t,this.tabs[t].push(n)}))}))}render(){return super.render(this.renderTemplate("tab",{tabKey:this.tabKey,tabLikey:this.tabLikey,tabLinkKey:this.tabLinkKey,currentTab:this.currentTab,tabComponents:this.tabs.map((e=>this.renderComponents(e)))},this.options.flatten||this.options.pdf?"flat":null))}attach(e){this.loadRefs(e,{[this.tabLinkKey]:"multiple",[this.tabKey]:"multiple",[this.tabLikey]:"multiple"}),["change","error"].forEach((e=>this.on(e,this.handleTabsValidation.bind(this))));const t=super.attach(e);return this.refs[this.tabLinkKey].forEach(((e,t)=>{this.addEventListener(e,"click",(e=>{e.preventDefault(),this.setTab(t)}))})),this.refs[this.tabKey].forEach(((e,t)=>{this.attachComponents(e,this.tabs[t],this.component.components[t].components)})),t}detach(e){super.detach(e)}setTab(e){this.tabs&&this.tabs[e]&&this.refs[this.tabKey]&&this.refs[this.tabKey][e]&&(this.currentTab=e,r.default.each(this.refs[this.tabKey],(e=>{this.removeClass(e,"formio-tab-panel-active"),e.style.display="none"})),this.addClass(this.refs[this.tabKey][e],"formio-tab-panel-active"),this.refs[this.tabKey][e].style.display="block",r.default.each(this.refs[this.tabLinkKey],((e,t)=>{this.refs[this.tabLinkKey][t]&&(this.removeClass(e,"active"),this.removeClass(e,"formio-tab-link-active")),this.refs[this.tabLikey][t]&&(this.removeClass(this.refs[this.tabLikey][t],"active"),this.removeClass(this.refs[this.tabLikey][t],"formio-tab-link-container-active"))})),this.refs[this.tabLikey][e]&&(this.addClass(this.refs[this.tabLikey][e],"active"),this.addClass(this.refs[this.tabLikey][e],"formio-tab-link-container-active")),this.refs[this.tabLinkKey][e]&&(this.addClass(this.refs[this.tabLinkKey][e],"active"),this.addClass(this.refs[this.tabLinkKey][e],"formio-tab-link-active")),this.triggerChange())}beforeFocus(e){"beforeFocus"in this.parent&&this.parent.beforeFocus(this);const t=this.tabs.findIndex((t=>t.some((t=>t===e))));-1!==t&&this.currentTab!==t&&this.setTab(t)}setErrorClasses(e,t,n,i,r=this.element){this.component.modalEdit&&super.setErrorClasses(e,t,n,i,r),e.forEach((e=>{this.addClass(e,"is-invalid"),"openModal"!==e.getAttribute("ref")&&(this.options.highlightErrors?this.addClass(e,"tab-error"):this.addClass(e,"has-error"))}))}clearErrorClasses(e){if(!this.options.server&&this.rendered){if(this.component.modalEdit){const t=Array.isArray(e)||e instanceof NodeList?this.element:e;super.clearErrorClasses(t)}(e=Array.isArray(e)||e instanceof NodeList?e:[e]).forEach((e=>{this.removeClass(e,"is-invalid"),this.removeClass(e,"tab-error"),this.removeClass(e,"has-error")}))}}handleTabsValidation(){if(!this.refs[this.tabLinkKey]||!this.refs[this.tabLinkKey].length||!this.tabs.length)return;this.clearErrorClasses(this.refs[this.tabLinkKey]);const e=this.tabs.reduce(((e,t,n)=>t.some((e=>!!e.error))?[...e,n]:e),[]);if(!e.length)return;const t=[...this.refs[this.tabLinkKey]].filter(((t,n)=>e.includes(n)));this.setErrorClasses(t)}}t.default=s},96377:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+="
    \n ",e.component.legend&&(n+='\n \n '+(null==(t=e.t(e.component.legend,{_userInput:!0}))?"":t)+"\n ",e.component.tooltip&&(n+='\n \n '),n+="\n \n "),n+="\n ",e.collapsed||(n+='\n
    \n '+(null==(t=e.children)?"":t)+"\n
    \n "),n+"\n
    \n"}},96395:e=>{"use strict";e.exports=!1},96398:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},96522:(e,t,n)=>{"use strict";e.exports=n(83244)},96690:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eachComponentDataAsync=t.eachComponentAsync=t.eachComponentData=t.eachComponent=t.compareSelectResourceWithObjectTypeValues=t.isSelectResourceWithObjectValue=t.getItemTemplateKeys=t.isComponentDataEmpty=t.getEmptyValue=t.findComponent=t.applyFormChanges=t.generateFormChange=t.getStrings=t.getValue=t.escapeRegExCharacters=t.formatAsCurrency=t.parseFloatExt=t.hasCondition=t.removeComponent=t.findComponents=t.searchComponents=t.getComponent=t.matchComponent=t.isLayoutComponent=t.getComponentActualValue=t.getComponentData=t.componentInfo=t.getContextualRowData=t.getContextualRowPath=t.getComponentKey=t.componentFormPath=t.componentDataPath=t.componentPath=t.isComponentNestedDataType=t.getComponentPath=t.getComponentAbsolutePath=t.getModelType=t.MODEL_TYPES_OF_KNOWN_COMPONENTS=t.uniqueName=t.guid=t.flattenComponents=void 0;const i=n(2543),r=n(54949),a=n(70678),s=n(5426);Object.defineProperty(t,"eachComponent",{enumerable:!0,get:function(){return s.eachComponent}});const o=n(57330);Object.defineProperty(t,"eachComponentData",{enumerable:!0,get:function(){return o.eachComponentData}});const l=n(83736);Object.defineProperty(t,"eachComponentAsync",{enumerable:!0,get:function(){return l.eachComponentAsync}});const u=n(42264);function d(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function c(e){if(e.modelType)return e.modelType;for(const n of Object.keys(t.MODEL_TYPES_OF_KNOWN_COMPONENTS))if(t.MODEL_TYPES_OF_KNOWN_COMPONENTS[n].includes(e.type))return n;return!1===e.input?"none":"any"}function h(e){return e.tree||"nestedArray"===c(e)||"nestedDataArray"===c(e)||"dataObject"===c(e)||"object"===c(e)||"map"===c(e)}function p(e,t){t=e.parentPath||t;const n=f(e);return n?t?`${t}.${n}`:n:t||""}function f(e){return"checkbox"===e.type&&"radio"===e.inputType&&e.name?e.name:e.key}function m(e,t){return t.replace(new RegExp(`.?${f(e)}$`),"")}function g(e,t){if((0,i.isString)(t))return e.key===t||e.path===t;{let n=!1;return(0,i.forOwn)(t,((t,r)=>{if(n=(0,i.get)(e,r)===t,!n)return!1})),n}}function v(e,t){const n=[];return(0,s.eachComponent)(e,(e=>{g(e,t)&&n.push(e)}),!0),n}function y(e,t){const n=t.pop();0!==t.length&&(e=(0,i.get)(e,t)),e.splice(n,1)}function b(e){return parseFloat((0,i.isString)(e)?e.replace(/[^\de.+-]/gi,""):e)}function _(e,t,n,i){if(e){if(n=n||[],!t)return i(e);e.forEach((function(r,a){const s=n.slice();s.push(a),r&&(r.hasOwnProperty("columns")&&Array.isArray(r.columns)&&(s.push("columns"),r.columns.forEach((function(e,n){const r=s.slice();r.push(n),r.push("components"),_(e.components,t,r,i)}))),r.hasOwnProperty("rows")&&Array.isArray(r.rows)&&(s.push("rows"),r.rows.forEach((function(e,n){const r=s.slice();r.push(n),e.forEach((function(e,n){const a=r.slice();a.push(n),a.push("components"),_(e.components,t,a,i)}))}))),r.hasOwnProperty("components")&&Array.isArray(r.components)&&(s.push("components"),_(r.components,t,s,i)),r.key===t&&i(r,s,e))}))}}function w(e){switch(e.type){case"textarea":case"textfield":case"time":case"datetime":case"day":return"";case"datagrid":case"editgrid":return[];default:return null}}Object.defineProperty(t,"eachComponentDataAsync",{enumerable:!0,get:function(){return u.eachComponentDataAsync}}),t.flattenComponents=function(e,t=!1){const n={};return(0,s.eachComponent)(e,((e,t)=>{n[t]=e}),t),n},t.guid=d,t.uniqueName=function(e,t,n){(t=t||"{{fileName}}-{{guid}}").includes("{{guid}}")||(t=`${t}-{{guid}}`);const r=e.split(".");let s=r.slice(0,r.length-1).join(".");const o=r.length>1?`.${(0,i.last)(r)}`:"";return s=s.substr(0,100),n=Object.assign(n||{},{fileName:s,guid:d()}),`${a.Evaluator.interpolate(t,n)}${o}`.replace(/[^0-9a-zA-Z.\-_ ]/g,"-")},t.MODEL_TYPES_OF_KNOWN_COMPONENTS={nestedArray:["datagrid","editgrid","datatable","dynamicWizard"],nestedDataArray:["tagpad"],dataObject:["form"],object:["container","address"],map:["datamap"],content:["htmlelement","content"],string:["textfield","password","email","url","phoneNumber","day","datetime","time","signature"],number:["number","currency"],boolean:["checkbox","radio"],none:["table","well","columns","fieldset","panel","tabs"],any:["survey","captcha","textarea","selectboxes","tags","select","hidden","button","datasource","sketchpad","reviewpage","file"]},t.getModelType=c,t.getComponentAbsolutePath=function(e){const t=[e.path];for(;e.parent;)"dataObject"===c(e=e.parent)&&(t[t.length-1]=`data.${t[t.length-1]}`,t.push(e.path));return t.reverse().join(".")},t.getComponentPath=function(e,t){const n=f(e);return n?t?t.match(new RegExp(`${n}$`))?t:"none"===c(e)?`${t}.${n}`:t:n:t},t.isComponentNestedDataType=h,t.componentPath=p,t.componentDataPath=(e,t,n)=>(t=e.parentPath||t,n=n||p(e,t),e.components&&Array.isArray(e.components)?"dataObject"===c(e)?`${n}.data`:"nestedArray"===c(e)?`${n}[0]`:"nestedDataArray"===c(e)?`${n}[0].data`:h(e)?n:t:n),t.componentFormPath=(e,t,n)=>(t=e.parentPath||t,n=n||p(e,t),"dataObject"===c(e)?`${n}.data`:h(e)?n:t),t.getComponentKey=f,t.getContextualRowPath=m,t.getContextualRowData=function(e,t,n){const r=m(e,t);return r?(0,i.get)(n,r,null):n},t.componentInfo=function(e){const t=e.columns&&Array.isArray(e.columns),n=e.rows&&Array.isArray(e.rows),i=e.components&&Array.isArray(e.components),r="content"===c(e),a="none"===c(e),s=!e.hasOwnProperty("input")||!!e.input;return{hasColumns:t,hasRows:n,hasComps:i,layout:t||n||i&&!s||a||r,iterable:t||n||i||r}},t.getComponentData=function(e,t,n){const i={component:null,data:null};return(0,o.eachComponentData)(e,t,((e,t,r,a)=>{if(a===n)return i.component=e,i.data=r,!0})),i},t.getComponentActualValue=function(e,t,n,r){var a;let s=null,o=e,l="";for(;(null===(a=null==o?void 0:o.parent)||void 0===a?void 0:a.path)&&!s;)o=o.parent,o.input&&(s=o);if(s){const e=s.path.replace(/\[[0-9]+\]/g,"");l=t.replace(e,""),l=(0,i.trim)(l,". ")}let u=null;return n&&(u=(0,i.get)(n,t)),l&&r&&(0,i.isNil)(u)&&(u=(0,i.get)(r,l)),((0,i.isNil)(u)||(0,i.isObject)(u)&&(0,i.isEmpty)(u))&&(u=""),u},t.isLayoutComponent=function(e){return Boolean(e.columns&&Array.isArray(e.columns)||e.rows&&Array.isArray(e.rows)||e.components&&Array.isArray(e.components))},t.matchComponent=g,t.getComponent=function(e,t,n=!1){let i;return(0,s.eachComponent)(e,((e,n)=>{if(n===t||e.input&&e.key===t)return i=e,!0}),n),i},t.searchComponents=v,t.findComponents=function(e,t){return console.warn("formio.js/utils findComponents is deprecated. Use searchComponents instead."),v(e,t)},t.removeComponent=y,t.hasCondition=function(e){return Boolean(e.customConditional||e.conditional&&(e.conditional.when||e.conditional.json||e.conditional.conjunction&&(0,i.isBoolean)(e.conditional.show)&&!(0,i.isEmpty)(e.conditional.conditions)))},t.parseFloatExt=b,t.formatAsCurrency=function(e){const t=b(e);if(isNaN(t))return"";const n=(0,i.round)(t,2).toString().split(".");return n[0]=(0,i.chunk)(Array.from(n[0]).reverse(),3).reverse().map((e=>e.reverse().join(""))).join(","),n[1]=(0,i.pad)(n[1],2,"0"),n.join(".")},t.escapeRegExCharacters=function(e){return e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&")},t.getValue=function(e,t){const n=e=>{if((0,i.isPlainObject)(e)){if((0,i.has)(e,t))return(0,i.get)(e,t);let r=null;return(0,i.forOwn)(e,(e=>{const t=n(e);if(!(0,i.isNil)(t))return r=t,!1})),r}return null};return n(e.data)},t.getStrings=function(e){const t=["label","title","legend","tooltip","description","placeholder","prefix","suffix","errorLabel","content","html"],n=[];return(0,s.eachComponent)(e.components,(e=>{if(t.forEach((t=>{e.hasOwnProperty(t)&&e[t]&&n.push({key:e.key,type:e.type,property:t,string:e[t]})})),(!e.dataSrc||"values"===e.dataSrc)&&e.hasOwnProperty("values")&&Array.isArray(e.values)&&e.values.length&&e.values.forEach(((t,i)=>{n.push({key:e.key,property:`value[${i}].label`,string:e.values[i].label})})),"day"===e.type&&(["day","month","year","Day","Month","Year","january","february","march","april","may","june","july","august","september","october","november","december"].forEach((t=>{n.push({key:e.key,property:"day",string:t})})),e.fields.day.placeholder&&n.push({key:e.key,property:"fields.day.placeholder",string:e.fields.day.placeholder}),e.fields.month.placeholder&&n.push({key:e.key,property:"fields.month.placeholder",string:e.fields.month.placeholder}),e.fields.year.placeholder&&n.push({key:e.key,property:"fields.year.placeholder",string:e.fields.year.placeholder})),"editgrid"===e.type){const t=e.addAnother||"Add Another";e.addAnother&&n.push({key:e.key,property:"addAnother",string:t})}"select"===e.type&&["loading...","Type to search"].forEach((t=>{n.push({key:e.key,property:"select",string:t})}))}),!0),n},t.generateFormChange=function(e,t){let n;switch(e){case"add":n={op:"add",key:t.component.key,container:t.parent.key,path:t.path,index:t.index,component:t.component};break;case"edit":n={op:"edit",key:t.originalComponent.key,patches:(0,r.compare)(t.originalComponent,t.component)},n.patches.length||(n=null);break;case"remove":n={op:"remove",key:t.component.key}}return n},t.applyFormChanges=function(e,t){const n=[];return t.forEach((function(t){let a=!1;switch(t.op){case"add":{let n=t.component;_(e.components,t.container,null,(function(r){t.container||(r=e),_(e.components,t.key,null,(function(t,i){n=t,y(e.components,i)})),a=!0,(0,i.get)(r,t.path).splice(t.index,0,n)}));break}case"remove":_(e.components,t.key,null,(function(t,n){a=!0,(0,i.get)(e.components,n).key!==t.key&&n.pop(),y(e.components,n)}));break;case"edit":_(e.components,t.key,null,(function(s,o){a=!0;try{const n=(0,i.get)(e.components,o),a=(0,r.applyPatch)(s,t.patches).newDocument;n.key!==a.key&&o.pop(),(0,i.set)(e.components,o,a)}catch(e){n.push(t)}}))}a||n.push(t)})),{form:e,failed:n}},t.findComponent=_,t.getEmptyValue=w;const M=e=>{const t="

     

    ",n="


    ",i="


     

    ",r=new RegExp(`^${t}|${t}$|^${n}|${n}$|^${i}|${i}$`,"g");return"string"==typeof e?e.replace(r,"").trim():e};function k(e,t){const n=!(!(0,i.isArray)(t)||1!==t.length)&&(0,i.isEqual)(t[0],w(e));return null==t||""===t||(0,i.isArray)(t)&&0===t.length||n}function S(e){const t=[];if(!e)return t;const n=e.match(/({{\s*(.*?)\s*}})/g);return n&&n.forEach((e=>{const n=e.match(/{{\s*item\.(.*?)\s*}}/);n&&n.length>1&&t.push(n[1])})),t}t.isComponentDataEmpty=function e(t,n,r,a){var s;const l=(0,i.isNil)(a)?(0,i.get)(n,r):a;if((e=>"checkbox"===(null==e?void 0:e.type))(t))return k(t,l)||!1===l;if((e=>"address"===(null==e?void 0:e.type))(t))return 0===Object.keys(l).length||!Object.values((0,i.omit)(l,["mode","address"])).some(Boolean);if((e=>"datagrid"===(null==e?void 0:e.type))(t)||(e=>"editgrid"===(null==e?void 0:e.type))(t)||(e=>"datatable"===(null==e?void 0:e.type))(t)||(e=>null!=(null==e?void 0:e.components))(t)){if(null===(s=t.components)||void 0===s?void 0:s.length){let i=!0;return(0,o.eachComponentData)([t],n,((n,r,a,s)=>{t.key!==n.key&&(e(n,r,s)||(i=!1))})),k(t,l)||i}return k(t,l)}if((e=>"datetime"===(null==e?void 0:e.type))(t))return k(t,l)||"Invalid date"===l.toString();if((e=>"selectboxes"===(null==e?void 0:e.type))(t)){let e=!0;for(const t in l)if(l[t]){e=!1;break}return k(t,l)||e}if((e=>"textarea"===(null==e?void 0:e.type))(t)){const e=!t.wysiwyg&&!t.editor;return k(t,e?"string"==typeof l?l.trim():l:function(e){return e?e=Array.isArray(e)?e.map((e=>M(e))):M(e):e}(l))}return(e=>"textfield"===(null==e?void 0:e.type))(t)?t.allowMultipleMasks&&t.inputMasks&&t.inputMasks.length?k(t,l)||(t.multiple?0===l.length:!l.maskName||!l.value):k(t,null==l?void 0:l.toString().trim()):k(t,l)},t.getItemTemplateKeys=S,t.isSelectResourceWithObjectValue=function(e={}){const{reference:t,dataSrc:n,valueProperty:i}=e;return t||"resource"===n&&(!i||"data"===i)},t.compareSelectResourceWithObjectTypeValues=function(e,t,n){if(!e||!(0,i.isPlainObject)(e))return!1;const{template:r,valueProperty:a}=n;return"data"===a&&(e={data:e},t={data:t}),(0,i.every)(S(r)||[],(n=>(0,i.isEqual)((0,i.get)(e,n),(0,i.get)(t,n))))}},96776:(e,t,n)=>{"use strict";const i=n(53864),r=n(23418),a=n(44426);function s(e){const t=e?.Components||e?.Formio?.Components||window?.Formio?.Components;t?(t.setComponent("pdfpreview",i),t.setComponent("imageviewer",r),t.setComponent("supertitle",a),console.log("✅ Custom components registered!")):console.error("Formio.Components not found. Cannot register custom components.")}"undefined"!=typeof window&&window.Formio&&s(window.Formio),e.exports=s},96792:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i,r=(i=n(37037))&&i.__esModule?i:{default:i};t.default=function(e){if(!(0,r.default)(e))throw TypeError("Invalid UUID");let t;const n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n}},96801:(e,t,n)=>{"use strict";var i=n(43724),r=n(48686),a=n(24913),s=n(28551),o=n(25397),l=n(71072);t.f=i&&!r?Object.defineProperties:function(e,t){s(e);for(var n,i=o(t),r=l(t),u=r.length,d=0;u>d;)a.f(e,n=r[d++],i[n]);return e}},96870:function(e,t,n){!function(e){"use strict";var t={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};e.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(e){return"ល្ងាច"===e},meridiem:function(e,t,n){return e<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(e){return e.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(e){return n[e]}))},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]}))},week:{dow:1,doy:4}})}(n(95093))},96877:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const o=n(78443),l=s(n(79244)),u=s(n(2543)),d=s(n(22437)),c=n(5623),h=n(29857),p=a(n(34600)),f=n(34600),m=s(n(31959)),g=s(n(85179)),v=s(n(95357)),y=s(n(76667)),b=n(87468),_=s(n(51637)),w=s(n(59452)),M=p.getBrowserInfo().ie;class k extends m.default{static schema(...e){return u.default.merge({input:!0,key:"",placeholder:"",prefix:"",customClass:"",suffix:"",multiple:!1,defaultValue:null,protected:!1,unique:!1,persistent:!0,hidden:!1,clearOnHide:!0,refreshOn:"",redrawOn:"",tableView:!1,modalEdit:!1,label:"",dataGridLabel:!1,labelPosition:"top",description:"",errorLabel:"",tooltip:"",hideLabel:!1,tabindex:"",disabled:!1,autofocus:!1,dbIndex:!1,customDefaultValue:"",calculateValue:"",calculateServer:!1,widget:null,attributes:{},validateOn:"change",validate:{required:!1,custom:"",customPrivate:!1,strictDateValidation:!1,multiple:!1,unique:!1},conditional:{show:null,when:null,eq:""},overlay:{style:"",left:"",top:"",width:"",height:""},allowCalculateOverride:!1,encrypted:!1,showCharCount:!1,showWordCount:!1,properties:{},allowMultipleMasks:!1,addons:[]},...e)}static get conditionOperatorsSettings(){return{operators:["isEqual","isNotEqual","isEmpty","isNotEmpty"],valueComponent:()=>({type:"textfield",widget:{type:"input"}})}}static savedValueTypes(e){return e=e||{},p.getComponentSavedTypes(e)||[p.componentValueTypes.any]}static tableView(e,t){}constructor(e,t,n){super(Object.assign({renderMode:"form",attachMode:"full",noDefaults:!1},t||{})),e&&e.id&&(this.id=e.id),this._hasCondition=null,this.refs={},e&&this.options.components&&this.options.components[e.type]&&u.default.merge(e,this.options.components[e.type]),this.path=(null==e?void 0:e.key)||"",this.childErrors=[],this._errors=[],this._visibleErrors=[],this.component=this.mergeSchema(e||{}),this.component.id=this.id,this.afterComponentAssign(),this.originalComponent=(0,f.fastCloneDeep)(this.component),this.attached=!1,this.rendered=!1,this._data=n||{},this.tooltip="",this.row=this.options.row,this.childComponentsMap={},this._disabled=!!(0,f.boolValue)(this.component.disabled)&&this.component.disabled,this.root=this.options.root||this,this.localRoot=this.options.localRoot||this,this.pristine=!0,this.parent=this.options.parent,this.options.name=this.options.name||"data",this._path="",this.resetCaches(),this._parentVisible=!this.options.hasOwnProperty("parentVisible")||this.options.parentVisible,this._visible=this._parentVisible&&this.conditionallyVisible(null,n),this._parentDisabled=!1,this._referenceAttributeName="ref";let i=[],r=null,a=[];const s=u.default.debounce(((...e)=>{this.root&&(this.root.changing=!1),a=[],!e[1]&&r&&(e[1]=r),u.default.isEmpty(e[0])&&r&&(e[0]=r.flags),r=null,e[3]=i;const t=this.onChange(...e);return i=[],t}),100);this.triggerChange=(...e)=>(e[1]&&(r=e[1],i.push(r)),this.root&&(this.root.changing=!0),e.length&&(a=e),s(...a)),this.triggerRedraw=u.default.debounce(this.redraw.bind(this),100),this.tooltips=[],this.addons=[],this.invalid=!1,this.component&&(this.type=this.component.type,this.allowData&&this.key&&(this.options.name+=`[${this.key}]`,!this.visible&&this.component.clearOnHide||(this.hasValue()?this.dataValue=this.dataValue:this.shouldAddDefaultValue&&(this.dataValue=this.defaultValue))),this.info=this.elementInfo()),this.hook("component"),this.options.skipInit||this.init()}get componentsMap(){var e;if(null===(e=this.localRoot)||void 0===e?void 0:e.childComponentsMap)return this.localRoot.childComponentsMap;const t={};return t[this.path]=this,t}get data(){return this._data}set data(e){this._data=e}mergeSchema(e={}){return u.default.defaultsDeep(e,this.defaultSchema)}get ready(){return Promise.resolve(this)}get isPDFReadOnlyMode(){return this.parent&&this.parent.form&&"pdf"===this.parent.form.display&&this.options.readOnly}get labelInfo(){const e={};e.hidden=this.labelIsHidden(),e.className="",e.labelPosition=this.component.labelPosition,e.tooltipClass=`${this.iconClass("question-sign")} text-muted`;const t=this.isPDFReadOnlyMode;return this.hasInput&&this.component.validate&&(0,f.boolValue)(this.component.validate.required)&&!t&&(e.className+=" field-required"),e.hidden&&(e.className+=" control-label--hidden"),this.info.attr.id&&(e.for=this.info.attr.id),e}init(){var e;this.disabled=this.shouldDisabled,this._visible=this.conditionallyVisible(null,null),(null===(e=this.component.addons)||void 0===e?void 0:e.length)&&this.component.addons.forEach((e=>this.createAddon(e)))}afterComponentAssign(){}createAddon(e){var t;const n=e.name;if(!n)return;const i=(null===(t=e.settings)||void 0===t?void 0:t.data)||{},r=y.default[n.value];let a=null;if(r){const e=r.info.supportedComponents;(null==e?void 0:e.length)&&-1===e.indexOf(this.component.type)?console.warn(`Addon ${n.label} does not support component of type ${this.component.type}.`):(a=new r(i,this),this.addons.push(a))}return a}teardown(){this.element&&(delete this.element.component,delete this.element),delete this._currentForm,delete this.parent,delete this.root,delete this.triggerChange,delete this.triggerRedraw,this.options&&(delete this.options.root,delete this.options.parent,delete this.options.i18next),super.teardown()}destroy(e=!1){super.destroy(e),this.detach(),this.addons.forEach((e=>e.destroy())),e&&this.teardown()}get shouldDisabled(){return this.options.readOnly||this.component.disabled||this.options.hasOwnProperty("disabled")&&this.options.disabled[this.key]}get isInputComponent(){return!this.component.hasOwnProperty("input")||this.component.input}get allowData(){return this.hasInput}get hasInput(){return this.isInputComponent||this.refs.input&&this.refs.input.length}get defaultSchema(){return k.schema()}get key(){return u.default.get(this.component,"key","")}set parentVisible(e){this._parentVisible=e}get parentVisible(){return this._parentVisible}set parentDisabled(e){this._parentDisabled=e}get parentDisabled(){return this._parentDisabled}shouldForceVisibility(e,t){return!!this.options[t]&&(e||(e=this.component),u.default.isArray(this.options[t])?this.options[t].includes(e.key):this.options[t][e.key])}shouldForceHide(e){return this.shouldForceVisibility(e,"hide")}shouldForceShow(e){return this.shouldForceVisibility(e,"show")}set visible(e){if(this._visible!==e){if(e&&this.shouldForceHide())return;if(!e&&this.shouldForceShow())return;this._visible=e,this.clearOnHide(),this.redraw()}}get visible(){return!!(this.builderMode||this.previewMode||this.options.showHiddenFields)||!this.shouldForceHide()&&(!!this.shouldForceShow()||this._visible&&this._parentVisible)}get currentForm(){return this._currentForm}set currentForm(e){this._currentForm=e}get fullMode(){return"full"===this.options.attachMode}get builderMode(){return"builder"===this.options.attachMode}get calculatedPath(){return console.error("component.calculatedPath was deprecated, use component.path instead."),this.path}get labelPosition(){return this.component.labelPosition}get labelWidth(){const e=this.component.labelWidth;return e>=0?e:30}get labelMargin(){const e=this.component.labelMargin;return e>=0?e:3}get isAdvancedLabel(){return["left-left","left-right","right-left","right-right"].includes(this.labelPosition)}get labelPositions(){return this.labelPosition.split("-")}get skipInEmail(){return!1}rightDirection(e){return!this.options.condensedMode&&"right"===e}getLabelInfo(e=!1){const t=this.rightDirection(this.labelPositions[0]),n="left"===this.labelPositions[0]||e,i=this.rightDirection(this.labelPositions[1]);let r="";if(this.component.hideLabel){const i=e?0:this.labelWidth+this.labelMargin;r=t?`margin-right: ${i}%`:"",r=n?`margin-left: ${i}%`:""}return{isRightPosition:t,isRightAlign:i,labelStyles:`\n flex: ${this.labelWidth};\n ${t?"margin-left":"margin-right"}: ${this.labelMargin}%;\n `,contentStyles:`\n flex: ${100-this.labelWidth-this.labelMargin};\n ${r};\n ${this.component.hideLabel?"max-width: "+(100-this.labelWidth-this.labelMargin):""};\n `}}getModifiedSchema(e,t,n){const i={};return t?(u.default.each(e,((e,r)=>{if(!u.default.isArray(e)&&u.default.isObject(e)&&t.hasOwnProperty(r)){const n=this.getModifiedSchema(e,t[r],!0);u.default.isEmpty(n)||(i[r]=n)}else u.default.isArray(e)?0===e.length||u.default.isEqual(e,t[r])||(i[r]=e):(!n&&"type"===r||!n&&"key"===r||!n&&"label"===r||!n&&"input"===r||!n&&"tableView"===r||""!==e&&!t.hasOwnProperty(r)||""!==e&&e!==t[r]||t[r]&&e!==t[r])&&(i[r]=e)})),i):e}get schema(){return(0,f.fastCloneDeep)(this.getModifiedSchema(u.default.omit(this.component,"id"),this.defaultSchema))}get isInDataGrid(){return this.inDataGrid}t(e,t={},...n){return e?e in _.default&&t._userInput?e:(t.data=t.data||this.rootValue,t.row=t.row||this.data,t.component=t.component||this.component,super.t(e,t,...n)):""}labelIsHidden(){return!this.component.label||(!this.isInDataGrid&&this.component.hideLabel||this.isInDataGrid&&!this.component.dataGridLabel||this.options.floatingLabels||this.options.inputsOnly)&&!this.builderMode}transform(e,t){const n=this.options.template?w.default.templates[this.options.template]:w.default.current;return n.hasOwnProperty("transform")?n.transform(e,t,this):(e,t)=>t}getTemplate(e,t){t=Array.isArray(t)?t:[t],e=Array.isArray(e)?e:[e],t.includes("form")||t.push("form");let n=null;if(this.options.templates&&(n=this.checkTemplate(this.options.templates,e,t),n))return n;const i=this.options.template?w.default.templates[this.options.template]:w.default.current;if(n=this.checkTemplate(i,e,t),n)return n;const r=e[e.length-1],a=w.default.defaultTemplates[r];if(!a)return{template:`Unknown template: ${r}`};const s=this.checkTemplateMode(a,t);return s?{template:s}:{template:a.form}}checkTemplate(e,t,n){for(const i of t){const t=e[i];if(t){const{referenceAttributeName:e}=t,i=this.checkTemplateMode(t,n);if(i)return{template:i,referenceAttributeName:e}}}return null}checkTemplateMode(e,t){for(const n of t){const t=e[n];if(t)return t}return null}getFormattedAttribute(e){return e?this.t(e,{_userInput:!0}).replace(/"/g,"""):""}getFormattedTooltip(e){const t=this.interpolate(e||"").replace(/(?:\r\n|\r|\n)/g,"
    ");return this.getFormattedAttribute(t)}isHtmlRenderMode(){return"html"===this.options.renderMode}renderTemplate(e,t={},n=""){const i=n||this.options.renderMode||"form";t.component=this.component,t.self=this,t.options=this.options,t.readOnly=this.options.readOnly,t.iconClass=this.iconClass.bind(this),t.size=this.size.bind(this),t.t=this.t.bind(this),t.transform=this.transform.bind(this),t.id=t.id||this.id,t.key=t.key||this.key,t.value=t.value||this.dataValue,t.disabled=this.disabled,t.builder=this.builderMode,t.render=(...e)=>(console.warn("Form.io 'render' template function is deprecated.\n If you need to render template (template A) inside of another template (template B),\n pass pre-compiled template A (use this.renderTemplate('template_A_name') as template context variable for template B"),this.renderTemplate(...e)),t.label=t.labelInfo||this.labelInfo,t.tooltip=this.getFormattedTooltip(this.component.tooltip);const r=[`${e}-${this.component.type}-${this.key}`,`${e}-${this.component.type}`,`${e}-${this.key}`,`${e}`],{referenceAttributeName:a,template:s}=this.getTemplate(r,i);return a&&(this._referenceAttributeName=a),this.hook(`render${e.charAt(0).toUpperCase()+e.substring(1,e.length)}`,this.interpolate(s,t),t,i)}sanitize(e,t=!1,n={}){var i;return this.shouldSanitizeValue||t?p.sanitize(e,{sanitizeConfig:u.default.merge((null===(i=this.options)||void 0===i?void 0:i.sanitizeConfig)||{},n||{})}):e}renderString(e,t){return e?this.interpolate(e,t):""}performInputMapping(e){return e}get widget(){var e;const t=this.component.widget;return t&&(null===(e=this.root)||void 0===e?void 0:e.shadowRoot)&&(t.shadowRoot=this.root.shadowRoot),t&&v.default[t.type]?new v.default[t.type](t,this.component,this):null}getBrowserLanguage(){const e=window.navigator,t=["language","browserLanguage","systemLanguage","userLanguage"];let n;if(Array.isArray(e.languages))for(let t=0;t [${n||this._referenceAttributeName||"ref"}="${i}"]`:`[${n||this._referenceAttributeName||"ref"}="${i}"]`;a&&r.startsWith("single")?this.refs[i]=e.querySelector(s):this.refs[i]=e.querySelectorAll(s)}}setOpenModalElement(e=null){this.componentModal.setOpenModalElement(e||this.getModalPreviewTemplate())}getModalPreviewTemplate(){var e;const t="password"===this.component.type?this.dataValue.replace(/./g,"•"):this.dataValue;let n;return this.hasInput&&(null===(e=this.component.validate)||void 0===e?void 0:e.required)&&!this.isPDFReadOnlyMode&&(n={className:"field-required"}),this.renderTemplate("modalPreview",{previewText:this.getValueAsString(t,{modalPreview:!0})||this.t("Click to set value"),messages:"",labelInfo:n})}build(e){return e=e||this.element,this.empty(e),this.setContent(e,this.render()),this.attach(e)}get hasModalSaveButton(){return!0}render(e=`Unknown component: ${this.component.type}`,t=!1){const n=this.visible;return this.rendered=!0,this.builderMode||this.previewMode||!this.component.modalEdit?this.renderTemplate("component",{visible:n,id:this.id,classes:this.className,styles:this.customStyle,children:e},t):g.default.render(this,{visible:n,showSaveButton:this.hasModalSaveButton,id:this.id,classes:this.className,styles:this.customStyle,children:e},t)}attachTooltips(e){null==e||e.forEach(((e,t)=>{if(e){const n=e.getAttribute("data-tooltip"),i=e.getAttribute("data-title"),r=this.interpolate(i||n).replace(/(?:\r\n|\r|\n)/g,"
    ");this.tooltips[t]=(0,l.default)(e,{allowHTML:!0,trigger:"mouseenter click focus",placement:"right",zIndex:1e4,interactive:!0,content:this.t(this.sanitize(r),{_userInput:!0})})}}))}createComponentModal(e,t,n){return new g.default(this,e,t,n,this._referenceAttributeName)}attach(e){if(!this.builderMode&&!this.previewMode&&this.component.modalEdit){const t=!!this.componentModal&&this.componentModal.isOpened,n=t?this.componentModal.currentValue:this.dataValue,i=this.componentModal&&t?this.componentModal.openModalTemplate:null;this.componentModal=this.createComponentModal(e,t,n),this.setOpenModalElement(i)}this.attached=!0,this.setElement(e),e.component=this,this.element.id&&(this.id=this.element.id,this.component.id=this.id),this.loadRefs(e,{messageContainer:"single",tooltip:"multiple"}),this.attachTooltips(this.refs.tooltip),this.attachLogic(),this.autofocus(),this.hook("attachComponent",e,this);const t=this.component.type;return t&&this.hook(`attach${t.charAt(0).toUpperCase()+t.substring(1,t.length)}`,e,this),this.restoreFocus(),this.addons.forEach((t=>t.attach(e))),Promise.resolve()}restoreFocus(){var e,t,n;(null===(t=null===(e=this.root)||void 0===e?void 0:e.focusedComponent)||void 0===t?void 0:t.path)===this.path&&(this.loadRefs(this.element,{input:"multiple"}),this.focus(null===(n=this.root.currentSelection)||void 0===n?void 0:n.index),this.restoreCaretPosition())}addShortcut(e,t){e&&this.root&&this.root!==this&&(t||(t=this.component.shortcut),this.root.addShortcut(e,t))}removeShortcut(e,t){e&&this.root!==this&&(t||(t=this.component.shortcut),this.root.removeShortcut(e,t))}detach(){u.default.each(this.refs,(e=>{typeof e===NodeList?e.forEach((e=>{delete e.component})):e&&delete e.component})),this.refs={},this.removeEventListeners(),this.detachLogic(),this.tooltip&&this.tooltip.destroy()}checkRefresh(e,t,n){const i=u.default.get(t,"instance.path",!1);i&&this.path===i||("data"===e?this.refresh(this.data,t,n):i&&(0,f.getComponentPath)(t.instance)===e&&t&&t.instance&&this.inContext(t.instance)&&this.refresh(t.value,t,n))}checkRefreshOn(e,t={}){if(e=e||[],t.noRefresh)return;!e.length&&t.changed&&(e=[t.changed]);const n=t.fromBlur?this.component.refreshOnBlur:this.component.refreshOn||this.component.redrawOn;n&&(Array.isArray(n)?n.forEach((n=>e.forEach((e=>this.checkRefresh(n,e,t))))):e.forEach((e=>this.checkRefresh(n,e,t))))}refresh(e){this.hasOwnProperty("refreshOnValue")?this.refreshOnChanged=!u.default.isEqual(e,this.refreshOnValue):this.refreshOnChanged=!0,this.refreshOnValue=(0,f.fastCloneDeep)(e),this.refreshOnChanged&&(this.component.clearOnRefresh&&this.setValue(null),this.triggerRedraw())}inContext(e){if(e.data===this.data)return!0;let t=this.parent;for(;t;){if(t.data===e.data)return!0;t=t.parent}return!1}get viewOnly(){return this.options.readOnly&&this.options.viewAsHtml}setElement(e){this.element&&(delete this.element.component,delete this.element),this.element=e}createViewOnlyElement(){return this.setElement(this.ce("dl",{id:this.id})),this.element&&(this.element.component=this),this.element}get defaultViewOnlyValue(){return"-"}getWidgetValueAsString(e,t){const n=!this.refs.input||!this.refs.input[0]||!this.refs.input[0].widget;if(!e||n)return this.widget&&e?this.widget.getValueAsString(e):e;if(Array.isArray(e)){const n=[];return e.forEach(((e,i)=>{const r=this.refs.input[i]&&this.refs.input[i].widget;r&&n.push(r.getValueAsString(e,t))})),n}return this.refs.input[0].widget.getValueAsString(e,t)}getValueAsString(e,t){if(!e)return"";if(e=this.getWidgetValueAsString(e,t),Array.isArray(e))return e.join(", ");if(u.default.isPlainObject(e))return JSON.stringify(e);if(null==e)return"";const n=e.toString();return this.sanitize(n)}getView(e,t){return this.component.protected?"--- PROTECTED ---":this.getValueAsString(e,t)}updateItems(...e){this.restoreValue(),this.onChange(...e)}itemValue(e,t=!1){if(u.default.isObject(e)&&!u.default.isArray(e)){if(this.valueProperty)return u.default.get(e,this.valueProperty);if(t)return e.value}return e}itemValueForHTMLMode(e){return Array.isArray(e)?e.map((e=>Array.isArray(e)?this.itemValueForHTMLMode(e):this.itemValue(e))).join(", "):this.itemValue(e)}createModal(e,t,n){const i=this.ce("div",t||{});this.setContent(i,this.renderTemplate("dialog")),i.refs={},this.loadRefs.call(i,i,{dialogOverlay:"single",dialogContents:"single",dialogClose:"single"}),i.refs.dialogContents.appendChild(e),document.body.appendChild(i),document.body.classList.add("modal-open"),i.close=()=>{document.body.classList.remove("modal-open"),i.dispatchEvent(new CustomEvent("close"))},this.addEventListener(i,"close",(()=>this.removeChildFrom(i,document.body)));const r=e=>{e.preventDefault(),i.close()},a=e=>{n?n().then((()=>r(e))).catch((()=>{})):r(e)};return this.addEventListener(i.refs.dialogOverlay,"click",a),this.addEventListener(i.refs.dialogClose,"click",a),i}get optimizeRedraw(){return!(!this.options.optimizeRedraw||!this.element||this.visible||(this.addClass(this.element,"formio-removed"),0))}get className(){let e=this.hasInput?`${this.transform("class","form-group")} has-feedback `:"";return e+=`formio-component formio-component-${this.component.type} `,this.key&&"form"!==this.key&&(e+=`formio-component-${this.key} `),this.component.multiple&&(e+="formio-component-multiple "),this.component.customClass&&(e+=this.component.customClass),this.hasInput&&this.component.validate&&(0,f.boolValue)(this.component.validate.required)&&(e+=" required"),this.labelIsHidden()&&(e+=" formio-component-label-hidden"),this.visible||(e+=" formio-hidden"),e}get customStyle(){let e="";return u.default.each(this.component.style,((t,n)=>{""!==t&&(e+=`${n}:${t};`)})),e}static get serverConditionSettings(){return k.conditionOperatorsSettings}get isMobile(){return(0,d.default)()}getElement(){return this.element}evalContext(e){return super.evalContext(Object.assign({component:this.component,row:this.data,rowIndex:this.rowIndex,data:this.rootValue,iconClass:this.iconClass.bind(this),t:this.t.bind(this),submission:this.root?this.root._submission:{data:this.rootValue},form:this.root?this.root._form:{},options:this.options},e))}setPristine(e){this.pristine=e}get isPristine(){return this.pristine}setDirty(e){this.dirty=e}get isDirty(){return this.dirty}removeValue(e){this.splice(e),this.redraw(),this.restoreValue(),this.triggerRootChange()}iconClass(e,t){const n=this.options.iconset||w.default.current.defaultIconset||"fa";return w.default.current.hasOwnProperty("iconClass")?w.default.current.iconClass(n,e,t):"fa"===this.options.iconset?w.default.defaultTemplates.iconClass(n,e,t):e}size(e){return w.default.current.hasOwnProperty("size")?w.default.current.size(e):e}get name(){return this.t(this.component.label||this.component.placeholder||this.key,{_userInput:!0})}get visibleErrors(){return this._visibleErrors}get errors(){return this._errors}get errorLabel(){return this.t(this.component.errorLabel||this.component.label||this.component.placeholder||this.key)}errorMessage(e){return this.component.errors&&this.component.errors[e]?this.component.errors[e]:e}setContent(e,t,n,i){return e instanceof HTMLElement&&(e.innerHTML=this.sanitize(t,n,i),!0)}restoreCaretPosition(){var e,t,n;if((null===(e=this.root)||void 0===e?void 0:e.currentSelection)&&(null===(t=this.refs.input)||void 0===t?void 0:t.length)){const{index:e}=this.root.currentSelection;let t=this.refs.input[e];const i=e=>/text|search|password|tel|url/i.test((null==e?void 0:e.type)||"");if(t)i(t)&&t.setSelectionRange(t.value.length,t.value.length);else{t=this.refs.input[this.refs.input.length];const e=(null===(n=t.value)||void 0===n?void 0:n.length)||0;i(t)&&t.setSelectionRange(e,e)}}}redraw(){if(!this.element||!this.element.parentNode||this.optimizeRedraw)return Promise.resolve();this.detach(),this.emit("redraw");const e=this.element.parentNode,t=Array.prototype.indexOf.call(e.children,this.element);return this.element.outerHTML=this.sanitize(this.render()),this.setElement(e.children[t]),this.attach(this.element)}rebuild(){return this.destroy(),this.init(),this.visible=this.conditionallyVisible(null,null),this.redraw()}removeEventListeners(){super.removeEventListeners(),this.tooltips.forEach((e=>e.destroy())),this.tooltips=[]}hasClass(e,t){if(e)return super.hasClass(e,this.transform("class",t))}addClass(e,t){if(e)return super.addClass(e,this.transform("class",t))}removeClass(e,t){if(e)return super.removeClass(e,this.transform("class",t))}hasCondition(){return null!==this._hasCondition||(this._hasCondition=p.hasCondition(this.component)),this._hasCondition}conditionallyVisible(e,t){return e=e||this.rootValue,t=t||this.data,this.builderMode||this.previewMode||!this.hasCondition()?!this.component.hidden:(e=e||(this.root?this.root.data:{}),this.checkCondition(t,e))}checkCondition(e,t){return p.checkCondition(this.component,e||this.data,t||this.rootValue,this.root?this.root._form:{},this)}checkComponentConditions(e,t,n){e=e||this.rootValue,t=t||{},n=n||this.data,!this.builderMode&!this.previewMode&&this.fieldLogic(e,n)&&this.redraw();const i=this.conditionallyVisible(e,n);return this.visible!==i&&(this.visible=i),i}checkConditions(e,t,n){return e=e||this.rootValue,t=t||{},n=n||this.data,this.checkComponentConditions(e,t,n)}get logic(){return this.component.logic||[]}fieldLogic(e=this.rootValue,t=this.data){const n=this.logic;if(0===n.length)return;const i=(0,f.fastCloneDeep)(this.originalComponent);let r=n.reduce(((n,r)=>{const a=p.checkTrigger(i,r.trigger,t,e,this.root?this.root._form:{},this);return!!a&&this.applyActions(i,r.actions,a,t,e)||n}),!1);if(!u.default.isEqual(this.component,i)){this.component=i,r=!0;const e=this.shouldDisabled;this.disabled!==e&&(this.disabled=e)}return r}isIE(){if("undefined"==typeof window)return!1;const e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);if(e.indexOf("Trident/")>0){const t=e.indexOf("rv:");return parseInt(e.substring(t+3,e.indexOf(".",t)),10)}const n=e.indexOf("Edge/");return n>0&&parseInt(e.substring(n+5,e.indexOf(".",n)),10)}defineActionValue(e,t){return this.evaluate(e.value,t,"value")}applyActions(e,t,n,i,r){return r=r||this.rootValue,i=i||this.data,t.reduce(((t,a)=>{switch(a.type){case"property":{p.setActionProperty(e,a,n,i,r,this);const s=a.property.value;u.default.isEqual(u.default.get(this.component,s),u.default.get(e,s))||(t=!0);break}case"value":{const s=this.getValue(),o=this.defineActionValue(a,{value:u.default.clone(s),data:r,row:i,component:e,result:n});u.default.isEqual(s,o)||this.component.clearOnHide&&!this.visible||(this.setValue(o),this.viewOnly&&(this.dataValue=o),t=!0);break}case"mergeComponentSchema":{const s=this.evaluate(a.schemaDefinition,{value:u.default.clone(this.getValue()),data:r,row:i,component:e,result:n},"schema");u.default.assign(e,s),u.default.isEqual(this.component,e)||(t=!0);break}case"customAction":{const s=this.getValue(),o=this.evaluate(a.customAction,{value:u.default.clone(s),data:r,row:i,input:s,component:e,result:n},"value");u.default.isEqual(s,o)||this.component.clearOnHide&&!this.visible||(this.setValue(o),this.viewOnly&&(this.dataValue=o),t=!0);break}}return t}),!1)}addInputError(e,t,n){this.addMessages(e),this.setErrorClasses(n,t,!!e)}removeInputError(e){this.setErrorClasses(e,!0,!1)}addMessages(e){e&&("string"==typeof e&&(e={messages:e,level:"error"}),Array.isArray(e)||(e=[e]),e=u.default.uniqBy(e,(e=>e.message)),this.refs.messageContainer&&this.setContent(this.refs.messageContainer,e.map((e=>this.renderTemplate("message",Object.assign({},e)))).join("")))}setErrorClasses(e,t,n,i,r=this.element){this.clearErrorClasses(),e.forEach((e=>{this.setElementInvalid(this.performInputMapping(e),!1)})),this.setInputWidgetErrorClasses(e,n),this.visible&&(n&&(e.forEach((e=>{this.setElementInvalid(this.performInputMapping(e),!0)})),t&&this.options.highlightErrors?this.addClass(r,this.options.componentErrorClass):this.addClass(r,"has-error")),i&&this.addClass(r,"has-message"))}setElementInvalid(e,t){e&&(t?this.addClass(e,"is-invalid"):this.removeClass(e,"is-invalid"),e.setAttribute("aria-invalid",t?"true":"false"))}clearOnHide(){this.rootPristine&&!this.options.server&&!(0,f.isInsideScopingComponent)(this)||!1===this.component.clearOnHide||this.options.readOnly||this.options.showHiddenFields||(this.visible?!this.hasValue()&&this.shouldAddDefaultValue&&this.setValue(this.defaultValue,{noUpdateEvent:!0}):this.deleteValue())}triggerRootChange(...e){this.options.onChange?this.options.onChange(...e):this.root&&this.root.triggerChange&&this.root.triggerChange(...e)}onChange(e,t){(e=e||{}).modified&&(e.noPristineChangeOnModified||(this.pristine=!1),this.addClass(this.getElement(),"formio-modified")),"blur"!==this.component.validateOn&&"submit"!==this.component.validateOn||(e.noValidate=!0),this.component.onChange&&this.evaluate(this.component.onChange,{flags:e});const n={instance:this,component:this.component,value:this.dataValue,flags:e};this.emit("componentChange",n);let i=!1;return e.modified&&(i=!0,delete e.modified),t||this.triggerRootChange(e,n,i),n}get wysiwygDefault(){return{quill:{theme:"snow",placeholder:this.t(this.component.placeholder,{_userInput:!0}),modules:{toolbar:[[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{font:[]}],["bold","italic","underline","strike",{script:"sub"},{script:"super"},"clean"],[{color:[]},{background:[]}],[{list:"ordered"},{list:"bullet"},{indent:"-1"},{indent:"+1"},{align:[]}],["blockquote","code-block"],["link","image","video","formula","source"]]}},ace:{theme:"ace/theme/xcode",maxLines:12,minLines:12,tabSize:2,mode:"ace/mode/javascript",placeholder:this.t(this.component.placeholder,{_userInput:!0})},ckeditor:{image:{toolbar:["imageTextAlternative","|","imageStyle:full","imageStyle:alignLeft","imageStyle:alignCenter","imageStyle:alignRight"],styles:["full","alignLeft","alignCenter","alignRight"]},extraPlugins:[]},default:{}}}addCKE(e,t,n){return(t=u.default.isEmpty(t)?{}:t).base64Upload=!this.component.isUploadEnabled,t.mediaEmbed={previewsInData:!0},t=u.default.merge(this.wysiwygDefault.ckeditor,u.default.get(this.options,"editors.ckeditor.settings",{}),t),this.component.isUploadEnabled&&t.extraPlugins.push((0,b.getFormioUploadAdapterPlugin)(this.fileService,this)),h.Formio.requireLibrary("ckeditor",M?"CKEDITOR":"ClassicEditor",u.default.get(this.options,"editors.ckeditor.src",`${h.Formio.cdn.ckeditor}/ckeditor.js`),!0).then((()=>{if(!e.parentNode)return Promise.reject();if(M){const t=CKEDITOR.replace(e);return t.on("change",(()=>n(t.getData()))),Promise.resolve(t)}return ClassicEditor.create(e,t).then((e=>(e.model.document.on("change",(()=>n(e.data.get()))),e)))}))}addQuill(e,t,n){return t=u.default.isEmpty(t)?this.wysiwygDefault.quill:t,t=u.default.merge(this.wysiwygDefault.quill,u.default.get(this.options,"editors.quill.settings",{}),t),t=Object.assign(Object.assign({},t),{modules:Object.assign({table:!0},t.modules)}),h.Formio.requireLibrary(`quill-css-${t.theme}`,"Quill",[{type:"styles",src:`${h.Formio.cdn.quill}/quill.${t.theme}.css`}],!0),h.Formio.requireLibrary("quill","Quill",u.default.get(this.options,"editors.quill.src",`${h.Formio.cdn.quill}/quill.min.js`),!0).then((()=>h.Formio.requireLibrary("quill-table","Quill",`${h.Formio.cdn.baseUrl}/quill/quill-table.js`,!0).then((()=>{if(!e.parentNode)return Promise.reject();this.quill=new Quill(e,M?Object.assign(Object.assign({},t),{modules:{}}):t);const i=document.createElement("textarea");i.setAttribute("class","quill-source-code"),this.quill.addContainer("ql-custom").appendChild(i);const r=e.parentNode.querySelector(".ql-source");r&&this.addEventListener(r,"click",(e=>{e.preventDefault(),"inherit"===i.style.display&&this.quill.setContents(this.quill.clipboard.convert({html:i.value})),i.style.display="none"===i.style.display?"inherit":"none"})),this.addEventListener(e,"click",(()=>this.quill.focus()));const a=document.querySelectorAll(".ql-formats > button");for(let e=0;e{i.value=this.quill.root.innerHTML,n(i)})),this.quill}))))}get shouldSanitizeValue(){var e;return!1!==(null===(e=this.options)||void 0===e?void 0:e.sanitize)}addAce(e,t,n){if(!t||"snow"===t.theme){const e=t?t.mode:"";t={},e&&(t.mode=e)}return t=u.default.merge(this.wysiwygDefault.ace,u.default.get(this.options,"editors.ace.settings",{}),t||{}),h.Formio.requireLibrary("ace","ace",u.default.get(this.options,"editors.ace.src",`${h.Formio.cdn.ace}/ace.js`),!0).then((i=>((i=i.edit(e)).removeAllListeners("change"),i.setOptions(t),i.getSession().setMode(t.mode),i.on("change",(()=>n(i.getValue()))),t.isUseWorkerDisabled&&i.session.setUseWorker(!1),i)))}get tree(){return this.component.tree||!1}get emptyValue(){return null}hasValue(e){return!u.default.isUndefined(u.default.get(e||this.data,this.key))}get rootValue(){return this.root?this.root.data:this.data}get rootPristine(){return u.default.get(this,"root.pristine",!1)}get dataValue(){if(!this.key||!this.visible&&this.component.clearOnHide&&!this.rootPristine)return this.emptyValue;if(!this.hasValue()&&this.shouldAddDefaultValue){const e=this.component.multiple?[]:this.emptyValue;return this.rootPristine||(this.dataValue=e),e}return u.default.get(this._data,this.key)}set dataValue(e){this.allowData&&this.key&&(this.visible||!this.component.clearOnHide||this.rootPristine)&&(null!=e&&(e=this.hook("setDataValue",e,this.key,this._data)),null!=e?u.default.set(this._data,this.key,e):this.unset())}splice(e,t={}){if(this.hasValue()){const n=this.dataValue||[];u.default.isArray(n)&&n.hasOwnProperty(e)&&(n.splice(e,1),this.dataValue=n,this.triggerChange(t))}}unset(){u.default.unset(this._data,this.key)}deleteValue(){this.setValue(null,{noUpdateEvent:!0,noDefault:!0}),this.unset()}getCustomDefaultValue(e){return this.component.customDefaultValue&&!this.options.preview&&(e=this.evaluate(this.component.customDefaultValue,{value:""},"value")),e}get shouldAddDefaultValue(){return!this.options.noDefaults||this.component.defaultValue&&!this.isEmpty(this.component.defaultValue)||this.component.customDefaultValue}get defaultValue(){let e=this.emptyValue;this.component.defaultValue&&(e=this.component.defaultValue),e=this.getCustomDefaultValue(e);const t=e=>{if("string"==typeof e){if("textfield"!==this.component.type){const t=this.placeholderChar;e=(0,o.conformToMask)(e,this.defaultMask,{placeholderChar:t}).conformedValue,p.matchInputMask(e,this.defaultMask)||(e="")}}else e="";return e};return this.defaultMask&&(e=Array.isArray(e)?e.map(t):t(e)),u.default.cloneDeep(e)}getValue(){if(!this.hasInput||this.viewOnly||!this.refs.input||!this.refs.input.length)return this.dataValue;const e=[];for(const t in this.refs.input)if(this.refs.input.hasOwnProperty(t)){if(!this.component.multiple)return this.getValueAt(t);e.push(this.getValueAt(t))}return 0!==e.length||this.component.multiple?e:""}getValueAt(e){const t=this.performInputMapping(this.refs.input[e]);return t?t.value:void 0}setValue(e,t={}){const n=this.updateValue(e,t);if(e=this.dataValue,!this.hasInput)return n;const i=Array.isArray(e),r=this.refs.fileLink||this.refs.input;if(i&&Array.isArray(this.defaultValue)&&this.refs.hasOwnProperty("input")&&r&&r.length!==e.length&&this.visible&&this.redraw(),this.isHtmlRenderMode()&&t&&t.fromSubmission&&n)return this.redraw(),n;for(const n in this.refs.input)this.refs.input.hasOwnProperty(n)&&this.setValueAt(n,i&&!this.isSingleInputValue()?e[n]:e,t);return n}isSingleInputValue(){return!1}setValueAt(e,t,n={}){n.noDefault||null!=t||this.component.multiple||(t=this.defaultValue);const i=this.performInputMapping(this.refs.input[e]),r=this.refs.valueMaskInput;(null==r?void 0:r.mask)&&r.mask.textMaskInputElement&&r.mask.textMaskInputElement.update(t),i.mask&&i.mask.textMaskInputElement?i.mask.textMaskInputElement.update(t):i.widget&&i.widget.setValue?i.widget.setValue(t):i.value=t}get hasSetValue(){return this.hasValue()&&!this.isEmpty(this.dataValue)}setDefaultValue(){if(this.defaultValue&&this.shouldAddDefaultValue){const e=this.component.multiple&&!this.dataValue.length?[]:this.defaultValue;this.setValue(e,{noUpdateEvent:!0})}}restoreValue(){this.hasSetValue?this.setValue(this.dataValue,{noUpdateEvent:!0}):this.setDefaultValue()}normalizeValue(e){return e}updateComponentValue(e,t={}){let n=t.resetValue||null!=e?e:this.getValue();n=this.normalizeValue(n,t);const i=this.dataValue;let r=void 0!==n&&this.hasChanged(n,i);return r&&(this.dataValue=n,r=this.dataValue!==i,this.updateOnChange(t,r)),this.componentModal&&t&&t.fromSubmission&&this.componentModal.setValue(e),r}updateValue(...e){return this.updateComponentValue(...e)}getIcon(e,t,n,i="icon"){return this.renderTemplate("icon",{className:this.iconClass(e),ref:i,styles:n,content:t})}resetValue(){this.unset(),this.setValue(this.defaultValue||this.emptyValue,{noUpdateEvent:!0,noValidate:!0,resetValue:!0})}hasChanged(e,t){return!(null==e&&(null==t||this.isEmpty(t))||(null==e||!this.allowData||this.hasValue())&&u.default.isEqual(e,t))}updateOnChange(e={},t=!1){return!(e.noUpdateEvent||!t||(e.fromSubmission&&(this._errors=[]),this.triggerChange(e),0))}convertNumberOrBoolToString(e){return"number"==typeof e||"boolean"==typeof e?e.toString():e}doValueCalculation(e,t,n){var i;return this.evaluate(this.component.calculateValue,{value:e,data:t,row:n||this.data,submission:(null===(i=this.root)||void 0===i?void 0:i._submission)||{data:this.rootValue}},"value")}calculateComponentValue(e,t,n){if(this.builderMode||u.default.isUndefined(u.default.get(this,"root.data")))return!1;const{clearOnHide:i}=this.component,r=!this.visible&&i,a=u.default.get(this.component,"allowCalculateOverride",!1);if(r)return this.hasOwnProperty("calculatedValue")&&a&&u.default.unset(this,"calculatedValue"),!1;if(this.options.readOnly&&!this.options.pdf&&!this.component.calculateValue||!this.component.calculateValue&&!this.component.calculateValueVariable||this.options.server&&!this.component.calculateServer||t.dataSourceInitialLoading&&a)return!1;const s=this.dataValue;let o=this.doValueCalculation(s,e,n,t);if(this.options.readOnly&&s&&!o)return!1;u.default.isNil(o)&&(o=this.emptyValue);const l=!u.default.isEqual(s,o);if(a){const e=t.fromSubmission&&!0===this.component.persistent;if(this.isEmpty(s))this.calculationLocked=!1;else if(this.calculationLocked||e)return this.calculationLocked=!0,!1;const n=void 0===this.calculatedValue||t.resetValue;n&&(this.calculatedValue=null);const i=this.normalizeValue(this.convertNumberOrBoolToString(o)),r=this.normalizeValue(this.convertNumberOrBoolToString(this.calculatedValue)),a=this.normalizeValue(this.convertNumberOrBoolToString(s)),d=!u.default.isEqual(r,i),c=!u.default.isEqual(a,r);if(d&&c&&!n)return!1;if(r&&c&&!d)return this.calculatedValue=null,!1;if(t.isReordered||!d)return!1;if(e)return this.calculatedValue=(0,f.fastCloneDeep)(o),!1;if(n&&!this.isEmpty(s)&&l&&d)return!0}return this.calculatedValue=(0,f.fastCloneDeep)(o),!!l&&(!t.noPristineChangeOnModified&&this.root.initialized&&(this.pristine=!1),t.triggeredComponentId=this.id,this.setValue(o,t))}calculateValue(e,t,n){return e=e||this.rootValue,t=t||{},n=n||this.data,this.calculateComponentValue(e,t,n)}get label(){return this.component.label}set label(e){this.component.label=e,this.labelElement&&(this.labelElement.innerText=e)}getRoot(){return this.root}invalidMessage(e,t,n,i){if(!n&&!this.checkCondition(i,e))return"";if(this.invalid)return this.invalid;if(!this.hasInput||!t&&this.pristine)return"";const r={errors:[]};(0,c.processOneSync)({component:this.component,data:e,row:i,path:this.path||this.component.key,scope:r,instance:this,processors:[c.validateProcessInfo]});const a=r.errors,s=p.interpolateErrors(this.component,a,this.t.bind(this));return u.default.map(s,"message").join("\n\n")}isValid(e,t){return!this.invalidMessage(e,t)}setComponentValidity(e,t,n){if(n)return[];const i=e.filter((e=>!e.fromServer));return!e.length||!i.length||this.isEmpty(this.defaultValue)&&!t&&this.pristine?this.setCustomValidity(""):this.setCustomValidity(i,t)}interpolateErrors(e){var t;const n=p.interpolateErrors(this.component,e,this.t.bind(this));return(null===(t=this.serverErrors)||void 0===t?void 0:t.length)?[...n,...this.serverErrors]:n}showValidationErrors(e,t,n,i){if(i.silentCheck)return[];let r=this.dirty||i.dirty;return this.options.alwaysDirty&&(r=!0),this.setDirty(r),this.setComponentValidity(e,r,i.silentCheck,i.fromSubmission)}validateComponent(e=null,t=null,n={}){e=e||this.rootValue,t=t||this.data;const{async:i=!1}=n;if(this.shouldSkipValidation(e,t,n))return i?Promise.resolve([]):[];const r={component:this.component,data:e,row:t,value:this.validationValue,path:this.path||this.component.key,instance:this,form:this.root?this.root._form:{},scope:{errors:[]},processors:[c.validateProcessInfo]};return i?(0,c.processOne)(r).then((()=>(this._errors=this.interpolateErrors(r.scope.errors),this._errors))):((0,c.processOneSync)(r),this._errors=this.interpolateErrors(r.scope.errors),this._errors)}checkComponentValidity(e=null,t=!1,n=null,i={},r=[]){if(e=e||this.rootValue,n=n||this.data,i.dirty=t||!1,i.async)return this.validateComponent(e,n,i).then((t=>(r.push(...t),this.parent&&this.parent.childErrors&&(t.length?this.parent.childErrors.push(...t):u.default.remove(this.parent.childErrors,(e=>{var t,n;return((null===(t=null==e?void 0:e.component)||void 0===t?void 0:t.key)||(null===(n=null==e?void 0:e.context)||void 0===n?void 0:n.key))===this.component.key}))),this.showValidationErrors(t,e,n,i),0===t.length)));{const t=this.validateComponent(e,n,i);return this.showValidationErrors(t,e,n,i),r.push(...t),this.parent&&this.parent.childErrors&&(t.length?this.parent.childErrors.push(...t):u.default.remove(this.parent.childErrors,(e=>{var t,n;return((null===(t=null==e?void 0:e.component)||void 0===t?void 0:t.key)||(null===(n=null==e?void 0:e.context)||void 0===n?void 0:n.key))===this.component.key}))),0===t.length}}checkValidity(e=null,t=!1,n=null,i=!1,r=[]){return e=e||this.rootValue,n=n||this.data,this.checkComponentValidity(e,t,n,{silentCheck:i},r)}checkAsyncValidity(e=null,t=!1,n=null,i=!1,r=[]){return this.checkComponentValidity(e,t,n,{async:!0,silentCheck:i},r)}checkData(e=null,t=null,n=null){if(e=e||this.rootValue,t=t||{},n=n||this.data,this.resetCaches(),t.fromBlur||this.checkRefreshOn(t.changes,t),t.noCheck)return!0;this.checkComponentConditions(e,t,n),this.id!==t.triggeredComponentId&&this.calculateComponentValue(e,t,n)}checkModal(e=[],t=!1){const n=e.filter((e=>!e.fromServer)),i=0===e.length;this.component.modalEdit&&this.componentModal&&(t&&!i?this.setErrorClasses([this.refs.openModal],t,!i,!!n.length,this.refs.openModalWrapper):this.clearErrorClasses(this.refs.openModalWrapper))}get validationValue(){return this.dataValue}isEmpty(e=this.dataValue){const t=!(!u.default.isArray(e)||1!==e.length)&&u.default.isEqual(e[0],this.emptyValue);return null==e||0===e.length||u.default.isEqual(e,this.emptyValue)||t}isEqual(e,t=this.dataValue){return this.isEmpty(e)&&this.isEmpty(t)||u.default.isEqual(e,t)}validateMultiple(){return!0}clearErrorClasses(e=this.element){this.removeClass(e,this.options.componentErrorClass),this.removeClass(e,"alert alert-danger"),this.removeClass(e,"has-error"),this.removeClass(e,"has-message")}setInputWidgetErrorClasses(e,t){this.isInputComponent&&this.component.widget&&(null==e?void 0:e.length)&&e.forEach((e=>{(null==e?void 0:e.widget)&&e.widget.setErrorClasses&&e.widget.setErrorClasses(t)}))}addFocusBlurEvents(e){this.addEventListener(e,"focus",(()=>{this.root.focusedComponent!==this?(this.root.pendingBlur&&this.root.pendingBlur(),this.root.focusedComponent=this,this.emit("focus",this)):this.root.focusedComponent===this&&this.root.pendingBlur&&(this.root.pendingBlur.cancel(),this.root.pendingBlur=null)})),this.addEventListener(e,"blur",(()=>{this.root.pendingBlur=p.delay((()=>{this.emit("blur",this),"blur"===this.component.validateOn&&this.root.triggerChange({fromBlur:!0},{instance:this,component:this.component,value:this.dataValue,flags:{fromBlur:!0}}),this.root.focusedComponent=null,this.root.pendingBlur=null}))}))}setCustomValidity(e,t,n){const i=this.isInputComponent?this.refs.input||[]:null;"string"==typeof e&&e&&(e={level:"error",message:e,component:this.component}),Array.isArray(e)||(e=e?[e]:[]);const r=e.filter((e=>"error"===e.level));let a=i;if(this.component.multiple){const t=Array.from(i);t.forEach((e=>{this.setElementInvalid(this.performInputMapping(e),!1)})),this.setInputWidgetErrorClasses(t,!1),a=t.filter(((t,n)=>{var i;return null===(i=e.some)||void 0===i?void 0:i.call(e,(e=>{var t;return(null===(t=null==e?void 0:e.context)||void 0===t?void 0:t.index)===n}))}))}return e.length?(this.refs.messageContainer&&this.empty(this.refs.messageContainer),this.emit("componentError",{instance:this,component:this.component,message:e[0].message,messages:e,external:!!n}),this.addMessages(e,t,a),a&&this.setErrorClasses(a,t,!!r.length,!!e.length)):r.length&&r[0].external!==!!n||(this.refs.messageContainer&&this.empty(this.refs.messageContainer),this.refs.modalMessageContainer&&this.empty(this.refs.modalMessageContainer),a&&this.setErrorClasses(a,t,!!r.length,!!e.length),this.clearErrorClasses()),this._visibleErrors=e,e}isValueHidden(){return(!this.component.protected||!this.root.editing)&&!(!this.root||!this.root.hasOwnProperty("editing"))&&!(!this.root||!this.root.editing)&&(this.component.protected||!this.component.persistent||"client-only"===this.component.persistent)}shouldSkipValidation(e,t,n={}){return[()=>n.noValidate,()=>this.options.readOnly,()=>!this.hasInput,()=>this.isValueHidden(),()=>!(this.component.validateWhenHidden||this.visible&&this.checkCondition(t,e)||(this._errors=[],0))].some((e=>e()))}whenReady(){return console.warn("The whenReady() method has been deprecated. Please use the dataReady property instead."),this.dataReady}get dataReady(){return Promise.resolve()}asString(e){return e=e||this.getValue(),(Array.isArray(e)?e:[e]).map(u.default.toString).join(", ")}get disabled(){return this._disabled||this.parentDisabled}set disabled(e){this._disabled=e}setDisabled(e,t){e&&(e.disabled=t,t?e.setAttribute("disabled","disabled"):e.removeAttribute("disabled"))}setLoading(e,t){e&&e.loading!==t&&(e.loading=t,!e.loader&&t&&(e.loader=this.ce("i",{class:`${this.iconClass("refresh",!0)} button-icon-right`})),e.loader&&(t?this.appendTo(e.loader,e):this.removeChildFrom(e.loader,e)))}selectOptions(e,t,n,i){u.default.each(n,(t=>{const n={value:t.value};void 0!==i&&t.value===i&&(n.selected="selected");const r=this.ce("option",n);r.appendChild(this.text(t.label)),e.appendChild(r)}))}setSelectValue(e,t){const n=e.querySelectorAll("option");u.default.each(n,(e=>{e.value===t?e.setAttribute("selected","selected"):e.removeAttribute("selected")})),e.onchange&&e.onchange(),e.onselect&&e.onselect()}getRelativePath(e){const t=`.${this.key}`,n=this.isInputComponent?this.path:this.path.slice(0).replace(t,"");return e.replace(n,"")}clear(){this.detach(),this.empty(this.getElement())}append(e){this.appendTo(e,this.element)}prepend(e){this.prependTo(e,this.element)}removeChild(e){this.removeChildFrom(e,this.element)}detachLogic(){this.logic.forEach((e=>{if("event"===e.trigger.type){const t=this.interpolate(e.trigger.event);this.off(t)}}))}attachLogic(){this.builderMode||this.logic.forEach((e=>{if("event"===e.trigger.type){const t=this.interpolate(e.trigger.event);this.on(t,((...t)=>{const n=(0,f.fastCloneDeep)(this.originalComponent);if(this.applyActions(n,e.actions,t)&&!u.default.isEqual(this.component,n)){this.component=n;const e=this.conditionallyVisible(null,null),t=this.shouldDisabled;this.visible!==e&&(this.visible=e),this.disabled!==t&&(this.disabled=t),this.redraw()}}),!0)}}))}elementInfo(){const e={name:this.options.name,type:this.component.inputType||"text",class:"form-control",lang:this.options.language};return this.component.placeholder&&(e.placeholder=this.t(this.component.placeholder,{_userInput:!0})),this.component.tabindex&&(e.tabindex=this.component.tabindex),this.disabled&&(e.disabled="disabled"),u.default.defaults(e,this.component.attributes),{type:"input",component:this.component,changeEvent:"change",attr:e}}autofocus(){this.component.autofocus&&!this.builderMode&&!this.options.preview&&this.on("render",(()=>this.focus()),!0)}scrollIntoView(e=this.element,t){if(!e)return;const{left:n,top:i}=e.getBoundingClientRect();window.scrollTo(t?window.scrollX:n+window.scrollX,i+window.scrollY)}focus(e){var t,n,i,r;if("beforeFocus"in this.parent&&this.parent.beforeFocus(this),e||u.default.isNumber(e)||!(null===(n=null===(t=this.refs)||void 0===t?void 0:t.input)||void 0===n?void 0:n.length)||(e=this.refs.input.length-1),null===(i=this.refs.input)||void 0===i?void 0:i.length){const t=this.refs.input[e];if("calendar"===(null===(r=this.component.widget)||void 0===r?void 0:r.type)){const e=t.nextSibling;e&&e.focus()}else t.focus()}this.refs.openModal&&this.refs.openModal.focus(),this.parent.refs.openModal&&this.parent.refs.openModal.focus()}get fileService(){if(this.options.fileService)return this.options.fileService;if(this.options.formio)return this.options.formio;if(this.root&&this.root.formio)return this.root.formio;const e=new h.Formio;return this.root&&this.root._form&&this.root._form._id&&(e.formUrl=`${e.projectUrl}/form/${this.root._form._id}`),e}resetCaches(){}get previewMode(){return!1}}t.default=k,k.externalLibraries={},k.requireLibrary=function(e,t,n,i){if(!k.externalLibraries.hasOwnProperty(e)){k.externalLibraries[e]={},k.externalLibraries[e].ready=new Promise(((t,n)=>{k.externalLibraries[e].resolve=t,k.externalLibraries[e].reject=n}));const r=`${e}Callback`;i||window[r]||(window[r]=function(){this.resolve()}.bind(k.externalLibraries[e]));const a=(0,f.getScriptPlugin)(t);a?k.externalLibraries[e].resolve(a):((n=Array.isArray(n)?n:[n]).forEach((e=>{let t={},n="";switch("string"==typeof e&&(e={type:"script",src:e}),e.type){case"script":n="script",t={src:e.src,type:"text/javascript",defer:!0,async:!0};break;case"styles":n="link",t={href:e.src,rel:"stylesheet"}}const i=document.createElement(n);for(const e in t)i.setAttribute(e,t[e]);document.getElementsByTagName("head")[0].appendChild(i)})),i&&setTimeout((function n(){const i=(0,f.getScriptPlugin)(t);i?k.externalLibraries[e].resolve(i):setTimeout(n,200)}),200))}return k.externalLibraries[e].ready},k.libraryReady=function(e){return k.externalLibraries.hasOwnProperty(e)&&k.externalLibraries[e].ready?k.externalLibraries[e].ready:Promise.reject(`${e} library was not required.`)}},96958:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{weight:0,type:"textfield",input:!0,key:"label",label:"Label",placeholder:"Field Label",tooltip:"The label for this field that will appear next to it.",validate:{required:!0},autofocus:!0},{type:"select",input:!0,key:"labelPosition",label:"Label Position",tooltip:"Position for the label for this field.",weight:20,defaultValue:"top",dataSrc:"values",data:{values:[{label:"Top",value:"top"},{label:"Left (Left-aligned)",value:"left-left"},{label:"Left (Right-aligned)",value:"left-right"},{label:"Right (Left-aligned)",value:"right-left"},{label:"Right (Right-aligned)",value:"right-right"},{label:"Bottom",value:"bottom"}]}},{type:"number",input:!0,key:"labelWidth",label:"Label Width",tooltip:"The width of label on line in percentages.",clearOnHide:!1,weight:30,placeholder:"30",suffix:"%",validate:{min:0,max:100},conditional:{json:{and:[{"!==":[{var:"data.labelPosition"},"top"]},{"!==":[{var:"data.labelPosition"},"bottom"]}]}}},{type:"number",input:!0,key:"labelMargin",label:"Label Margin",tooltip:"The width of label margin on line in percentages.",clearOnHide:!1,weight:30,placeholder:"3",suffix:"%",validate:{min:0,max:100},conditional:{json:{and:[{"!==":[{var:"data.labelPosition"},"top"]},{"!==":[{var:"data.labelPosition"},"bottom"]}]}}},{weight:100,type:"textfield",input:!0,key:"placeholder",label:"Placeholder",placeholder:"Placeholder",tooltip:"The placeholder text that will appear when this field is empty."},{weight:200,type:"textarea",input:!0,key:"description",label:"Description",placeholder:"Description for this field.",tooltip:"The description is text that will appear below the input field.",editor:"ace",as:"html",wysiwyg:{minLines:3,isUseWorkerDisabled:!0}},{weight:300,type:"textarea",input:!0,key:"tooltip",label:"Tooltip",placeholder:"To add a tooltip to this field, enter text here.",tooltip:"Adds a tooltip to the side of this field.",editor:"ace",as:"html",wysiwyg:{minLines:3,isUseWorkerDisabled:!0}},{weight:500,type:"textfield",input:!0,key:"customClass",label:"Custom CSS Class",placeholder:"Custom CSS Class",tooltip:"Custom CSS class to add to this component."},{weight:600,type:"textfield",input:!0,key:"tabindex",label:"Tab Index",placeholder:"0",tooltip:"Sets the tabindex attribute of this component to override the tab order of the form. See the MDN documentation on tabindex for more information."},{weight:1100,type:"checkbox",label:"Hidden",tooltip:"A hidden field is still a part of the form, but is hidden from view.",key:"hidden",input:!0},{weight:1200,type:"checkbox",label:"Hide Label",tooltip:"Hide the label (title, if no label) of this component. This allows you to show the label in the form builder, but not when it is rendered.",key:"hideLabel",input:!0},{weight:1350,type:"checkbox",label:"Initial Focus",tooltip:"Make this field the initially focused element on this form.",key:"autofocus",input:!0},{weight:1370,type:"checkbox",label:"Show Label in DataGrid",tooltip:"Show the label inside each row when in a Datagrid.",key:"dataGridLabel",input:!0,customConditional(e){var t,n;return null===(n=null===(t=e.instance.options)||void 0===t?void 0:t.flags)||void 0===n?void 0:n.inDataGrid}},{weight:1400,type:"checkbox",label:"Disabled",tooltip:"Disable the form input.",key:"disabled",input:!0},{weight:1500,type:"checkbox",label:"Table View",tooltip:"Shows this value within the table view of the submissions.",key:"tableView",input:!0},{weight:1600,type:"checkbox",label:"Modal Edit",tooltip:"Opens up a modal to edit the value of this component.",key:"modalEdit",input:!0}]},97040:(e,t,n)=>{"use strict";var i=n(43724),r=n(24913),a=n(6980);e.exports=function(e,t,n){i?r.f(e,t,a(0,n)):e[t]=n}},97301:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateEmailInfo=t.validateEmailSync=t.validateEmail=t.shouldValidate=void 0;const r=n(54008);t.shouldValidate=e=>{const{component:t,value:n}=e;return!!n&&!!(e=>e&&"email"===e.type)(t)},t.validateEmail=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateEmailSync)(e)})),t.validateEmailSync=e=>{const n=new r.FieldError("invalid_email",e,"email"),{value:i}=e;return(0,t.shouldValidate)(e)?"string"!=typeof i||/^(([^<>()[\]\\.,;:\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,}))$/.test(i)?null:n:null},t.validateEmailInfo={name:"validateEmail",process:t.validateEmail,processSync:t.validateEmailSync,shouldProcess:t.shouldValidate}},97342:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},97420:(e,t,n)=>{var i=n(47422),r=n(73170),a=n(31769);e.exports=function(e,t,n){for(var s=-1,o=t.length,l={};++s{},97567:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(2543)),a=i(n(95093)),s=n(38385),o=i(n(98625)),l=i(n(2899)),u=n(29857),d=i(n(87422)),c=i(n(42574)),h=n(34600),p=n(30214);"undefined"!=typeof window&&void 0===window.global&&(window.global=window);const f=i(n(5427));u.Formio.forms={},u.Formio.registerComponent=d.default.setComponent;class m extends c.default{constructor(e,t=void 0){let n,i;e instanceof HTMLElement||t?(n=e,i=t||{}):i=e||{},super(null,function(e){var t;return(e=r.default.defaults(e,{submitOnEnter:!1,iconset:(t=e&&e.icons?e.icons:u.Formio.icons,"fontawesome"===t?"fa":t||""),i18next:null,saveDraft:!1,alwaysDirty:!1,saveDraftThrottle:5e3,display:"form",cdnUrl:u.Formio.cdn.baseUrl})).events||(e.events=new o.default),e}(i)),this.executeShortcuts=e=>{const{target:t}=e;if(!this.keyboardCatchableElement(t))return;const n=e.ctrlKey||e.metaKey,i=e.keyCode;let a="";65<=i&&i<=90?a=String.fromCharCode(i):13===i?a="Enter":27===i&&(a="Esc"),r.default.each(this.shortcuts,(t=>{t.ctrl&&!n||t.shortcut===a&&(t.element.click(),e.preventDefault())}))},this.setElement(n),u.Formio.forms[this.id]=this,this.options.baseUrl&&u.Formio.setBaseUrl(this.options.baseUrl),this.type="form",this._src="",this._loading=!1,this._form={},this.draftEnabled=!1,this.savingDraft=!1,this.options.saveDraftThrottle?this.triggerSaveDraft=r.default.throttle(this.saveDraft.bind(this),this.options.saveDraftThrottle):this.triggerSaveDraft=this.saveDraft.bind(this),this.nosubmit=!1,this.submitted=!1,this.submitting=!1,this.formio=null,this.loader=null,this.alert=null,this.onSubmission=null,this.submissionSet=!1,this.formReady=new Promise(((e,t)=>{this.formReadyResolve=e,this.formReadyReject=t})),this.submissionReady=new Promise(((e,t)=>{this.submissionReadyResolve=e,this.submissionReadyReject=t})),this.shortcuts=[],this.language=this.i18next.language,this.options.saveDraft&&(this.options.skipDraftRestore?(this.draftEnabled=!0,this.savingDraft=!1):this.formReady.then((()=>{const e=u.Formio.getUser();e&&!this.submissionSet&&this.restoreDraft(e._id)}))),this.component.clearOnHide=!1,this.root=this,this.localRoot=this,this.root.dragulaLib=f.default}get language(){return this.options.language}get emptyValue(){return null}componentContext(){return this._data}set language(e){this.i18next&&(this.options.language=e,this.i18next.language!==e&&this.i18next.changeLanguage(e,(e=>{e||(this.rebuild(),this.emit("languageChanged"))})))}get componentComponents(){return this.form.components}get shadowRoot(){return this.options.shadowRoot}addLanguage(e,t,n=!1){if(this.i18next){var i=r.default.assign((0,h.fastCloneDeep)(l.default.resources.en.translation),t);this.i18next.addResourceBundle(e,"translation",i,!0,!0),n&&(this.language=e)}}keyboardCatchableElement(e){return"TEXTAREA"!==e.nodeName&&("INPUT"!==e.nodeName||-1===["text","email","password"].indexOf(e.type))}addShortcut(e,t){if(t&&/^([A-Z]|Enter|Esc)$/i.test(t))if("Enter"===(t=r.default.capitalize(t))||"Esc"===t){if("BUTTON"!==e.tagName)return;this.shortcuts.push({shortcut:t,element:e})}else this.shortcuts.push({ctrl:!0,shortcut:t,element:e})}removeShortcut(e,t){t&&/^([A-Z]|Enter|Esc)$/i.test(t)&&r.default.remove(this.shortcuts,{shortcut:t,element:e})}get src(){return this._src}loadSubmission(){return this.loadingSubmission=!0,this.formio.submissionId?this.onSubmission=this.formio.loadSubmission().then((e=>this.setSubmission(e)),(e=>this.submissionReadyReject(e))).catch((e=>this.submissionReadyReject(e))):this.submissionReadyResolve(),this.submissionReady}setSrc(e,t){return this.setUrl(e,t)?(this.nosubmit=!1,this.formio.loadForm({params:{live:1}}).then((e=>{const t=this.setForm(e);return this.loadSubmission(),t})).catch((e=>{console.warn(e),this.formReadyReject(e)}))):Promise.resolve()}set src(e){this.setSrc(e)}get url(){return this._src}setUrl(e,t){return!(!e||"string"!=typeof e||e===this._src||(this._src=e,this.nosubmit=!0,this.formio=this.options.formio=new u.Formio(e,t),"form"===this.type&&(this.options.src=e),0))}set url(e){this.setUrl(e)}get ready(){return this.formReady.then((()=>super.ready.then((()=>!this.loadingSubmission||this.submissionReady))))}get loading(){return this._loading}set loading(e){if(this._loading!==e){if(this._loading=e,!this.loader&&e){this.loader=this.ce("div",{class:"loader-wrapper"});const e=this.ce("div",{class:"loader text-center"});this.loader.appendChild(e)}if(this.loader)try{e?this.prependTo(this.loader,this.wrapper):this.removeChildFrom(this.loader,this.wrapper)}catch(e){}}}setForm(e,t={}){var n,i,a;const o=this._form&&(null===(n=this._form.components)||void 0===n?void 0:n.length);try{if(o&&JSON.stringify(this._form)===JSON.stringify(e))return Promise.resolve();if(this._form=(null==t?void 0:t.keepAsReference)?e:r.default.cloneDeep(e),this.onSetForm&&this.onSetForm(r.default.cloneDeep(this._form),e),null===(a=null===(i=this.parent)||void 0===i?void 0:i.component)||void 0===a?void 0:a.modalEdit)return Promise.resolve()}catch(e){return console.warn(e),Promise.resolve()}if(e&&e.settings&&e.settings.components&&(this.options.components=e.settings.components),e&&e.properties&&(this.options.properties=e.properties),this.options.sanitizeConfig||this.builderMode||(this.options.sanitizeConfig=r.default.get(e,"settings.sanitizeConfig")||r.default.get(e,"globalSettings.sanitizeConfig")),"schema"in e&&(0,s.compareVersions)(e.schema,"1.x")>0&&this.ready.then((()=>{this.setAlert("alert alert-danger","Form schema is for a newer version, please upgrade your renderer. Some functionality may not work.")})),e&&e.module){let t=null;if("string"==typeof e.module)try{t=this.evaluate(`return ${e.module}`)}catch(e){console.warn(e)}else t=e.module;t&&(u.Formio.use(t),t.options&&t.options.form&&(this.options=Object.assign(this.options,t.options.form)))}return this.initialized=!1,(this.rebuild()||Promise.resolve()).then((()=>(this.emit("formLoad",e),this.triggerCaptcha(),setTimeout((()=>{this.onChange(t),this.formReadyResolve()}),0),this.formReady)))}get form(){return this._form||(this._form={components:[]}),this._form}set form(e){this.setForm(e)}get submission(){return this.getValue()}set submission(e){this.setSubmission(e)}setSubmission(e,t={}){return t=Object.assign(Object.assign({},t),{fromSubmission:!r.default.has(t,"fromSubmission")||t.fromSubmission}),this.onSubmission=this.formReady.then((n=>(n&&(t=Object.assign(Object.assign({},t),n)),this.submissionSet=!0,this.triggerChange(t),this.emit("beforeSetSubmission",e),this.setValue(e,t),this.submissionReadyResolve(e))),(e=>this.submissionReadyReject(e))).catch((e=>this.submissionReadyReject(e)))}handleDraftError(e,t,n){const i=r.default.trim(`${this.t(e)} ${t||""}`);console.warn(i),this.emit(n?"restoreDraftError":"saveDraftError",t||i)}saveDraft(){if(!this.draftEnabled)return;if(!this.formio)return void this.handleDraftError("saveDraftInstanceError");if(!u.Formio.getUser())return void this.handleDraftError("saveDraftAuthError");const e=(0,h.fastCloneDeep)(this.submission);e.state="draft",this.savingDraft||this.submitting||(this.emit("saveDraftBegin"),this.savingDraft=!0,this.formio.saveSubmission(e).then((e=>{this.submission._id=e._id,this.savingDraft=!1,this.emit("saveDraft",e)})).catch((e=>{this.savingDraft=!1,this.handleDraftError("saveDraftError",e)})))}restoreDraft(e){const t=this.formio||this.options.formio;t?(this.savingDraft=!0,t.loadSubmissions({params:{state:"draft",owner:e,sort:"-created"}}).then((e=>{if(e.length>0&&!this.options.skipDraftRestore){const t=(0,h.fastCloneDeep)(e[0]);return this.setSubmission(t).then((()=>{this.draftEnabled=!0,this.savingDraft=!1,this.emit("restoreDraft",t)}))}this.draftEnabled=!0,this.savingDraft=!1,this.emit("restoreDraft",null)})).catch((e=>{this.draftEnabled=!0,this.savingDraft=!1,this.handleDraftError("restoreDraftError",e,!0)}))):this.handleDraftError("restoreDraftInstanceError",null,!0)}get schema(){const e=(0,h.fastCloneDeep)(r.default.omit(this._form,["components"]));return e.components=[],this.eachComponent((t=>e.components.push(t.schema))),e}mergeData(e,t){r.default.mergeWith(e,t,((e,t)=>{if(Array.isArray(e)&&Array.isArray(t)&&e.length!==t.length)return t}))}setValue(e,t={}){e&&e.data||(e={data:{}}),this._submission.metadata=e.metadata?r.default.cloneDeep(e.metadata):{},this.editing=!!e._id,!this.options.submissionTimezone&&e.metadata&&e.metadata.timezone&&(this.options.submissionTimezone=e.metadata.timezone);const n=super.setValue(e.data,t);return t.sanitize||this.mergeData(this.data,e.data),e.data=this.data,this._submission=e,n}getValue(){return this._submission.data||(this._submission.data={}),this.viewOnly||(this._submission.data=this.data),this._submission}init(){if(this.options.submission){const e=r.default.extend({},this.options.submission);this._submission=e,this._data=e.data}else this._submission=this._submission||{data:{}};return this.components&&this.components.length&&(this.destroyComponents(),this.components=[]),this.component?this.component.components=this.form?this.form.components:[]:this.component=this.form,this.component.type="form",this.component.input=!1,this.addComponents(),this.on("submitButton",(e=>{this.submit(!1,e).catch((t=>(e.instance.loading=!1,!1!==t&&void 0!==t&&console.log(t))))}),!0),this.on("checkValidity",(e=>this.validate(e,{dirty:!0,process:"change"})),!0),this.on("requestUrl",(e=>this.submitUrl(e.url,e.headers)),!0),this.on("resetForm",(()=>this.resetValue()),!0),this.on("deleteSubmission",(()=>this.deleteSubmission()),!0),this.on("refreshData",(()=>this.updateValue()),!0),this.executeFormController(),this.formReady}executeFormController(){if(!this.form||!this.form.controller||(!this.visible||this.component.hidden)&&this.component.clearOnHide&&!this.rootPristine)return!1;this.formReady.then((()=>{this.evaluate(this.form.controller,{components:this.components,instance:this})}))}teardown(){this.emit("formDelete",this.id),delete u.Formio.forms[this.id],delete this.executeShortcuts,delete this.triggerSaveDraft,super.teardown()}destroy(e=!1){return this.off("submitButton"),this.off("checkValidity"),this.off("requestUrl"),this.off("resetForm"),this.off("deleteSubmission"),this.off("refreshData"),super.destroy(e)}build(e){return e||this.element?this.ready.then((()=>{e=e||this.element,super.build(e)})):this.ready}getClassName(){let e="formio-form";return this.options.readOnly&&(e+=" formio-read-only"),e}render(){return super.render(this.renderTemplate("webform",{classes:this.getClassName(),children:this.renderComponents()}),this.builderMode?"builder":"form",!0)}redraw(){return this.element?(this.clear(),this.setContent(this.element,this.render()),this.attach(this.element)):Promise.resolve()}attach(e){this.setElement(e),this.loadRefs(e,{webform:"single"});const t=this.attachComponents(this.refs.webform);return this.addEventListener(document,"keydown",this.executeShortcuts),this.currentForm=this,this.hook("attachWebform",e,this),t.then((()=>(this.emit("render",this.element),this.setValue(this._submission,{noUpdateEvent:!0}))))}hasRequiredFields(){let e=!1;return(0,p.eachComponent)(this.form.components,(t=>{if(t.validate.required)return e=!0,!0}),!0),e}resetValue(){r.default.each(this.getComponents(),(e=>e.resetValue())),this.setPristine(!0),this.onChange({resetValue:!0})}setAlert(e,t,n){if(e||!this.submitted)if(this.options.noAlerts)t||this.emit("error",!1);else{if(this.alert)try{this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach((e=>{this.removeEventListener(e,"click"),this.removeEventListener(e,"keypress")})),this.removeChild(this.alert),this.alert=null}catch(e){}if(t){const i={class:n&&n.classes||`alert alert-${e}`,id:`error-list-${this.id}`},r={message:t instanceof HTMLElement?t.outerHTML:t,attrs:i,type:e};this.alert=(0,h.convertStringToHTMLElement)(this.renderTemplate("alert",r),`#${i.id}`)}this.alert&&(this.loadRefs(this.alert,{errorRef:"multiple"}),this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach((e=>{this.addEventListener(e,"click",(e=>{const t=e.currentTarget.dataset.componentKey;this.focusOnComponent(t)})),this.addEventListener(e,"keydown",(e=>{if(13===e.keyCode){e.preventDefault();const t=e.currentTarget.dataset.componentKey;this.focusOnComponent(t)}}))})),this.prepend(this.alert))}else this.alert&&(this.refs.errorRef&&this.refs.errorRef.length&&this.refs.errorRef.forEach((e=>{this.removeEventListener(e,"click"),this.removeEventListener(e,"keypress")})),this.removeChild(this.alert),this.alert=null)}focusOnComponent(e){if(e){const t=this.getComponent(e);t&&t.focus()}}showErrors(e,t){if(this.loading=!1,Array.isArray(e)||(e=[e]),Array.isArray(this.errors)&&(e=r.default.union(e,this.errors)),!(e=e.concat(this.customErrors).filter((e=>!!e))).length)return void this.setAlert(!1);e.forEach((e=>{const{components:t=[]}=e;e.component&&t.push(e.component),e.path&&t.push(e.path),t.forEach((t=>{const n=(0,h.getStringFromComponentPath)(t),i=this.getComponent(t,r.default.identity,n);e.fromServer&&(i.serverErrors?i.serverErrors.push(e):i.serverErrors=[e]),r.default.compact(Array.isArray(i)?i:[i]).forEach((t=>t.setCustomValidity(e.message,!0)))}))}));const n=[];if(e.length){e=r.default.uniqBy(e,(e=>{var t,n;return[e.message,null===(t=e.component)||void 0===t?void 0:t.id,null===(n=e.context)||void 0===n?void 0:n.path].join()}));const t=(t,n)=>{var i,a,s;const o=e[n],l=!r.default.isUndefined(n)&&e&&e[n],u=(null==l?void 0:l.formattedKeyOrPath)||(null==l?void 0:l.path)||(null===(i=null==l?void 0:l.context)||void 0===i?void 0:i.path)||(null===(a=o.context)||void 0===a?void 0:a.component)&&(null===(s=o.context)||void 0===s?void 0:s.component.key)||o.component&&o.component.key||o.fromServer&&o.path,d=u?(0,h.getStringFromComponentPath)(u):"";return"string"==typeof o||o.formattedKeyOrPath||(o.formattedKeyOrPath=d),{message:(0,h.unescapeHTML)(t),keyOrPath:d}};e.forEach((({message:e,context:i,fromServer:r,component:a},s)=>{const o=!(null==a?void 0:a.label)||(null==i?void 0:i.hasLabel)||r?this.t("alertMessage",{message:this.t(e)}):this.t("alertMessageWithLabel",{label:this.t(null==a?void 0:a.label),message:this.t(e)});n.push(t(o,s))}))}const i=this.renderTemplate("errorsList",{errors:n});return this.root.setAlert("danger",i),t&&this.emit("error",e),e}onSubmit(e,t){var n;return this.loading=!1,this.submitting=!1,this.setPristine(!0),this.setValue((0,h.fastCloneDeep)(e),{noValidate:!0,noCheck:!0}),this.setAlert("success",`

    ${this.t("complete")}

    `),this.draftEnabled&&(null===(n=this.triggerSaveDraft)||void 0===n?void 0:n.cancel)&&this.triggerSaveDraft.cancel(),this.emit("submit",e,t),t&&this.emit("submitDone",e),e}normalizeError(e){return e&&("object"==typeof e&&"details"in e&&(e=e.details),"string"==typeof e&&(e={message:e})),e}onSubmissionError(e){if(e=this.normalizeError(e),this.submitting=!1,this.setPristine(!1),this.emit("submitError",e||this.errors),e&&e.silent)return this.emit("change",{isValid:!0},{silent:!0}),!1;const t=this.showErrors(e,!0);return this.root&&this.root.alert&&this.scrollIntoView(this.root.alert),t}onChange(e,t,n,i){var a;e=e||{};let s=!1;(null===(a=this.parent)||void 0===a?void 0:a.subForm)===this?super.onChange(Object.assign(Object.assign({},e),{modified:n}),!1):super.onChange(e,!0);const o=r.default.clone(this.submission);e.changed=o.changed=t,e.changes=i,n&&this.pristine&&(this.pristine=!1),this.checkData(o.data,e);const l=!e.noValidate||e.fromIframe||e.fromSubmission&&this.rootPristine&&this.pristine&&e.changed?this.validate(o.data,Object.assign(Object.assign({},e),{noValidate:!1,process:"change"})):[];if(o.isValid=0===(l||[]).filter((e=>!e.fromServer)).length,this.loading=!1,this.submitted){const e=r.default.filter(this.serverErrors||[],(e=>!e.component&&!e.path));this.showErrors(e.length?e:l)}n&&this.options.saveDraft&&this.triggerSaveDraft(),e&&e.noEmit||(this.emit("change",o,e,n),s=!0),s&&!this.initialized&&(this.emit("initialized"),this.initialized=!0)}deleteSubmission(){return this.formio.deleteSubmission().then((()=>{this.emit("submissionDeleted",this.submission),this.resetValue()}))}cancel(e){return this.hook("beforeCancel",!0)&&(e||confirm(this.t("confirmCancel")))?(this.resetValue(),!0):(this.emit("cancelSubmit"),!1)}setMetadata(e){e.metadata=e.metadata||{},r.default.defaults(e.metadata,{timezone:r.default.get(this,"_submission.metadata.timezone",(0,h.currentTimezone)()),offset:parseInt(r.default.get(this,"_submission.metadata.offset",(0,a.default)().utcOffset()),10),origin:document.location.origin,referrer:document.referrer,browserName:navigator.appName,userAgent:navigator.userAgent,pathName:window.location.pathname,onLine:navigator.onLine})}submitForm(e={}){return this.clearServerErrors(),new Promise(((t,n)=>{if(this.options.readOnly)return t({submission:this.submission,saved:!1});const i=(0,h.fastCloneDeep)(this.submission||{});this.setMetadata(i),i.state=e.state||i.state||"submitted";const a="draft"===i.state;this.hook("beforeSubmit",Object.assign(Object.assign({},i),{component:e.component}),((s,o)=>{var l;if(s)return n(s);i._vnote=o&&o._vnote?o._vnote:"";try{if(!a&&!e.noValidate){if(!i.data)return n("Invalid Submission");const t=this.validate(i.data,{dirty:!0,silentCheck:!1,process:"submit"});if(t.length||(null===(l=e.beforeSubmitResults)||void 0===l?void 0:l.some((e=>"rejected"===e.status))))return n(t)}}catch(s){console.error(s)}this.everyComponent((e=>{i._vnote&&"form"===e.type&&e.component.reference&&(r.default.get(i.data,e.path,{})._vnote=i._vnote);const{persistent:t}=e.component;"client-only"===t&&r.default.unset(i.data,e.path)})),this.hook("customValidation",Object.assign(Object.assign({},i),{component:e.component}),(e=>{if(e)return"string"==typeof e&&(e={message:e}),e=Array.isArray(e)?e:[e],n(e);if(this.loading=!0,this._form&&this._form.action){const e=i.data._id&&this._form.action.includes(i.data._id)?"PUT":"POST";return u.Formio.makeStaticRequest(this._form.action,e,i,this.formio?this.formio.options:{}).then((e=>t({submission:e,saved:!0}))).catch((e=>(this.setServerErrors(e),n(e))))}const r=this.formio;if(this.nosubmit||!r)return t({submission:i,saved:!1});r[r.actionUrl?"saveAction":"saveSubmission"](i).then((e=>t({submission:e,saved:!0}))).catch((e=>(this.setServerErrors(e),n(e))))}))}))}))}setServerErrors(e){e.details?this.serverErrors=e.details.filter((e=>e.level?"error"===e.level:e)).map((e=>(e.fromServer=!0,e))):"string"==typeof e&&(this.serverErrors=[{fromServer:!0,level:"error",message:e}])}executeSubmit(e){return this.submitted=!0,this.submitting=!0,this.submitForm(e).then((({submission:e,saved:t})=>this.onSubmit(e,t))).then((e=>(this.submissionInProcess=!1,e))).catch((e=>(this.submissionInProcess=!1,Promise.reject(this.onSubmissionError(e)))))}clearServerErrors(){var e;null===(e=this.serverErrors)||void 0===e||e.forEach((e=>{if(e.path){const t=(0,h.getArrayFromComponentPath)(e.path),n=this.getComponent(t,r.default.identity,e.formattedKeyOrPath);n&&(n.serverErrors=[])}})),this.serverErrors=[]}submit(e=!1,t={}){return this.submissionInProcess=!0,e?this.executeSubmit(t):this.beforeSubmit(t).then((()=>this.executeSubmit(t)))}submitUrl(e,t){if(!e)return console.warn("Missing URL argument");const n=this.submission||{},i=e,r={method:"POST",headers:{}};if(t&&t.length>0&&t.map((e=>{""!==e.header&&""!==e.value&&(r.headers[e.header]=this.interpolate(e.value,n))})),!i||!r)return this.emit("error","You should add a URL to this button."),this.setAlert("warning","You should add a URL to this button."),console.warn("You should add a URL to this button.");u.Formio.makeStaticRequest(i,r.method,n,{headers:r.headers}).then((()=>{this.emit("requestDone"),this.setAlert("success","

    Success

    ")})).catch((e=>{const t=`${e.statusText?e.statusText:""} ${e.status?e.status:e}`;return this.emit("error",t),console.error(t),this.setAlert("danger",`

    ${t}

    `),Promise.reject(this.onSubmissionError(e))}))}triggerCaptcha(){if(!this||!this.components)return;const e=[];(0,p.eachComponent)(this.components,(t=>{/^(re)?captcha$/.test(t.type)&&"formLoad"===t.component.eventType&&e.push(t)})),e.length>0&&e[0].verify(`${this.form.name?this.form.name:"form"}Load`)}set nosubmit(e){this._nosubmit=!!e,this.emit("nosubmit",this._nosubmit)}get nosubmit(){return this._nosubmit||!1}get conditions(){var e,t;return null!==(t=null===(e=this.schema.settings)||void 0===e?void 0:e.conditions)&&void 0!==t?t:[]}get variables(){var e,t;return null!==(t=null===(e=this.schema.settings)||void 0===e?void 0:e.variables)&&void 0!==t?t:[]}}t.default=m,m.setBaseUrl=u.Formio.setBaseUrl,m.setApiUrl=u.Formio.setApiUrl,m.setAppUrl=u.Formio.setAppUrl},97625:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"unique",ignore:!0},{key:"validateOn",ignore:!0}]},97650:function(e,t,n){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],r=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,i){return e?/-MMM-/.test(i)?n[e.month()]:t[e.month()]:t},monthsRegex:r,monthsShortRegex:r,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(n(95093))},97711:function(e,t,n){!function(e){"use strict";e.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(95093))},97751:(e,t,n)=>{"use strict";var i=n(22195),r=n(94901);e.exports=function(e,t){return arguments.length<2?(n=i[e],r(n)?n:void 0):i[e]&&i[e][t];var n}},98174:function(e,t,n){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];e.defineLocale("ku",{months:i,monthsShort:i,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(e){return/ئێواره‌/.test(e)},meridiem:function(e,t,n){return e<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(e){return n[e]})).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,(function(e){return t[e]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(95093))},98206:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.logicProcessInfo=t.logicProcess=t.logicProcessSync=void 0;const r=n(90309);t.logicProcessSync=e=>(0,r.applyActions)(e),t.logicProcess=e=>i(void 0,void 0,void 0,(function*(){return(0,t.logicProcessSync)(e)})),t.logicProcessInfo={name:"logic",process:t.logicProcess,processSync:t.logicProcessSync,shouldProcess:r.hasLogic}},98492:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateMinimumYearInfo=t.validateMinimumYearSync=t.validateMinimumYear=t.shouldValidate=void 0;const r=n(54008);t.shouldValidate=e=>{var t,n;const{component:i}=e;return!(!(e=>{var t;return e&&"day"===(null==e?void 0:e.type)&&(e.hasOwnProperty("minYear")||(null===(t=e.year)||void 0===t?void 0:t.hasOwnProperty("minYear")))})(i)||!i.minYear&&!(null===(n=null===(t=i.fields)||void 0===t?void 0:t.year)||void 0===n?void 0:n.minYear))},t.validateMinimumYear=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateMinimumYearSync)(e)})),t.validateMinimumYearSync=e=>{var n,i;const{component:a,value:s}=e;if(!(0,t.shouldValidate)(e))return null;if("string"!=typeof s&&"number"!=typeof s)throw new r.ProcessorError(`Cannot validate minimum year for value ${s}`,e,"validate:validateMinimumYear");const o="string"==typeof s?s:String(s),l=/\d{4}$/.exec(o),u=l?l[0]:null;if(a.minYear&&(null===(i=null===(n=a.fields)||void 0===n?void 0:n.year)||void 0===i?void 0:i.minYear)&&a.minYear!==a.fields.year.minYear)throw new r.ProcessorError("Cannot validate minimum year, component.minYear and component.fields.year.minYear are not equal",e,"validate:validateMinimumYear");const d=a.minYear;return d&&u?+u>=+d?null:new r.FieldError("minYear",Object.assign(Object.assign({},e),{minYear:String(d),setting:String(d)})):null},t.validateMinimumYearInfo={name:"validateMinimumYear",process:t.validateMinimumYear,processSync:t.validateMinimumYearSync,shouldProcess:t.shouldValidate}},98625:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return r(t,e),t};Object.defineProperty(t,"__esModule",{value:!0});const s=n(30228),o=a(n(34600));class l extends s.EventEmitter{constructor(e={}){const{loadLimit:t=1e3,eventsSafeInterval:n=300}=e;super(),this.onAny=e=>{this.on("any",e)},this.offAny=e=>{this.off("any",e)};const i=o.observeOverload((()=>{console.warn(`There were more than ${t} events emitted in ${n} ms. It might be caused by events' infinite loop`,this.id)}),{limit:t,delay:n});this.emit=(...e)=>{super.emit(...e),super.emit("any",...e),i()}}}t.default=l},98690:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{key:"labelPosition",ignore:!0},{weight:15,type:"checkbox",label:"Hide Input Labels",tooltip:"Hide the labels of component inputs. This allows you to show the labels in the form builder, but not when it is rendered.",key:"hideInputLabels",input:!0},{type:"select",input:!0,key:"inputsLabelPosition",label:"Inputs Label Position",tooltip:"Position for the labels for inputs for this field.",weight:40,defaultValue:"top",dataSrc:"values",data:{values:[{label:"Top",value:"top"},{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Bottom",value:"bottom"}]}},{key:"placeholder",ignore:!0},{weight:213,type:"checkbox",label:"Use Locale Settings",tooltip:"Use locale settings to display day.",key:"useLocaleSettings",input:!0}]},99046:(e,t,n)=>{"use strict";var i=n(81047),r=n(16371),a=n.g.document,s=function(e,t,n,i){return e.addEventListener(t,n,i)},o=function(e,t,n,i){return e.removeEventListener(t,n,i)},l=[];function u(e,t,n){var i=function(e,t,n){var i,r;for(i=0;i{var i=n(54128),r=n(23805),a=n(44394),s=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(a(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=o.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):s.test(e)?NaN:+e}},99394:e=>{var t;t="function"==typeof setImmediate?function(e){setImmediate(e)}:function(e){setTimeout(e,0)},e.exports=t},99469:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(55784),t),r(n(66995),t),r(n(84324),t),r(n(73926),t)},99493:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(39142));class a extends r.default{static schema(...e){return r.default.schema({type:"well",key:"well",input:!1,persistent:!1,components:[]},...e)}static get builderInfo(){return{title:"Well",icon:"square-o",group:"layout",documentation:"/userguide/form-building/layout-components#well",showPreview:!1,weight:60,schema:a.schema()}}static savedValueTypes(){return[]}get defaultSchema(){return a.schema()}get className(){return`${this.component.customClass}`}get templateName(){return"well"}constructor(...e){super(...e),this.noField=!0}}t.default=a},99561:function(e,t,n){"use strict";var i=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,a){function s(e){try{l(i.next(e))}catch(e){a(e)}}function o(e){try{l(i.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,o)}l((i=i.apply(e,t||[])).next())}))},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.validateMaskInfo=t.validateMaskSync=t.validateMask=t.shouldValidate=t.matchInputMask=void 0;const a=n(2543),s=n(54008),o=r(n(41660)),l=e=>(null==e?void 0:e.maskName)&&"string"==typeof(null==e?void 0:e.maskName)&&(null==e?void 0:e.value)&&"string"==typeof(null==e?void 0:e.value);function u(e,t){var n;if(t){const i=null===(n=e.inputMasks)||void 0===n?void 0:n.find((e=>e.label===t));return i?i.mask:void 0}}function d(e,t){if(e instanceof Array)return e;const n=[];for(let i=0;it.length)return!1;for(let n=0;n{var t;const{component:n,value:i}=e;if(!(e=>e&&e.type&&"time"!==e.type&&e&&e.hasOwnProperty("inputMask")&&!!e.inputMask||e&&e.hasOwnProperty("inputMasks")&&!(0,a.isEmpty)(e.inputMasks))(n)||!i)return!1;if(null==i)return!1;if(n.allowMultipleMasks&&(null===(t=n.inputMasks)||void 0===t?void 0:t.length)){const e=i&&l(i)?i:void 0,t=u(n,null==e?void 0:e.maskName);if(t&&!d(t))return!1}else if(!d(n.inputMask||""))return!1;return!0},t.validateMask=e=>i(void 0,void 0,void 0,(function*(){return(0,t.validateMaskSync)(e)})),t.validateMaskSync=e=>{var n;const{component:i,value:r}=e;if(!(0,t.shouldValidate)(e))return null;let a,h;if(i.allowMultipleMasks&&(null===(n=i.inputMasks)||void 0===n?void 0:n.length)){const e=r&&l(r)?r:void 0,t=u(i,null==e?void 0:e.maskName);t&&(a=t),h=null==e?void 0:e.value}else a=i.inputMask||"";if(!a)return null;if(r&&a&&"string"==typeof r&&"textfield"===i.type)return o.default.isValid(r,{mask:a.toString()})?null:new s.FieldError("mask",e);const p=d(a);if(null!=r&&p){const t=new s.FieldError("mask",e);return c(h||r,p)?null:t}return null},t.validateMaskInfo={name:"validateMask",process:t.validateMask,processSync:t.validateMaskSync,shouldProcess:t.shouldValidate}},99563:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=i(n(41767));class a extends r.default{static schema(...e){return r.default.schema({type:"email",label:"Email",key:"email",inputType:"email",kickbox:{enabled:!1}},...e)}static get builderInfo(){return{title:"Email",group:"advanced",icon:"at",documentation:"/userguide/form-building/advanced-components#email",weight:10,schema:a.schema()}}init(){super.init()}get defaultSchema(){return a.schema()}get inputInfo(){const e=super.inputInfo;return e.attr.type=this.component.mask?"password":"email",e}normalizeValue(e,t={}){return e=super.normalizeValue(e,t),this.options.server&&e&&(e=Array.isArray(e)?e.map((e=>e.toLowerCase())):e.toLowerCase()),e}}t.default=a},99878:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=[{ignore:!0,key:"mask"},{key:"inputMask",ignore:!0},{key:"allowMultipleMasks",ignore:!0}]},99903:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n="";return Array.prototype.join,n+='\n \n \n \n ',e.component.values.forEach((function(i){n+='\n \n "})),n+="\n \n \n \n ",e.component.questions.forEach((function(i){n+="\n \n \n ",e.component.values.forEach((function(r){n+='\n \n '})),n+="\n \n "})),n+="\n \n
    \n '+(null==(t=e.t(i.label,{_userInput:!0}))?"":t)+"\n ",i.tooltip&&(n+='\n \n '),n+="\n
    \n "+(null==(t=e.t(i.label))?"":t)+"\n ",i.tooltip&&(n+='\n \n '),n+="\n \n \n
    \n"}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.loaded=!0,n.exports}__webpack_require__.amdD=function(){throw new Error("define cannot be used indirect")},__webpack_require__.amdO={},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var __webpack_exports__=__webpack_require__(96776);return __webpack_exports__})()));