@formio/core
Version:
The core Form.io renderering framework.
2 lines • 56.5 kB
JavaScript
/*! For license information please see formio.utils.min.js.LICENSE.txt */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.FormioCore=e():t.FormioCore=e()}(self,(function(){return t={2937:function(t,e,n){"use strict";var r=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.intersection=e.map=e.head=e.last=e.filter=e.findEach=e.matches=e.findIndex=e.find=e.each=e.dropRight=e.drop=e.difference=e.concat=e.compact=e.chunk=void 0;var i=n(7739),o=n(1769);function a(t,e){var n=Array.isArray(t);for(var r in t)if(t.hasOwnProperty(r)&&!0===e(t[r],n?Number(r):r))break}function u(t,e,n){if(void 0===n&&(n=!1),t){if(Array.isArray(t)&&"function"==typeof e)return n?t.findIndex(e):t.find(e);var r=void 0,i=0;return s(t,e,(function(t,e){return r=t,i=e,!0})),n?i:r}}function c(t){var e=[],n={};return"string"==typeof t?(e=[t],n[t]=!0):(e=Object.keys(t),n=t),function(t){return(0,i.isEqual)((0,o.pick)(t,e),n)}}function s(t,e,n){a(t,(function(t,r){if(c(e)(t)&&!0===n(t,r))return!0}))}e.chunk=function(t,e){return t.reduce((function(t,n,i){return i%e==0?r(r([],t,!0),[[n]],!1):r(r([],t.slice(0,-1),!0),[r(r([],t.slice(-1)[0],!0),[n],!1)],!1)}),[])},e.compact=function(t){return t.filter(Boolean)},e.concat=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return t.concat.apply(t,e)},e.difference=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.reduce((function(t,e){return t.filter((function(t){return!e.includes(t)}))}))},e.drop=function(t,e){return void 0===e&&(e=1),e>0?t.slice(e):t},e.dropRight=function(t,e){return void 0===e&&(e=1),e>0?t.slice(0,-e):t},e.each=a,e.find=u,e.findIndex=function(t,e){return u(t,e,!0)},e.matches=c,e.findEach=s,e.filter=function(t,e){if(!t)return[];if(e||(e=function(t){return!!t}),Array.isArray(t)&&"function"==typeof e)return t.filter(e);var n=[];return s(t,e,(function(e,r){n.push(e),Array.isArray(e)?t.splice(r,1):delete t[r]})),n},e.last=function(t){return t[t.length-1]},e.head=function(t){return t[0]},e.map=function(t,e){return t.map(e)},e.intersection=function(t,e){return t.filter((function(t){return e.includes(t)}))}},3254:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=void 0,e.debounce=function(t,e){var n;return void 0===e&&(e=100),function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];n&&clearTimeout(n),n=setTimeout((function(){n=null,t.apply(void 0,r)}),e)}}},2373:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},a=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||r(e,t,n)},u=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.chain=void 0;var c=o(n(2937)),s=function(){function t(t){this.chain=[],this.currentValue=[],this.currentValue=t}return t.prototype.value=function(){return this.chain.reduce((function(t,e){var n;return(n=c)[e.method].apply(n,u([t],e.args,!1))}),this.currentValue)},t}(),l=function(t){c.hasOwnProperty(t)&&(s.prototype[t]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return this.chain.push({method:t,args:e}),this})};for(var f in c)l(f);function d(t){return new s(t)}e.chain=d,e.default=d,a(n(2937),e),a(n(3254),e),a(n(7739),e),a(n(7592),e),a(n(1769),e),a(n(7150),e)},7739:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.isRegExp=e.isBoolean=e.isNumber=e.isPlainObject=e.isObject=e.isObjectLike=e.isArray=e.isNull=e.isNil=e.isNaN=e.isInteger=e.isEmpty=e.isString=e.isEqual=e.noop=void 0;var r=n(2937);function i(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}function o(t){return"object"==typeof t&&null!==t}function a(t){var e=typeof t;return null!=t&&("object"===e||"function"===e)}e.noop=function(){},e.isEqual=function t(e,n){var i=!1;return e===n||(e&&n&&(Array.isArray(e)||a(e))&&(i=!0,(0,r.each)(e,(function(e,r){return!Array.isArray(e)&&!a(e)||t(n[r],e)?n[r]!==e?(i=!1,!0):void 0:(i=!1,!0)}))),i)},e.isString=function(t){return"string"==typeof t},e.isEmpty=function(t){return[Object,Array].includes((t||{}).constructor)&&!Object.entries(t||{}).length},e.isInteger=function(t){return Number.isInteger(t)},e.isNaN=function(t){return Number.isNaN(t)},e.isNil=function(t){return null==t},e.isNull=function(t){return null===t},e.isArray=function(t){return Array.isArray(t)},e.isObjectLike=o,e.isObject=a,e.isPlainObject=function(t){if(!o(t)||"[object Object]"!=i(t))return!1;if(null===Object.getPrototypeOf(t))return!0;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},e.isNumber=function(t){return"number"==typeof t||o(t)&&"[object Number]"==i(t)},e.isBoolean=function(t){return!0===t||!1===t||o(t)&&"[object Boolean]"==i(t)},e.isRegExp=function(t){return o(t)&&"[object RegExp]"==i(t)}},7592:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.sumBy=e.sum=e.mod=e.subtract=e.round=e.multiply=e.minBy=e.min=e.meanBy=e.mean=e.maxBy=e.max=e.floor=e.divide=e.ceil=e.add=void 0;var r=n(7739),i=n(1769);function o(t,e,n){return void 0===n&&(n=0),n?e(t*(n=Math.pow(10,n)))/n:e(t)}function a(t,e,n){var o=t[0];if(t.length<=1)return o;var a=(0,r.isString)(e);return t.slice(1).reduce((function(t,r){var o=a?(0,i.get)(t,e):e(t),u=a?(0,i.get)(r,e):e(r);return n(o,u)===u?r:t}),o)}function u(t,e){return t+e}function c(t){return t.reduce(u,0)}function s(t,e){return function(t,e,n){var o=t[0];if(t.length<=1)return o;var a=(0,r.isString)(e);return t.slice(1).reduce((function(t,n){return r=t,o=a?(0,i.get)(n,e):e(n),r+o;var r,o}),a?(0,i.get)(o,e):e(o))}(t,e)}e.add=u,e.ceil=function(t,e){return void 0===e&&(e=0),o(t,Math.ceil,e)},e.divide=function(t,e){return t/e},e.floor=function(t,e){return void 0===e&&(e=0),o(t,Math.floor,e)},e.max=function(t){return Math.max.apply(Math,t)},e.maxBy=function(t,e){return a(t,e,Math.max)},e.mean=function(t){return c(t)/t.length},e.meanBy=function(t,e){return s(t,e)/t.length},e.min=function(t){return Math.min.apply(Math,t)},e.minBy=function(t,e){return a(t,e,Math.min)},e.multiply=function(t,e){return t*e},e.round=function(t,e){return void 0===e&&(e=0),o(t,Math.round,e)},e.subtract=function(t,e){return t-e},e.mod=function(t,e){return t%e},e.sum=c,e.sumBy=s},1769:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)},i=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.pick=e.defaults=e.cloneDeep=e.clone=e.fastCloneDeep=e.merge=e.set=e.has=e.propertyOf=e.property=e.get=e.pathParts=e.values=e.keys=void 0;var o=n(7739),a=n(2937);function u(t){return t?("["===t[0]&&(t=t.replace(/^\[([^\]]+)\]/,"$1")),t.replace(/\[/g,".").replace(/\]/g,"").split(".")):[]}function c(t,e,n){var r=u(e).reduce((function(t,e){return(t||{})[e]}),t);return void 0!==n&&void 0===r?n:r}function s(t,e){try{return e in t}catch(t){return!1}}function l(t,e){return s(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function f(t,e){for(var n in e)if(e.hasOwnProperty(n)){if(l(t,n))return;s(t,n)?t[n]=p(t[n],e[n]):t[n]=h(e[n])}return t}function d(t,e){return e.forEach((function(e,n){t[n]=p(t[n],e)})),t}function p(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t.shift();return t.reduce((function(e,n,r){return e&&e!==n?(0,o.isArray)(n)?((0,o.isArray)(e)||(t[r]=e=[]),d(e,n)):(0,o.isPlainObject)(n)?f(e,n):h(n):h(n)}),n)}function h(t){return Array.isArray(t)?t.map(h):null===t||"object"!=typeof t?t:Object.fromEntries(Object.entries(t).map((function(t){return[t[0],h(t[1])]})))}e.keys=function(t){return Object.keys(t)},e.values=function(t){return(0,o.isArray)(t)?t:Object.values(t)},e.pathParts=u,e.get=c,e.property=function(t){return function(e){return c(e,t)}},e.propertyOf=function(t){return function(e){return c(t,e)}},e.has=function(t,e){return void 0!==c(t,e,void 0)},e.set=function(t,e,n){var r=u(e);return r.reduce((function(t,e,i){return isNaN(Number(e))||(e=Number(e)),((Array.isArray(t)?e>=t.length:!t.hasOwnProperty(e))||i<r.length-1&&!Array.isArray(t[e])&&!(0,o.isObject)(t[e]))&&(t[e]=isNaN(Number(r[i+1]))?{}:[]),i===r.length-1&&(t[e]=n),t[e]}),t),t},e.merge=p,e.fastCloneDeep=function(t){try{return JSON.parse(JSON.stringify(t))}catch(t){return console.log("Clone Failed: ".concat(t.message)),null}},e.clone=function(t){return Array.isArray(t)?i([],t,!0):r({},t)},e.cloneDeep=h,e.defaults=function(t,e){return(0,a.each)(e,(function(e,n){t.hasOwnProperty(n)||(t[n]=e)})),t},e.pick=function(t,e){return e.reduce((function(e,n){return t&&t.hasOwnProperty(n)&&(e[n]=t[n]),e}),{})}},7150:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.endsWith=e.trim=void 0,e.trim=function(t,e){return void 0===e&&(e="\\s"),t.replace(new RegExp("^([".concat(e,"]*)(.*?)([").concat(e,"]*)$")),"$2")},String.prototype.endsWith||(String.prototype.endsWith=function(t,e){return(void 0===e||e>this.length)&&(e=this.length),this.substring(e-t.length,e)===t}),e.endsWith=function(t,e){return t.endsWith(e)}},7484:function(t){t.exports=function(){"use strict";var t=6e4,e=36e5,n="millisecond",r="second",i="minute",o="hour",a="day",u="week",c="month",s="quarter",l="year",f="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|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("_")},y=function(t,e,n){var r=String(t);return!r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},g={s:y,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+y(r,2,"0")+":"+y(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),o=n-i<0,a=e.clone().add(r+(o?-1:1),c);return+(-(r+(n-i)/(o?i-a:a-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:l,w:u,d:a,D:f,h:o,m:i,s:r,ms:n,Q:s}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},v="en",b={};b[v]=m;var O=function(t){return t instanceof x},_=function t(e,n,r){var i;if(!e)return v;if("string"==typeof e){var o=e.toLowerCase();b[o]&&(i=o),n&&(b[o]=n,i=o);var a=e.split("-");if(!i&&a.length>1)return t(a[0])}else{var u=e.name;b[u]=e,i=u}return!r&&i&&(v=i),i||!r&&v},A=function(t,e){if(O(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new x(n)},w=g;w.l=_,w.i=O,w.w=function(t,e){return A(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var x=function(){function m(t){this.$L=_(t.locale,null,!0),this.parse(t)}var y=m.prototype;return y.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(w.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match(p);if(r){var i=r[2]-1||0,o=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,o)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},y.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},y.$utils=function(){return w},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(t,e){var n=A(t);return this.startOf(e)<=n&&n<=this.endOf(e)},y.isAfter=function(t,e){return A(t)<this.startOf(e)},y.isBefore=function(t,e){return this.endOf(e)<A(t)},y.$g=function(t,e,n){return w.u(t)?this[e]:this.set(n,t)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(t,e){var n=this,s=!!w.u(e)||e,d=w.p(t),p=function(t,e){var r=w.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return s?r:r.endOf(a)},h=function(t,e){return w.w(n.toDate()[t].apply(n.toDate("s"),(s?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,y=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case l:return s?p(1,0):p(31,11);case c:return s?p(1,y):p(0,y+1);case u:var b=this.$locale().weekStart||0,O=(m<b?m+7:m)-b;return p(s?g-O:g+(6-O),y);case a:case f:return h(v+"Hours",0);case o:return h(v+"Minutes",1);case i:return h(v+"Seconds",2);case r:return h(v+"Milliseconds",3);default:return this.clone()}},y.endOf=function(t){return this.startOf(t,!1)},y.$set=function(t,e){var u,s=w.p(t),d="set"+(this.$u?"UTC":""),p=(u={},u[a]=d+"Date",u[f]=d+"Date",u[c]=d+"Month",u[l]=d+"FullYear",u[o]=d+"Hours",u[i]=d+"Minutes",u[r]=d+"Seconds",u[n]=d+"Milliseconds",u)[s],h=s===a?this.$D+(e-this.$W):e;if(s===c||s===l){var m=this.clone().set(f,1);m.$d[p](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},y.set=function(t,e){return this.clone().$set(t,e)},y.get=function(t){return this[w.p(t)]()},y.add=function(n,s){var f,d=this;n=Number(n);var p=w.p(s),h=function(t){var e=A(d);return w.w(e.date(e.date()+Math.round(t*n)),d)};if(p===c)return this.set(c,this.$M+n);if(p===l)return this.set(l,this.$y+n);if(p===a)return h(1);if(p===u)return h(7);var m=(f={},f[i]=t,f[o]=e,f[r]=1e3,f)[p]||1,y=this.$d.getTime()+n*m;return w.w(y,this)},y.subtract=function(t,e){return this.add(-1*t,e)},y.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=w.z(this),o=this.$H,a=this.$m,u=this.$M,c=n.weekdays,s=n.months,l=function(t,n,i,o){return t&&(t[n]||t(e,r))||i[n].slice(0,o)},f=function(t){return w.s(o%12||12,t,"0")},p=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},m={YY:String(this.$y).slice(-2),YYYY:this.$y,M:u+1,MM:w.s(u+1,2,"0"),MMM:l(n.monthsShort,u,s,3),MMMM:l(s,u),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,c,2),ddd:l(n.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(o),HH:w.s(o,2,"0"),h:f(1),hh:f(2),a:p(o,a,!0),A:p(o,a,!1),m:String(a),mm:w.s(a,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:i};return r.replace(h,(function(t,e){return e||m[t]||i.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,f,d){var p,h=w.p(f),m=A(n),y=(m.utcOffset()-this.utcOffset())*t,g=this-m,v=w.m(this,m);return v=(p={},p[l]=v/12,p[c]=v,p[s]=v/3,p[u]=(g-y)/6048e5,p[a]=(g-y)/864e5,p[o]=g/e,p[i]=g/t,p[r]=g/1e3,p)[h]||g,d?v:w.a(v)},y.daysInMonth=function(){return this.endOf(c).$D},y.$locale=function(){return b[this.$L]},y.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=_(t,e,!0);return r&&(n.$L=r),n},y.clone=function(){return w.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},m}(),D=x.prototype;return A.prototype=D,[["$ms",n],["$s",r],["$m",i],["$H",o],["$W",a],["$M",c],["$y",l],["$D",f]].forEach((function(t){D[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),A.extend=function(t,e){return t.$i||(t(e,x,A),t.$i=!0),A},A.locale=_,A.isDayjs=O,A.unix=function(t){return A(1e3*t)},A.en=b[v],A.Ls=b,A.p={},A}()},9387:function(t){t.exports=function(){"use strict";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,r,i){var o,a=function(t,n,r){void 0===r&&(r={});var i=new Date(t),o=function(t,n){void 0===n&&(n={});var r=n.timeZoneName||"short",i=t+"|"+r,o=e[i];return o||(o=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:r}),e[i]=o),o}(n,r);return o.formatToParts(i)},u=function(e,n){for(var r=a(e,n),o=[],u=0;u<r.length;u+=1){var c=r[u],s=c.type,l=c.value,f=t[s];f>=0&&(o[f]=parseInt(l,10))}var d=o[3],p=24===d?0:d,h=o[0]+"-"+o[1]+"-"+o[2]+" "+p+":"+o[4]+":"+o[5]+":000",m=+e;return(i.utc(h).valueOf()-(m-=m%1e3))/6e4},c=r.prototype;c.tz=function(t,e){void 0===t&&(t=o);var n=this.utcOffset(),r=this.toDate(),a=r.toLocaleString("en-US",{timeZone:t}),u=Math.round((r-new Date(a))/1e3/60),c=i(a).$set("millisecond",this.$ms).utcOffset(15*-Math.round(r.getTimezoneOffset()/15)-u,!0);if(e){var s=c.utcOffset();c=c.add(n-s,"minute")}return c.$x.$timezone=t,c},c.offsetName=function(t){var e=this.$x.$timezone||i.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var s=c.startOf;c.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return s.call(this,t,e);var n=i(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return s.call(n,t,e).tz(this.$x.$timezone,!0)},i.tz=function(t,e,n){var r=n&&e,a=n||e||o,c=u(+i(),a);if("string"!=typeof t)return i(t).tz(a);var s=function(t,e,n){var r=t-60*e*1e3,i=u(r,n);if(e===i)return[r,e];var o=u(r-=60*(i-e)*1e3,n);return i===o?[r,i]:[t-60*Math.min(i,o)*1e3,Math.max(i,o)]}(i.utc(t,r).valueOf(),c,a),l=s[0],f=s[1],d=i(l).utcOffset(f);return d.$x.$timezone=a,d},i.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},i.tz.setDefault=function(t){o=t}}}()},178:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,o){var a=i.prototype;o.utc=function(t){return new i({date:t,utc:!0,args:arguments})},a.utc=function(e){var n=o(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},a.local=function(){return o(this.toDate(),{locale:this.$L,utc:!1})};var u=a.parse;a.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),u.call(this,t)};var c=a.init;a.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else c.call(this)};var s=a.utcOffset;a.utcOffset=function(r,i){var o=this.$utils().u;if(o(r))return this.$u?0:o(this.$offset)?s.call(this):this.$offset;if("string"==typeof r&&(r=function(t){void 0===t&&(t="");var r=t.match(e);if(!r)return null;var i=(""+r[0]).match(n)||["-",0,0],o=i[0],a=60*+i[1]+ +i[2];return 0===a?0:"+"===o?a:-a}(r),null===r))return this;var a=Math.abs(r)<=16?60*r:r,u=this;if(i)return u.$offset=a,u.$u=0===r,u;if(0!==r){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(u=this.local().add(a+c,t)).$offset=a,u.$x.$localOffset=c}else u=this.utc();return u};var l=a.format;a.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,e)},a.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*t},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var f=a.toDate;a.toDate=function(t){return"s"===t&&this.$offset?o(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var d=a.diff;a.diff=function(t,e,n){if(t&&this.$u===t.$u)return d.call(this,t,e,n);var r=this.local(),i=o(t).local();return d.call(r,i,e,n)}}}()},7856:function(t){t.exports=function(){"use strict";function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,n){return e=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},e(t,n)}function n(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function r(t,i,o){return r=n()?Reflect.construct:function(t,n,r){var i=[null];i.push.apply(i,n);var o=new(Function.bind.apply(t,i));return r&&e(o,r.prototype),o},r.apply(null,arguments)}function i(t){return function(t){if(Array.isArray(t))return o(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t)||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.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var a=Object.hasOwnProperty,u=Object.setPrototypeOf,c=Object.isFrozen,s=Object.getPrototypeOf,l=Object.getOwnPropertyDescriptor,f=Object.freeze,d=Object.seal,p=Object.create,h="undefined"!=typeof Reflect&&Reflect,m=h.apply,y=h.construct;m||(m=function(t,e,n){return t.apply(e,n)}),f||(f=function(t){return t}),d||(d=function(t){return t}),y||(y=function(t,e){return r(t,i(e))});var g,v=S(Array.prototype.forEach),b=S(Array.prototype.pop),O=S(Array.prototype.push),_=S(String.prototype.toLowerCase),A=S(String.prototype.match),w=S(String.prototype.replace),x=S(String.prototype.indexOf),D=S(String.prototype.trim),T=S(RegExp.prototype.test),M=(g=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return y(g,e)});function S(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return m(t,e,r)}}function N(t,e){u&&u(t,null);for(var n=e.length;n--;){var r=e[n];if("string"==typeof r){var i=_(r);i!==r&&(c(e)||(e[n]=i),r=i)}t[r]=!0}return t}function E(t){var e,n=p(null);for(e in t)m(a,t,[e])&&(n[e]=t[e]);return n}function C(t,e){for(;null!==t;){var n=l(t,e);if(n){if(n.get)return S(n.get);if("function"==typeof n.value)return S(n.value)}t=s(t)}return function(t){return console.warn("fallback value for",t),null}}var $=f(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),j=f(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),k=f(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),z=f(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),P=f(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),L=f(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),R=f(["#text"]),I=f(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),U=f(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),F=f(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),H=f(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=d(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=d(/<%[\w\W]*|[\w\W]*%>/gm),Y=d(/^data-[\-\w.\u00B7-\uFFFF]/),G=d(/^aria-[\-\w]+$/),V=d(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Z=d(/^(?:\w+script|data):/i),q=d(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),J=d(/^html$/i),K=function(){return"undefined"==typeof window?null:window},X=function(e,n){if("object"!==t(e)||"function"!=typeof e.createPolicy)return null;var r=null,i="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(i)&&(r=n.currentScript.getAttribute(i));var o="dompurify"+(r?"#"+r:"");try{return e.createPolicy(o,{createHTML:function(t){return t}})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};return function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K(),r=function(t){return e(t)};if(r.version="2.3.8",r.removed=[],!n||!n.document||9!==n.document.nodeType)return r.isSupported=!1,r;var o=n.document,a=n.document,u=n.DocumentFragment,c=n.HTMLTemplateElement,s=n.Node,l=n.Element,d=n.NodeFilter,p=n.NamedNodeMap,h=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,m=n.HTMLFormElement,y=n.DOMParser,g=n.trustedTypes,S=l.prototype,Q=C(S,"cloneNode"),tt=C(S,"nextSibling"),et=C(S,"childNodes"),nt=C(S,"parentNode");if("function"==typeof c){var rt=a.createElement("template");rt.content&&rt.content.ownerDocument&&(a=rt.content.ownerDocument)}var it=X(g,o),ot=it?it.createHTML(""):"",at=a,ut=at.implementation,ct=at.createNodeIterator,st=at.createDocumentFragment,lt=at.getElementsByTagName,ft=o.importNode,dt={};try{dt=E(a).documentMode?a.documentMode:{}}catch(t){}var pt={};r.isSupported="function"==typeof nt&&ut&&void 0!==ut.createHTMLDocument&&9!==dt;var ht,mt,yt=B,gt=W,vt=Y,bt=G,Ot=Z,_t=q,At=V,wt=null,xt=N({},[].concat(i($),i(j),i(k),i(P),i(R))),Dt=null,Tt=N({},[].concat(i(I),i(U),i(F),i(H))),Mt=Object.seal(Object.create(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}})),St=null,Nt=null,Et=!0,Ct=!0,$t=!1,jt=!1,kt=!1,zt=!1,Pt=!1,Lt=!1,Rt=!1,It=!1,Ut=!0,Ft=!0,Ht=!1,Bt={},Wt=null,Yt=N({},["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"]),Gt=null,Vt=N({},["audio","video","img","source","image","track"]),Zt=null,qt=N({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Jt="http://www.w3.org/1998/Math/MathML",Kt="http://www.w3.org/2000/svg",Xt="http://www.w3.org/1999/xhtml",Qt=Xt,te=!1,ee=["application/xhtml+xml","text/html"],ne="text/html",re=null,ie=a.createElement("form"),oe=function(t){return t instanceof RegExp||t instanceof Function},ae=function(e){re&&re===e||(e&&"object"===t(e)||(e={}),e=E(e),wt="ALLOWED_TAGS"in e?N({},e.ALLOWED_TAGS):xt,Dt="ALLOWED_ATTR"in e?N({},e.ALLOWED_ATTR):Tt,Zt="ADD_URI_SAFE_ATTR"in e?N(E(qt),e.ADD_URI_SAFE_ATTR):qt,Gt="ADD_DATA_URI_TAGS"in e?N(E(Vt),e.ADD_DATA_URI_TAGS):Vt,Wt="FORBID_CONTENTS"in e?N({},e.FORBID_CONTENTS):Yt,St="FORBID_TAGS"in e?N({},e.FORBID_TAGS):{},Nt="FORBID_ATTR"in e?N({},e.FORBID_ATTR):{},Bt="USE_PROFILES"in e&&e.USE_PROFILES,Et=!1!==e.ALLOW_ARIA_ATTR,Ct=!1!==e.ALLOW_DATA_ATTR,$t=e.ALLOW_UNKNOWN_PROTOCOLS||!1,jt=e.SAFE_FOR_TEMPLATES||!1,kt=e.WHOLE_DOCUMENT||!1,Lt=e.RETURN_DOM||!1,Rt=e.RETURN_DOM_FRAGMENT||!1,It=e.RETURN_TRUSTED_TYPE||!1,Pt=e.FORCE_BODY||!1,Ut=!1!==e.SANITIZE_DOM,Ft=!1!==e.KEEP_CONTENT,Ht=e.IN_PLACE||!1,At=e.ALLOWED_URI_REGEXP||At,Qt=e.NAMESPACE||Xt,e.CUSTOM_ELEMENT_HANDLING&&oe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Mt.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&oe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Mt.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Mt.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ht=ht=-1===ee.indexOf(e.PARSER_MEDIA_TYPE)?ne:e.PARSER_MEDIA_TYPE,mt="application/xhtml+xml"===ht?function(t){return t}:_,jt&&(Ct=!1),Rt&&(Lt=!0),Bt&&(wt=N({},i(R)),Dt=[],!0===Bt.html&&(N(wt,$),N(Dt,I)),!0===Bt.svg&&(N(wt,j),N(Dt,U),N(Dt,H)),!0===Bt.svgFilters&&(N(wt,k),N(Dt,U),N(Dt,H)),!0===Bt.mathMl&&(N(wt,P),N(Dt,F),N(Dt,H))),e.ADD_TAGS&&(wt===xt&&(wt=E(wt)),N(wt,e.ADD_TAGS)),e.ADD_ATTR&&(Dt===Tt&&(Dt=E(Dt)),N(Dt,e.ADD_ATTR)),e.ADD_URI_SAFE_ATTR&&N(Zt,e.ADD_URI_SAFE_ATTR),e.FORBID_CONTENTS&&(Wt===Yt&&(Wt=E(Wt)),N(Wt,e.FORBID_CONTENTS)),Ft&&(wt["#text"]=!0),kt&&N(wt,["html","head","body"]),wt.table&&(N(wt,["tbody"]),delete St.tbody),f&&f(e),re=e)},ue=N({},["mi","mo","mn","ms","mtext"]),ce=N({},["foreignobject","desc","title","annotation-xml"]),se=N({},["title","style","font","a","script"]),le=N({},j);N(le,k),N(le,z);var fe=N({},P);N(fe,L);var de=function(t){var e=nt(t);e&&e.tagName||(e={namespaceURI:Xt,tagName:"template"});var n=_(t.tagName),r=_(e.tagName);return t.namespaceURI===Kt?e.namespaceURI===Xt?"svg"===n:e.namespaceURI===Jt?"svg"===n&&("annotation-xml"===r||ue[r]):Boolean(le[n]):t.namespaceURI===Jt?e.namespaceURI===Xt?"math"===n:e.namespaceURI===Kt?"math"===n&&ce[r]:Boolean(fe[n]):t.namespaceURI===Xt&&!(e.namespaceURI===Kt&&!ce[r])&&!(e.namespaceURI===Jt&&!ue[r])&&!fe[n]&&(se[n]||!le[n])},pe=function(t){O(r.removed,{element:t});try{t.parentNode.removeChild(t)}catch(e){try{t.outerHTML=ot}catch(e){t.remove()}}},he=function(t,e){try{O(r.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){O(r.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!Dt[t])if(Lt||Rt)try{pe(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},me=function(t){var e,n;if(Pt)t="<remove></remove>"+t;else{var r=A(t,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ht&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");var i=it?it.createHTML(t):t;if(Qt===Xt)try{e=(new y).parseFromString(i,ht)}catch(t){}if(!e||!e.documentElement){e=ut.createDocument(Qt,"template",null);try{e.documentElement.innerHTML=te?"":i}catch(t){}}var o=e.body||e.documentElement;return t&&n&&o.insertBefore(a.createTextNode(n),o.childNodes[0]||null),Qt===Xt?lt.call(e,kt?"html":"body")[0]:kt?e.documentElement:o},ye=function(t){return ct.call(t.ownerDocument||t,t,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT,null,!1)},ge=function(t){return t instanceof m&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof h)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore)},ve=function(e){return"object"===t(s)?e instanceof s:e&&"object"===t(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},be=function(t,e,n){pt[t]&&v(pt[t],(function(t){t.call(r,e,n,re)}))},Oe=function(t){var e;if(be("beforeSanitizeElements",t,null),ge(t))return pe(t),!0;if(T(/[\u0080-\uFFFF]/,t.nodeName))return pe(t),!0;var n=mt(t.nodeName);if(be("uponSanitizeElement",t,{tagName:n,allowedTags:wt}),t.hasChildNodes()&&!ve(t.firstElementChild)&&(!ve(t.content)||!ve(t.content.firstElementChild))&&T(/<[/\w]/g,t.innerHTML)&&T(/<[/\w]/g,t.textContent))return pe(t),!0;if("select"===n&&T(/<template/i,t.innerHTML))return pe(t),!0;if(!wt[n]||St[n]){if(!St[n]&&Ae(n)){if(Mt.tagNameCheck instanceof RegExp&&T(Mt.tagNameCheck,n))return!1;if(Mt.tagNameCheck instanceof Function&&Mt.tagNameCheck(n))return!1}if(Ft&&!Wt[n]){var i=nt(t)||t.parentNode,o=et(t)||t.childNodes;if(o&&i)for(var a=o.length-1;a>=0;--a)i.insertBefore(Q(o[a],!0),tt(t))}return pe(t),!0}return t instanceof l&&!de(t)?(pe(t),!0):"noscript"!==n&&"noembed"!==n||!T(/<\/no(script|embed)/i,t.innerHTML)?(jt&&3===t.nodeType&&(e=t.textContent,e=w(e,yt," "),e=w(e,gt," "),t.textContent!==e&&(O(r.removed,{element:t.cloneNode()}),t.textContent=e)),be("afterSanitizeElements",t,null),!1):(pe(t),!0)},_e=function(t,e,n){if(Ut&&("id"===e||"name"===e)&&(n in a||n in ie))return!1;if(Ct&&!Nt[e]&&T(vt,e));else if(Et&&T(bt,e));else if(!Dt[e]||Nt[e]){if(!(Ae(t)&&(Mt.tagNameCheck instanceof RegExp&&T(Mt.tagNameCheck,t)||Mt.tagNameCheck instanceof Function&&Mt.tagNameCheck(t))&&(Mt.attributeNameCheck instanceof RegExp&&T(Mt.attributeNameCheck,e)||Mt.attributeNameCheck instanceof Function&&Mt.attributeNameCheck(e))||"is"===e&&Mt.allowCustomizedBuiltInElements&&(Mt.tagNameCheck instanceof RegExp&&T(Mt.tagNameCheck,n)||Mt.tagNameCheck instanceof Function&&Mt.tagNameCheck(n))))return!1}else if(Zt[e]);else if(T(At,w(n,_t,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==x(n,"data:")||!Gt[t])if($t&&!T(Ot,w(n,_t,"")));else if(n)return!1;return!0},Ae=function(t){return t.indexOf("-")>0},we=function(t){var e,n,i,o;be("beforeSanitizeAttributes",t,null);var a=t.attributes;if(a){var u={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Dt};for(o=a.length;o--;){var c=e=a[o],s=c.name,l=c.namespaceURI;if(n="value"===s?e.value:D(e.value),i=mt(s),u.attrName=i,u.attrValue=n,u.keepAttr=!0,u.forceKeepAttr=void 0,be("uponSanitizeAttribute",t,u),n=u.attrValue,!u.forceKeepAttr&&(he(s,t),u.keepAttr))if(T(/\/>/i,n))he(s,t);else{jt&&(n=w(n,yt," "),n=w(n,gt," "));var f=mt(t.nodeName);if(_e(f,i,n))try{l?t.setAttributeNS(l,s,n):t.setAttribute(s,n),b(r.removed)}catch(t){}}}be("afterSanitizeAttributes",t,null)}},xe=function t(e){var n,r=ye(e);for(be("beforeSanitizeShadowDOM",e,null);n=r.nextNode();)be("uponSanitizeShadowNode",n,null),Oe(n)||(n.content instanceof u&&t(n.content),we(n));be("afterSanitizeShadowDOM",e,null)};return r.sanitize=function(e,i){var a,c,l,f,d;if((te=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ve(e)){if("function"!=typeof e.toString)throw M("toString is not a function");if("string"!=typeof(e=e.toString()))throw M("dirty is not a string, aborting")}if(!r.isSupported){if("object"===t(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof e)return n.toStaticHTML(e);if(ve(e))return n.toStaticHTML(e.outerHTML)}return e}if(zt||ae(i),r.removed=[],"string"==typeof e&&(Ht=!1),Ht){if(e.nodeName){var p=mt(e.nodeName);if(!wt[p]||St[p])throw M("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof s)1===(c=(a=me("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===c.nodeName||"HTML"===c.nodeName?a=c:a.appendChild(c);else{if(!Lt&&!jt&&!kt&&-1===e.indexOf("<"))return it&&It?it.createHTML(e):e;if(!(a=me(e)))return Lt?null:It?ot:""}a&&Pt&&pe(a.firstChild);for(var h=ye(Ht?e:a);l=h.nextNode();)3===l.nodeType&&l===f||Oe(l)||(l.content instanceof u&&xe(l.content),we(l),f=l);if(f=null,Ht)return e;if(Lt){if(Rt)for(d=st.call(a.ownerDocument);a.firstChild;)d.appendChild(a.firstChild);else d=a;return Dt.shadowroot&&(d=ft.call(o,d,!0)),d}var m=kt?a.outerHTML:a.innerHTML;return kt&&wt["!doctype"]&&a.ownerDocument&&a.ownerDocument.doctype&&a.ownerDocument.doctype.name&&T(J,a.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+a.ownerDocument.doctype.name+">\n"+m),jt&&(m=w(m,yt," "),m=w(m,gt," ")),it&&It?it.createHTML(m):m},r.setConfig=function(t){ae(t),zt=!0},r.clearConfig=function(){re=null,zt=!1},r.isValidAttribute=function(t,e,n){re||ae({});var r=mt(t),i=mt(e);return _e(r,i,n)},r.addHook=function(t,e){"function"==typeof e&&(pt[t]=pt[t]||[],O(pt[t],e))},r.removeHook=function(t){if(pt[t])return b(pt[t])},r.removeHooks=function(t){pt[t]&&(pt[t]=[])},r.removeAllHooks=function(){pt={}},r}()}()},6550:function(t,e,n){"use strict";var r,i=this&&this.__extends||(r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},r(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),a=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&o(e,t,n);return a(e,t),e},c=this&&this.__spreadArray||function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.Evaluator=e.BaseEvaluator=void 0;var s=u(n(2373)),l=function(){function t(){}return t.evaluator=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return f.noeval?(console.warn("No evaluations allowed for this renderer."),s.noop):"function"==typeof t?t:("object"==typeof e[0]&&(e=s.keys(e[0])),new(Function.bind.apply(Function,c(c([void 0],e,!1),[t],!1))))},t.interpolateString=function(t,e,n){return void 0===n&&(n={}),t.replace(/({{\s*(.*?)\s*}})/g,(function(t,r,i){if(-1!==i.indexOf("("))return i.replace(/([^\(]+)\(([^\)]+)\s*\);?/,(function(t,r,i){r=s.trim(r);var o=s.get(e,r);return o?(i&&(i=i.split(",").map((function(t){return 0===(t=s.trim(t)).indexOf('"')||0===t.indexOf("'")?t.substring(1,t.length-1):s.get(e,t)}))),f.evaluate(o,i,"",!1,e,n)):""}));var o=i;-1!==i.indexOf("?")&&(o=i.replace(/\?\./g,"."));for(var a=o.split("||").map((function(t){return t.trim()})),u="",c="",l=0;l<a.length&&(c=a[l],!(u=s.get(e,c)));l++);return n.data&&s.set(n.data,c,u),u}))},t.interpolate=function(t,e,n){if(void 0===n&&(n={}),"function"==typeof t)try{return t(e)}catch(t){return console.warn("Error interpolating template",t,e),t.message}return f.interpolateString(String(t),e,n)},t.evaluate=function(e,n,r,i,o,a){void 0===n&&(n={}),void 0===r&&(r=""),void 0===i&&(i=!1),void 0===o&&(o={}),void 0===a&&(a={});var u=null;a=s.isObject(a)?a:{noeval:a};var c=n.component?n.component:{key:"unknown"};!n.form&&n.instance&&(n.form=s.get(n.instance,"root._form",{}));var l=c.key;if("string"==typeof e){r&&(e+=";return ".concat(r)),i&&(e=t.interpolate(e,n,a));try{e=f.noeval||a.noeval?s.noop:f.evaluator(e,n,o),n=s.values(n)}catch(t){console.warn("An error occured within the custom function for ".concat(l),t),u=null,e=!1}}if("function"==typeof e)try{u=f.execute(e,n,o,a)}catch(t){u=null,console.warn("An error occured within custom function for ".concat(l),t)}else e&&console.warn("Unknown function type for ".concat(l));return u},t.execute=function(t,e,n,r){if(void 0===n&&(n={}),void 0===r&&(r={}),r=s.isObject(r)?r:{noeval:r},!f.noeval&&!r.noeval)return Array.isArray(e)?t.apply(n,e):t.call(n,e);console.warn("No evaluations allowed for this renderer.")},t.templateSettings={interpolate:/{{([\s\S]+?)}}/g,evaluate:/\{%([\s\S]+?)%\}/g,escape:/\{\{\{([\s\S]+?)\}\}\}/g},t.noeval=!1,t}();e.BaseEvaluator=l;var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.registerEvaluator=function(t){Object.keys(t).forEach((function(n){e[n]=t[n]}))},e}(l);e.Evaluator=f},6444:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.dayjs=e.getDateSetting=e.formatDate=e.momentDate=e.convertFormatToMoment=e.currentTimezone=void 0;var i=r(n(7484));e.dayjs=i.default;var o=r(n(9387)),a=r(n(178)),u=n(2373),c=n(6550);function s(){return i.default.tz.guess()}function l(t){return t.replace(/y/g,"Y").replace(/d/g,"D").replace(/E/g,"d").replace(/a/g,"A").replace(/U/g,"X")}i.default.extend(a.default),i.default.extend(o.default),e.currentTimezone=s,e.convertFormatToMoment=l,e.momentDate=function(t,e,n){var r=(0,i.default)(t);return"UTC"===n?i.default.utc():n!==s()||e&&e.match(/\s(z$|z\s)/)?r.tz(n):r},e.formatDate=function(t,e,n){var r=(0,i.default)(t);return"UTC"===n?"".concat(i.default.utc().format(l(e))," UTC"):n?r.tz(n).format("".concat(l(e)," z")):r.format(l(e))},e.getDateSetting=function(t){if((0,u.isNil)(t)||(0,u.isNaN)(t)||""===t)return null;if(t instanceof Date)return t;if("function"==typeof t.toDate)return t.isValid()?t.toDate():null;var e="string"!=typeof t||-1===t.indexOf("moment(")?(0,i.default)(t):null;if(e&&e.isValid())return e.toDate();e=null;try{var n=c.Evaluator.evaluator("return ".concat(t,";"),"moment")(i.default);"string"==typeof n?e=(0,i.default)(n):"function"==typeof n.toDate?e=(0,i.default)(n.toDate().toUTCString()):n instanceof Date&&(e=(0,i.default)(n))}catch(t){return null}return e&&e.isValid()?e.toDate():null}},2593:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.empty=e.removeChildFrom=e.prependTo=e.appendTo=void 0,e.appendTo=function(t,e){e&&t&&(null==e||e.appendChild(t))},e.prependTo=function(t,e){if(e&&t)if(e.firstChild)try{e.insertBefore(t,e.firstChild)}catch(n){console.warn(n),e.appendChild(t)}else e.appendChild(t)},e.removeChildFrom=function(t,e){if(e&&t&&e.contains(t))try{e.removeChild(t)}catch(t){console.warn(t)}},e.empty=function(t){if(t)for(;t.firstChild;)t.removeChild(t.firstChild)}},6176:function(t,e,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},r.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueName=e.guid=e.flattenComponents=e.eachComponent=void 0;var i=n(6550),o=n(2373);function a(t,e,n,i,o){t&&(i=i||"",t.forEach((function(u){if(u){var c=u.columns&&Array.isArray(u.columns),s=u.rows&&Array.isArray(u.rows),l=u.components&&Array.isArray(u.components),f=!1,d=u.key?i?"".concat(i,".").concat(u.key):u.key:"";o&&(u.parent=r({},o),delete u.parent.components,delete u.parent.componentMap,delete u.parent.columns,delete u.parent.rows);var p=c||s||l||["htmlelement","content"].indexOf(u.type)>-1;(n||u.tree||!p)&&(f=e(u,d,t));var h=function(){return u.key&&!["panel","table","well","columns","fieldset","tabs","form"].includes(u.type)&&(["datagrid","container","editgrid","address","dynamicWizard"].includes(u.type)||u.tree)?d:u.key&&"form"===u.type?"".concat(d,".data"):i};f||(c?u.columns.forEach((function(t){return a(t.components,e,n,h(),o?u:null)})):s?u.rows.forEach((function(t){Array.isArray(t)&&t.forEach((function(t){return a(t.components,e,n,h(),o?u:null)}))})):l&&a(u.components,e,n,h(),o?u:null))}})))}function u(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}e.eachComponent=a,e.flattenComponents=function(t,e){var n={};return a(t,(function(t,e){n[e]=t}),e),n},e.guid=u,e.uniqueName=function(t,e,n){(e=e||"{{fileName}}-{{guid}}").includes("{{guid}}")||(e="".concat(e,"-{{guid}}"));var r=t.split("."),a=r.slice(0,r.length-1).join("."),c=r.length>1?".".concat((0,o.last)(r)):"";return a=a.substr(0,100),n=Object.assign(n||{},{fileName:a,guid:u()}),"".concat(i.Evaluator.interpolate(e,n)).concat(c).replace(/[^0-9a-zA-Z.\-_ ]/g,"-")}},5928:function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(e,n);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,r,i)}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||