(function(){var __webpack_modules__={77162:function(e,t,n){e.exports=n(25047)},57647:function(e){ /*! * clipboard.js v2.0.11 * https://clipboardjs.com/ * * Licensed MIT © Zeno Rocha */ var t;t=function(){return function(){var e={686:function(e,t,n){"use strict";n.d(t,{default:function(){return k}});var r=n(279),i=n.n(r),a=n(370),o=n.n(a),s=n(817),u=n.n(s);function l(e){try{return document.execCommand(e)}catch(e){return!1}}var f=function(e){var t=u()(e);return l("cut"),t},c=function(e,t){var n=function(e){var t="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[t?"right":"left"]="-9999px";var r=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(r,"px"),n.setAttribute("readonly",""),n.value=e,n}(e);t.container.appendChild(n);var r=u()(n);return l("copy"),n.remove(),r},d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"==typeof e?n=c(e,t):e instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null==e?void 0:e.type)?n=c(e.value,t):(n=u()(e),l("copy")),n};function h(e){return h="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},h(e)}var p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.action,n=void 0===t?"copy":t,r=e.container,i=e.target,a=e.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==h(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return a?d(a,{container:r}):i?"cut"===n?f(i):d(i,{container:r}):void 0};function m(e){return m="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},m(e)}function g(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===m(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=o()(e,"click",(function(e){return t.onClick(e)}))}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget,n=this.action(t)||"copy",r=p({action:n,container:this.container,target:this.target(t),text:this.text(t)});this.emit(r?"success":"error",{action:n,text:r,trigger:t,clearSelection:function(){t&&t.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(e){return v("action",e)}},{key:"defaultTarget",value:function(e){var t=v("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return v("text",e)}},{key:"destroy",value:function(){this.listener.destroy()}}],r=[{key:"copy",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return d(e,t)}},{key:"cut",value:function(e){return f(e)}},{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach((function(e){n=n&&!!document.queryCommandSupported(e)})),n}}],n&&g(t.prototype,n),r&&g(t,r),a}(i()),k=w},828:function(e){if("undefined"!=typeof Element&&!Element.prototype.matches){var t=Element.prototype;t.matches=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}e.exports=function(e,t){for(;e&&9!==e.nodeType;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},438:function(e,t,n){var r=n(828);function i(e,t,n,r,i){var o=a.apply(this,arguments);return e.addEventListener(n,o,i),{destroy:function(){e.removeEventListener(n,o,i)}}}function a(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}e.exports=function(e,t,n,r,a){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,(function(e){return i(e,t,n,r,a)})))}},879:function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},370:function(e,t,n){var r=n(879),i=n(438);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return function(e,t,n){return e.addEventListener(t,n),{destroy:function(){e.removeEventListener(t,n)}}}(e,t,n);if(r.nodeList(e))return function(e,t,n){return Array.prototype.forEach.call(e,(function(e){e.addEventListener(t,n)})),{destroy:function(){Array.prototype.forEach.call(e,(function(e){e.removeEventListener(t,n)}))}}}(e,t,n);if(r.string(e))return function(e,t,n){return i(document.body,e,t,n)}(e,t,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}},817:function(e){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}},279:function(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{border-top-color:initial;border-width:8px 8px 0;bottom:-7px;left:0;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:initial;border-width:0 8px 8px;left:0;top:-7px;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-left-color:initial;border-width:8px 0 8px 8px;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{border-right-color:initial;border-width:8px 8px 8px 0;left:-7px;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{color:#333;height:16px;width:16px}.tippy-arrow:before{border-color:transparent;border-style:solid;content:"";position:absolute}.tippy-content{padding:5px 9px;position:relative;z-index:1}',""]),t.Z=i},82609:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var a=0;a=r)return!1;var i=n("GET_MIN_FILE_SIZE");return!(null!==i&&e.size<=i)})),t("LOAD_FILE",(function(e,t){var n=t.query;return new Promise((function(t,r){if(!n("GET_ALLOW_FILE_SIZE_VALIDATION"))return t(e);var o=n("GET_FILE_VALIDATE_SIZE_FILTER");if(o&&!o(e))return t(e);var s=n("GET_MAX_FILE_SIZE");if(null!==s&&e.size>=s)r({status:{main:n("GET_LABEL_MAX_FILE_SIZE_EXCEEDED"),sub:i(n("GET_LABEL_MAX_FILE_SIZE"),{filesize:a(s,".",n("GET_FILE_SIZE_BASE"),n("GET_FILE_SIZE_LABELS",n))})}});else{var u=n("GET_MIN_FILE_SIZE");if(null!==u&&e.size<=u)r({status:{main:n("GET_LABEL_MIN_FILE_SIZE_EXCEEDED"),sub:i(n("GET_LABEL_MIN_FILE_SIZE"),{filesize:a(u,".",n("GET_FILE_SIZE_BASE"),n("GET_FILE_SIZE_LABELS",n))})}});else{var l=n("GET_MAX_TOTAL_FILE_SIZE");if(null!==l&&n("GET_ACTIVE_ITEMS").reduce((function(e,t){return e+t.fileSize}),0)>l)return void r({status:{main:n("GET_LABEL_MAX_TOTAL_FILE_SIZE_EXCEEDED"),sub:i(n("GET_LABEL_MAX_TOTAL_FILE_SIZE"),{filesize:a(l,".",n("GET_FILE_SIZE_BASE"),n("GET_FILE_SIZE_LABELS",n))})}});t(e)}}}))})),{options:{allowFileSizeValidation:[!0,r.BOOLEAN],maxFileSize:[null,r.INT],minFileSize:[null,r.INT],maxTotalFileSize:[null,r.INT],fileValidateSizeFilter:[null,r.FUNCTION],labelMinFileSizeExceeded:["File is too small",r.STRING],labelMinFileSize:["Minimum file size is {filesize}",r.STRING],labelMaxFileSizeExceeded:["File is too large",r.STRING],labelMaxFileSize:["Maximum file size is {filesize}",r.STRING],labelMaxTotalFileSizeExceeded:["Maximum total size exceeded",r.STRING],labelMaxTotalFileSize:["Maximum total file size is {filesize}",r.STRING]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:e})),e}()},87645:function(e){ /*! * FilePondPluginFileValidateType 1.2.7 * Licensed under MIT, https://opensource.org/licenses/MIT/ * Please visit https://pqina.nl/filepond/ for details. */ e.exports=function(){"use strict";var e=function(e){var t=e.addFilter,n=e.utils,r=n.Type,i=n.isString,a=n.replaceInString,o=n.guesstimateMimeType,s=n.getExtensionFromFilename,u=n.getFilenameFromURL,l=function(e,t){return(/^[^/]+/.exec(e)||[]).pop()===t.slice(0,-2)},f=function(e,t){return e.some((function(e){return/\*$/.test(e)?l(t,e):e===t}))},c=function(e){var t="";if(i(e)){var n=u(e),r=s(n);r&&(t=o(r))}else t=e.type;return t},d=function(e,t,n){if(0===t.length)return!0;var r=c(e);return n?new Promise((function(i,a){n(e,r).then((function(e){f(t,e)?i():a()})).catch(a)})):f(t,r)},h=function(e){return function(t){return null!==e[t]&&(e[t]||t)}};return t("SET_ATTRIBUTE_TO_OPTION_MAP",(function(e){return Object.assign(e,{accept:"acceptedFileTypes"})})),t("ALLOW_HOPPER_ITEM",(function(e,t){var n=t.query;return!n("GET_ALLOW_FILE_TYPE_VALIDATION")||d(e,n("GET_ACCEPTED_FILE_TYPES"))})),t("LOAD_FILE",(function(e,t){var n=t.query;return new Promise((function(t,r){if(n("GET_ALLOW_FILE_TYPE_VALIDATION")){var i=n("GET_ACCEPTED_FILE_TYPES"),o=n("GET_FILE_VALIDATE_TYPE_DETECT_TYPE"),s=d(e,i,o),u=function(){var e=i.map(h(n("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES_MAP"))).filter((function(e){return!1!==e}));r({status:{main:n("GET_LABEL_FILE_TYPE_NOT_ALLOWED"),sub:a(n("GET_FILE_VALIDATE_TYPE_LABEL_EXPECTED_TYPES"),{allTypes:e.join(", "),allButLastType:e.slice(0,-1).join(", "),lastType:e[e.length-1]})}})};if("boolean"==typeof s)return s?t(e):u();s.then((function(){t(e)})).catch(u)}else t(e)}))})),{options:{allowFileTypeValidation:[!0,r.BOOLEAN],acceptedFileTypes:[[],r.ARRAY],labelFileTypeNotAllowed:["File is of invalid type",r.STRING],fileValidateTypeLabelExpectedTypes:["Expects {allButLastType} or {lastType}",r.STRING],fileValidateTypeLabelExpectedTypesMap:[{},r.OBJECT],fileValidateTypeDetectType:[null,r.FUNCTION]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:e})),e}()},54855:function(e){ /*! * FilePondPluginImageExifOrientation 1.0.11 * Licensed under MIT, https://opensource.org/licenses/MIT/ * Please visit https://pqina.nl/filepond/ for details. */ e.exports=function(){"use strict";var e=function(e){return/^image\/jpeg/.test(e.type)},t={JPEG:65496,APP1:65505,EXIF:1165519206,TIFF:18761,Orientation:274,Unknown:65280},n=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.getUint16(t,n)},r=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e.getUint32(t,n)},i=function(e){return new Promise((function(i,a){var o=new FileReader;o.onload=function(e){var a=new DataView(e.target.result);if(n(a,0)===t.JPEG){for(var o=a.byteLength,s=2;su.naturalHeight},u.src=o;var l=function(){return s},f=function(t){var n=t.addFilter,r=t.utils,a=r.Type,o=r.isFile;return n("DID_LOAD_ITEM",(function(t,n){var r=n.query;return new Promise((function(n,a){var s=t.file;if(!(o(s)&&e(s)&&r("GET_ALLOW_IMAGE_EXIF_ORIENTATION")&&l()))return n(t);i(s).then((function(e){t.setMetadata("exif",{orientation:e}),n(t)}))}))})),{options:{allowImageExifOrientation:[!0,a.BOOLEAN]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:f})),f}()},32496:function(e,t){ /*! * FilePond 4.30.3 * Licensed under MIT, https://opensource.org/licenses/MIT/ * Please visit https://pqina.nl/filepond/ for details. */ !function(e){"use strict";var t=function(e){return e instanceof HTMLElement},n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=Object.assign({},e),i=[],a=[],o=function(){var e=[].concat(a);a.length=0,e.forEach((function(e){var t=e.type,n=e.data;s(t,n)}))},s=function(e,t,n){!n||document.hidden?(c[e]&&c[e](t),i.push({type:e,data:t})):a.push({type:e,data:t})},u=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i2&&void 0!==arguments[2]?arguments[2]:null;if(null===n)return e.getAttribute(t)||e.hasAttribute(t);e.setAttribute(t,n)},s="http://www.w3.org/2000/svg",u=["svg","path"],l=function(e){return u.includes(e)},f=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof t&&(n=t,t=null);var r=l(e)?document.createElementNS(s,e):document.createElement(e);return t&&(l(e)?o(r,"class",t):r.className=t),i(n,(function(e,t){o(r,e,t)})),r},c=function(e){return function(t,n){void 0!==n&&e.children[n]?e.insertBefore(t,e.children[n]):e.appendChild(t)}},d=function(e,t){return function(e,n){return void 0!==n?t.splice(n,0,e):t.push(e),e}},h=function(e,t){return function(n){return t.splice(t.indexOf(n),1),n.element.parentNode&&e.removeChild(n.element),n}},p="undefined"!=typeof window&&void 0!==window.document,m=function(){return p},g="children"in(m()?f("svg"):{})?function(e){return e.children.length}:function(e){return e.childNodes.length},_=function(e,t,n,r){var i=n[0]||e.left,a=n[1]||e.top,o=i+e.width,s=a+e.height*(r[1]||1),u={element:Object.assign({},e),inner:{left:e.left,top:e.top,right:e.right,bottom:e.bottom},outer:{left:i,top:a,right:o,bottom:s}};return t.filter((function(e){return!e.isRectIgnored()})).map((function(e){return e.rect})).forEach((function(e){F(u.inner,Object.assign({},e.inner)),F(u.outer,Object.assign({},e.outer))})),b(u.inner),u.outer.bottom+=u.element.marginBottom,u.outer.right+=u.element.marginRight,b(u.outer),u},F=function(e,t){t.top+=e.top,t.right+=e.left,t.bottom+=e.top,t.left+=e.left,t.bottom>e.bottom&&(e.bottom=t.bottom),t.right>e.right&&(e.right=t.right)},b=function(e){e.width=e.right-e.left,e.height=e.bottom-e.top},y=function(e){return"number"==typeof e},v=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.001;return Math.abs(e-t)0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiffness,n=void 0===t?.5:t,r=e.damping,i=void 0===r?.75:r,o=e.mass,s=void 0===o?10:o,u=null,l=null,f=0,c=!1,d=a({interpolate:function(e,t){if(!c){if(!y(u)||!y(l))return c=!0,void(f=0);v(l+=f+=-(l-u)*n/s,u,f*=i)||t?(l=u,f=0,c=!0,d.onupdate(l),d.oncomplete(l)):d.onupdate(l)}},target:{set:function(e){if(y(e)&&!y(l)&&(l=e),null===u&&(u=e,l=e),l===(u=e)||void 0===u)return c=!0,f=0,d.onupdate(l),void d.oncomplete(l);c=!1},get:function(){return u}},resting:{get:function(){return c}},onupdate:function(e){},oncomplete:function(e){}});return d},k=function(e){return e<.5?2*e*e:(4-2*e)*e-1},E=function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.duration,i=void 0===r?500:r,o=n.easing,s=void 0===o?k:o,u=n.delay,l=void 0===u?0:u,f=null,c=!0,d=!1,h=null,p=a({interpolate:function(n,r){c||null===h||(null===f&&(f=n),n-f=i||r?(e=1,t=d?0:1,p.onupdate(t*h),p.oncomplete(t*h),c=!0):(t=e/i,p.onupdate((e>=0?s(d?1-t:t):0)*h))))},target:{get:function(){return d?0:h},set:function(e){if(null===h)return h=e,p.onupdate(e),void p.oncomplete(e);e3&&void 0!==arguments[3]&&arguments[3];(t=Array.isArray(t)?t:[t]).forEach((function(t){e.forEach((function(e){var i=e,a=function(){return n[e]},o=function(t){return n[e]=t};"object"==typeof e&&(i=e.key,a=e.getter||a,o=e.setter||o),t[i]&&!r||(t[i]={get:a,set:o})}))}))},S=function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewInternalAPI,a=e.viewExternalAPI,o=Object.assign({},n),s=[];return i(t,(function(e,t){var i=D(t);i&&(i.onupdate=function(t){n[e]=t},i.target=o[e],C([{key:e,setter:function(e){i.target!==e&&(i.target=e)},getter:function(){return n[e]}}],[r,a],n,!0),s.push(i))})),{write:function(e){var t=document.hidden,n=!0;return s.forEach((function(r){r.resting||(n=!1),r.interpolate(e,t)})),n},destroy:function(){}}},T=function(e){return function(t,n){e.addEventListener(t,n)}},P=function(e){return function(t,n){e.removeEventListener(t,n)}},O=function(e){e.mixinConfig,e.viewProps,e.viewInternalAPI;var t=e.viewExternalAPI,n=(e.viewState,e.view),r=[],i=T(n.element),a=P(n.element);return t.on=function(e,t){r.push({type:e,fn:t}),i(e,t)},t.off=function(e,t){r.splice(r.findIndex((function(n){return n.type===e&&n.fn===t})),1),a(e,t)},{write:function(){return!0},destroy:function(){r.forEach((function(e){a(e.type,e.fn)}))}}},A=function(e){return null!=e},j={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},B=function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewInternalAPI,i=e.viewExternalAPI,a=e.view,o=Object.assign({},n),s={};C(t,[r,i],n);var u=function(){return[n.translateX||0,n.translateY||0]},l=function(){return[n.scaleX||0,n.scaleY||0]},f=function(){return a.rect?_(a.rect,a.childViews,u(),l()):null};return r.rect={get:f},i.rect={get:f},t.forEach((function(e){n[e]=void 0===o[e]?j[e]:o[e]})),{write:function(){if(I(s,n))return M(a.element,n),Object.assign(s,Object.assign({},n)),!0},destroy:function(){}}},I=function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!0;for(var n in t)if(t[n]!==e[n])return!0;return!1},M=function(e,t){var n=t.opacity,r=t.perspective,i=t.translateX,a=t.translateY,o=t.scaleX,s=t.scaleY,u=t.rotateX,l=t.rotateY,f=t.rotateZ,c=t.originX,d=t.originY,h=t.width,p=t.height,m="",g="";(A(c)||A(d))&&(g+="transform-origin: "+(c||0)+"px "+(d||0)+"px;"),A(r)&&(m+="perspective("+r+"px) "),(A(i)||A(a))&&(m+="translate3d("+(i||0)+"px, "+(a||0)+"px, 0) "),(A(o)||A(s))&&(m+="scale3d("+(A(o)?o:1)+", "+(A(s)?s:1)+", 1) "),A(f)&&(m+="rotateZ("+f+"rad) "),A(u)&&(m+="rotateX("+u+"rad) "),A(l)&&(m+="rotateY("+l+"rad) "),m.length&&(g+="transform:"+m+";"),A(n)&&(g+="opacity:"+n+";",0===n&&(g+="visibility:hidden;"),n<1&&(g+="pointer-events:none;")),A(p)&&(g+="height:"+p+"px;"),A(h)&&(g+="width:"+h+"px;");var _=e.elementCurrentStyle||"";g.length===_.length&&g===_||(e.style.cssText=g,e.elementCurrentStyle=g)},R={styles:B,listeners:O,animations:S,apis:function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewExternalAPI;C(t,r,n)}},q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.layoutCalculated||(e.paddingTop=parseInt(n.paddingTop,10)||0,e.marginTop=parseInt(n.marginTop,10)||0,e.marginRight=parseInt(n.marginRight,10)||0,e.marginBottom=parseInt(n.marginBottom,10)||0,e.marginLeft=parseInt(n.marginLeft,10)||0,t.layoutCalculated=!0),e.left=t.offsetLeft||0,e.top=t.offsetTop||0,e.width=t.offsetWidth||0,e.height=t.offsetHeight||0,e.right=e.left+e.width,e.bottom=e.top+e.height,e.scrollTop=t.scrollTop,e.hidden=null===t.offsetParent,e},L=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tag,n=void 0===t?"div":t,r=e.name,i=void 0===r?null:r,o=e.attributes,s=void 0===o?{}:o,u=e.read,l=void 0===u?function(){}:u,p=e.write,m=void 0===p?function(){}:p,F=e.create,b=void 0===F?function(){}:F,y=e.destroy,v=void 0===y?function(){}:y,w=e.filterFrameActionsForChild,k=void 0===w?function(e,t){return t}:w,E=e.didCreateView,x=void 0===E?function(){}:E,D=e.didWriteView,C=void 0===D?function(){}:D,S=e.ignoreRect,T=void 0!==S&&S,P=e.ignoreRectUpdate,O=void 0!==P&&P,A=e.mixins,j=void 0===A?[]:A;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=f(n,"filepond--"+i,s),o=window.getComputedStyle(r,null),u=q(),p=null,F=!1,y=[],w=[],E={},D={},S=[m],P=[l],A=[v],B=function(){return r},I=function(){return y.concat()},M=function(){return E},L=function(e){return function(t,n){return t(e,n)}},$=function(){return p||(p=_(u,y,[0,0],[1,1]))},N=function(){p=null,y.forEach((function(e){return e._read()})),!(O&&u.width&&u.height)&&q(u,r,o);var e={root:Y,props:t,rect:u};P.forEach((function(t){return t(e)}))},z=function(e,n,r){var i=0===n.length;return S.forEach((function(a){!1===a({props:t,root:Y,actions:n,timestamp:e,shouldOptimize:r})&&(i=!1)})),w.forEach((function(t){!1===t.write(e)&&(i=!1)})),y.filter((function(e){return!!e.element.parentNode})).forEach((function(t){t._write(e,k(t,n),r)||(i=!1)})),y.forEach((function(t,a){t.element.parentNode||(Y.appendChild(t.element,a),t._read(),t._write(e,k(t,n),r),i=!1)})),F=i,C({props:t,root:Y,actions:n,timestamp:e}),i},G=function(){w.forEach((function(e){return e.destroy()})),A.forEach((function(e){e({root:Y,props:t})})),y.forEach((function(e){return e._destroy()}))},V={element:{get:B},style:{get:function(){return o}},childViews:{get:I}},H=Object.assign({},V,{rect:{get:$},ref:{get:M},is:function(e){return i===e},appendChild:c(r),createChildView:L(e),linkView:function(e){return y.push(e),e},unlinkView:function(e){y.splice(y.indexOf(e),1)},appendChildView:d(r,y),removeChildView:h(r,y),registerWriter:function(e){return S.push(e)},registerReader:function(e){return P.push(e)},registerDestroyer:function(e){return A.push(e)},invalidateLayout:function(){return r.layoutCalculated=!1},dispatch:e.dispatch,query:e.query}),U={element:{get:B},childViews:{get:I},rect:{get:$},resting:{get:function(){return F}},isRectIgnored:function(){return T},_read:N,_write:z,_destroy:G},W=Object.assign({},V,{rect:{get:function(){return u}}});Object.keys(j).sort((function(e,t){return"styles"===e?1:"styles"===t?-1:0})).forEach((function(e){var n=R[e]({mixinConfig:j[e],viewProps:t,viewState:D,viewInternalAPI:H,viewExternalAPI:U,view:a(W)});n&&w.push(n)}));var Y=a(H);b({root:Y,props:t});var K=g(r);return y.forEach((function(e,t){Y.appendChild(e.element,K+t)})),x(Y),a(U)}},$=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,r="__framePainter";if(window[r])return window[r].readers.push(e),void window[r].writers.push(t);window[r]={readers:[e],writers:[t]};var i=window[r],a=1e3/n,o=null,s=null,u=null,l=null,f=function(){document.hidden?(u=function(){return window.setTimeout((function(){return c(performance.now())}),a)},l=function(){return window.clearTimeout(s)}):(u=function(){return window.requestAnimationFrame(c)},l=function(){return window.cancelAnimationFrame(s)})};document.addEventListener("visibilitychange",(function(){l&&l(),f(),c(performance.now())}));var c=function e(t){s=u(e),o||(o=t);var n=t-o;n<=a||(o=t-n%a,i.readers.forEach((function(e){return e()})),i.writers.forEach((function(e){return e(t)})))};return f(),c(performance.now()),{pause:function(){l(s)}}},N=function(e,t){return function(n){var r=n.root,i=n.props,a=n.actions,o=void 0===a?[]:a,s=n.timestamp,u=n.shouldOptimize;o.filter((function(t){return e[t.type]})).forEach((function(t){return e[t.type]({root:r,props:i,action:t.data,timestamp:s,shouldOptimize:u})})),t&&t({root:r,props:i,actions:o,timestamp:s,shouldOptimize:u})}},z=function(e,t){return t.parentNode.insertBefore(e,t)},G=function(e,t){return t.parentNode.insertBefore(e,t.nextSibling)},V=function(e){return Array.isArray(e)},H=function(e){return null==e},U=function(e){return e.trim()},W=function(e){return""+e},Y=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return H(e)?[]:V(e)?e:W(e).split(t).map(U).filter((function(e){return e.length}))},K=function(e){return"boolean"==typeof e},Z=function(e){return K(e)?e:"true"===e},X=function(e){return"string"==typeof e},Q=function(e){return y(e)?e:X(e)?W(e).replace(/[a-z]+/gi,""):0},J=function(e){return parseInt(Q(e),10)},ee=function(e){return parseFloat(Q(e))},te=function(e){return y(e)&&isFinite(e)&&Math.floor(e)===e},ne=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3;if(te(e))return e;var n=W(e).trim();return/MB$/i.test(n)?(n=n.replace(/MB$i/,"").trim(),J(n)*t*t):/KB/i.test(n)?(n=n.replace(/KB$i/,"").trim(),J(n)*t):J(n)},re=function(e){return"function"==typeof e},ie=function(e){for(var t=self,n=e.split("."),r=null;r=n.shift();)if(!(t=t[r]))return null;return t},ae={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},oe=function(e){var t={};return t.url=X(e)?e:e.url||"",t.timeout=e.timeout?parseInt(e.timeout,10):0,t.headers=e.headers?e.headers:{},i(ae,(function(n){t[n]=se(n,e[n],ae[n],t.timeout,t.headers)})),t.process=e.process||X(e)||e.url?t.process:null,t.remove=e.remove||null,delete t.headers,t},se=function(e,t,n,r,i){if(null===t)return null;if("function"==typeof t)return t;var a={url:"GET"===n||"PATCH"===n?"?"+e+"=":"",method:n,headers:i,withCredentials:!1,timeout:r,onload:null,ondata:null,onerror:null};if(X(t))return a.url=t,a;if(Object.assign(a,t),X(a.headers)){var o=a.headers.split(/:(.+)/);a.headers={header:o[0],value:o[1]}}return a.withCredentials=Z(a.withCredentials),a},ue=function(e){return null===e},le=function(e){return"object"==typeof e&&null!==e},fe=function(e){return le(e)&&X(e.url)&&le(e.process)&&le(e.revert)&&le(e.restore)&&le(e.fetch)},ce=function(e){return V(e)?"array":ue(e)?"null":te(e)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)?"bytes":fe(e)?"api":typeof e},de=function(e){return e.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",')},he={array:Y,boolean:Z,int:function(e){return"bytes"===ce(e)?ne(e):J(e)},number:ee,float:ee,bytes:ne,string:function(e){return re(e)?e:W(e)},function:function(e){return ie(e)},serverapi:function(e){return oe(e)},object:function(e){try{return JSON.parse(de(e))}catch(e){return null}}},pe=function(e,t){return he[t](e)},me=function(e,t,n){if(e===t)return e;var r=ce(e);if(r!==n){var i=pe(e,n);if(r=ce(i),null===i)throw'Trying to assign value with incorrect type to "'+option+'", allowed type: "'+n+'"';e=i}return e},ge=function(e,t){var n=e;return{enumerable:!0,get:function(){return n},set:function(r){n=me(r,e,t)}}},_e=function(e){var t={};return i(e,(function(n){var r=e[n];t[n]=ge(r[0],r[1])})),a(t)},Fe=function(e){return{items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:_e(e)}},be=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.split(/(?=[A-Z])/).map((function(e){return e.toLowerCase()})).join(t)},ye=function(e,t){var n={};return i(t,(function(t){n[t]={get:function(){return e.getState().options[t]},set:function(n){e.dispatch("SET_"+be(t,"_").toUpperCase(),{value:n})}}})),n},ve=function(e){return function(t,n,r){var a={};return i(e,(function(e){var n=be(e,"_").toUpperCase();a["SET_"+n]=function(i){try{r.options[e]=i.value}catch(e){}t("DID_SET_"+n,{value:r.options[e]})}})),a}},we=function(e){return function(t){var n={};return i(e,(function(e){n["GET_"+be(e,"_").toUpperCase()]=function(n){return t.options[e]}})),n}},ke={API:1,DROP:2,BROWSE:3,PASTE:4,NONE:5},Ee=function(){return Math.random().toString(36).substr(2,9)};function xe(e){this.wrapped=e}function De(e){var t,n;function r(e,r){return new Promise((function(a,o){var s={key:e,arg:r,resolve:a,reject:o,next:null};n?n=n.next=s:(t=n=s,i(e,r))}))}function i(t,n){try{var r=e[t](n),o=r.value,s=o instanceof xe;Promise.resolve(s?o.wrapped:o).then((function(e){s?i("next",e):a(r.done?"return":"normal",e)}),(function(e){i("throw",e)}))}catch(e){a("throw",e)}}function a(e,r){switch(e){case"return":t.resolve({value:r,done:!0});break;case"throw":t.reject(r);break;default:t.resolve({value:r,done:!1})}(t=t.next)?i(t.key,t.arg):n=null}this._invoke=r,"function"!=typeof e.return&&(this.return=void 0)}function Ce(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function Se(e,t){if(null==e)return{};var n,r,i=Ce(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Te(e){return Pe(e)||Oe(e)||Ae()}function Pe(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t1?t-1:0),i=1;i1?t-1:0),i=1;iBrowse',He.STRING],labelInvalidField:["Field contains invalid files",He.STRING],labelFileWaitingForSize:["Waiting for size",He.STRING],labelFileSizeNotAvailable:["Size not available",He.STRING],labelFileCountSingular:["file in list",He.STRING],labelFileCountPlural:["files in list",He.STRING],labelFileLoading:["Loading",He.STRING],labelFileAdded:["Added",He.STRING],labelFileLoadError:["Error during load",He.STRING],labelFileRemoved:["Removed",He.STRING],labelFileRemoveError:["Error during remove",He.STRING],labelFileProcessing:["Uploading",He.STRING],labelFileProcessingComplete:["Upload complete",He.STRING],labelFileProcessingAborted:["Upload cancelled",He.STRING],labelFileProcessingError:["Error during upload",He.STRING],labelFileProcessingRevertError:["Error during revert",He.STRING],labelTapToCancel:["tap to cancel",He.STRING],labelTapToRetry:["tap to retry",He.STRING],labelTapToUndo:["tap to undo",He.STRING],labelButtonRemoveItem:["Remove",He.STRING],labelButtonAbortItemLoad:["Abort",He.STRING],labelButtonRetryItemLoad:["Retry",He.STRING],labelButtonAbortItemProcessing:["Cancel",He.STRING],labelButtonUndoItemProcessing:["Undo",He.STRING],labelButtonRetryItemProcessing:["Retry",He.STRING],labelButtonProcessItem:["Upload",He.STRING],iconRemove:['',He.STRING],iconProcess:['',He.STRING],iconRetry:['',He.STRING],iconUndo:['',He.STRING],iconDone:['',He.STRING],oninit:[null,He.FUNCTION],onwarning:[null,He.FUNCTION],onerror:[null,He.FUNCTION],onactivatefile:[null,He.FUNCTION],oninitfile:[null,He.FUNCTION],onaddfilestart:[null,He.FUNCTION],onaddfileprogress:[null,He.FUNCTION],onaddfile:[null,He.FUNCTION],onprocessfilestart:[null,He.FUNCTION],onprocessfileprogress:[null,He.FUNCTION],onprocessfileabort:[null,He.FUNCTION],onprocessfilerevert:[null,He.FUNCTION],onprocessfile:[null,He.FUNCTION],onprocessfiles:[null,He.FUNCTION],onremovefile:[null,He.FUNCTION],onpreparefile:[null,He.FUNCTION],onupdatefiles:[null,He.FUNCTION],onreorderfiles:[null,He.FUNCTION],beforeDropFile:[null,He.FUNCTION],beforeAddFile:[null,He.FUNCTION],beforeRemoveFile:[null,He.FUNCTION],beforePrepareFile:[null,He.FUNCTION],stylePanelLayout:[null,He.STRING],stylePanelAspectRatio:[null,He.STRING],styleItemPanelAspectRatio:[null,He.STRING],styleButtonRemoveItemPosition:["left",He.STRING],styleButtonProcessItemPosition:["right",He.STRING],styleLoadIndicatorPosition:["right",He.STRING],styleProgressIndicatorPosition:["right",He.STRING],styleButtonRemoveItemAlign:[!1,He.BOOLEAN],files:[[],He.ARRAY],credits:[["https://pqina.nl/","Powered by PQINA"],He.ARRAY]},et=function(e,t){return H(t)?e[0]||null:te(t)?e[t]||null:("object"==typeof t&&(t=t.id),e.find((function(e){return e.id===t}))||null)},tt=function(e){if(H(e))return e;if(/:/.test(e)){var t=e.split(":");return t[1]/t[0]}return parseFloat(e)},nt=function(e){return e.filter((function(e){return!e.archived}))},rt={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},it=null,at=function(){if(null===it)try{var e=new DataTransfer;e.items.add(new File(["hello world"],"This_Works.txt"));var t=document.createElement("input");t.setAttribute("type","file"),t.files=e.files,it=1===t.files.length}catch(e){it=!1}return it},ot=[$e.LOAD_ERROR,$e.PROCESSING_ERROR,$e.PROCESSING_REVERT_ERROR],st=[$e.LOADING,$e.PROCESSING,$e.PROCESSING_QUEUED,$e.INIT],ut=[$e.PROCESSING_COMPLETE],lt=function(e){return ot.includes(e.status)},ft=function(e){return st.includes(e.status)},ct=function(e){return ut.includes(e.status)},dt=function(e){return le(e.options.server)&&(le(e.options.server.process)||re(e.options.server.process))},ht=function(e){return{GET_STATUS:function(){var t=nt(e.items),n=rt.EMPTY,r=rt.ERROR,i=rt.BUSY,a=rt.IDLE,o=rt.READY;return 0===t.length?n:t.some(lt)?r:t.some(ft)?i:t.some(ct)?o:a},GET_ITEM:function(t){return et(e.items,t)},GET_ACTIVE_ITEM:function(t){return et(nt(e.items),t)},GET_ACTIVE_ITEMS:function(){return nt(e.items)},GET_ITEMS:function(){return e.items},GET_ITEM_NAME:function(t){var n=et(e.items,t);return n?n.filename:null},GET_ITEM_SIZE:function(t){var n=et(e.items,t);return n?n.fileSize:null},GET_STYLES:function(){return Object.keys(e.options).filter((function(e){return/^style/.test(e)})).map((function(t){return{name:t,value:e.options[t]}}))},GET_PANEL_ASPECT_RATIO:function(){return/circle/.test(e.options.stylePanelLayout)?1:tt(e.options.stylePanelAspectRatio)},GET_ITEM_PANEL_ASPECT_RATIO:function(){return e.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(t){return nt(e.items).filter((function(e){return e.status===t}))},GET_TOTAL_ITEMS:function(){return nt(e.items).length},SHOULD_UPDATE_FILE_INPUT:function(){return e.options.storeAsFile&&at()&&!dt(e)},IS_ASYNC:function(){return dt(e)},GET_FILE_SIZE_LABELS:function(e){return{labelBytes:e("GET_LABEL_FILE_SIZE_BYTES")||void 0,labelKilobytes:e("GET_LABEL_FILE_SIZE_KILOBYTES")||void 0,labelMegabytes:e("GET_LABEL_FILE_SIZE_MEGABYTES")||void 0,labelGigabytes:e("GET_LABEL_FILE_SIZE_GIGABYTES")||void 0}}}},pt=function(e){var t=nt(e.items).length;if(!e.options.allowMultiple)return 0===t;var n=e.options.maxFiles;return null===n||t1&&void 0!==arguments[1]?arguments[1]:"";return(t+e).slice(-t.length)},kt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return e.getFullYear()+"-"+wt(e.getMonth()+1,"00")+"-"+wt(e.getDate(),"00")+"_"+wt(e.getHours(),"00")+"-"+wt(e.getMinutes(),"00")+"-"+wt(e.getSeconds(),"00")},Et=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i="string"==typeof n?e.slice(0,e.size,n):e.slice(0,e.size,e.type);return i.lastModifiedDate=new Date,e._relativePath&&(i._relativePath=e._relativePath),X(t)||(t=kt()),t&&null===r&&yt(t)?i.name=t:(r=r||vt(i.type),i.name=t+(r?"."+r:"")),i},xt=function(){return window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder},Dt=function(e,t){var n=xt();if(n){var r=new n;return r.append(e),r.getBlob(t)}return new Blob([e],{type:t})},Ct=function(e,t){for(var n=new ArrayBuffer(e.length),r=new Uint8Array(n),i=0;i=200&&o.status<300?r.onload(o):r.onerror(o)},o.onerror=function(){return r.onerror(o)},o.onabort=function(){i=!0,r.onabort()},o.ontimeout=function(){return r.ontimeout(o)},o.open(n.method,t,!0),te(n.timeout)&&(o.timeout=n.timeout),Object.keys(n.headers).forEach((function(e){var t=unescape(encodeURIComponent(n.headers[e]));o.setRequestHeader(e,t)})),n.responseType&&(o.responseType=n.responseType),n.withCredentials&&(o.withCredentials=!0),o.send(e),r},$t=function(e,t,n,r){return{type:e,code:t,body:n,headers:r}},Nt=function(e){return function(t){e($t("error",0,"Timeout",t.getAllResponseHeaders()))}},zt=function(e){return/\?/.test(e)},Gt=function(){for(var e="",t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"==typeof t)return t;if(!t||!X(t.url))return null;var n=t.onload||function(e){return e},r=t.onerror||function(e){return null};return function(i,a,o,s,u,l){var f=Lt(i,Gt(e,t.url),Object.assign({},t,{responseType:"blob"}));return f.onload=function(e){var r=e.getAllResponseHeaders(),o=Mt(r).name||bt(i);a($t("load",e.status,"HEAD"===t.method?null:Et(n(e.response),o),r))},f.onerror=function(e){o($t("error",e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))},f.onheaders=function(e){l($t("headers",e.status,null,e.getAllResponseHeaders()))},f.ontimeout=Nt(o),f.onprogress=s,f.onabort=u,f}},Ht={QUEUED:0,COMPLETE:1,PROCESSING:2,ERROR:3,WAITING:4},Ut=function(e,t,n,r,i,a,o,s,u,l,f){for(var c=[],d=f.chunkTransferId,h=f.chunkServer,p=f.chunkSize,m=f.chunkRetryDelays,g={serverId:d,aborted:!1},_=t.ondata||function(e){return e},F=t.onload||function(e,t){return"HEAD"===t?e.getResponseHeader("Upload-Offset"):e.response},b=t.onerror||function(e){return null},y=function(a){var s=new FormData;le(i)&&s.append(n,JSON.stringify(i));var u="function"==typeof t.headers?t.headers(r,i):Object.assign({},t.headers,{"Upload-Length":r.size}),l=Object.assign({},t,{headers:u}),f=Lt(_(s),Gt(e,t.url),l);f.onload=function(e){return a(F(e,l.method))},f.onerror=function(e){return o($t("error",e.status,b(e.response)||e.statusText,e.getAllResponseHeaders()))},f.ontimeout=Nt(o)},v=function(n){var r=Gt(e,h.url,g.serverId),i={headers:"function"==typeof t.headers?t.headers(g.serverId):Object.assign({},t.headers),method:"HEAD"},a=Lt(null,r,i);a.onload=function(e){return n(F(e,i.method))},a.onerror=function(e){return o($t("error",e.status,b(e.response)||e.statusText,e.getAllResponseHeaders()))},a.ontimeout=Nt(o)},w=Math.floor(r.size/p),k=0;k<=w;k++){var E=k*p,x=r.slice(E,E+p,"application/offset+octet-stream");c[k]={index:k,size:x.size,offset:E,data:x,file:r,progress:0,retries:Te(m),status:Ht.QUEUED,error:null,request:null,timeout:null}}var D=function(){return a(g.serverId)},C=function(e){return e.status===Ht.QUEUED||e.status===Ht.ERROR},S=function(t){if(!g.aborted)if(t=t||c.find(C)){t.status=Ht.PROCESSING,t.progress=null;var n=h.ondata||function(e){return e},i=h.onerror||function(e){return null},a=Gt(e,h.url,g.serverId),s="function"==typeof h.headers?h.headers(t):Object.assign({},h.headers,{"Content-Type":"application/offset+octet-stream","Upload-Offset":t.offset,"Upload-Length":r.size,"Upload-Name":r.name}),l=t.request=Lt(n(t.data),a,Object.assign({},h,{headers:s}));l.onload=function(){t.status=Ht.COMPLETE,t.request=null,O()},l.onprogress=function(e,n,r){t.progress=e?n:null,P()},l.onerror=function(e){t.status=Ht.ERROR,t.request=null,t.error=i(e.response)||e.statusText,T(t)||o($t("error",e.status,i(e.response)||e.statusText,e.getAllResponseHeaders()))},l.ontimeout=function(e){t.status=Ht.ERROR,t.request=null,T(t)||Nt(o)(e)},l.onabort=function(){t.status=Ht.QUEUED,t.request=null,u()}}else c.every((function(e){return e.status===Ht.COMPLETE}))&&D()},T=function(e){return 0!==e.retries.length&&(e.status=Ht.WAITING,clearTimeout(e.timeout),e.timeout=setTimeout((function(){S(e)}),e.retries.shift()),!0)},P=function(){var e=c.reduce((function(e,t){return null===e||null===t.progress?null:e+t.progress}),0);if(null===e)return s(!1,0,0);var t=c.reduce((function(e,t){return e+t.size}),0);s(!0,e,t)},O=function(){c.filter((function(e){return e.status===Ht.PROCESSING})).length>=1||S()},A=function(){c.forEach((function(e){clearTimeout(e.timeout),e.request&&e.request.abort()}))};return g.serverId?v((function(e){g.aborted||(c.filter((function(t){return t.offsetr.chunkSize,h=c&&(d||r.chunkForce);if(i instanceof Blob&&h)return Ut(e,t,n,i,a,o,s,u,l,f,r);var p=t.ondata||function(e){return e},m=t.onload||function(e){return e},g=t.onerror||function(e){return null},_="function"==typeof t.headers?t.headers(i,a)||{}:Object.assign({},t.headers),F=Object.assign({},t,{headers:_}),b=new FormData;le(a)&&b.append(n,JSON.stringify(a)),(i instanceof Blob?[{name:null,file:i}]:i).forEach((function(e){b.append(n,e.file,null===e.name?e.file.name:""+e.name+e.file.name)}));var y=Lt(p(b),Gt(e,t.url),F);return y.onload=function(e){o($t("load",e.status,m(e.response),e.getAllResponseHeaders()))},y.onerror=function(e){s($t("error",e.status,g(e.response)||e.statusText,e.getAllResponseHeaders()))},y.ontimeout=Nt(s),y.onprogress=u,y.onabort=l,y}}},Yt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;return"function"==typeof t?function(){for(var e=arguments.length,i=new Array(e),a=0;a0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"==typeof t)return t;if(!t||!X(t.url))return function(e,t){return t()};var n=t.onload||function(e){return e},r=t.onerror||function(e){return null};return function(i,a,o){var s=Lt(i,e+t.url,t);return s.onload=function(e){a($t("load",e.status,n(e.response),e.getAllResponseHeaders()))},s.onerror=function(e){o($t("error",e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))},s.ontimeout=Nt(o),s}},Zt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e+Math.random()*(t-e)},Xt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:25,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,i=null,a=Date.now();return t>0&&function o(){var s=Date.now()-a,u=Zt(n,r);s+u>t&&(u=s+u-t);var l=s/t;l>=1||document.hidden?e(1):(e(l),i=setTimeout(o,u))}(),{clear:function(){clearTimeout(i)}}},Qt=function(e,t){var n={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},r=t.allowMinimumUploadDuration,i=function(t,i){var a=function(){0!==n.duration&&null!==n.progress&&l.fire("progress",l.getProgress())},o=function(){n.complete=!0,l.fire("load-perceived",n.response.body)};l.fire("start"),n.timestamp=Date.now(),n.perceivedPerformanceUpdater=Xt((function(e){n.perceivedProgress=e,n.perceivedDuration=Date.now()-n.timestamp,a(),n.response&&1===n.perceivedProgress&&!n.complete&&o()}),r?Zt(750,1500):0),n.request=e(t,i,(function(e){n.response=le(e)?e:{type:"load",code:200,body:""+e,headers:{}},n.duration=Date.now()-n.timestamp,n.progress=1,l.fire("load",n.response.body),(!r||r&&1===n.perceivedProgress)&&o()}),(function(e){n.perceivedPerformanceUpdater.clear(),l.fire("error",le(e)?e:{type:"error",code:0,body:""+e})}),(function(e,t,r){n.duration=Date.now()-n.timestamp,n.progress=e?t/r:null,a()}),(function(){n.perceivedPerformanceUpdater.clear(),l.fire("abort",n.response?n.response.body:null)}),(function(e){l.fire("transfer",e)}))},a=function(){n.request&&(n.perceivedPerformanceUpdater.clear(),n.request.abort&&n.request.abort(),n.complete=!0)},o=function(){a(),n.complete=!1,n.perceivedProgress=0,n.progress=0,n.timestamp=null,n.perceivedDuration=0,n.duration=0,n.request=null,n.response=null},s=r?function(){return n.progress?Math.min(n.progress,n.perceivedProgress):null}:function(){return n.progress||null},u=r?function(){return Math.min(n.duration,n.perceivedDuration)}:function(){return n.duration},l=Object.assign({},Ie(),{process:i,abort:a,getProgress:s,getDuration:u,reset:o});return l},Jt=function(e){return e.substr(0,e.lastIndexOf("."))||e},en=function(e){var t=[e.name,e.size,e.type];return e instanceof Blob||Ft(e)?t[0]=e.name||kt():Ft(e)?(t[1]=e.length,t[2]=St(e)):X(e)&&(t[0]=bt(e),t[1]=0,t[2]="application/octet-stream"),{name:t[0],size:t[1],type:t[2]}},tn=function(e){return!!(e instanceof File||e instanceof Blob&&e.name)},nn=function e(t){if(!le(t))return t;var n=V(t)?[]:{};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];n[r]=i&&le(i)?e(i):i}return n},rn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=Ee(),i={archived:!1,frozen:!1,released:!1,source:null,file:n,serverFileReference:t,transferId:null,processingAborted:!1,status:t?$e.PROCESSING_COMPLETE:$e.INIT,activeLoader:null,activeProcessor:null},o=null,s={},u=function(e){return i.status=e},l=function(e){if(!i.released&&!i.frozen){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r-1||e.indexOf("//")>-1)&&un(location.href)!==un(e)},fn=function(e){return function(){return re(e)?e.apply(void 0,arguments):e}},cn=function(e){return!tn(e.file)},dn=function(e,t){clearTimeout(t.listUpdateTimeout),t.listUpdateTimeout=setTimeout((function(){e("DID_UPDATE_ITEMS",{items:nt(t.items)})}),0)},hn=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:{},r=n.query,i=n.success,a=void 0===i?function(){}:i,o=n.failure,s=void 0===o?function(){}:o,u=Se(n,["query","success","failure"]),l=et(e.items,r);l?t(l,a,s,u||{}):s({error:$t("error",0,"Item not found"),file:null})}},gn=function(e,t,n){return{ABORT_ALL:function(){nt(n.items).forEach((function(e){e.freeze(),e.abortLoad(),e.abortProcessing()}))},DID_SET_FILES:function(t){var r=t.value,i=(void 0===r?[]:r).map((function(e){return{source:e.source?e.source:e,options:e.options}})),a=nt(n.items);a.forEach((function(t){i.find((function(e){return e.source===t.source||e.source===t.file}))||e("REMOVE_ITEM",{query:t,remove:!1})})),a=nt(n.items),i.forEach((function(t,n){a.find((function(e){return e.source===t.source||e.file===t.source}))||e("ADD_ITEM",Object.assign({},t,{interactionMethod:ke.NONE,index:n}))}))},DID_UPDATE_ITEM_METADATA:function(r){var i=r.id,a=r.action,o=r.change;o.silent||(clearTimeout(n.itemUpdateTimeout),n.itemUpdateTimeout=setTimeout((function(){var r=on(n.items,i);if(t("IS_ASYNC")){r.origin===Ne.LOCAL&&e("DID_LOAD_ITEM",{id:r.id,error:null,serverFileReference:r.source});var s=function(){setTimeout((function(){e("REQUEST_ITEM_PROCESSING",{query:i})}),32)},u=function(e){r.revert(Kt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(e?s:function(){}).catch((function(){}))},l=function(e){r.abortProcessing().then(e?s:function(){})};return r.status===$e.PROCESSING_COMPLETE?u(n.options.instantUpload):r.status===$e.PROCESSING?l(n.options.instantUpload):void(n.options.instantUpload&&s())}We("SHOULD_PREPARE_OUTPUT",!1,{item:r,query:t,action:a,change:o}).then((function(n){var a=t("GET_BEFORE_PREPARE_FILE");a&&(n=a(r,n)),n&&e("REQUEST_PREPARE_OUTPUT",{query:i,item:r,success:function(t){e("DID_PREPARE_OUTPUT",{id:i,file:t})}},!0)}))}),0))},MOVE_ITEM:function(e){var t=e.query,r=e.index,i=et(n.items,t);if(i){var a=n.items.indexOf(i);a!==(r=mt(r,0,n.items.length-1))&&n.items.splice(r,0,n.items.splice(a,1)[0])}},SORT:function(r){var i=r.compare;pn(n,i),e("DID_SORT_ITEMS",{items:t("GET_ACTIVE_ITEMS")})},ADD_ITEMS:function(n){var r=n.items,i=n.index,a=n.interactionMethod,o=n.success,s=void 0===o?function(){}:o,u=n.failure,l=void 0===u?function(){}:u,f=i;if(-1===i||void 0===i){var c=t("GET_ITEM_INSERT_LOCATION"),d=t("GET_TOTAL_ITEMS");f="before"===c?0:d}var h=t("GET_IGNORED_FILES"),p=function(e){return tn(e)?!h.includes(e.name.toLowerCase()):!H(e)},m=r.filter(p).map((function(t){return new Promise((function(n,r){e("ADD_ITEM",{interactionMethod:a,source:t.source||t,success:n,failure:r,index:f++,options:t.options||{}})}))}));Promise.all(m).then(s).catch(l)},ADD_ITEM:function(r){var i=r.source,a=r.index,o=void 0===a?-1:a,s=r.interactionMethod,u=r.success,l=void 0===u?function(){}:u,f=r.failure,c=void 0===f?function(){}:f,d=r.options,h=void 0===d?{}:d;if(H(i))c({error:$t("error",0,"No source"),file:null});else if(!tn(i)||!n.options.ignoredFiles.includes(i.name.toLowerCase())){if(!pt(n)){if(n.options.allowMultiple||!n.options.allowMultiple&&!n.options.allowReplace){var p=$t("warning",0,"Max files");return e("DID_THROW_MAX_FILES",{source:i,error:p}),void c({error:p,file:null})}var m=nt(n.items)[0];if(m.status===$e.PROCESSING_COMPLETE||m.status===$e.PROCESSING_REVERT_ERROR){var g=t("GET_FORCE_REVERT");if(m.revert(Kt(n.options.server.url,n.options.server.revert),g).then((function(){g&&e("ADD_ITEM",{source:i,index:o,interactionMethod:s,success:l,failure:c,options:h})})).catch((function(){})),g)return}e("REMOVE_ITEM",{query:m.id})}var _="local"===h.type?Ne.LOCAL:"limbo"===h.type?Ne.LIMBO:Ne.INPUT,F=rn(_,_===Ne.INPUT?null:i,h.file);Object.keys(h.metadata||{}).forEach((function(e){F.setMetadata(e,h.metadata[e])})),Ye("DID_CREATE_ITEM",F,{query:t,dispatch:e});var b=t("GET_ITEM_INSERT_LOCATION");n.options.itemInsertLocationFreedom||(o="before"===b?-1:n.items.length),_t(n.items,F,o),re(b)&&i&&pn(n,b);var y=F.id;F.on("init",(function(){e("DID_INIT_ITEM",{id:y})})),F.on("load-init",(function(){e("DID_START_ITEM_LOAD",{id:y})})),F.on("load-meta",(function(){e("DID_UPDATE_ITEM_META",{id:y})})),F.on("load-progress",(function(t){e("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:y,progress:t})})),F.on("load-request-error",(function(t){var r=fn(n.options.labelFileLoadError)(t);if(t.code>=400&&t.code<500)return e("DID_THROW_ITEM_INVALID",{id:y,error:t,status:{main:r,sub:t.code+" ("+t.body+")"}}),void c({error:t,file:qe(F)});e("DID_THROW_ITEM_LOAD_ERROR",{id:y,error:t,status:{main:r,sub:n.options.labelTapToRetry}})})),F.on("load-file-error",(function(t){e("DID_THROW_ITEM_INVALID",{id:y,error:t.status,status:t.status}),c({error:t.status,file:qe(F)})})),F.on("load-abort",(function(){e("REMOVE_ITEM",{query:y})})),F.on("load-skip",(function(){e("COMPLETE_LOAD_ITEM",{query:y,item:F,data:{source:i,success:l}})})),F.on("load",(function(){var r=function(r){r?(F.on("metadata-update",(function(t){e("DID_UPDATE_ITEM_METADATA",{id:y,change:t})})),We("SHOULD_PREPARE_OUTPUT",!1,{item:F,query:t}).then((function(r){var a=t("GET_BEFORE_PREPARE_FILE");a&&(r=a(F,r));var o=function(){e("COMPLETE_LOAD_ITEM",{query:y,item:F,data:{source:i,success:l}}),dn(e,n)};r?e("REQUEST_PREPARE_OUTPUT",{query:y,item:F,success:function(t){e("DID_PREPARE_OUTPUT",{id:y,file:t}),o()}},!0):o()}))):e("REMOVE_ITEM",{query:y})};We("DID_LOAD_ITEM",F,{query:t,dispatch:e}).then((function(){hn(t("GET_BEFORE_ADD_FILE"),qe(F)).then(r)})).catch((function(t){if(!t||!t.error||!t.status)return r(!1);e("DID_THROW_ITEM_INVALID",{id:y,error:t.error,status:t.status})}))})),F.on("process-start",(function(){e("DID_START_ITEM_PROCESSING",{id:y})})),F.on("process-progress",(function(t){e("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:y,progress:t})})),F.on("process-error",(function(t){e("DID_THROW_ITEM_PROCESSING_ERROR",{id:y,error:t,status:{main:fn(n.options.labelFileProcessingError)(t),sub:n.options.labelTapToRetry}})})),F.on("process-revert-error",(function(t){e("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:y,error:t,status:{main:fn(n.options.labelFileProcessingRevertError)(t),sub:n.options.labelTapToRetry}})})),F.on("process-complete",(function(t){e("DID_COMPLETE_ITEM_PROCESSING",{id:y,error:null,serverFileReference:t}),e("DID_DEFINE_VALUE",{id:y,value:t})})),F.on("process-abort",(function(){e("DID_ABORT_ITEM_PROCESSING",{id:y})})),F.on("process-revert",(function(){e("DID_REVERT_ITEM_PROCESSING",{id:y}),e("DID_DEFINE_VALUE",{id:y,value:null})})),e("DID_ADD_ITEM",{id:y,index:o,interactionMethod:s}),dn(e,n);var v=n.options.server||{},w=v.url,k=v.load,E=v.restore,x=v.fetch;F.load(i,Rt(_===Ne.INPUT?X(i)&&ln(i)&&x?Vt(w,x):sn:_===Ne.LIMBO?Vt(w,E):Vt(w,k)),(function(e,n,r){We("LOAD_FILE",e,{query:t}).then(n).catch(r)}))}},REQUEST_PREPARE_OUTPUT:function(e){var n=e.item,r=e.success,i=e.failure,a=void 0===i?function(){}:i,o={error:$t("error",0,"Item not found"),file:null};if(n.archived)return a(o);We("PREPARE_OUTPUT",n.file,{query:t,item:n}).then((function(e){We("COMPLETE_PREPARE_OUTPUT",e,{query:t,item:n}).then((function(e){if(n.archived)return a(o);r(e)}))}))},COMPLETE_LOAD_ITEM:function(r){var i=r.item,a=r.data,o=a.success,s=a.source,u=t("GET_ITEM_INSERT_LOCATION");if(re(u)&&s&&pn(n,u),e("DID_LOAD_ITEM",{id:i.id,error:null,serverFileReference:i.origin===Ne.INPUT?null:s}),o(qe(i)),i.origin!==Ne.LOCAL)return i.origin===Ne.LIMBO?(e("DID_COMPLETE_ITEM_PROCESSING",{id:i.id,error:null,serverFileReference:s}),void e("DID_DEFINE_VALUE",{id:i.id,value:i.serverId||s})):void(t("IS_ASYNC")&&n.options.instantUpload&&e("REQUEST_ITEM_PROCESSING",{query:i.id}));e("DID_LOAD_LOCAL_ITEM",{id:i.id})},RETRY_ITEM_LOAD:mn(n,(function(e){e.retryLoad()})),REQUEST_ITEM_PREPARE:mn(n,(function(t,n,r){e("REQUEST_PREPARE_OUTPUT",{query:t.id,item:t,success:function(r){e("DID_PREPARE_OUTPUT",{id:t.id,file:r}),n({file:t,output:r})},failure:r},!0)})),REQUEST_ITEM_PROCESSING:mn(n,(function(r,i,a){if(r.status===$e.IDLE||r.status===$e.PROCESSING_ERROR)r.status!==$e.PROCESSING_QUEUED&&(r.requestProcessing(),e("DID_REQUEST_ITEM_PROCESSING",{id:r.id}),e("PROCESS_ITEM",{query:r,success:i,failure:a},!0));else{var o=function(){return e("REQUEST_ITEM_PROCESSING",{query:r,success:i,failure:a})},s=function(){return document.hidden?o():setTimeout(o,32)};r.status===$e.PROCESSING_COMPLETE||r.status===$e.PROCESSING_REVERT_ERROR?r.revert(Kt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(s).catch((function(){})):r.status===$e.PROCESSING&&r.abortProcessing().then(s)}})),PROCESS_ITEM:mn(n,(function(r,i,a){var o=t("GET_MAX_PARALLEL_UPLOADS");if(t("GET_ITEMS_BY_STATUS",$e.PROCESSING).length!==o){if(r.status!==$e.PROCESSING){var s=function t(){var r=n.processingQueue.shift();if(r){var i=r.id,a=r.success,o=r.failure,s=et(n.items,i);s&&!s.archived?e("PROCESS_ITEM",{query:i,success:a,failure:o},!0):t()}};r.onOnce("process-complete",(function(){i(qe(r)),s();var a=n.options.server;if(n.options.instantUpload&&r.origin===Ne.LOCAL&&re(a.remove)){var o=function(){};r.origin=Ne.LIMBO,n.options.server.remove(r.source,o,o)}t("GET_ITEMS_BY_STATUS",$e.PROCESSING_COMPLETE).length===n.items.length&&e("DID_COMPLETE_ITEM_PROCESSING_ALL")})),r.onOnce("process-error",(function(e){a({error:e,file:qe(r)}),s()}));var u=n.options;r.process(Qt(Yt(u.server.url,u.server.process,u.name,{chunkTransferId:r.transferId,chunkServer:u.server.patch,chunkUploads:u.chunkUploads,chunkForce:u.chunkForce,chunkSize:u.chunkSize,chunkRetryDelays:u.chunkRetryDelays}),{allowMinimumUploadDuration:t("GET_ALLOW_MINIMUM_UPLOAD_DURATION")}),(function(n,i,a){We("PREPARE_OUTPUT",n,{query:t,item:r}).then((function(t){e("DID_PREPARE_OUTPUT",{id:r.id,file:t}),i(t)})).catch(a)}))}}else n.processingQueue.push({id:r.id,success:i,failure:a})})),RETRY_ITEM_PROCESSING:mn(n,(function(t){e("REQUEST_ITEM_PROCESSING",{query:t})})),REQUEST_REMOVE_ITEM:mn(n,(function(n){hn(t("GET_BEFORE_REMOVE_FILE"),qe(n)).then((function(t){t&&e("REMOVE_ITEM",{query:n})}))})),RELEASE_ITEM:mn(n,(function(e){e.release()})),REMOVE_ITEM:mn(n,(function(r,i,a,o){var s=function(){var t=r.id;on(n.items,t).archive(),e("DID_REMOVE_ITEM",{error:null,id:t,item:r}),dn(e,n),i(qe(r))},u=n.options.server;r.origin===Ne.LOCAL&&u&&re(u.remove)&&!1!==o.remove?(e("DID_START_ITEM_REMOVE",{id:r.id}),u.remove(r.source,(function(){return s()}),(function(t){e("DID_THROW_ITEM_REMOVE_ERROR",{id:r.id,error:$t("error",0,t,null),status:{main:fn(n.options.labelFileRemoveError)(t),sub:n.options.labelTapToRetry}})}))):((o.revert&&r.origin!==Ne.LOCAL&&null!==r.serverId||n.options.chunkUploads&&r.file.size>n.options.chunkSize||n.options.chunkUploads&&n.options.chunkForce)&&r.revert(Kt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")),s())})),ABORT_ITEM_LOAD:mn(n,(function(e){e.abortLoad()})),ABORT_ITEM_PROCESSING:mn(n,(function(t){t.serverId?e("REVERT_ITEM_PROCESSING",{id:t.id}):t.abortProcessing().then((function(){n.options.instantUpload&&e("REMOVE_ITEM",{query:t.id})}))})),REQUEST_REVERT_ITEM_PROCESSING:mn(n,(function(r){if(n.options.instantUpload){var i=function(t){t&&e("REVERT_ITEM_PROCESSING",{query:r})},a=t("GET_BEFORE_REMOVE_FILE");if(!a)return i(!0);var o=a(qe(r));return null==o?i(!0):"boolean"==typeof o?i(o):void("function"==typeof o.then&&o.then(i))}e("REVERT_ITEM_PROCESSING",{query:r})})),REVERT_ITEM_PROCESSING:mn(n,(function(r){r.revert(Kt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then((function(){(n.options.instantUpload||cn(r))&&e("REMOVE_ITEM",{query:r.id})})).catch((function(){}))})),SET_OPTIONS:function(t){var n=t.options,r=Object.keys(n),i=_n.filter((function(e){return r.includes(e)}));[].concat(Te(i),Te(Object.keys(n).filter((function(e){return!i.includes(e)})))).forEach((function(t){e("SET_"+be(t,"_").toUpperCase(),{value:n[t]})}))}}},_n=["server"],Fn=function(e){return e},bn=function(e){return document.createElement(e)},yn=function(e,t){var n=e.childNodes[0];n?t!==n.nodeValue&&(n.nodeValue=t):(n=document.createTextNode(t),e.appendChild(n))},vn=function(e,t,n,r){var i=(r%360-90)*Math.PI/180;return{x:e+n*Math.cos(i),y:t+n*Math.sin(i)}},wn=function(e,t,n,r,i,a){var o=vn(e,t,n,i),s=vn(e,t,n,r);return["M",o.x,o.y,"A",n,n,0,a,0,s.x,s.y].join(" ")},kn=function(e,t,n,r,i){var a=1;return i>r&&i-r<=.5&&(a=0),r>i&&r-i>=.5&&(a=0),wn(e,t,n,360*Math.min(.9999,r),360*Math.min(.9999,i),a)},En=function(e){var t=e.root,n=e.props;n.spin=!1,n.progress=0,n.opacity=0;var r=f("svg");t.ref.path=f("path",{"stroke-width":2,"stroke-linecap":"round"}),r.appendChild(t.ref.path),t.ref.svg=r,t.appendChild(r)},xn=function(e){var t=e.root,n=e.props;if(0!==n.opacity){n.align&&(t.element.dataset.align=n.align);var r=parseInt(o(t.ref.path,"stroke-width"),10),i=.5*t.rect.element.width,a=0,s=0;n.spin?(a=0,s=.5):(a=0,s=n.progress);var u=kn(i,i,i-r,a,s);o(t.ref.path,"d",u),o(t.ref.path,"stroke-opacity",n.spin||n.progress>0?1:0)}},Dn=L({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:En,write:xn,mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),Cn=function(e){var t=e.root,n=e.props;t.element.innerHTML=(n.icon||"")+""+n.label+"",n.isDisabled=!1},Sn=function(e){var t=e.root,n=e.props,r=n.isDisabled,i=t.query("GET_DISABLED")||0===n.opacity;i&&!r?(n.isDisabled=!0,o(t.element,"disabled","disabled")):!i&&r&&(n.isDisabled=!1,t.element.removeAttribute("disabled"))},Tn=L({tag:"button",attributes:{type:"button"},ignoreRect:!0,ignoreRectUpdate:!0,name:"file-action-button",mixins:{apis:["label"],styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}},listeners:!0},create:Cn,write:Sn}),Pn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.labelBytes,a=void 0===i?"bytes":i,o=r.labelKilobytes,s=void 0===o?"KB":o,u=r.labelMegabytes,l=void 0===u?"MB":u,f=r.labelGigabytes,c=void 0===f?"GB":f,d=n,h=n*n,p=n*n*n;return(e=Math.round(Math.abs(e)))16&&!r&&(r=!0,t.element.removeEventListener("click",t.ref.handleClick)),t.dispatch("DID_DRAG_ITEM",{id:n.id,dragState:a}))},s=function e(s){s.isPrimary&&(document.removeEventListener("pointermove",o),document.removeEventListener("pointerup",e),n.dragOffset={x:s.pageX-i.x,y:s.pageY-i.y},t.dispatch("DID_DROP_ITEM",{id:n.id,dragState:a}),r&&setTimeout((function(){return t.element.addEventListener("click",t.ref.handleClick)}),0))};document.addEventListener("pointermove",o),document.addEventListener("pointerup",s)}};t.element.addEventListener("pointerdown",r)}},Er=N({DID_UPDATE_PANEL_HEIGHT:function(e){var t=e.root,n=e.action;t.height=n.height}}),xr=N({DID_GRAB_ITEM:function(e){var t=e.root;e.props.dragOrigin={x:t.translateX,y:t.translateY}},DID_DRAG_ITEM:function(e){e.root.element.dataset.dragState="drag"},DID_DROP_ITEM:function(e){var t=e.root,n=e.props;n.dragOffset=null,n.dragOrigin=null,t.element.dataset.dragState="drop"}},(function(e){var t=e.root,n=e.actions,r=e.props,i=e.shouldOptimize;"drop"===t.element.dataset.dragState&&t.scaleX<=1&&(t.element.dataset.dragState="idle");var a=n.concat().filter((function(e){return/^DID_/.test(e.type)})).reverse().find((function(e){return wr[e.type]}));a&&a.type!==r.currentState&&(r.currentState=a.type,t.element.dataset.filepondItemState=wr[r.currentState]||"");var o=t.query("GET_ITEM_PANEL_ASPECT_RATIO")||t.query("GET_PANEL_ASPECT_RATIO");o?i||(t.height=t.rect.element.width*o):(Er({root:t,actions:n,props:r}),!t.height&&t.ref.container.rect.element.height>0&&(t.height=t.ref.container.rect.element.height)),i&&(t.ref.panel.height=null),t.ref.panel.height=t.height})),Dr=L({create:kr,write:xr,destroy:function(e){var t=e.root,n=e.props;t.element.removeEventListener("click",t.ref.handleClick),t.dispatch("RELEASE_ITEM",{query:n.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:vr,scaleY:vr,translateX:yr,translateY:yr,opacity:{type:"tween",duration:150}}}}),Cr=function(e,t){return Math.max(1,Math.floor((e+1)/t))},Sr=function(e,t,n){if(n){var r=e.rect.element.width,i=t.length,a=null;if(0===i||n.topF){if(n.left3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;e.dragOffset?(e.translateX=null,e.translateY=null,e.translateX=e.dragOrigin.x+e.dragOffset.x,e.translateY=e.dragOrigin.y+e.dragOffset.y,e.scaleX=1.025,e.scaleY=1.025):(e.translateX=t,e.translateY=n,Date.now()>e.spawnDate&&(0===e.opacity&&jr(e,t,n,r,i),e.scaleX=1,e.scaleY=1,e.opacity=1))},jr=function(e,t,n,r,i){e.interactionMethod===ke.NONE?(e.translateX=null,e.translateX=t,e.translateY=null,e.translateY=n):e.interactionMethod===ke.DROP?(e.translateX=null,e.translateX=t-20*r,e.translateY=null,e.translateY=n-10*i,e.scaleX=.8,e.scaleY=.8):e.interactionMethod===ke.BROWSE?(e.translateY=null,e.translateY=n-30):e.interactionMethod===ke.API&&(e.translateX=null,e.translateX=t-30,e.translateY=null)},Br=function(e){var t=e.root,n=e.action.id,r=t.childViews.find((function(e){return e.id===n}));r&&(r.scaleX=.9,r.scaleY=.9,r.opacity=0,r.markedForRemoval=!0)},Ir=function(e){return e.rect.element.height+.5*e.rect.element.marginBottom+.5*e.rect.element.marginTop},Mr=function(e){return e.rect.element.width+.5*e.rect.element.marginLeft+.5*e.rect.element.marginRight},Rr=function(e){var t=e.root,n=e.action,r=n.id,i=n.dragState,a=t.query("GET_ITEM",{id:r}),o=t.childViews.find((function(e){return e.id===r})),s=t.childViews.length,u=i.getItemIndex(a);if(o){var l={x:o.dragOrigin.x+o.dragOffset.x+o.dragCenter.x,y:o.dragOrigin.y+o.dragOffset.y+o.dragCenter.y},f=Ir(o),c=Mr(o),d=Math.floor(t.rect.outer.width/c);d>s&&(d=s);var h=Math.floor(s/d+1);Tr.setHeight=f*h,Tr.setWidth=c*d;var p={y:Math.floor(l.y/f),x:Math.floor(l.x/c),getGridIndex:function(){return l.y>Tr.getHeight||l.y<0||l.x>Tr.getWidth||l.x<0?u:this.y*d+this.x},getColIndex:function(){for(var e=t.query("GET_ACTIVE_ITEMS"),n=t.childViews.filter((function(e){return e.rect.element.height})),r=e.map((function(e){return n.find((function(t){return t.id===e.id}))})),i=r.findIndex((function(e){return e===o})),a=Ir(o),s=r.length,u=s,f=0,c=0,d=0;dd){if(l.y1?p.getGridIndex():p.getColIndex();t.dispatch("MOVE_ITEM",{query:o,index:m});var g=i.getIndex();if(void 0===g||g!==m){if(i.setIndex(m),void 0===g)return;t.dispatch("DID_REORDER_ITEMS",{items:t.query("GET_ACTIVE_ITEMS"),origin:u,target:m})}}},qr=N({DID_ADD_ITEM:Or,DID_REMOVE_ITEM:Br,DID_DRAG_ITEM:Rr}),Lr=function(e){var t=e.root,n=e.props,r=e.actions,i=e.shouldOptimize;qr({root:t,props:n,actions:r});var a=n.dragCoordinates,o=t.rect.element.width,s=t.childViews.filter((function(e){return e.rect.element.height})),u=t.query("GET_ACTIVE_ITEMS").map((function(e){return s.find((function(t){return t.id===e.id}))})).filter((function(e){return e})),l=a?Sr(t,u,a):null,f=t.ref.addIndex||null;t.ref.addIndex=null;var c=0,d=0,h=0;if(0!==u.length){var p=u[0].rect.element,m=p.marginTop+p.marginBottom,g=p.marginLeft+p.marginRight,_=p.width+g,F=p.height+m,b=Cr(o,_);if(1===b){var y=0,v=0;u.forEach((function(e,t){if(l){var n=t-l;v=-2===n?.25*-m:-1===n?.75*-m:0===n?.75*m:1===n?.25*m:0}i&&(e.translateX=null,e.translateY=null),e.markedForRemoval||Ar(e,0,y+v);var r=(e.rect.element.height+m)*(e.markedForRemoval?e.opacity:1);y+=r}))}else{var w=0,k=0;u.forEach((function(e,t){t===l&&(c=1),t===f&&(h+=1),e.markedForRemoval&&e.opacity<.5&&(d-=1);var n=t+h+c+d,r=n%b,a=Math.floor(n/b),o=r*_,s=a*F,u=Math.sign(o-w),p=Math.sign(s-k);w=o,k=s,e.markedForRemoval||(i&&(e.translateX=null,e.translateY=null),Ar(e,o,s,u,p))}))}}},$r=function(e,t){return t.filter((function(t){return!t.data||!t.data.id||e.id===t.data.id}))},Nr=L({create:Pr,write:Lr,tag:"ul",name:"list",didWriteView:function(e){var t=e.root;t.childViews.filter((function(e){return e.markedForRemoval&&0===e.opacity&&e.resting})).forEach((function(e){e._destroy(),t.removeChildView(e)}))},filterFrameActionsForChild:$r,mixins:{apis:["dragCoordinates"]}}),zr=function(e){var t=e.root,n=e.props;t.ref.list=t.appendChildView(t.createChildView(Nr)),n.dragCoordinates=null,n.overflowing=!1},Gr=function(e){var t=e.root,n=e.props,r=e.action;t.query("GET_ITEM_INSERT_LOCATION_FREEDOM")&&(n.dragCoordinates={left:r.position.scopeLeft-t.ref.list.rect.element.left,top:r.position.scopeTop-(t.rect.outer.top+t.rect.element.marginTop+t.rect.element.scrollTop)})},Vr=N({DID_DRAG:Gr,DID_END_DRAG:function(e){e.props.dragCoordinates=null}}),Hr=function(e){var t=e.root,n=e.props,r=e.actions;if(Vr({root:t,props:n,actions:r}),t.ref.list.dragCoordinates=n.dragCoordinates,n.overflowing&&!n.overflow&&(n.overflowing=!1,t.element.dataset.state="",t.height=null),n.overflow){var i=Math.round(n.overflow);i!==t.height&&(n.overflowing=!0,t.element.dataset.state="overflow",t.height=i)}},Ur=L({create:zr,write:Hr,name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),Wr=function(e,t,n){n?o(e,t,arguments.length>3&&void 0!==arguments[3]?arguments[3]:""):e.removeAttribute(t)},Yr=function(e){if(e&&""!==e.value){try{e.value=""}catch(e){}if(e.value){var t=bn("form"),n=e.parentNode,r=e.nextSibling;t.appendChild(e),t.reset(),r?n.insertBefore(e,r):n.appendChild(e)}}},Kr=function(e){var t=e.root,n=e.props;t.element.id="filepond--browser-"+n.id,o(t.element,"name",t.query("GET_NAME")),o(t.element,"aria-controls","filepond--assistant-"+n.id),o(t.element,"aria-labelledby","filepond--drop-label-"+n.id),Zr({root:t,action:{value:t.query("GET_ACCEPTED_FILE_TYPES")}}),Xr({root:t,action:{value:t.query("GET_ALLOW_MULTIPLE")}}),Qr({root:t,action:{value:t.query("GET_ALLOW_DIRECTORIES_ONLY")}}),Jr({root:t}),ei({root:t,action:{value:t.query("GET_REQUIRED")}}),ti({root:t,action:{value:t.query("GET_CAPTURE_METHOD")}}),t.ref.handleChange=function(e){if(t.element.value){var r=Array.from(t.element.files).map((function(e){return e._relativePath=e.webkitRelativePath,e}));setTimeout((function(){n.onload(r),Yr(t.element)}),250)}},t.element.addEventListener("change",t.ref.handleChange)},Zr=function(e){var t=e.root,n=e.action;t.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&Wr(t.element,"accept",!!n.value,n.value?n.value.join(","):"")},Xr=function(e){var t=e.root,n=e.action;Wr(t.element,"multiple",n.value)},Qr=function(e){var t=e.root,n=e.action;Wr(t.element,"webkitdirectory",n.value)},Jr=function(e){var t=e.root,n=t.query("GET_DISABLED"),r=t.query("GET_ALLOW_BROWSE"),i=n||!r;Wr(t.element,"disabled",i)},ei=function(e){var t=e.root;e.action.value?0===t.query("GET_TOTAL_ITEMS")&&Wr(t.element,"required",!0):Wr(t.element,"required",!1)},ti=function(e){var t=e.root,n=e.action;Wr(t.element,"capture",!!n.value,!0===n.value?"":n.value)},ni=function(e){var t=e.root,n=t.element;t.query("GET_TOTAL_ITEMS")>0?(Wr(n,"required",!1),Wr(n,"name",!1)):(Wr(n,"name",!0,t.query("GET_NAME")),t.query("GET_CHECK_VALIDITY")&&n.setCustomValidity(""),t.query("GET_REQUIRED")&&Wr(n,"required",!0))},ri=function(e){var t=e.root;t.query("GET_CHECK_VALIDITY")&&t.element.setCustomValidity(t.query("GET_LABEL_INVALID_FIELD"))},ii=L({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:Kr,destroy:function(e){var t=e.root;t.element.removeEventListener("change",t.ref.handleChange)},write:N({DID_LOAD_ITEM:ni,DID_REMOVE_ITEM:ni,DID_THROW_ITEM_INVALID:ri,DID_SET_DISABLED:Jr,DID_SET_ALLOW_BROWSE:Jr,DID_SET_ALLOW_DIRECTORIES_ONLY:Qr,DID_SET_ALLOW_MULTIPLE:Xr,DID_SET_ACCEPTED_FILE_TYPES:Zr,DID_SET_CAPTURE_METHOD:ti,DID_SET_REQUIRED:ei})}),ai={ENTER:13,SPACE:32},oi=function(e){var t=e.root,n=e.props,r=bn("label");o(r,"for","filepond--browser-"+n.id),o(r,"id","filepond--drop-label-"+n.id),o(r,"aria-hidden","true"),t.ref.handleKeyDown=function(e){(e.keyCode===ai.ENTER||e.keyCode===ai.SPACE)&&(e.preventDefault(),t.ref.label.click())},t.ref.handleClick=function(e){e.target===r||r.contains(e.target)||t.ref.label.click()},r.addEventListener("keydown",t.ref.handleKeyDown),t.element.addEventListener("click",t.ref.handleClick),si(r,n.caption),t.appendChild(r),t.ref.label=r},si=function(e,t){e.innerHTML=t;var n=e.querySelector(".filepond--label-action");return n&&o(n,"tabindex","0"),t},ui=L({name:"drop-label",ignoreRect:!0,create:oi,destroy:function(e){var t=e.root;t.ref.label.addEventListener("keydown",t.ref.handleKeyDown),t.element.removeEventListener("click",t.ref.handleClick)},write:N({DID_SET_LABEL_IDLE:function(e){var t=e.root,n=e.action;si(t.ref.label,n.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),li=L({name:"drip-blob",ignoreRect:!0,mixins:{styles:["translateX","translateY","scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",translateX:"spring",translateY:"spring",opacity:{type:"tween",duration:250}}}}),fi=function(e){var t=e.root,n=.5*t.rect.element.width,r=.5*t.rect.element.height;t.ref.blob=t.appendChildView(t.createChildView(li,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:n,translateY:r}))},ci=function(e){var t=e.root,n=e.action;t.ref.blob?(t.ref.blob.translateX=n.position.scopeLeft,t.ref.blob.translateY=n.position.scopeTop,t.ref.blob.scaleX=1,t.ref.blob.scaleY=1,t.ref.blob.opacity=1):fi({root:t})},di=function(e){var t=e.root;t.ref.blob&&(t.ref.blob.opacity=0)},hi=function(e){var t=e.root;t.ref.blob&&(t.ref.blob.scaleX=2.5,t.ref.blob.scaleY=2.5,t.ref.blob.opacity=0)},pi=function(e){var t=e.root,n=e.props,r=e.actions;mi({root:t,props:n,actions:r});var i=t.ref.blob;0===r.length&&i&&0===i.opacity&&(t.removeChildView(i),t.ref.blob=null)},mi=N({DID_DRAG:ci,DID_DROP:hi,DID_END_DRAG:di}),gi=L({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:pi}),_i=function(e,t){try{var n=new DataTransfer;t.forEach((function(e){e instanceof File?n.items.add(e):n.items.add(new File([e],e.name,{type:e.type}))})),e.files=n.files}catch(e){return!1}return!0},Fi=function(e){return e.root.ref.fields={}},bi=function(e,t){return e.ref.fields[t]},yi=function(e){e.query("GET_ACTIVE_ITEMS").forEach((function(t){e.ref.fields[t.id]&&e.element.appendChild(e.ref.fields[t.id])}))},vi=function(e){var t=e.root;return yi(t)},wi=function(e){var t=e.root,n=e.action,r=!(t.query("GET_ITEM",n.id).origin===Ne.LOCAL)&&t.query("SHOULD_UPDATE_FILE_INPUT"),i=bn("input");i.type=r?"file":"hidden",i.name=t.query("GET_NAME"),i.disabled=t.query("GET_DISABLED"),t.ref.fields[n.id]=i,yi(t)},ki=function(e){var t=e.root,n=e.action,r=bi(t,n.id);if(r&&(null!==n.serverFileReference&&(r.value=n.serverFileReference),t.query("SHOULD_UPDATE_FILE_INPUT"))){var i=t.query("GET_ITEM",n.id);_i(r,[i.file])}},Ei=function(e){var t=e.root,n=e.action;t.query("SHOULD_UPDATE_FILE_INPUT")&&setTimeout((function(){var e=bi(t,n.id);e&&_i(e,[n.file])}),0)},xi=function(e){var t=e.root;t.element.disabled=t.query("GET_DISABLED")},Di=function(e){var t=e.root,n=e.action,r=bi(t,n.id);r&&(r.parentNode&&r.parentNode.removeChild(r),delete t.ref.fields[n.id])},Ci=function(e){var t=e.root,n=e.action,r=bi(t,n.id);r&&(null===n.value?r.removeAttribute("value"):r.value=n.value,yi(t))},Si=N({DID_SET_DISABLED:xi,DID_ADD_ITEM:wi,DID_LOAD_ITEM:ki,DID_REMOVE_ITEM:Di,DID_DEFINE_VALUE:Ci,DID_PREPARE_OUTPUT:Ei,DID_REORDER_ITEMS:vi,DID_SORT_ITEMS:vi}),Ti=L({tag:"fieldset",name:"data",create:Fi,write:Si,ignoreRect:!0}),Pi=function(e){return"getRootNode"in e?e.getRootNode():document},Oi=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],Ai=["css","csv","html","txt"],ji={zip:"zip|compressed",epub:"application/epub+zip"},Bi=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=e.toLowerCase(),Oi.includes(e)?"image/"+("jpg"===e?"jpeg":"svg"===e?"svg+xml":e):Ai.includes(e)?"text/"+e:ji[e]||""},Ii=function(e){return new Promise((function(t,n){var r=Hi(e);if(r.length&&!Mi(e))return t(r);Ri(e).then(t)}))},Mi=function(e){return!!e.files&&e.files.length>0},Ri=function(e){return new Promise((function(t,n){var r=(e.items?Array.from(e.items):[]).filter((function(e){return qi(e)})).map((function(e){return Li(e)}));r.length?Promise.all(r).then((function(e){var n=[];e.forEach((function(e){n.push.apply(n,e)})),t(n.filter((function(e){return e})).map((function(e){return e._relativePath||(e._relativePath=e.webkitRelativePath),e})))})).catch(console.error):t(e.files?Array.from(e.files):[])}))},qi=function(e){if(Gi(e)){var t=Vi(e);if(t)return t.isFile||t.isDirectory}return"file"===e.kind},Li=function(e){return new Promise((function(t,n){zi(e)?$i(Vi(e)).then(t).catch(n):t([e.getAsFile()])}))},$i=function(e){return new Promise((function(t,n){var r=[],i=0,a=0,o=function(){0===a&&0===i&&t(r)},s=function e(t){i++;var s=t.createReader(),u=function t(){s.readEntries((function(n){if(0===n.length)return i--,void o();n.forEach((function(t){t.isDirectory?e(t):(a++,t.file((function(e){var n=Ni(e);t.fullPath&&(n._relativePath=t.fullPath),r.push(n),a--,o()})))})),t()}),n)};u()};s(e)}))},Ni=function(e){if(e.type.length)return e;var t=e.lastModifiedDate,n=e.name,r=Bi(yt(e.name));return r.length?((e=e.slice(0,e.size,r)).name=n,e.lastModifiedDate=t,e):e},zi=function(e){return Gi(e)&&(Vi(e)||{}).isDirectory},Gi=function(e){return"webkitGetAsEntry"in e},Vi=function(e){return e.webkitGetAsEntry()},Hi=function(e){var t=[];try{if((t=Wi(e)).length)return t;t=Ui(e)}catch(e){}return t},Ui=function(e){var t=e.getData("url");return"string"==typeof t&&t.length?[t]:[]},Wi=function(e){var t=e.getData("text/html");if("string"==typeof t&&t.length){var n=t.match(/src\s*=\s*"(.+?)"/);if(n)return[n[1]]}return[]},Yi=[],Ki=function(e){return{pageLeft:e.pageX,pageTop:e.pageY,scopeLeft:e.offsetX||e.layerX,scopeTop:e.offsetY||e.layerY}},Zi=function(e,t,n){var r=Xi(t),i={element:e,filterElement:n,state:null,ondrop:function(){},onenter:function(){},ondrag:function(){},onexit:function(){},onload:function(){},allowdrop:function(){}};return i.destroy=r.addListener(i),i},Xi=function(e){var t=Yi.find((function(t){return t.element===e}));if(t)return t;var n=Qi(e);return Yi.push(n),n},Qi=function(e){var t=[],n={dragenter:ra,dragover:ia,dragleave:oa,drop:aa},r={};i(n,(function(n,i){r[n]=i(e,t),e.addEventListener(n,r[n],!1)}));var a={element:e,addListener:function(o){return t.push(o),function(){t.splice(t.indexOf(o),1),0===t.length&&(Yi.splice(Yi.indexOf(a),1),i(n,(function(t){e.removeEventListener(t,r[t],!1)})))}}};return a},Ji=function(e,t){return"elementFromPoint"in e||(e=document),e.elementFromPoint(t.x,t.y)},ea=function(e,t){var n=Pi(t),r=Ji(n,{x:e.pageX-window.pageXOffset,y:e.pageY-window.pageYOffset});return r===t||t.contains(r)},ta=null,na=function(e,t){try{e.dropEffect=t}catch(e){}},ra=function(e,t){return function(e){e.preventDefault(),ta=e.target,t.forEach((function(t){var n=t.element,r=t.onenter;ea(e,n)&&(t.state="enter",r(Ki(e)))}))}},ia=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;Ii(n).then((function(r){var i=!1;t.some((function(t){var a=t.filterElement,o=t.element,s=t.onenter,u=t.onexit,l=t.ondrag,f=t.allowdrop;na(n,"copy");var c=f(r);if(c)if(ea(e,o)){if(i=!0,null===t.state)return t.state="enter",void s(Ki(e));if(t.state="over",a&&!c)return void na(n,"none");l(Ki(e))}else a&&!i&&na(n,"none"),t.state&&(t.state=null,u(Ki(e)));else na(n,"none")}))}))}},aa=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;Ii(n).then((function(n){t.forEach((function(t){var r=t.filterElement,i=t.element,a=t.ondrop,o=t.onexit,s=t.allowdrop;if(t.state=null,!r||ea(e,i))return s(n)?void a(Ki(e),n):o(Ki(e))}))}))}},oa=function(e,t){return function(e){ta===e.target&&t.forEach((function(t){var n=t.onexit;t.state=null,n(Ki(e))}))}},sa=function(e,t,n){e.classList.add("filepond--hopper");var r=n.catchesDropsOnPage,i=n.requiresDropOnElement,a=n.filterItems,o=void 0===a?function(e){return e}:a,s=Zi(e,r?document.documentElement:e,i),u="",l="";s.allowdrop=function(e){return t(o(e))},s.ondrop=function(e,n){var r=o(n);t(r)?(l="drag-drop",f.onload(r,e)):f.ondragend(e)},s.ondrag=function(e){f.ondrag(e)},s.onenter=function(e){l="drag-over",f.ondragstart(e)},s.onexit=function(e){l="drag-exit",f.ondragend(e)};var f={updateHopperState:function(){u!==l&&(e.dataset.hopperState=l,u=l)},onload:function(){},ondragstart:function(){},ondrag:function(){},ondragend:function(){},destroy:function(){s.destroy()}};return f},ua=!1,la=[],fa=function(e){var t=document.activeElement;if(t&&/textarea|input/i.test(t.nodeName)){for(var n=!1,r=t;r!==document.body;){if(r.classList.contains("filepond--root")){n=!0;break}r=r.parentNode}if(!n)return}Ii(e.clipboardData).then((function(e){e.length&&la.forEach((function(t){return t(e)}))}))},ca=function(e){la.includes(e)||(la.push(e),ua||(ua=!0,document.addEventListener("paste",fa)))},da=function(e){je(la,la.indexOf(e)),0===la.length&&(document.removeEventListener("paste",fa),ua=!1)},ha=function(){var e=function(e){t.onload(e)},t={destroy:function(){da(e)},onload:function(){}};return ca(e),t},pa=function(e){var t=e.root,n=e.props;t.element.id="filepond--assistant-"+n.id,o(t.element,"role","status"),o(t.element,"aria-live","polite"),o(t.element,"aria-relevant","additions")},ma=null,ga=null,_a=[],Fa=function(e,t){e.element.textContent=t},ba=function(e){e.element.textContent=""},ya=function(e,t,n){var r=e.query("GET_TOTAL_ITEMS");Fa(e,n+" "+t+", "+r+" "+(1===r?e.query("GET_LABEL_FILE_COUNT_SINGULAR"):e.query("GET_LABEL_FILE_COUNT_PLURAL"))),clearTimeout(ga),ga=setTimeout((function(){ba(e)}),1500)},va=function(e){return e.element.parentNode.contains(document.activeElement)},wa=function(e){var t=e.root,n=e.action;if(va(t)){t.element.textContent="";var r=t.query("GET_ITEM",n.id);_a.push(r.filename),clearTimeout(ma),ma=setTimeout((function(){ya(t,_a.join(", "),t.query("GET_LABEL_FILE_ADDED")),_a.length=0}),750)}},ka=function(e){var t=e.root,n=e.action;if(va(t)){var r=n.item;ya(t,r.filename,t.query("GET_LABEL_FILE_REMOVED"))}},Ea=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id).filename,i=t.query("GET_LABEL_FILE_PROCESSING_COMPLETE");Fa(t,r+" "+i)},xa=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id).filename,i=t.query("GET_LABEL_FILE_PROCESSING_ABORTED");Fa(t,r+" "+i)},Da=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id).filename;Fa(t,n.status.main+" "+r+" "+n.status.sub)},Ca=L({create:pa,ignoreRect:!0,ignoreRectUpdate:!0,write:N({DID_LOAD_ITEM:wa,DID_REMOVE_ITEM:ka,DID_COMPLETE_ITEM_PROCESSING:Ea,DID_ABORT_ITEM_PROCESSING:xa,DID_REVERT_ITEM_PROCESSING:xa,DID_THROW_ITEM_REMOVE_ERROR:Da,DID_THROW_ITEM_LOAD_ERROR:Da,DID_THROW_ITEM_INVALID:Da,DID_THROW_ITEM_PROCESSING_ERROR:Da}),tag:"span",name:"assistant"}),Sa=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return e.replace(new RegExp(t+".","g"),(function(e){return e.charAt(1).toUpperCase()}))},Ta=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Date.now(),i=null;return function(){for(var a=arguments.length,o=new Array(a),s=0;s2*C)for(var S=D.length,T=S-10,P=0,O=S;O>=T;O--)if(D[O]===D[O-2]&&P++,P>=C)return;l.scalable=!1,l.height=x;var A=x-b-(v-g.bottom)-(h?y:0);_.visual>A?u.overflow=A:u.overflow=null,t.height=x}else if(i.fixedHeight){l.scalable=!1;var j=i.fixedHeight-b-(v-g.bottom)-(h?y:0);_.visual>j?u.overflow=j:u.overflow=null}else if(i.cappedHeight){var B=w>=i.cappedHeight,I=Math.min(i.cappedHeight,w);l.scalable=!0,l.height=B?I:I-g.top-g.bottom;var M=I-b-(v-g.bottom)-(h?y:0);w>i.cappedHeight&&_.visual>M?u.overflow=M:u.overflow=null,t.height=Math.min(i.cappedHeight,k-g.top-g.bottom)}else{var R=d>0?g.top+g.bottom:0;l.scalable=!0,l.height=Math.max(F,w-R),t.height=Math.max(F,k-R)}t.ref.credits&&l.heightCurrent&&(t.ref.credits.style.transform="translateY("+l.heightCurrent+"px)")}},Ba=function(e){var t=e.ref.list.childViews[0].childViews[0];return t?{top:t.rect.element.marginTop,bottom:t.rect.element.marginBottom}:{top:0,bottom:0}},Ia=function(e){var t=0,n=0,r=e.ref.list,i=r.childViews[0],a=i.childViews.filter((function(e){return e.rect.element.height})),o=e.query("GET_ACTIVE_ITEMS").map((function(e){return a.find((function(t){return t.id===e.id}))})).filter((function(e){return e}));if(0===o.length)return{visual:t,bounds:n};var s=i.rect.element.width,u=Sr(i,o,r.dragCoordinates),l=o[0].rect.element,f=l.marginTop+l.marginBottom,c=l.marginLeft+l.marginRight,d=l.width+c,h=l.height+f,p=void 0!==u&&u>=0?1:0,m=o.find((function(e){return e.markedForRemoval&&e.opacity<.45}))?-1:0,g=o.length+p+m,_=Cr(s,d);return 1===_?o.forEach((function(e){var r=e.rect.element.height+f;n+=r,t+=r*e.opacity})):(n=Math.ceil(g/_)*h,t=n),{visual:t,bounds:n}},Ma=function(e){var t=e.ref.measureHeight||null;return{cappedHeight:parseInt(e.style.maxHeight,10)||null,fixedHeight:0===t?null:t}},Ra=function(e,t){var n=e.query("GET_ALLOW_REPLACE"),r=e.query("GET_ALLOW_MULTIPLE"),i=e.query("GET_TOTAL_ITEMS"),a=e.query("GET_MAX_FILES"),o=t.length;return!r&&o>1||!!(te(a=r||n?a:1)&&i+o>a)&&(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:$t("warning",0,"Max files")}),!0)},qa=function(e,t,n){var r=e.childViews[0];return Sr(r,t,{left:n.scopeLeft-r.rect.element.left,top:n.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},La=function(e){var t=e.query("GET_ALLOW_DROP"),n=e.query("GET_DISABLED"),r=t&&!n;if(r&&!e.ref.hopper){var i=sa(e.element,(function(t){var n=e.query("GET_BEFORE_DROP_FILE")||function(){return!0};return!e.query("GET_DROP_VALIDATION")||t.every((function(t){return Ye("ALLOW_HOPPER_ITEM",t,{query:e.query}).every((function(e){return!0===e}))&&n(t)}))}),{filterItems:function(t){var n=e.query("GET_IGNORED_FILES");return t.filter((function(e){return!tn(e)||!n.includes(e.name.toLowerCase())}))},catchesDropsOnPage:e.query("GET_DROP_ON_PAGE"),requiresDropOnElement:e.query("GET_DROP_ON_ELEMENT")});i.onload=function(t,n){var r=e.ref.list.childViews[0].childViews.filter((function(e){return e.rect.element.height})),i=e.query("GET_ACTIVE_ITEMS").map((function(e){return r.find((function(t){return t.id===e.id}))})).filter((function(e){return e}));We("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(Ra(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:qa(e.ref.list,i,n),interactionMethod:ke.DROP})})),e.dispatch("DID_DROP",{position:n}),e.dispatch("DID_END_DRAG",{position:n})},i.ondragstart=function(t){e.dispatch("DID_START_DRAG",{position:t})},i.ondrag=Ta((function(t){e.dispatch("DID_DRAG",{position:t})})),i.ondragend=function(t){e.dispatch("DID_END_DRAG",{position:t})},e.ref.hopper=i,e.ref.drip=e.appendChildView(e.createChildView(gi))}else!r&&e.ref.hopper&&(e.ref.hopper.destroy(),e.ref.hopper=null,e.removeChildView(e.ref.drip))},$a=function(e,t){var n=e.query("GET_ALLOW_BROWSE"),r=e.query("GET_DISABLED"),i=n&&!r;i&&!e.ref.browser?e.ref.browser=e.appendChildView(e.createChildView(ii,Object.assign({},t,{onload:function(t){We("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(Ra(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:ke.BROWSE})}))}})),0):!i&&e.ref.browser&&(e.removeChildView(e.ref.browser),e.ref.browser=null)},Na=function(e){var t=e.query("GET_ALLOW_PASTE"),n=e.query("GET_DISABLED"),r=t&&!n;r&&!e.ref.paster?(e.ref.paster=ha(),e.ref.paster.onload=function(t){We("ADD_ITEMS",t,{dispatch:e.dispatch}).then((function(t){if(Ra(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:ke.PASTE})}))}):!r&&e.ref.paster&&(e.ref.paster.destroy(),e.ref.paster=null)},za=N({DID_SET_ALLOW_BROWSE:function(e){var t=e.root,n=e.props;$a(t,n)},DID_SET_ALLOW_DROP:function(e){var t=e.root;La(t)},DID_SET_ALLOW_PASTE:function(e){var t=e.root;Na(t)},DID_SET_DISABLED:function(e){var t=e.root,n=e.props;La(t),Na(t),$a(t,n),t.query("GET_DISABLED")?t.element.dataset.disabled="disabled":t.element.removeAttribute("data-disabled")}}),Ga=L({name:"root",read:function(e){var t=e.root;t.ref.measure&&(t.ref.measureHeight=t.ref.measure.offsetHeight)},create:Aa,write:ja,destroy:function(e){var t=e.root;t.ref.paster&&t.ref.paster.destroy(),t.ref.hopper&&t.ref.hopper.destroy(),t.element.removeEventListener("touchmove",Oa),t.element.removeEventListener("gesturestart",Oa)},mixins:{styles:["height"]}}),Va=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null,r=Xe(),i=n(Fe(r),[ht,we(r)],[gn,ve(r)]);i.dispatch("SET_OPTIONS",{options:e});var o=function(){document.hidden||i.dispatch("KICK")};document.addEventListener("visibilitychange",o);var s=null,u=!1,l=!1,f=null,c=null,d=function(){u||(u=!0),clearTimeout(s),s=setTimeout((function(){u=!1,f=null,c=null,l&&(l=!1,i.dispatch("DID_STOP_RESIZE"))}),500)};window.addEventListener("resize",d);var h=Ga(i,{id:Ee()}),p=!1,m=!1,g={_read:function(){u&&(c=window.innerWidth,f||(f=c),l||c===f||(i.dispatch("DID_START_RESIZE"),l=!0)),m&&p&&(p=null===h.element.offsetParent),p||(h._read(),m=h.rect.element.hidden)},_write:function(e){var t=i.processActionQueue().filter((function(e){return!/^SET_/.test(e.type)}));p&&!t.length||(v(t),p=h._write(e,t,l),Le(i.query("GET_ITEMS")),p&&i.processDispatchQueue())}},_=function(e){return function(t){var n={type:e};if(!t)return n;if(t.hasOwnProperty("error")&&(n.error=t.error?Object.assign({},t.error):null),t.status&&(n.status=Object.assign({},t.status)),t.file&&(n.output=t.file),t.source)n.file=t.source;else if(t.item||t.id){var r=t.item?t.item:i.query("GET_ITEM",t.id);n.file=r?qe(r):null}return t.items&&(n.items=t.items.map(qe)),/progress/.test(e)&&(n.progress=t.progress),t.hasOwnProperty("origin")&&t.hasOwnProperty("target")&&(n.origin=t.origin,n.target=t.target),n}},F={DID_DESTROY:_("destroy"),DID_INIT:_("init"),DID_THROW_MAX_FILES:_("warning"),DID_INIT_ITEM:_("initfile"),DID_START_ITEM_LOAD:_("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:_("addfileprogress"),DID_LOAD_ITEM:_("addfile"),DID_THROW_ITEM_INVALID:[_("error"),_("addfile")],DID_THROW_ITEM_LOAD_ERROR:[_("error"),_("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[_("error"),_("removefile")],DID_PREPARE_OUTPUT:_("preparefile"),DID_START_ITEM_PROCESSING:_("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:_("processfileprogress"),DID_ABORT_ITEM_PROCESSING:_("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:_("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:_("processfiles"),DID_REVERT_ITEM_PROCESSING:_("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[_("error"),_("processfile")],DID_REMOVE_ITEM:_("removefile"),DID_UPDATE_ITEMS:_("updatefiles"),DID_ACTIVATE_ITEM:_("activatefile"),DID_REORDER_ITEMS:_("reorderfiles")},b=function(e){var t=Object.assign({pond:B},e);delete t.type,h.element.dispatchEvent(new CustomEvent("FilePond:"+e.type,{detail:t,bubbles:!0,cancelable:!0,composed:!0}));var n=[];e.hasOwnProperty("error")&&n.push(e.error),e.hasOwnProperty("file")&&n.push(e.file);var r=["type","error","file"];Object.keys(e).filter((function(e){return!r.includes(e)})).forEach((function(t){return n.push(e[t])})),B.fire.apply(B,[e.type].concat(n));var a=i.query("GET_ON"+e.type.toUpperCase());a&&a.apply(void 0,n)},v=function(e){e.length&&e.filter((function(e){return F[e.type]})).forEach((function(e){var t=F[e.type];(Array.isArray(t)?t:[t]).forEach((function(t){"DID_INIT_ITEM"===e.type?b(t(e.data)):setTimeout((function(){b(t(e.data))}),0)}))}))},w=function(e){return i.dispatch("SET_OPTIONS",{options:e})},k=function(e){return i.query("GET_ACTIVE_ITEM",e)},E=function(e){return new Promise((function(t,n){i.dispatch("REQUEST_ITEM_PREPARE",{query:e,success:function(e){t(e)},failure:function(e){n(e)}})}))},x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,r){S([{source:e,options:t}],{index:t.index}).then((function(e){return n(e&&e[0])})).catch(r)}))},D=function(e){return e.file&&e.id},C=function(e,t){return"object"!=typeof e||D(e)||t||(t=e,e=void 0),i.dispatch("REMOVE_ITEM",Object.assign({},t,{query:e})),null===i.query("GET_ACTIVE_ITEM",e)},S=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t={};return i(Xe(),(function(e,n){t[e]=n[0]})),Va(Object.assign({},t,{},e))},Ua=function(e){return e.charAt(0).toLowerCase()+e.slice(1)},Wa=function(e){return Sa(e.replace(/^data-/,""))},Ya=function e(t,n){i(n,(function(n,r){i(t,(function(e,i){var a=new RegExp(n);if(a.test(e)&&(delete t[e],!1!==r))if(X(r))t[r]=i;else{var o=r.group;le(r)&&!t[o]&&(t[o]={}),t[o][Ua(e.replace(a,""))]=i}})),r.mapping&&e(t[r.group],r.mapping)}))},Ka=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];i(e.attributes,(function(t){n.push(e.attributes[t])}));var r=n.filter((function(e){return e.name})).reduce((function(t,n){var r=o(e,n.name);return t[Wa(n.name)]=r===n.name||r,t}),{});return Ya(r,t),r},Za=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={"^class$":"className","^multiple$":"allowMultiple","^capture$":"captureMethod","^webkitdirectory$":"allowDirectoriesOnly","^server":{group:"server",mapping:{"^process":{group:"process"},"^revert":{group:"revert"},"^fetch":{group:"fetch"},"^restore":{group:"restore"},"^load":{group:"load"}}},"^type$":!1,"^files$":!1};Ye("SET_ATTRIBUTE_TO_OPTION_MAP",n);var r=Object.assign({},t),i=Ka("FIELDSET"===e.nodeName?e.querySelector("input[type=file]"):e,n);Object.keys(i).forEach((function(e){le(i[e])?(le(r[e])||(r[e]={}),Object.assign(r[e],i[e])):r[e]=i[e]})),r.files=(t.files||[]).concat(Array.from(e.querySelectorAll("input:not([type=file])")).map((function(e){return{source:e.value,options:{type:e.dataset.type}}})));var a=Ha(r);return e.files&&Array.from(e.files).forEach((function(e){a.addFile(e)})),a.replaceElement(e),a},Xa=function(){return t(arguments.length<=0?void 0:arguments[0])?Za.apply(void 0,arguments):Ha.apply(void 0,arguments)},Qa=["fire","_read","_write"],Ja=function(e){var t={};return Me(e,t,Qa),t},eo=function(e,t){return e.replace(/(?:{([a-zA-Z]+)})/g,(function(e,n){return t[n]}))},to=function(e){var t=new Blob(["(",e.toString(),")()"],{type:"application/javascript"}),n=URL.createObjectURL(t),r=new Worker(n);return{transfer:function(e,t){},post:function(e,t,n){var i=Ee();r.onmessage=function(e){e.data.id===i&&t(e.data.message)},r.postMessage({id:i,message:e},n)},terminate:function(){r.terminate(),URL.revokeObjectURL(n)}}},no=function(e){return new Promise((function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=function(e){n(e)},r.src=e}))},ro=function(e,t){var n=e.slice(0,e.size,e.type);return n.lastModifiedDate=e.lastModifiedDate,n.name=t,n},io=function(e){return ro(e,e.name)},ao=[],oo=function(e){if(!ao.includes(e)){ao.push(e);var t=e({addFilter:Ke,utils:{Type:He,forin:i,isString:X,isFile:tn,toNaturalFileSize:Pn,replaceInString:eo,getExtensionFromFilename:yt,getFilenameWithoutExtension:Jt,guesstimateMimeType:Bi,getFileFromBlob:Et,getFilenameFromURL:bt,createRoute:N,createWorker:to,createView:L,createItemAPI:qe,loadImage:no,copyFile:io,renameFile:ro,createBlob:Dt,applyFilterChain:We,text:yn,getNumericAspectRatioFromString:tt},views:{fileActionButton:Tn}});Ze(t.options)}},so=function(){return"[object OperaMini]"===Object.prototype.toString.call(window.operamini)},uo=function(){return"Promise"in window},lo=function(){return"slice"in Blob.prototype},fo=function(){return"URL"in window&&"createObjectURL"in window.URL},co=function(){return"visibilityState"in document},ho=function(){return"performance"in window},po=function(){return"supports"in(window.CSS||{})},mo=function(){return/MSIE|Trident/.test(window.navigator.userAgent)},go=(Yn=m()&&!so()&&co()&&uo()&&lo()&&fo()&&ho()&&(po()||mo()),function(){return Yn}),_o={apps:[]},Fo="filepond",bo=function(){};if(e.Status={},e.FileStatus={},e.FileOrigin={},e.OptionTypes={},e.create=bo,e.destroy=bo,e.parse=bo,e.find=bo,e.registerPlugin=bo,e.getOptions=bo,e.setOptions=bo,go()){$((function(){_o.apps.forEach((function(e){return e._read()}))}),(function(e){_o.apps.forEach((function(t){return t._write(e)}))}));var yo=function t(){document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:go,create:e.create,destroy:e.destroy,parse:e.parse,find:e.find,registerPlugin:e.registerPlugin,setOptions:e.setOptions}})),document.removeEventListener("DOMContentLoaded",t)};"loading"!==document.readyState?setTimeout((function(){return yo()}),0):document.addEventListener("DOMContentLoaded",yo);var vo=function(){return i(Xe(),(function(t,n){e.OptionTypes[t]=n[1]}))};e.Status=Object.assign({},rt),e.FileOrigin=Object.assign({},Ne),e.FileStatus=Object.assign({},$e),e.OptionTypes={},vo(),e.create=function(){var t=Xa.apply(void 0,arguments);return t.on("destroy",e.destroy),_o.apps.push(t),Ja(t)},e.destroy=function(e){var t=_o.apps.findIndex((function(t){return t.isAttachedTo(e)}));return t>=0&&(_o.apps.splice(t,1)[0].restoreElement(),!0)},e.parse=function(t){return Array.from(t.querySelectorAll("."+Fo)).filter((function(e){return!_o.apps.find((function(t){return t.isAttachedTo(e)}))})).map((function(t){return e.create(t)}))},e.find=function(e){var t=_o.apps.find((function(t){return t.isAttachedTo(e)}));return t?Ja(t):null},e.registerPlugin=function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&t-1 in e)}function a(e){return e instanceof Element}function o(n){return n instanceof o?n:this instanceof o?void(null!=n&&n!==e&&(this[0]=n.nodeName?n:void 0!==n[0]&&n[0].nodeName?n[0]:t.querySelector(n),void 0!==this[0]&&null!==this[0]&&(this[0].eventRegistry=this[0].eventRegistry||{}))):new o(n)}return o.prototype={on:function(e,t){if(a(this[0]))for(var n=this[0].eventRegistry,r=this[0],i=function(e,i){r.addEventListener?r.addEventListener(e,t,!1):r.attachEvent&&r.attachEvent("on"+e,t),n[e]=n[e]||{},n[e][i]=n[e][i]||[],n[e][i].push(t)},o=e.split(" "),s=0;s0)if(void 0===t)for(i=0,a=n[e][r].length;i0?r:"global",handler:n[e][r][i]});else o.push({ev:e,namespace:r&&r.length>0?r:"global",handler:t});else if(r.length>0)for(var s in n)for(var u in n[s])if(u===r)if(void 0===t)for(i=0,a=n[s][u].length;i=e.day)&&t}function o(e,t){var n=!0;if(t.min){if(e.rawyear){var r=e.rawyear.replace(/[^0-9]/g,"");n=t.min.year.substr(0,r.length)<=r}e.year===e.rawyear&&t.min.date.getTime()==t.min.date.getTime()&&(n=t.min.date.getTime()<=e.date.getTime())}return n&&t.max&&t.max.date.getTime()==t.max.date.getTime()&&(n=t.max.date.getTime()>=e.date.getTime()),n}function s(t,r,a,o){for(var s,u="";s=i(a).exec(t);)if(void 0===r)if(n[s[0]])u+="("+n[s[0]][0]+")";else switch(s[0]){case"[":u+="(";break;case"]":u+=")?";break;default:u+=e.escapeRegex(s[0])}else n[s[0]]?!0!==o&&n[s[0]][3]?u+=n[s[0]][3].call(r.date):n[s[0]][2]?u+=r["raw"+n[s[0]][2]]:u+=s[0]:u+=s[0];return u}function u(e,t){for(e=String(e),t=t||2;e.lengtho.slice(0,n.length)?o.slice(n.length):t.toString().slice(n.length))}return t}function c(e,t,n){e[a]=f(t),e["raw"+a]=t,void 0!==s&&s.call(e.date,"month"==a?parseInt(e[a])-1:e[a])}if("string"==typeof l){for(;o=i(r).exec(t);){var d=l.slice(0,o[0].length);n.hasOwnProperty(o[0])&&(n[o[0]][0],a=n[o[0]][2],s=n[o[0]][1],c(u,d,r)),l=l.slice(d.length)}return u}if(l&&"object"==typeof l&&l.hasOwnProperty("date"))return l}return e.extendAliases({datetime:{mask:function(e){return n.S=e.i18n.ordinalSuffix.join("|"),e.inputFormat=r[e.inputFormat]||e.inputFormat,e.displayFormat=r[e.displayFormat]||e.displayFormat||e.inputFormat,e.outputFormat=r[e.outputFormat]||e.outputFormat||e.inputFormat,e.placeholder=""!==e.placeholder?e.placeholder:e.inputFormat.replace(/[\[\]]/,""),e.regex=s(e.inputFormat,void 0,e),null},placeholder:"",inputFormat:"isoDateTime",displayFormat:void 0,outputFormat:void 0,min:null,max:null,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"]},postValidation:function(e,t,n,r){r.min=l(r.min,r.inputFormat,r),r.max=l(r.max,r.inputFormat,r);var i=n,u=l(e.join(""),r.inputFormat,r);return i&&u.date.getTime()==u.date.getTime()&&(i=(i=a(u,i))&&o(u,r)),t&&i&&n.pos!==t?{buffer:s(r.inputFormat,u,r),refreshFromBuffer:{start:t,end:n.pos}}:i},onKeyDown:function(n,r,a,o){var s=this;if(n.ctrlKey&&n.keyCode===e.keyCode.RIGHT){for(var l,f=new Date,c="";l=i(o).exec(o.inputFormat);)"d"===l[0].charAt(0)?c+=u(f.getDate(),l[0].length):"m"===l[0].charAt(0)?c+=u(f.getMonth()+1,l[0].length):"yyyy"===l[0]?c+=f.getFullYear().toString():"y"===l[0].charAt(0)&&(c+=u(f.getYear(),l[0].length));s.inputmask._valueSet(c),t(s).trigger("setvalue")}},onUnMask:function(e,t,n){return s(n.outputFormat,l(e,n.inputFormat,n),n,!0)},casing:function(e,t,n,r){return 0==t.nativeDef.indexOf("[ap]")?e.toLowerCase():0==t.nativeDef.indexOf("[AP]")?e.toUpperCase():e},insertMode:!1,shiftPositions:!1}}),e})?r.apply(t,i):r)||(e.exports=a)},1860:function(e,t,n){var r,i,a; /*! * inputmask.extensions.js * https://github.com/RobinHerbots/Inputmask * Copyright (c) 2010 - 2019 Robin Herbots * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) * Version: 4.0.9 */i=[n(12707)],void 0===(a="function"==typeof(r=function(e){return e.extendDefinitions({A:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"&":{validator:"[0-9A-Za-zА-яЁёÀ-ÿµ]",casing:"upper"},"#":{validator:"[0-9A-Fa-f]",casing:"upper"}}),e.extendAliases({cssunit:{regex:"[+-]?[0-9]+\\.?([0-9]+)?(px|em|rem|ex|%|in|cm|mm|pt|pc)"},url:{regex:"(https?|ftp)//.*",autoUnmask:!1},ip:{mask:"i[i[i]].i[i[i]].i[i[i]].i[i[i]]",definitions:{i:{validator:function(e,t,n,r,i){return n-1>-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,new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]").test(e)}}},onUnMask:function(e,t,n){return e},inputmode:"numeric"},email:{mask:"*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",greedy:!1,casing:"lower",onBeforePaste:function(e,t){return(e=e.toLowerCase()).replace("mailto:","")},definitions:{"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ!#$%&'*+/=?^_`{|}~-]"},"-":{validator:"[0-9A-Za-z-]"}},onUnMask:function(e,t,n){return e},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",casing:"upper"}},clearIncomplete:!0,autoUnmask:!0}}),e})?r.apply(t,i):r)||(e.exports=a)},12707:function(e,t,n){var r,i,a; /*! * inputmask.js * https://github.com/RobinHerbots/Inputmask * Copyright (c) 2010 - 2019 Robin Herbots * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) * Version: 4.0.9 */i=[n(72277),n(32399)],r=function(e,t,n){var r=t.document,i=navigator.userAgent,a=i.indexOf("MSIE ")>0||i.indexOf("Trident/")>0,o=d("touchstart"),s=/iemobile/i.test(i),u=/iphone/i.test(i)&&!s;function l(t,r,i){if(!(this instanceof l))return new l(t,r,i);this.el=n,this.events={},this.maskset=n,this.refreshValue=!1,!0!==i&&(e.isPlainObject(t)?r=t:(r=r||{},t&&(r.alias=t)),this.opts=e.extend(!0,{},this.defaults,r),this.noMasksCache=r&&r.definitions!==n,this.userOptions=r||{},this.isRTL=this.opts.numericInput,f(this.opts.alias,r,this.opts))}function f(t,r,i){var a=l.prototype.aliases[t];return a?(a.alias&&f(a.alias,n,i),e.extend(!0,i,a),e.extend(!0,i,r),!0):(null===i.mask&&(i.mask=t),!1)}function c(t,r){function i(t,i,a){var o=!1;if(null!==t&&""!==t||((o=null!==a.regex)?t=(t=a.regex).replace(/^(\^)(.*)(\$)$/,"$2"):(o=!0,t=".*")),1===t.length&&!1===a.greedy&&0!==a.repeat&&(a.placeholder=""),a.repeat>0||"*"===a.repeat||"+"===a.repeat){var s="*"===a.repeat?0:"+"===a.repeat?1:a.repeat;t=a.groupmarker[0]+t+a.groupmarker[1]+a.quantifiermarker[0]+s+","+a.repeat+a.quantifiermarker[1]}var u,f=o?"regex_"+a.regex:a.numericInput?t.split("").reverse().join(""):t;return l.prototype.masksCache[f]===n||!0===r?(u={mask:t,maskToken:l.prototype.analyseMask(t,o,a),validPositions:{},_buffer:n,buffer:n,tests:{},excludes:{},metadata:i,maskLength:n,jitOffset:{}},!0!==r&&(l.prototype.masksCache[f]=u,u=e.extend(!0,{},l.prototype.masksCache[f]))):u=e.extend(!0,{},l.prototype.masksCache[f]),u}if(e.isFunction(t.mask)&&(t.mask=t.mask(t)),e.isArray(t.mask)){if(t.mask.length>1){if(null===t.keepStatic){t.keepStatic="auto";for(var a=0;a1&&(o+=t.groupmarker[1]+t.alternatormarker+t.groupmarker[0]),i.mask===n||e.isFunction(i.mask)?o+=i:o+=i.mask})),i(o+=t.groupmarker[1],t.mask,t)}t.mask=t.mask.pop()}return t.mask&&t.mask.mask!==n&&!e.isFunction(t.mask.mask)?i(t.mask.mask,t.mask,t):i(t.mask,t.mask,t)}function d(e){var t=r.createElement("input"),n="on"+e,i=n in t;return i||(t.setAttribute(n,"return;"),i="function"==typeof t[n]),t=null,i}function h(i,f,c){f=f||this.maskset,c=c||this.opts;var p,m,g,_,F,b=this,y=this.el,v=this.isRTL,w=!1,k=!1,E=!1,x=!1,D=function(e,t,r,i,a){var o=c.greedy;a&&(c.greedy=!1),t=t||0;var s,u,l,f=[],d=0;T();do{if(!0===e&&C().validPositions[d])u=(l=a&&!0===C().validPositions[d].match.optionality&&C().validPositions[d+1]===n&&(!0===C().validPositions[d].generatedInput||C().validPositions[d].input==c.skipOptionalPartCharacter&&d>0)?A(d,M(d,s,d-1)):C().validPositions[d]).match,s=l.locator.slice(),f.push(!0===r?l.input:!1===r?u.nativeDef:Z(d,u));else{u=(l=j(d,s,d-1)).match,s=l.locator.slice();var h=!0!==i&&(!1!==c.jitMasking?c.jitMasking:u.jit);(!1===h||h===n||"number"==typeof h&&isFinite(h)&&h>d)&&f.push(!1===r?u.nativeDef:Z(d,u))}"auto"===c.keepStatic&&u.newBlockMarker&&null!==u.fn&&(c.keepStatic=d-1),d++}while((g===n||dd);return""===f[f.length-1]&&f.pop(),!1===r&&C().maskLength!==n||(C().maskLength=d-1),c.greedy=o,f};function C(){return f}function S(e){var t=C();t.buffer=n,!0!==e&&(t.validPositions={},t.p=0)}function T(e,t,r){var i=-1,a=-1,o=r||C().validPositions;for(var s in e===n&&(e=-1),o){var u=parseInt(s);o[u]&&(t||!0!==o[u].generatedInput)&&(u<=e&&(i=u),u>=e&&(a=u))}return-1===i||i==e?a:-1==a||e-i0&&(t=t.split(",")[0]),t!==n?t.toString():""}function O(e,t){var r=(e.alternation!=n?e.mloc[P(e)]:e.locator).join("");if(""!==r)for(;r.length0?e-1:0)),s=0;s500&&m!==n)throw"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. "+C().mask;if(s===t&&o.matches===n)return l.push({match:o,locator:u.reverse(),cd:d,mloc:{}}),!0;if(o.matches!==n){if(o.isGroup&&m!==o){if(o=p(r.matches[e.inArray(o,r.matches)+1],u,m))return!0}else if(o.isOptional){var v=o;if(o=h(o,i,u,m)){if(e.each(l,(function(e,t){t.match.optionality=!0})),a=l[l.length-1].match,m!==n||!g(a,v))return!0;f=!0,s=t}}else if(o.isAlternator){var w,k=o,E=[],x=l.slice(),D=u.length,S=i.length>0?i.shift():-1;if(-1===S||"string"==typeof S){var T,P=s,O=i.slice(),A=[];if("string"==typeof S)A=S.split(",");else for(T=0;T=c.keepStatic)&&(A=A.slice(0,1));for(var M=!1,R=0;R0,o=E.length>0,i=O.slice()}else o=p(k.matches[S]||r.matches[S],[S].concat(u),m);if(o)return!0}else if(o.isQuantifier&&m!==r.matches[e.inArray(o,r.matches)-1])for(var G=o,V=i.length>0?i.shift():0;V<(isNaN(G.quantifier.max)?V+1:G.quantifier.max)&&s<=t;V++){var H=r.matches[e.inArray(G,r.matches)-1];if(o=p(H,[V].concat(u),H)){if((a=l[l.length-1].match).optionalQuantifier=V>=G.quantifier.min,a.jit=(V||1)*H.matches.indexOf(a)>=G.quantifier.jit,a.optionalQuantifier&&g(a,H)){f=!0,s=t;break}return a.jit&&(C().jitOffset[t]=H.matches.indexOf(a)),!0}}else if(o=h(o,i,u,m))return!0}else s++}for(var m=i.length>0?i.shift():0;mt)break}}function p(t,r){var i=[];return e.isArray(r)||(r=[r]),r.length>0&&(r[0].alternation===n?0===(i=A(t,r.slice()).locator.slice()).length&&(i=r[0].locator.slice()):e.each(r,(function(e,t){if(""!==t.def)if(0===i.length)i=t.locator.slice();else for(var n=0;n-1){if(r===n){for(var m,g=t-1;(m=C().validPositions[g]||C().tests[g])===n&&g>-1;)g--;m!==n&&g>-1&&(u=p(g,m),d=u.join(""),s=g)}if(C().tests[t]&&C().tests[t][0].cd===d)return C().tests[t];for(var _=u.shift();_t);_++);}return(0===l.length||f)&&l.push({match:{fn:null,optionality:!1,casing:null,def:"",placeholder:""},locator:[],mloc:{},cd:d}),r!==n&&C().tests[t]?e.extend(!0,[],l):(C().tests[t]=e.extend(!0,[],l),C().tests[t])}function R(){return C()._buffer===n&&(C()._buffer=D(!1,1),C().buffer===n&&(C().buffer=C()._buffer.slice())),C()._buffer}function q(e){return C().buffer!==n&&!0!==e||(C().buffer=D(!0,T(),!0),C()._buffer===n&&(C()._buffer=C().buffer.slice())),C().buffer}function L(e,t,r){var i,a;if(!0===e)S(),e=0,t=r.length;else for(i=e;i=0;g--)if((l=C().validPositions[g])&&l.alternation!==n){if(f&&f.locator[l.alternation]!==l.locator[l.alternation])break;s=g,u=C().validPositions[s].alternation,f=l}if(u!==n){h=parseInt(s),C().excludes[h]=C().excludes[h]||[],!0!==t&&C().excludes[h].push(P(f));var _=[],F=0;for(c=h;c0;){var v=y.shift();if(!(m=G(T(n,!0)+1,v,!1,a,!0)))break}if(m&&r!==n){var w=T(t)+1;for(c=h;cw?w:t,r,i,a,!0)}if(m)break;if(S(),f=B(h),C().validPositions=e.extend(!0,{},p),!C().excludes[h]){m=z(t,r,i,a,h-1);break}var k=P(f);if(-1!==C().excludes[h].indexOf(k)){m=z(t,r,i,a,h-1);break}for(C().excludes[h].push(k),c=h;c1||e.begin-e.end==1:e.end-e.begin>1||e.end-e.begin==1}i=!0===i;var l=t;function f(r,i,o){var s=!1;return e.each(M(r),(function(l,f){var d=f.match;if(q(!0),!1!==(s=null!=d.fn?d.fn.test(i,C(),r,o,c,u(t)):(i===d.def||i===c.skipOptionalPartCharacter)&&""!==d.def&&{c:Z(r,d,!0)||d.def,pos:r})){var h=s.c!==n?s.c:i,p=r;return h=h===c.skipOptionalPartCharacter&&null===d.fn?Z(r,d,!0)||d.def:h,s.remove!==n&&(e.isArray(s.remove)||(s.remove=[s.remove]),e.each(s.remove.sort((function(e,t){return t-e})),(function(e,t){H({begin:t,end:t+1})}))),s.insert!==n&&(e.isArray(s.insert)||(s.insert=[s.insert]),e.each(s.insert.sort((function(e,t){return e-t})),(function(e,t){G(t.pos,t.c,!0,a)}))),!0!==s&&s.pos!==n&&s.pos!==r&&(p=s.pos),!0!==s&&s.pos===n&&s.c===n||H(t,e.extend({},f,{input:$(h,d,p)}),a,p)||(s=!1),!1}})),s}t.begin!==n&&(l=v?t.end:t.begin);var d=!0,h=e.extend(!0,{},C().validPositions);if(e.isFunction(c.preValidation)&&!i&&!0!==a&&!0!==s&&(d=c.preValidation(q(),l,r,u(t),c,C())),!0===d){if(V(n,l,!0),(g===n||l0&&!C().validPositions[t];t--);for(var o=t;oe+1?t[e+1]&&null===t[e+1].match.fn&&t[e+1]:t[e+1];return a&&o}return!1}var s=t.begin!==n?t.begin:t,u=t.end!==n?t.end:t;if(t.begin>t.end&&(s=t.end,u=t.begin),a=a!==n?a:s,s!==u||c.insertMode&&C().validPositions[a]!==n&&i===n){var l=e.extend(!0,{},C().validPositions),f=T(n,!0);for(C().p=s,g=f;g>=s;g--)C().validPositions[g]&&"+"===C().validPositions[g].match.nativeDef&&(c.isNegative=!1),delete C().validPositions[g];var d=!0,h=a,p=(C().validPositions,!1),m=h,g=h;for(r&&(C().validPositions[a]=e.extend(!0,{},r),m++,h++,s=u||g>=s&&!0!==_.generatedInput&&o(g,l,{begin:s,end:u}))){for(;""!==B(m).match.def;){if(!1===p&&l[m]&&l[m].match.nativeDef===_.match.nativeDef)C().validPositions[m]=e.extend(!0,{},l[m]),C().validPositions[m].input=_.input,V(n,m,!0),h=m+1,d=!0;else if(c.shiftPositions&&I(m,_.match.def)){var F=G(m,_.input,!0,!0);d=!1!==F,h=F.caret||F.insert?T():m+1,p=!0}else d=!0===_.generatedInput||_.input===c.radixPoint&&!0===c.numericInput;if(d)break;if(!d&&m>u&&U(m,!0)&&(null!==_.match.fn||m>C().maskLength))break;m++}""==B(m).match.def&&(d=!1),m=h}if(!d)break}if(!d)return C().validPositions=e.extend(!0,{},l),S(!0),!1}else r&&(C().validPositions[a]=e.extend(!0,{},r));return S(!0),!0}function U(e,t){var n=j(e).match;if(""===n.def&&(n=B(e).match),null!=n.fn)return n.fn;if(!0!==t&&e>-1){var r=M(e);return r.length>1+(""===r[r.length-1].match.def?1:0)}return!1}function W(e,t){for(var n=e+1;""!==B(n).match.def&&(!0===t&&(!0!==B(n).match.newBlockMarker||!U(n))||!0!==t&&!U(n));)n++;return n}function Y(e,t){var n,r=e;if(r<=0)return 0;for(;--r>0&&(!0===t&&!0!==B(r).match.newBlockMarker||!0!==t&&!U(r)&&((n=M(r)).length<2||2===n.length&&""===n[1].match.def)););return r}function K(t,r,i,a,o){if(a&&e.isFunction(c.onBeforeWrite)){var s=c.onBeforeWrite.call(b,a,r,i,c);if(s){if(s.refreshFromBuffer){var u=s.refreshFromBuffer;L(!0===u?u:u.start,u.end,s.buffer||r),r=q(!0)}i!==n&&(i=s.caret!==n?s.caret:i)}}if(t!==n&&(t.inputmask._valueSet(r.join("")),i===n||a!==n&&"blur"===a.type?le(t,i,0===r.length):re(t,i),!0===o)){var l=e(t),f=t.inputmask._valueGet();k=!0,l.trigger("input"),setTimeout((function(){f===R().join("")?l.trigger("cleared"):!0===oe(r)&&l.trigger("complete")}),0)}}function Z(t,r,i){if((r=r||B(t).match).placeholder!==n||!0===i)return e.isFunction(r.placeholder)?r.placeholder(c):r.placeholder;if(null===r.fn){if(t>-1&&C().validPositions[t]===n){var a,o=M(t),s=[];if(o.length>1+(""===o[o.length-1].match.def?1:0))for(var u=0;u1&&/[0-9a-bA-Z]/.test(s[0].match.def)))return c.placeholder.charAt(t%c.placeholder.length)}return r.def}return c.placeholder.charAt(t%c.placeholder.length)}function X(e,t){if(a){if(e.inputmask._valueGet()!==t&&(e.placeholder!==t||""===e.placeholder)){var n=q().slice(),r=e.inputmask._valueGet();if(r!==t){var i=T();-1===i&&r===R().join("")?n=[]:-1!==i&&ae(n),K(e,n)}}}else e.placeholder!==t&&(e.placeholder=t,""===e.placeholder&&e.removeAttribute("placeholder"))}var Q,J={on:function(t,r,i){var a=function(t){var r=this;if(r.inputmask===n&&"FORM"!==this.nodeName){var a=e.data(r,"_inputmask_opts");a?new l(a).mask(r):J.off(r)}else{if("setvalue"===t.type||"FORM"===this.nodeName||!(r.disabled||r.readOnly&&!("keydown"===t.type&&t.ctrlKey&&67===t.keyCode||!1===c.tabThrough&&t.keyCode===l.keyCode.TAB))){switch(t.type){case"input":if(!0===k)return k=!1,t.preventDefault();if(o){var f=arguments;return setTimeout((function(){i.apply(r,f),re(r,r.inputmask.caretPos,n,!0)}),0),!1}break;case"keydown":w=!1,k=!1;break;case"keypress":if(!0===w)return t.preventDefault();w=!0;break;case"click":if(s||u)return f=arguments,setTimeout((function(){i.apply(r,f)}),0),!1}var d=i.apply(r,arguments);return!1===d&&(t.preventDefault(),t.stopPropagation()),d}t.preventDefault()}};t.inputmask.events[r]=t.inputmask.events[r]||[],t.inputmask.events[r].push(a),-1!==e.inArray(r,["submit","reset"])?null!==t.form&&e(t.form).on(r,a):e(t).on(r,a)},off:function(t,n){var r;t.inputmask&&t.inputmask.events&&(n?(r=[])[n]=t.inputmask.events[n]:r=t.inputmask.events,e.each(r,(function(n,r){for(;r.length>0;){var i=r.pop();-1!==e.inArray(n,["submit","reset"])?null!==t.form&&e(t.form).off(n,i):e(t).off(n,i)}delete t.inputmask.events[n]})))}},ee={keydownEvent:function(t){var n=this,r=e(n),i=t.keyCode,a=re(n);if(i===l.keyCode.BACKSPACE||i===l.keyCode.DELETE||u&&i===l.keyCode.BACKSPACE_SAFARI||t.ctrlKey&&i===l.keyCode.X&&!d("cut"))t.preventDefault(),se(n,i,a),K(n,q(!0),C().p,t,n.inputmask._valueGet()!==q().join(""));else if(i===l.keyCode.END||i===l.keyCode.PAGE_DOWN){t.preventDefault();var o=W(T());re(n,t.shiftKey?a.begin:o,o,!0)}else i===l.keyCode.HOME&&!t.shiftKey||i===l.keyCode.PAGE_UP?(t.preventDefault(),re(n,0,t.shiftKey?a.begin:0,!0)):(c.undoOnEscape&&i===l.keyCode.ESCAPE||90===i&&t.ctrlKey)&&!0!==t.altKey?(te(n,!0,!1,p.split("")),r.trigger("click")):i!==l.keyCode.INSERT||t.shiftKey||t.ctrlKey?!0===c.tabThrough&&i===l.keyCode.TAB&&(!0===t.shiftKey?(null===B(a.begin).match.fn&&(a.begin=W(a.begin)),a.end=Y(a.begin,!0),a.begin=Y(a.end,!0)):(a.begin=W(a.begin,!0),a.end=W(a.begin,!0),a.endu.length?-1:0,d=a.substr(0,o.begin),h=a.substr(o.begin),p=u.substr(0,o.begin+f),m=u.substr(o.begin+f),g=o,_="",F=!1;if(d!==p){var b,y=(F=d.length>=p.length)?d.length:p.length;for(b=0;d.charAt(b)===p.charAt(b)&&bm.length?_+=h.slice(0,1):h.length0)e.each(_.split(""),(function(t,n){var r=new e.Event("keypress");r.which=n.charCodeAt(0),E=!1,ee.keypressEvent.call(i,r)}));else{g.begin===g.end-1&&(g.begin=Y(g.begin+1),g.begin===g.end-1?re(i,g.begin):re(i,g.begin,g.end));var v=new e.Event("keydown");v.keyCode=c.numericInput?l.keyCode.BACKSPACE:l.keyCode.DELETE,ee.keydownEvent.call(i,v)}t.preventDefault()}}},beforeInputEvent:function(t){if(t.cancelable){var n=this;switch(t.inputType){case"insertText":return e.each(t.data.split(""),(function(t,r){var i=new e.Event("keypress");i.which=r.charCodeAt(0),E=!1,ee.keypressEvent.call(n,i)})),t.preventDefault();case"deleteContentBackward":return(r=new e.Event("keydown")).keyCode=l.keyCode.BACKSPACE,ee.keydownEvent.call(n,r),t.preventDefault();case"deleteContentForward":var r;return(r=new e.Event("keydown")).keyCode=l.keyCode.DELETE,ee.keydownEvent.call(n,r),t.preventDefault()}}},setValueEvent:function(t){this.inputmask.refreshValue=!1;var n=this,r=(r=t&&t.detail?t.detail[0]:arguments[1])||n.inputmask._valueGet(!0);e.isFunction(c.onBeforeMask)&&(r=c.onBeforeMask.call(b,r,c)||r),te(n,!0,!1,r=r.toString().split("")),p=q().join(""),(c.clearMaskOnLostFocus||c.clearIncomplete)&&n.inputmask._valueGet()===R().join("")&&n.inputmask._valueSet("")},focusEvent:function(e){var t=this,n=t.inputmask._valueGet();c.showMaskOnFocus&&(n!==q().join("")?K(t,q(),W(T())):!1===x&&re(t,W(T()))),!0===c.positionCaretOnTab&&!1===x&&ee.clickEvent.apply(t,[e,!0]),p=q().join("")},mouseleaveEvent:function(e){var t=this;x=!1,c.clearMaskOnLostFocus&&r.activeElement!==t&&X(t,F)},clickEvent:function(t,i){function a(t){if(""!==c.radixPoint){var r=C().validPositions;if(r[t]===n||r[t].input===Z(t)){if(t=p||s===l)&&(l=p)}re(o,l)}}}}),0)},cutEvent:function(n){var i=this,a=(e(i),re(i)),o=n.originalEvent||n,s=t.clipboardData||o.clipboardData,u=v?q().slice(a.end,a.begin):q().slice(a.begin,a.end);s.setData("text",v?u.reverse().join(""):u.join("")),r.execCommand&&r.execCommand("copy"),se(i,l.keyCode.DELETE,a),K(i,q(),C().p,n,p!==q().join(""))},blurEvent:function(t){var r=e(this),i=this;if(i.inputmask){X(i,F);var a=i.inputmask._valueGet(),o=q().slice();""===a&&_===n||(c.clearMaskOnLostFocus&&(-1===T()&&a===R().join("")?o=[]:ae(o)),!1===oe(o)&&(setTimeout((function(){r.trigger("incomplete")}),0),c.clearIncomplete&&(S(),o=c.clearMaskOnLostFocus?[]:R().slice())),K(i,o,n,t)),p!==q().join("")&&(p=o.join(""),r.trigger("change"))}},mouseenterEvent:function(e){var t=this;x=!0,r.activeElement!==t&&c.showMaskOnHover&&X(t,(v?q().slice().reverse():q()).join(""))},submitEvent:function(e){p!==q().join("")&&m.trigger("change"),c.clearMaskOnLostFocus&&-1===T()&&y.inputmask._valueGet&&y.inputmask._valueGet()===R().join("")&&y.inputmask._valueSet(""),c.clearIncomplete&&!1===oe(q())&&y.inputmask._valueSet(""),c.removeMaskOnSubmit&&(y.inputmask._valueSet(y.inputmask.unmaskedvalue(),!0),setTimeout((function(){K(y,q())}),0))},resetEvent:function(e){y.inputmask.refreshValue=!0,setTimeout((function(){m.trigger("setvalue")}),0)}};function te(t,r,i,a,o){var s=this||t.inputmask,u=a.slice(),f="",d=-1,h=n;function p(e,t){return-1!==D(!0,0,!1).slice(e,W(e)).join("").replace(/'/g,"").indexOf(t)&&!U(e)&&(B(e).match.nativeDef===t.charAt(0)||null===B(e).match.fn&&B(e).match.nativeDef==="'"+t.charAt(0)||" "===B(e).match.nativeDef&&(B(e+1).match.nativeDef===t.charAt(0)||null===B(e+1).match.fn&&B(e+1).match.nativeDef==="'"+t.charAt(0)))}if(S(),i||!0===c.autoUnmask)d=W(d);else{var m=R().slice(0,W(-1)).join(""),g=u.join("").match(new RegExp("^"+l.escapeRegex(m),"g"));g&&g.length>0&&(u.splice(0,g.length*m.length),d=W(d))}-1===d?(C().p=W(d),d=0):C().p=d,s.caretPos={begin:d},e.each(u,(function(r,a){if(a!==n)if(C().validPositions[r]===n&&u[r]===Z(r)&&U(r,!0)&&!1===G(r,u[r],!0,n,n,!0))C().p++;else{var o=new e.Event("_checkval");o.which=a.charCodeAt(0),f+=a;var l=T(n,!0);p(d,f)?h=ee.keypressEvent.call(t,o,!0,!1,i,l+1):(h=ee.keypressEvent.call(t,o,!0,!1,i,s.caretPos.begin))&&(d=s.caretPos.begin+1,f=""),h&&(K(n,q(),h.forwardPosition,o,!1),s.caretPos={begin:h.forwardPosition,end:h.forwardPosition})}})),r&&K(t,q(),h?h.forwardPosition:n,o||new e.Event("checkval"),o&&"input"===o.type)}function ne(t){if(t){if(t.inputmask===n)return t.value;t.inputmask&&t.inputmask.refreshValue&&ee.setValueEvent.call(t)}var r=[],i=C().validPositions;for(var a in i)i[a].match&&null!=i[a].match.fn&&r.push(i[a].input);var o=0===r.length?"":(v?r.reverse():r).join("");if(e.isFunction(c.onUnMask)){var s=(v?q().slice().reverse():q()).join("");o=c.onUnMask.call(b,s,o,c)}return o}function re(i,a,o,s){function u(e){return!v||"number"!=typeof e||c.greedy&&""===c.placeholder||!y||(e=y.inputmask._valueGet().length-e),e}var l;if(a===n)return"selectionStart"in i?(a=i.selectionStart,o=i.selectionEnd):t.getSelection?(l=t.getSelection().getRangeAt(0)).commonAncestorContainer.parentNode!==i&&l.commonAncestorContainer!==i||(a=l.startOffset,o=l.endOffset):r.selection&&r.selection.createRange&&(o=(a=0-(l=r.selection.createRange()).duplicate().moveStart("character",-i.inputmask._valueGet().length))+l.text.length),{begin:s?a:u(a),end:s?o:u(o)};if(e.isArray(a)&&(o=v?a[0]:a[1],a=v?a[1]:a[0]),a.begin!==n&&(o=v?a.begin:a.end,a=v?a.end:a.begin),"number"==typeof a){a=s?a:u(a),o="number"==typeof(o=s?o:u(o))?o:a;var f=parseInt(((i.ownerDocument.defaultView||t).getComputedStyle?(i.ownerDocument.defaultView||t).getComputedStyle(i,null):i.currentStyle).fontSize)*o;if(i.scrollLeft=f>i.scrollWidth?f:0,i.inputmask.caretPos={begin:a,end:o},i===r.activeElement){if("selectionStart"in i)i.selectionStart=a,i.selectionEnd=o;else if(t.getSelection){if(l=r.createRange(),i.firstChild===n||null===i.firstChild){var d=r.createTextNode("");i.appendChild(d)}l.setStart(i.firstChild,as&&((i=u[r]).match.optionality||i.match.optionalQuantifier&&i.match.newBlockMarker||c&&(c!==u[r].locator[l.alternation]&&null!=i.match.fn||null===i.match.fn&&i.locator[l.alternation]&&N(i.locator[l.alternation].toString().split(","),c.toString().split(","))&&""!==M(r)[0].def))&&a[r]===Z(r,i.match);r--)o--;return t?{l:o,def:u[o]?u[o].match:n}:o}function ae(e){e.length=0;for(var t,r=D(!0,0,!0,n,!0);(t=r.shift())!==n;)e.push(t);return e}function oe(t){if(e.isFunction(c.isComplete))return c.isComplete(t,c);if("*"===c.repeat)return n;var r=!1,i=ie(!0),a=Y(i.l);if(i.def===n||i.def.newBlockMarker||i.def.optionality||i.def.optionalQuantifier){r=!0;for(var o=0;o<=a;o++){var s=j(o).match;if(null!==s.fn&&C().validPositions[o]===n&&!0!==s.optionality&&!0!==s.optionalQuantifier||null===s.fn&&t[o]!==Z(o,s)){r=!1;break}}}return r}function se(e,t,r,i,a){if((c.numericInput||v)&&(t===l.keyCode.BACKSPACE?t=l.keyCode.DELETE:t===l.keyCode.DELETE&&(t=l.keyCode.BACKSPACE),v)){var o=r.end;r.end=r.begin,r.begin=o}if(t===l.keyCode.BACKSPACE&&r.end-r.begin<1?(r.begin=Y(r.begin),C().validPositions[r.begin]!==n&&C().validPositions[r.begin].input===c.groupSeparator&&r.begin--):t===l.keyCode.DELETE&&r.begin===r.end&&(r.end=U(r.end,!0)&&C().validPositions[r.end]&&C().validPositions[r.end].input!==c.radixPoint?r.end+1:W(r.end)+1,C().validPositions[r.begin]!==n&&C().validPositions[r.begin].input===c.groupSeparator&&r.end++),H(r),!0!==i&&!1!==c.keepStatic||null!==c.regex){var s=z(!0);if(s){var u=s.caret!==n?s.caret:s.pos?W(s.pos.begin?s.pos.begin:s.pos):T(-1,!0);(t!==l.keyCode.DELETE||r.begin>u)&&r.begin}}var f=T(r.begin,!0);if(f=e){var f=e-l,c=a.offsetWidth-e;a.innerHTML=u.charAt(t),t=(f-=a.offsetWidth/3)",u.push(e)}else u.push(e);else l=!0,u.push(""+e)}function h(){r.activeElement===e&&(u.splice(t.begin,0,t.begin===t.end||t.end>C().maskLength?'':''),u.splice(t.end+1,0,""))}if(_!==n){var p=q();if(t===n?t=re(e):t.begin===n&&(t={begin:t,end:t}),!0!==i){var m=T();do{C().validPositions[f]?(o=C().validPositions[f],a=o.match,s=o.locator.slice(),d(p[f])):(o=j(f,s,f-1),a=o.match,s=o.locator.slice(),!1===c.jitMasking||ff?d(Z(f,a)):l=!1),f++}while((g===n||ff||l);l&&d(),h()}var F=_.getElementsByTagName("div")[0];F.innerHTML=u.join(""),e.inputmask.positionColorMask(e,F)}}function fe(t){function i(t,i){function a(t){var a,o;function s(t){if(e.valHooks&&(e.valHooks[t]===n||!0!==e.valHooks[t].inputmaskpatch)){var r=e.valHooks[t]&&e.valHooks[t].get?e.valHooks[t].get:function(e){return e.value},a=e.valHooks[t]&&e.valHooks[t].set?e.valHooks[t].set:function(e,t){return e.value=t,e};e.valHooks[t]={get:function(e){if(e.inputmask){if(e.inputmask.opts.autoUnmask)return e.inputmask.unmaskedvalue();var t=r(e);return-1!==T(n,n,e.inputmask.maskset.validPositions)||!0!==i.nullable?t:""}return r(e)},set:function(t,n){var r,i=e(t);return r=a(t,n),t.inputmask&&i.trigger("setvalue",[n]),r},inputmaskpatch:!0}}}function u(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==T()||!0!==i.nullable?r.activeElement===this&&i.clearMaskOnLostFocus?(v?ae(q().slice()).reverse():ae(q().slice())).join(""):a.call(this):"":a.call(this)}function l(t){o.call(this,t),this.inputmask&&e(this).trigger("setvalue",[t])}function f(t){J.on(t,"mouseenter",(function(t){var n=e(this);this.inputmask._valueGet()!==q().join("")&&n.trigger("setvalue")}))}if(!t.inputmask.__valueGet){if(!0!==i.noValuePatching){if(Object.getOwnPropertyDescriptor){"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"==typeof"test".__proto__?function(e){return e.__proto__}:function(e){return e.constructor.prototype});var c=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(t),"value"):n;c&&c.get&&c.set?(a=c.get,o=c.set,Object.defineProperty(t,"value",{get:u,set:l,configurable:!0})):"INPUT"!==t.tagName&&(a=function(){return this.textContent},o=function(e){this.textContent=e},Object.defineProperty(t,"value",{get:u,set:l,configurable:!0}))}else r.__lookupGetter__&&t.__lookupGetter__("value")&&(a=t.__lookupGetter__("value"),o=t.__lookupSetter__("value"),t.__defineGetter__("value",u),t.__defineSetter__("value",l));t.inputmask.__valueGet=a,t.inputmask.__valueSet=o}t.inputmask._valueGet=function(e){return v&&!0!==e?a.call(this.el).split("").reverse().join(""):a.call(this.el)},t.inputmask._valueSet=function(e,t){o.call(this.el,null===e||e===n?"":!0!==t&&v?e.split("").reverse().join(""):e)},a===n&&(a=function(){return this.value},o=function(e){this.value=e},s(t.type),f(t))}}var o=t.getAttribute("type"),s="INPUT"===t.tagName&&-1!==e.inArray(o,i.supportsInputType)||t.isContentEditable||"TEXTAREA"===t.tagName;if(!s)if("INPUT"===t.tagName){var u=r.createElement("input");u.setAttribute("type",o),s="text"===u.type,u=null}else s="partial";return!1!==s?a(t):t.inputmask=n,s}J.off(t);var a=i(t,c);if(!1!==a&&(m=e(y=t),F=y.placeholder,-1===(g=y!==n?y.maxLength:n)&&(g=n),!0===c.colorMask&&ue(y),o&&("inputMode"in y&&(y.inputmode=c.inputmode,y.setAttribute("inputmode",c.inputmode)),!0===c.disablePredictiveText&&("autocorrect"in y?y.autocorrect=!1:(!0!==c.colorMask&&ue(y),y.type="password"))),!0===a&&(y.setAttribute("im-insert",c.insertMode),J.on(y,"submit",ee.submitEvent),J.on(y,"reset",ee.resetEvent),J.on(y,"blur",ee.blurEvent),J.on(y,"focus",ee.focusEvent),!0!==c.colorMask&&(J.on(y,"click",ee.clickEvent),J.on(y,"mouseleave",ee.mouseleaveEvent),J.on(y,"mouseenter",ee.mouseenterEvent)),J.on(y,"paste",ee.pasteEvent),J.on(y,"cut",ee.cutEvent),J.on(y,"complete",c.oncomplete),J.on(y,"incomplete",c.onincomplete),J.on(y,"cleared",c.oncleared),o||!0===c.inputEventOnly?y.removeAttribute("maxLength"):(J.on(y,"keydown",ee.keydownEvent),J.on(y,"keypress",ee.keypressEvent)),J.on(y,"input",ee.inputFallBackEvent),J.on(y,"beforeinput",ee.beforeInputEvent)),J.on(y,"setvalue",ee.setValueEvent),p=R().join(""),""!==y.inputmask._valueGet(!0)||!1===c.clearMaskOnLostFocus||r.activeElement===y)){var s=e.isFunction(c.onBeforeMask)&&c.onBeforeMask.call(b,y.inputmask._valueGet(!0),c)||y.inputmask._valueGet(!0);""!==s&&te(y,!0,!1,s.split(""));var u=q().slice();p=u.join(""),!1===oe(u)&&c.clearIncomplete&&S(),c.clearMaskOnLostFocus&&r.activeElement!==y&&(-1===T()?u=[]:ae(u)),(!1===c.clearMaskOnLostFocus||c.showMaskOnFocus&&r.activeElement===y||""!==y.inputmask._valueGet(!0))&&K(y,u),r.activeElement===y&&re(y,W(T()))}}if(i!==n)switch(i.action){case"isComplete":return y=i.el,oe(q());case"unmaskedvalue":return y!==n&&i.value===n||(Q=i.value,Q=(e.isFunction(c.onBeforeMask)&&c.onBeforeMask.call(b,Q,c)||Q).split(""),te.call(this,n,!1,!1,Q),e.isFunction(c.onBeforeWrite)&&c.onBeforeWrite.call(b,n,q(),0,c)),ne(y);case"mask":fe(y);break;case"format":return Q=(e.isFunction(c.onBeforeMask)&&c.onBeforeMask.call(b,i.value,c)||i.value).split(""),te.call(this,n,!0,!1,Q),i.metadata?{value:v?q().slice().reverse().join(""):q().join(""),metadata:h.call(this,{action:"getmetadata"},f,c)}:v?q().slice().reverse().join(""):q().join("");case"isValid":i.value?(Q=i.value.split(""),te.call(this,n,!0,!0,Q)):i.value=q().join("");for(var ce=q(),de=ie(),he=ce.length-1;he>de&&!U(he);he--);return ce.splice(de,he+1-de),oe(ce)&&i.value===q().join("");case"getemptymask":return R().join("");case"remove":return y&&y.inputmask&&(e.data(y,"_inputmask_opts",null),m=e(y),y.inputmask._valueSet(c.autoUnmask?ne(y):y.inputmask._valueGet(!0)),J.off(y),y.inputmask.colorMask&&((_=y.inputmask.colorMask).removeChild(y),_.parentNode.insertBefore(y,_),_.parentNode.removeChild(_)),Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(y),"value")&&y.inputmask.__valueGet&&Object.defineProperty(y,"value",{get:y.inputmask.__valueGet,set:y.inputmask.__valueSet,configurable:!0}):r.__lookupGetter__&&y.__lookupGetter__("value")&&y.inputmask.__valueGet&&(y.__defineGetter__("value",y.inputmask.__valueGet),y.__defineSetter__("value",y.inputmask.__valueSet)),y.inputmask=n),y;case"getmetadata":if(e.isArray(f.metadata)){var pe=D(!0,0,!1).join("");return e.each(f.metadata,(function(e,t){if(t.mask===pe)return pe=t,!1})),pe}return f.metadata}}return l.prototype={dataAttribute:"data-inputmask",defaults:{placeholder:"_",optionalmarker:["[","]"],quantifiermarker:["{","}"],groupmarker:["(",")"],alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:e.noop,onincomplete:e.noop,oncleared:e.noop,repeat:0,greedy:!1,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,alias:null,onKeyDown:e.noop,onBeforeMask:null,onBeforePaste:function(t,n){return e.isFunction(n.onBeforeMask)?n.onBeforeMask.call(this,t,n):t},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:e.noop,skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",_radixDance:!1,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","url","password","search"],ignorables:[8,9,13,19,27,33,34,35,36,37,38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123,0,229],isComplete:null,preValidation:null,postValidation:null,staticDefinitionSymbol:n,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"verbatim",colorMask:!1,disablePredictiveText:!1,importDataAttributes:!0,shiftPositions:!0},definitions:{9:{validator:"[0-91-9]",definitionSymbol:"*"},a:{validator:"[A-Za-zА-яЁёÀ-ÿµ]",definitionSymbol:"*"},"*":{validator:"[0-91-9A-Za-zА-яЁёÀ-ÿµ]"}},aliases:{},masksCache:{},mask:function(i){var a=this;function o(r,i,a,o){if(!0===i.importDataAttributes){var s,u,l,c,d=r.getAttribute(o),h=function(e,i){null!==(i=i!==n?i:r.getAttribute(o+"-"+e))&&("string"==typeof i&&(0===e.indexOf("on")?i=t[i]:"false"===i?i=!1:"true"===i&&(i=!0)),a[e]=i)};if(d&&""!==d&&(d=d.replace(/'/g,'"'),u=JSON.parse("{"+d+"}")),u)for(c in l=n,u)if("alias"===c.toLowerCase()){l=u[c];break}for(s in h("alias",l),a.alias&&f(a.alias,a,i),i){if(u)for(c in l=n,u)if(c.toLowerCase()===s.toLowerCase()){l=u[c];break}h(s,l)}}return e.extend(!0,i,a),("rtl"===r.dir||i.rightAlign)&&(r.style.textAlign="right"),("rtl"===r.dir||i.numericInput)&&(r.dir="ltr",r.removeAttribute("dir"),i.isRTL=!0),Object.keys(a).length}return"string"==typeof i&&(i=r.getElementById(i)||r.querySelectorAll(i)),i=i.nodeName?[i]:i,e.each(i,(function(t,r){var i=e.extend(!0,{},a.opts);if(o(r,i,e.extend(!0,{},a.userOptions),a.dataAttribute)){var s=c(i,a.noMasksCache);s!==n&&(r.inputmask!==n&&(r.inputmask.opts.autoUnmask=!0,r.inputmask.remove()),r.inputmask=new l(n,n,!0),r.inputmask.opts=i,r.inputmask.noMasksCache=a.noMasksCache,r.inputmask.userOptions=e.extend(!0,{},a.userOptions),r.inputmask.isRTL=i.isRTL||i.numericInput,r.inputmask.el=r,r.inputmask.maskset=s,e.data(r,"_inputmask_opts",i),h.call(r.inputmask,{action:"mask"}))}})),i&&i[0]&&i[0].inputmask||this},option:function(t,n){return"string"==typeof t?this.opts[t]:"object"==typeof t?(e.extend(this.userOptions,t),this.el&&!0!==n&&this.mask(this.el),this):void 0},unmaskedvalue:function(e){return this.maskset=this.maskset||c(this.opts,this.noMasksCache),h.call(this,{action:"unmaskedvalue",value:e})},remove:function(){return h.call(this,{action:"remove"})},getemptymask:function(){return this.maskset=this.maskset||c(this.opts,this.noMasksCache),h.call(this,{action:"getemptymask"})},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||c(this.opts,this.noMasksCache),h.call(this,{action:"isComplete"})},getmetadata:function(){return this.maskset=this.maskset||c(this.opts,this.noMasksCache),h.call(this,{action:"getmetadata"})},isValid:function(e){return this.maskset=this.maskset||c(this.opts,this.noMasksCache),h.call(this,{action:"isValid",value:e})},format:function(e,t){return this.maskset=this.maskset||c(this.opts,this.noMasksCache),h.call(this,{action:"format",value:e,metadata:t})},setValue:function(t){this.el&&e(this.el).trigger("setvalue",[t])},analyseMask:function(t,r,i){var a,o,s,u,f,c,d=/(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?(?:\|[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g,h=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,p=!1,m=new F,g=[],_=[];function F(e,t,n,r){this.matches=[],this.openGroup=e||!1,this.alternatorGroup=!1,this.isGroup=e||!1,this.isOptional=t||!1,this.isQuantifier=n||!1,this.isAlternator=r||!1,this.quantifier={min:1,max:1}}function b(t,a,o){o=o!==n?o:t.matches.length;var s=t.matches[o-1];if(r)0===a.indexOf("[")||p&&/\\d|\\s|\\w]/i.test(a)||"."===a?t.matches.splice(o++,0,{fn:new RegExp(a,i.casing?"i":""),optionality:!1,newBlockMarker:s===n?"master":s.def!==a,casing:null,def:a,placeholder:n,nativeDef:a}):(p&&(a=a[a.length-1]),e.each(a.split(""),(function(e,r){s=t.matches[o-1],t.matches.splice(o++,0,{fn:null,optionality:!1,newBlockMarker:s===n?"master":s.def!==r&&null!==s.fn,casing:null,def:i.staticDefinitionSymbol||r,placeholder:i.staticDefinitionSymbol!==n?r:n,nativeDef:(p?"'":"")+r})}))),p=!1;else{var u=(i.definitions?i.definitions[a]:n)||l.prototype.definitions[a];u&&!p?t.matches.splice(o++,0,{fn:u.validator?"string"==typeof u.validator?new RegExp(u.validator,i.casing?"i":""):new function(){this.test=u.validator}:new RegExp("."),optionality:!1,newBlockMarker:s===n?"master":s.def!==(u.definitionSymbol||a),casing:u.casing,def:u.definitionSymbol||a,placeholder:u.placeholder,nativeDef:a}):(t.matches.splice(o++,0,{fn:null,optionality:!1,newBlockMarker:s===n?"master":s.def!==a&&null!==s.fn,casing:null,def:i.staticDefinitionSymbol||a,placeholder:i.staticDefinitionSymbol!==n?a:n,nativeDef:(p?"'":"")+a}),p=!1)}}function y(t){t&&t.matches&&e.each(t.matches,(function(e,a){var o=t.matches[e+1];(o===n||o.matches===n||!1===o.isQuantifier)&&a&&a.isGroup&&(a.isGroup=!1,r||(b(a,i.groupmarker[0],0),!0!==a.openGroup&&b(a,i.groupmarker[1]))),y(a)}))}function v(){if(g.length>0){if(b(u=g[g.length-1],o),u.isAlternator){f=g.pop();for(var e=0;e0?(u=g[g.length-1]).matches.push(f):m.matches.push(f)}}else b(m,o)}function w(e){function t(e){return e===i.optionalmarker[0]?e=i.optionalmarker[1]:e===i.optionalmarker[1]?e=i.optionalmarker[0]:e===i.groupmarker[0]?e=i.groupmarker[1]:e===i.groupmarker[1]&&(e=i.groupmarker[0]),e}for(var r in e.matches=e.matches.reverse(),e.matches)if(e.matches.hasOwnProperty(r)){var a=parseInt(r);if(e.matches[r].isQuantifier&&e.matches[a+1]&&e.matches[a+1].isGroup){var o=e.matches[r];e.matches.splice(r,1),e.matches.splice(a+1,0,o)}e.matches[r].matches!==n?e.matches[r]=w(e.matches[r]):e.matches[r]=t(e.matches[r])}return e}function k(e){var t=new F(!0);return t.openGroup=!1,t.matches=e,t}for(r&&(i.optionalmarker[0]=n,i.optionalmarker[1]=n);a=r?h.exec(t):d.exec(t);){if(o=a[0],r)switch(o.charAt(0)){case"?":o="{0,1}";break;case"+":case"*":o="{"+o+"}"}if(p)v();else switch(o.charAt(0)){case"(?=":case"(?!":case"(?<=":case"(?0){if((u=g[g.length-1]).matches.push(s),u.isAlternator){f=g.pop();for(var E=0;E0?(u=g[g.length-1]).matches.push(f):m.matches.push(f)}}else m.matches.push(s);else v();break;case i.optionalmarker[0]:g.push(new F(!1,!0));break;case i.groupmarker[0]:g.push(new F(!0));break;case i.quantifiermarker[0]:var x=new F(!1,!1,!0),D=(o=o.replace(/[{}]/g,"")).split("|"),C=D[0].split(","),S=isNaN(C[0])?C[0]:parseInt(C[0]),T=1===C.length?S:isNaN(C[1])?C[1]:parseInt(C[1]);"*"!==S&&"+"!==S||(S="*"===T?0:1),x.quantifier={min:S,max:T,jit:D[1]};var P=g.length>0?g[g.length-1].matches:m.matches;if((a=P.pop()).isAlternator){P.push(a),P=a.matches;var O=new F(!0),A=P.pop();P.push(O),P=O.matches,a=A}a.isGroup||(a=k([a])),P.push(a),P.push(x);break;case i.alternatormarker:var j=function(e){var t=e.pop();return t.isQuantifier&&(t=k([e.pop(),t])),t};if(g.length>0){var B=(u=g[g.length-1]).matches[u.matches.length-1];c=u.openGroup&&(B.matches===n||!1===B.isGroup&&!1===B.isAlternator)?g.pop():j(u.matches)}else c=j(m.matches);if(c.isAlternator)g.push(c);else if(c.alternatorGroup?(f=g.pop(),c.alternatorGroup=!1):f=new F(!1,!1,!1,!0),f.matches.push(c),g.push(f),c.openGroup){c.openGroup=!1;var I=new F(!0);I.alternatorGroup=!0,g.push(I)}break;default:v()}}for(;g.length>0;)s=g.pop(),m.matches.push(s);return m.matches.length>0&&(y(m),_.push(m)),(i.numericInput||i.isRTL)&&w(_[0]),_},positionColorMask:function(e,t){e.style.left=t.offsetLeft+"px"}},l.extendDefaults=function(t){e.extend(!0,l.prototype.defaults,t)},l.extendDefinitions=function(t){e.extend(!0,l.prototype.definitions,t)},l.extendAliases=function(t){e.extend(!0,l.prototype.aliases,t)},l.format=function(e,t,n){return l(t).format(e,n)},l.unmask=function(e,t){return l(t).unmaskedvalue(e)},l.isValid=function(e,t){return l(t).isValid(e)},l.remove=function(t){"string"==typeof t&&(t=r.getElementById(t)||r.querySelectorAll(t)),t=t.nodeName?[t]:t,e.each(t,(function(e,t){t.inputmask&&t.inputmask.remove()}))},l.setValue=function(t,n){"string"==typeof t&&(t=r.getElementById(t)||r.querySelectorAll(t)),t=t.nodeName?[t]:t,e.each(t,(function(t,r){r.inputmask?r.inputmask.setValue(n):e(r).trigger("setvalue",[n])}))},l.escapeRegex=function(e){var t=["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"];return e.replace(new RegExp("(\\"+t.join("|\\")+")","gim"),"\\$1")},l.keyCode={BACKSPACE:8,BACKSPACE_SAFARI:127,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,SPACE:32,TAB:9,UP:38,X:88,CONTROL:17},l.dependencyLib=e,l},void 0===(a="function"==typeof r?r.apply(t,i):r)||(e.exports=a)},99708:function(e,t,n){var r,i,a; /*! * inputmask.numeric.extensions.js * https://github.com/RobinHerbots/Inputmask * Copyright (c) 2010 - 2019 Robin Herbots * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) * Version: 4.0.9 */i=[n(12707)],void 0===(a="function"==typeof(r=function(e){var t=e.dependencyLib;function n(t,n){for(var r="",i=0;i0){var i=t.inArray(r.radixPoint,e);-1===i&&(e.push(r.radixPoint),i=e.length-1);for(var a=1;a<=n;a++)e[i+a]=e[i+a]||"0"}return e}return e.extendAliases({numeric:{mask:function(e){if(0!==e.repeat&&isNaN(e.integerDigits)&&(e.integerDigits=e.repeat),e.repeat=0,e.groupSeparator===e.radixPoint&&e.digits&&"0"!==e.digits&&("."===e.radixPoint?e.groupSeparator=",":","===e.radixPoint?e.groupSeparator=".":e.groupSeparator="")," "===e.groupSeparator&&(e.skipOptionalPartCharacter=void 0),e.autoGroup=e.autoGroup&&""!==e.groupSeparator,e.autoGroup&&("string"==typeof e.groupSize&&isFinite(e.groupSize)&&(e.groupSize=parseInt(e.groupSize)),isFinite(e.integerDigits))){var t=Math.floor(e.integerDigits/e.groupSize),r=e.integerDigits%e.groupSize;e.integerDigits=parseInt(e.integerDigits)+(0===r?t-1:t),e.integerDigits<1&&(e.integerDigits="*")}e.placeholder.length>1&&(e.placeholder=e.placeholder.charAt(0)),"radixFocus"===e.positionCaretOnClick&&""===e.placeholder&&!1===e.integerOptional&&(e.positionCaretOnClick="lvp"),e.definitions[";"]=e.definitions["~"],e.definitions[";"].definitionSymbol="~",!0===e.numericInput&&(e.positionCaretOnClick="radixFocus"===e.positionCaretOnClick?"lvp":e.positionCaretOnClick,e.digitsOptional=!1,isNaN(e.digits)&&(e.digits=2),e.decimalProtect=!1);var i="[+]";if(i+=n(e.prefix,e),!0===e.integerOptional?i+="~{1,"+e.integerDigits+"}":i+="~{"+e.integerDigits+"}",void 0!==e.digits){var a=e.decimalProtect?":":e.radixPoint,o=e.digits.toString().split(",");isFinite(o[0])&&o[1]&&isFinite(o[1])?i+=a+";{"+e.digits+"}":(isNaN(e.digits)||parseInt(e.digits)>0)&&(e.digitsOptional?i+="["+a+";{1,"+e.digits+"}]":i+=a+";{"+e.digits+"}")}return i+=n(e.suffix,e),i+="[-]",e.greedy=!1,i},placeholder:"",greedy:!1,digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",groupSize:3,groupSeparator:"",autoGroup:!1,allowMinus:!0,negationSymbol:{front:"-",back:""},integerDigits:"+",integerOptional:!0,prefix:"",suffix:"",rightAlign:!0,decimalProtect:!0,min:null,max:null,step:1,insertMode:!0,autoUnmask:!1,unmaskAsNumber:!1,inputType:"text",inputmode:"numeric",preValidation:function(e,n,r,i,a,o){if("-"===r||r===a.negationSymbol.front)return!0===a.allowMinus&&(a.isNegative=void 0===a.isNegative||!a.isNegative,""===e.join("")||{caret:o.validPositions[n]?n:void 0,dopost:!0});if(!1===i&&r===a.radixPoint&&void 0!==a.digits&&(isNaN(a.digits)||parseInt(a.digits)>0)){var s=t.inArray(a.radixPoint,e);if(-1!==s&&void 0!==o.validPositions[s])return!0===a.numericInput?n===s:{caret:s+1}}return!0},postValidation:function(n,r,i,a){function o(e,t){var n="";if(n+="("+t.groupSeparator+"*{"+t.groupSize+"}){*}",""!==t.radixPoint){var r=e.join("").split(t.radixPoint);r[1]&&(n+=t.radixPoint+"*{"+r[1].match(/^\d*\??\d*/)[0].length+"}")}return n}var s=a.suffix.split(""),u=a.prefix.split("");if(void 0===i.pos&&void 0!==i.caret&&!0!==i.dopost)return i;var l=void 0!==i.caret?i.caret:i.pos,f=n.slice();a.numericInput&&(l=f.length-l-1,f=f.reverse());var c=f[l];if(c===a.groupSeparator&&(c=f[l+=1]),l===f.length-a.suffix.length-1&&c===a.radixPoint)return i;void 0!==c&&c!==a.radixPoint&&c!==a.negationSymbol.front&&c!==a.negationSymbol.back&&(f[l]="?",a.prefix.length>0&&l>=(!1===a.isNegative?1:0)&&l0&&l>=f.length-a.suffix.length-(!1===a.isNegative?1:0)&&(s[l-(f.length-a.suffix.length-(!1===a.isNegative?1:0))]="?")),u=u.join(""),s=s.join("");var d=f.join("").replace(u,"");if(d=(d=(d=(d=d.replace(s,"")).replace(new RegExp(e.escapeRegex(a.groupSeparator),"g"),"")).replace(new RegExp("[-"+e.escapeRegex(a.negationSymbol.front)+"]","g"),"")).replace(new RegExp(e.escapeRegex(a.negationSymbol.back)+"$"),""),isNaN(a.placeholder)&&(d=d.replace(new RegExp(e.escapeRegex(a.placeholder),"g"),"")),d.length>1&&1!==d.indexOf(a.radixPoint)&&("0"===c&&(d=d.replace(/^\?/g,"")),d=d.replace(/^0/g,"")),d.charAt(0)===a.radixPoint&&""!==a.radixPoint&&!0!==a.numericInput&&(d="0"+d),""!==d){if(d=d.split(""),(!a.digitsOptional||a.enforceDigitsOnBlur&&"blur"===i.event)&&isFinite(a.digits)){var h=t.inArray(a.radixPoint,d),p=t.inArray(a.radixPoint,f);-1===h&&(d.push(a.radixPoint),h=d.length-1);for(var m=1;m<=a.digits;m++)a.digitsOptional&&(!a.enforceDigitsOnBlur||"blur"!==i.event)||void 0!==d[h+m]&&d[h+m]!==a.placeholder.charAt(0)?-1!==p&&void 0!==f[p+m]&&(d[h+m]=d[h+m]||f[p+m]):d[h+m]=i.placeholder||a.placeholder.charAt(0)}if(!0!==a.autoGroup||""===a.groupSeparator||c===a.radixPoint&&void 0===i.pos&&!i.dopost)d=d.join("");else{var g=d[d.length-1]===a.radixPoint&&i.c===a.radixPoint;d=e(o(d,a),{numericInput:!0,jitMasking:!0,definitions:{"*":{validator:"[0-9?]",cardinality:1}}}).format(d.join("")),g&&(d+=a.radixPoint),d.charAt(0)===a.groupSeparator&&d.substr(1)}}if(a.isNegative&&"blur"===i.event&&(a.isNegative="0"!==d),d=u+d,d+=s,a.isNegative&&(d=a.negationSymbol.front+d,d+=a.negationSymbol.back),d=d.split(""),void 0!==c)if(c!==a.radixPoint&&c!==a.negationSymbol.front&&c!==a.negationSymbol.back)(l=t.inArray("?",d))>-1?d[l]=c:l=i.caret||0;else if(c===a.radixPoint||c===a.negationSymbol.front||c===a.negationSymbol.back){var _=t.inArray(c,d);-1!==_&&(l=_)}a.numericInput&&(l=d.length-l-1,d=d.reverse());var F={caret:void 0!==c&&void 0===i.pos||void 0===l?l:l+(a.numericInput?-1:1),buffer:d,refreshFromBuffer:i.dopost||n.join("")!==d.join("")};return F.refreshFromBuffer?F:i},onBeforeWrite:function(n,r,i,a){function o(t){void 0===t.parseMinMaxOptions&&(null!==t.min&&(t.min=t.min.toString().replace(new RegExp(e.escapeRegex(t.groupSeparator),"g"),""),","===t.radixPoint&&(t.min=t.min.replace(t.radixPoint,".")),t.min=isFinite(t.min)?parseFloat(t.min):NaN,isNaN(t.min)&&(t.min=Number.MIN_VALUE)),null!==t.max&&(t.max=t.max.toString().replace(new RegExp(e.escapeRegex(t.groupSeparator),"g"),""),","===t.radixPoint&&(t.max=t.max.replace(t.radixPoint,".")),t.max=isFinite(t.max)?parseFloat(t.max):NaN,isNaN(t.max)&&(t.max=Number.MAX_VALUE)),t.parseMinMaxOptions="done")}if(n)switch(n.type){case"keydown":return a.postValidation(r,i,{caret:i,dopost:!0},a);case"blur":case"checkval":var s;if(o(a),null!==a.min||null!==a.max){if(s=a.onUnMask(r.join(""),void 0,t.extend({},a,{unmaskAsNumber:!0})),null!==a.min&&sa.max)return a.isNegative=a.max<0,a.postValidation(a.max.toString().replace(".",a.radixPoint).split(""),i,{caret:i,dopost:!0,placeholder:"0"},a)}return a.postValidation(r,i,{caret:i,placeholder:"0",event:"blur"},a);case"_checkval":return{caret:i}}},regex:{integerPart:function(t,n){return n?new RegExp("["+e.escapeRegex(t.negationSymbol.front)+"+]?"):new RegExp("["+e.escapeRegex(t.negationSymbol.front)+"+]?\\d+")},integerNPart:function(t){return new RegExp("[\\d"+e.escapeRegex(t.groupSeparator)+e.escapeRegex(t.placeholder.charAt(0))+"]+")}},definitions:{"~":{validator:function(t,n,r,i,a,o){var s;if("k"===t||"m"===t){s={insert:[],c:0};for(var u=0,l="k"===t?2:5;u1&&(c[1]=c[1].replace(/0/g,a.placeholder.charAt(0))),"0"===c[0]&&(c[0]=c[0].replace(/0/g,a.placeholder.charAt(0))),f=c[0]+a.radixPoint+c[1]||"";var d=n._buffer.join("");for(f===a.radixPoint&&(f=d);null===f.match(e.escapeRegex(d)+"$");)d=d.slice(1);s=void 0===(f=(f=f.replace(d,"")).split(""))[r]?{pos:r,remove:r}:{pos:r}}}else i||t!==a.radixPoint||void 0!==n.validPositions[r-1]||(s={insert:{pos:r,c:0},pos:r+1});return s},cardinality:1},"+":{validator:function(e,t,n,r,i){return i.allowMinus&&("-"===e||e===i.negationSymbol.front)},cardinality:1,placeholder:""},"-":{validator:function(e,t,n,r,i){return i.allowMinus&&e===i.negationSymbol.back},cardinality:1,placeholder:""},":":{validator:function(t,n,r,i,a){var o="["+e.escapeRegex(a.radixPoint)+"]",s=new RegExp(o).test(t);return s&&n.validPositions[r]&&n.validPositions[r].match.placeholder===a.radixPoint&&(s={caret:r+1}),s},cardinality:1,placeholder:function(e){return e.radixPoint}}},onUnMask:function(t,n,r){if(""===n&&!0===r.nullable)return n;var i=t.replace(r.prefix,"");return i=(i=i.replace(r.suffix,"")).replace(new RegExp(e.escapeRegex(r.groupSeparator),"g"),""),""!==r.placeholder.charAt(0)&&(i=i.replace(new RegExp(r.placeholder.charAt(0),"g"),"0")),r.unmaskAsNumber?(""!==r.radixPoint&&-1!==i.indexOf(r.radixPoint)&&(i=i.replace(e.escapeRegex.call(this,r.radixPoint),".")),i=(i=i.replace(new RegExp("^"+e.escapeRegex(r.negationSymbol.front)),"-")).replace(new RegExp(e.escapeRegex(r.negationSymbol.back)+"$"),""),Number(i)):i},isComplete:function(t,n){var r=(n.numericInput?t.slice().reverse():t).join("");return r=(r=(r=(r=(r=r.replace(new RegExp("^"+e.escapeRegex(n.negationSymbol.front)),"-")).replace(new RegExp(e.escapeRegex(n.negationSymbol.back)+"$"),"")).replace(n.prefix,"")).replace(n.suffix,"")).replace(new RegExp(e.escapeRegex(n.groupSeparator)+"([0-9]{3})","g"),"$1"),","===n.radixPoint&&(r=r.replace(e.escapeRegex(n.radixPoint),".")),isFinite(r)},onBeforeMask:function(t,n){n.isNegative=void 0;var i=n.radixPoint||",";"number"!=typeof t&&"number"!==n.inputType||""===i||(t=t.toString().replace(".",i));var a=t.split(i),o=a[0].replace(/[^\-0-9]/g,""),s=a.length>1?a[1].replace(/[^0-9]/g,""):"";t=o+(""!==s?i+s:s);var u=0;if(""!==i&&(u=s.length,""!==s)){var l=Math.pow(10,u||1);isFinite(n.digits)&&(u=parseInt(n.digits),l=Math.pow(10,u)),t=t.replace(e.escapeRegex(i),"."),isFinite(t)&&(t=Math.round(parseFloat(t)*l)/l),t=t.toString().replace(".",i)}return 0===n.digits&&-1!==t.indexOf(e.escapeRegex(i))&&(t=t.substring(0,t.indexOf(e.escapeRegex(i)))),r(t.toString().split(""),u,n).join("")},onKeyDown:function(n,r,i,a){var o=t(this);if(n.ctrlKey)switch(n.keyCode){case e.keyCode.UP:o.val(parseFloat(this.inputmask.unmaskedvalue())+parseInt(a.step)),o.trigger("setvalue");break;case e.keyCode.DOWN:o.val(parseFloat(this.inputmask.unmaskedvalue())-parseInt(a.step)),o.trigger("setvalue")}}},currency:{prefix:"$ ",groupSeparator:",",alias:"numeric",placeholder:"0",autoGroup:!0,digits:2,digitsOptional:!1,clearMaskOnLostFocus:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",digits:0,radixPoint:""},percentage:{alias:"numeric",digits:2,digitsOptional:!0,radixPoint:".",placeholder:"0",autoGroup:!1,min:0,max:100,suffix:" %",allowMinus:!1}}),e})?r.apply(t,i):r)||(e.exports=a)},12649:function(e,t,n){n(1860),n(11563),n(99708),e.exports=n(12707)},46370:function(e){var t;t=function(e){"use strict";return function(){for(var t=[["Afghanistan (‫افغانستان‬‎)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (‫البحرين‬‎)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","263","289","306","343","354","365","367","368","382","387","403","416","418","428","431","437","438","450","584","468","474","506","514","519","548","579","581","584","587","604","613","639","647","672","683","705","709","742","753","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (‫جزر القمر‬‎)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (‫مصر‬‎)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (‫ایران‬‎)","ir","98"],["Iraq (‫العراق‬‎)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (‫ישראל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (日本)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (‫الكويت‬‎)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (‫لبنان‬‎)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (‫ليبيا‬‎)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (‫موريتانيا‬‎)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (‫المغرب‬‎)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["North Macedonia (Северна Македонија)","mk","389"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (‫عُمان‬‎)","om","968"],["Pakistan (‫پاکستان‬‎)","pk","92"],["Palau","pw","680"],["Palestine (‫فلسطين‬‎)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (‫قطر‬‎)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (‫المملكة العربية السعودية‬‎)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (‫جنوب السودان‬‎)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්‍රී ලංකාව)","lk","94"],["Sudan (‫السودان‬‎)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (‫سوريا‬‎)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (‫الإمارات العربية المتحدة‬‎)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (‫الصحراء الغربية‬‎)","eh","212",1,["5288","5289"]],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]],n=0;nthis.countryCodeMaxLen&&(this.countryCodeMaxLen=n.length),this.countryCodes.hasOwnProperty(n)||(this.countryCodes[n]=[]);for(var i=0;i-1}))}else if(this.options.excludeCountries.length){var n=this.options.excludeCountries.map((function(e){return e.toLowerCase()}));this.countries=t.filter((function(e){return-1===n.indexOf(e.iso2)}))}else this.countries=t}},{key:"_translateCountriesByLocale",value:function(){for(var e=0;et.name?1:0}},{key:"_processCountryCodes",value:function(){this.countryCodeMaxLen=0,this.dialCodes={},this.countryCodes={};for(var e=0;e"),this.options.showFlags&&(r+="
")),r+="".concat(a.name,""),r+="+".concat(a.dialCode,""),r+=""}this.countryList.insertAdjacentHTML("beforeend",r)}},{key:"_setInitialState",value:function(){var e=this.telInput.getAttribute("value"),t=this.telInput.value,n=!e||"+"!==e.charAt(0)||t&&"+"===t.charAt(0)?t:e,r=this._getDialCode(n),i=this._isRegionlessNanp(n),a=this.options,o=a.initialCountry,s=a.autoInsertDialCode;r&&!i?this._updateFlagFromNumber(n):"auto"!==o&&(o?this._setFlag(o.toLowerCase()):r&&i?this._setFlag("us"):(this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2,n||this._setFlag(this.defaultCountry)),!n&&s&&(this.telInput.value="+".concat(this.selectedCountryData.dialCode))),n&&this._updateValFromNumber(n)}},{key:"_initListeners",value:function(){this._initKeyListeners(),this.options.autoInsertDialCode&&this._initBlurListeners(),this.options.allowDropdown&&this._initDropdownListeners(),this.hiddenInput&&this._initHiddenInputListener()}},{key:"_initHiddenInputListener",value:function(){var e=this;this._handleHiddenInputSubmit=function(){e.hiddenInput.value=e.getNumber()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_getClosestLabel",value:function(){for(var e=this.telInput;e&&"LABEL"!==e.tagName;)e=e.parentNode;return e}},{key:"_initDropdownListeners",value:function(){var e=this;this._handleLabelClick=function(t){e.countryList.classList.contains("iti__hide")?e.telInput.focus():t.preventDefault()};var t=this._getClosestLabel();t&&t.addEventListener("click",this._handleLabelClick),this._handleClickSelectedFlag=function(){!e.countryList.classList.contains("iti__hide")||e.telInput.disabled||e.telInput.readOnly||e._showDropdown()},this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag),this._handleFlagsContainerKeydown=function(t){e.countryList.classList.contains("iti__hide")&&-1!==["ArrowUp","Up","ArrowDown","Down"," ","Enter"].indexOf(t.key)&&(t.preventDefault(),t.stopPropagation(),e._showDropdown()),"Tab"===t.key&&e._closeDropdown()},this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function(){var e=this;this.options.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.options.utilsScript):window.addEventListener("load",(function(){window.intlTelInputGlobals.loadUtils(e.options.utilsScript)})):this.resolveUtilsScriptPromise(),"auto"===this.options.initialCountry?this._loadAutoCountry():this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function(){window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,"function"==typeof this.options.geoIpLookup&&this.options.geoIpLookup((function(e){window.intlTelInputGlobals.autoCountry=e.toLowerCase(),setTimeout((function(){return d("handleAutoCountry")}))}),(function(){return d("rejectAutoCountryPromise")})))}},{key:"_initKeyListeners",value:function(){var e=this;this._handleKeyupEvent=function(){e._updateFlagFromNumber(e.telInput.value)&&e._triggerCountryChange()},this.telInput.addEventListener("keyup",this._handleKeyupEvent),this._handleClipboardEvent=function(){setTimeout(e._handleKeyupEvent)},this.telInput.addEventListener("cut",this._handleClipboardEvent),this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_cap",value:function(e){var t=this.telInput.getAttribute("maxlength");return t&&e.length>t?e.substr(0,t):e}},{key:"_initBlurListeners",value:function(){var e=this;this._handleSubmitOrBlurEvent=function(){e._removeEmptyDialCode()},this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function(){if("+"===this.telInput.value.charAt(0)){var e=this._getNumeric(this.telInput.value);e&&this.selectedCountryData.dialCode!==e||(this.telInput.value="")}}},{key:"_getNumeric",value:function(e){return e.replace(/\D/g,"")}},{key:"_trigger",value:function(e){var t=document.createEvent("Event");t.initEvent(e,!0,!0),this.telInput.dispatchEvent(t)}},{key:"_showDropdown",value:function(){this.countryList.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._setDropdownPosition(),this.activeItem&&(this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0)),this._bindDropdownListeners(),this.dropdownArrow.classList.add("iti__arrow--up"),this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(e,t,n){n&&!e.classList.contains(t)?e.classList.add(t):!n&&e.classList.contains(t)&&e.classList.remove(t)}},{key:"_setDropdownPosition",value:function(){var e=this;if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.isMobile){var t=this.telInput.getBoundingClientRect(),n=window.pageYOffset||document.documentElement.scrollTop,r=t.top+n,i=this.countryList.offsetHeight,a=r+this.telInput.offsetHeight+in;if(this._toggleClass(this.countryList,"iti__country-list--dropup",!a&&o),this.options.dropdownContainer){var s=!a&&o?0:this.telInput.offsetHeight;this.dropdown.style.top="".concat(r+s,"px"),this.dropdown.style.left="".concat(t.left+document.body.scrollLeft,"px"),this._handleWindowScroll=function(){return e._closeDropdown()},window.addEventListener("scroll",this._handleWindowScroll)}}}},{key:"_getClosestListItem",value:function(e){for(var t=e;t&&t!==this.countryList&&!t.classList.contains("iti__country");)t=t.parentNode;return t===this.countryList?null:t}},{key:"_bindDropdownListeners",value:function(){var e=this;this._handleMouseoverCountryList=function(t){var n=e._getClosestListItem(t.target);n&&e._highlightListItem(n,!1)},this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList),this._handleClickCountryList=function(t){var n=e._getClosestListItem(t.target);n&&e._selectListItem(n)},this.countryList.addEventListener("click",this._handleClickCountryList);var t=!0;this._handleClickOffToClose=function(){t||e._closeDropdown(),t=!1},document.documentElement.addEventListener("click",this._handleClickOffToClose);var n="",r=null;this._handleKeydownOnDropdown=function(t){t.preventDefault(),"ArrowUp"===t.key||"Up"===t.key||"ArrowDown"===t.key||"Down"===t.key?e._handleUpDownKey(t.key):"Enter"===t.key?e._handleEnterKey():"Escape"===t.key?e._closeDropdown():/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(t.key)&&(r&&clearTimeout(r),n+=t.key.toLowerCase(),e._searchForCountry(n),r=setTimeout((function(){n=""}),1e3))},document.addEventListener("keydown",this._handleKeydownOnDropdown)}},{key:"_handleUpDownKey",value:function(e){var t="ArrowUp"===e||"Up"===e?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;t&&(t.classList.contains("iti__divider")&&(t="ArrowUp"===e||"Up"===e?t.previousElementSibling:t.nextElementSibling),this._highlightListItem(t,!0))}},{key:"_handleEnterKey",value:function(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function(e){for(var t=0;to){t&&(f+=c);var d=i-s;n.scrollTop=f-d}}},{key:"_updateDialCode",value:function(e){var t,n=this.telInput.value,r="+".concat(e);if("+"===n.charAt(0)){var i=this._getDialCode(n);t=i?n.replace(i,r):r,this.telInput.value=t}else this.options.autoInsertDialCode&&(t=n?r+n:r,this.telInput.value=t)}},{key:"_getDialCode",value:function(e,t){var n="";if("+"===e.charAt(0))for(var r="",i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=t.content,r=e.title,i=e.getAttribute("aria-label"),o=n||r||i;i||e.setAttribute("aria-label",o),e.title="";var u=s(e,a({content:o},t));return{update:function(e){return u.setProps(a({content:o},e))},destroy:function(){return u.destroy()}}}},12039:function(module,exports,__webpack_require__){var factory;"undefined"!=typeof navigator&&(factory=function(){"use strict";var svgNS="http://www.w3.org/2000/svg",locationHref="",_useWebWorker=!1,initialDefaultFrame=-999999,setWebWorker=function(e){_useWebWorker=!!e},getWebWorker=function(){return _useWebWorker},setLocationHref=function(e){locationHref=e},getLocationHref=function(){return locationHref};function createTag(e){return document.createElement(e)}function extendPrototype(e,t){var n,r,i=e.length;for(n=0;n1?n[1]=1:n[1]<=0&&(n[1]=0),HSVtoRGB(n[0],n[1],n[2])}function addBrightnessToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[2]+=t,n[2]>1?n[2]=1:n[2]<0&&(n[2]=0),HSVtoRGB(n[0],n[1],n[2])}function addHueToRGB(e,t){var n=RGBtoHSV(255*e[0],255*e[1],255*e[2]);return n[0]+=t/360,n[0]>1?n[0]-=1:n[0]<0&&(n[0]+=1),HSVtoRGB(n[0],n[1],n[2])}var rgbToHex=function(){var e,t,n=[];for(e=0;e<256;e+=1)t=e.toString(16),n[e]=1===t.length?"0"+t:t;return function(e,t,r){return e<0&&(e=0),t<0&&(t=0),r<0&&(r=0),"#"+n[e]+n[t]+n[r]}}(),setSubframeEnabled=function(e){subframeEnabled=!!e},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(e){expressionsPlugin=e},getExpressionsPlugin=function(){return expressionsPlugin},setDefaultCurveSegments=function(e){defaultCurveSegments=e},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(e){idPrefix$1=e},getIdPrefix=function(){return idPrefix$1};function createNS(e){return document.createElementNS(svgNS,e)}function _typeof$5(e){return _typeof$5="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},_typeof$5(e)}var dataManager=function(){var e,t,n=1,r=[],i={onmessage:function(){},postMessage:function(t){e({data:t})}},a={postMessage:function(e){i.onmessage({data:e})}};function o(){t||(t=function(t){if(window.Worker&&window.Blob&&getWebWorker()){var n=new Blob(["var _workerSelf = self; self.onmessage = ",t.toString()],{type:"text/javascript"}),r=URL.createObjectURL(n);return new Worker(r)}return e=t,i}((function(e){if(a.dataManager||(a.dataManager=function(){function e(i,a){var o,s,u,l,f,d,h=i.length;for(s=0;s=0;t-=1)if("sh"===e[t].ty)if(e[t].ks.k.i)r(e[t].ks.k);else for(a=e[t].ks.k.length,i=0;in[0]||!(n[0]>e[0])&&(e[1]>n[1]||!(n[1]>e[1])&&(e[2]>n[2]||!(n[2]>e[2])&&null))}var a,o=function(){var e=[4,4,14];function t(e){var t,n,r,i=e.length;for(t=0;t=0;n-=1)if("sh"===e[n].ty)if(e[n].ks.k.i)e[n].ks.k.c=e[n].closed;else for(i=e[n].ks.k.length,r=0;r500)&&(this._imageLoaded(),clearInterval(n)),t+=1}.bind(this),50)}function a(e){var t={assetData:e},n=r(e,this.assetsPath,this.path);return dataManager.loadData(n,function(e){t.img=e,this._footageLoaded()}.bind(this),function(){t.img={},this._footageLoaded()}.bind(this)),t}function o(){this._imageLoaded=t.bind(this),this._footageLoaded=n.bind(this),this.testImageLoaded=i.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return o.prototype={loadAssets:function(e,t){var n;this.imagesLoadedCb=t;var r=e.length;for(n=0;nthis.animationData.op&&(this.animationData.op=e.op,this.totalFrames=Math.floor(e.op-this.animationData.ip));var t,n,r=this.animationData.layers,i=r.length,a=e.layers,o=a.length;for(n=0;nthis.timeCompleted&&(this.currentFrame=this.timeCompleted),this.trigger("enterFrame"),this.renderFrame(),this.trigger("drawnFrame")},AnimationItem.prototype.renderFrame=function(){if(!1!==this.isLoaded&&this.renderer)try{this.renderer.renderFrame(this.currentFrame+this.firstFrame)}catch(e){this.triggerRenderFrameError(e)}},AnimationItem.prototype.play=function(e){e&&this.name!==e||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(e){e&&this.name!==e||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(e){e&&this.name!==e||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(e){e&&this.name!==e||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(e){for(var t,n=0;n=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?t>=this.totalFrames?(this.playCount+=1,this.checkSegments(t%this.totalFrames)||(this.setCurrentRawFrameValue(t%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(t):this.checkSegments(t>this.totalFrames?t%this.totalFrames:0)||(n=!0,t=this.totalFrames-1):t<0?this.checkSegments(t%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(n=!0,t=0):(this.setCurrentRawFrameValue(this.totalFrames+t%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(t),n&&(this.setCurrentRawFrameValue(t),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(e,t){this.playCount=0,e[1]0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=e[0]-e[1],this.timeCompleted=this.totalFrames,this.firstFrame=e[1],this.setCurrentRawFrameValue(this.totalFrames-.001-t)):e[1]>e[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=e[1]-e[0],this.timeCompleted=this.totalFrames,this.firstFrame=e[0],this.setCurrentRawFrameValue(.001+t)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(e,t){var n=-1;this.isPaused&&(this.currentRawFrame+this.firstFramet&&(n=t-e)),this.firstFrame=e,this.totalFrames=t-e,this.timeCompleted=this.totalFrames,-1!==n&&this.goToAndStop(n,!0)},AnimationItem.prototype.playSegments=function(e,t){if(t&&(this.segments.length=0),"object"===_typeof$4(e[0])){var n,r=e.length;for(n=0;n=0;n-=1)t[n].animation.destroy(e)},e.freeze=function(){o=!0},e.unfreeze=function(){o=!1,p()},e.setVolume=function(e,n){var i;for(i=0;i=.001?function(e,t,n,r){for(var i=0;i<4;++i){var a=u(t,n,r);if(0===a)return t;t-=(s(t,n,r)-e)/a}return t}(e,l,t,r):0===f?l:function(e,t,n,r,i){var a,o,u=0;do{(a=s(o=t+(n-t)/2,r,i)-e)>0?n=o:t=o}while(Math.abs(a)>1e-7&&++u<10);return o}(e,a,a+n,t,r)}},e}(),pooling={double:function(e){return e.concat(createSizedArray(e.length))}},poolFactory=function(e,t,n){var r=0,i=e,a=createSizedArray(i);return{newElement:function(){return r?a[r-=1]:t()},release:function(e){r===i&&(a=pooling.double(a),i*=2),n&&n(e),a[r]=e,r+=1}}},bezierLengthPool=poolFactory(8,(function(){return{addedLength:0,percents:createTypedArray("float32",getDefaultCurveSegments()),lengths:createTypedArray("float32",getDefaultCurveSegments())}})),segmentsLengthPool=poolFactory(8,(function(){return{lengths:[],totalLength:0}}),(function(e){var t,n=e.lengths.length;for(t=0;t-.001&&o<.001}var n=function(e,t,n,r){var i,a,o,s,u,l,f=getDefaultCurveSegments(),c=0,d=[],h=[],p=bezierLengthPool.newElement();for(o=n.length,i=0;io?-1:1,l=!0;l;)if(r[a]<=o&&r[a+1]>o?(s=(o-r[a])/(r[a+1]-r[a]),l=!1):a+=u,a<0||a>=i-1){if(a===i-1)return n[a];l=!1}return n[a]+(n[a+1]-n[a])*s}var u=createTypedArray("float32",8);return{getSegmentsLength:function(e){var t,r=segmentsLengthPool.newElement(),i=e.c,a=e.v,o=e.o,s=e.i,u=e._length,l=r.lengths,f=0;for(t=0;t1&&(a=1);var f,c=s(a,l),d=s(o=o>1?1:o,l),h=t.length,p=1-c,m=1-d,g=p*p*p,_=c*p*p*3,F=c*c*p*3,b=c*c*c,y=p*p*m,v=c*p*m+p*c*m+p*p*d,w=c*c*m+p*c*d+c*p*d,k=c*c*d,E=p*m*m,x=c*m*m+p*d*m+p*m*d,D=c*d*m+p*d*d+c*m*d,C=c*d*d,S=m*m*m,T=d*m*m+m*d*m+m*m*d,P=d*d*m+m*d*d+d*m*d,O=d*d*d;for(f=0;fh?d>p?d-h-p:p-h-d:p>h?p-h-d:h-d-p)>-1e-4&&c<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var e=initialDefaultFrame,t=Math.abs;function n(e,t){var n,i=this.offsetTime;"multidimensional"===this.propType&&(n=createTypedArray("float32",this.pv.length));for(var a,o,s,u,l,f,c,d,h,p=t.lastIndex,m=p,g=this.keyframes.length-1,_=!0;_;){if(a=this.keyframes[m],o=this.keyframes[m+1],m===g-1&&e>=o.t-i){a.h&&(a=o),p=0;break}if(o.t-i>e){p=m;break}m=S||e=S?P.points.length-1:0;for(l=P.points[O].point.length,u=0;u=B&&j=S)n[0]=F[0],n[1]=F[1],n[2]=F[2];else if(e<=T)n[0]=a.s[0],n[1]=a.s[1],n[2]=a.s[2];else{var $=r(a.s),N=r(F);b=n,y=function(e,t,n){var r,i,a,o,s,u=[],l=e[0],f=e[1],c=e[2],d=e[3],h=t[0],p=t[1],m=t[2],g=t[3];return(i=l*h+f*p+c*m+d*g)<0&&(i=-i,h=-h,p=-p,m=-m,g=-g),1-i>1e-6?(r=Math.acos(i),a=Math.sin(r),o=Math.sin((1-n)*r)/a,s=Math.sin(n*r)/a):(o=1-n,s=n),u[0]=o*l+s*h,u[1]=o*f+s*p,u[2]=o*c+s*m,u[3]=o*d+s*g,u}($,N,(e-T)/(S-T)),v=y[0],w=y[1],k=y[2],E=y[3],x=Math.atan2(2*w*E-2*v*k,1-2*w*w-2*k*k),D=Math.asin(2*v*w+2*k*E),C=Math.atan2(2*v*E-2*w*k,1-2*v*v-2*k*k),b[0]=x/degToRads,b[1]=D/degToRads,b[2]=C/degToRads}else for(m=0;m=S?f=1:e=r&&t>=r||this._caching.lastFrame=t&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var i=this.interpolateValue(t,this._caching);this.pv=i}return this._caching.lastFrame=t,this.pv}function a(e){var n;if("unidimensional"===this.propType)n=e*this.mult,t(this.v-n)>1e-5&&(this.v=n,this._mdf=!0);else for(var r=0,i=this.v.length;r1e-5&&(this.v[r]=n,this._mdf=!0),r+=1}function o(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var e;this.lock=!0,this._mdf=this._isFirstFrame;var t=this.effectsSequence.length,n=this.kf?this.pv:this.data.k;for(e=0;e=this._maxLength&&this.doubleArrayLength(),n){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}(!a[r]||a[r]&&!i)&&(a[r]=pointPool.newElement()),a[r][0]=e,a[r][1]=t},ShapePath.prototype.setTripleAt=function(e,t,n,r,i,a,o,s){this.setXYAt(e,t,"v",o,s),this.setXYAt(n,r,"o",o,s),this.setXYAt(i,a,"i",o,s)},ShapePath.prototype.reverse=function(){var e=new ShapePath;e.setPathData(this.c,this._length);var t=this.v,n=this.o,r=this.i,i=0;this.c&&(e.setTripleAt(t[0][0],t[0][1],r[0][0],r[0][1],n[0][0],n[0][1],0,!1),i=1);var a,o=this._length-1,s=this._length;for(a=i;a=h[h.length-1].t-this.offsetTime)r=h[h.length-1].s?h[h.length-1].s[0]:h[h.length-2].e[0],a=!0;else{for(var p,m,g,_=d,F=h.length-1,b=!0;b&&(p=h[_],!((m=h[_+1]).t-this.offsetTime>e));)_=m.t-this.offsetTime)f=1;else if(er&&t>r)||(this._caching.lastIndex=i0||e>-1e-6&&e<0?r(1e4*e)/1e4:e}function A(){var e=this.props;return"matrix("+O(e[0])+","+O(e[1])+","+O(e[4])+","+O(e[5])+","+O(e[12])+","+O(e[13])+")"}return function(){this.reset=i,this.rotate=a,this.rotateX=o,this.rotateY=s,this.rotateZ=u,this.skew=f,this.skewFromAxis=c,this.shear=l,this.scale=d,this.setTransform=h,this.translate=p,this.transform=m,this.applyToPoint=y,this.applyToX=v,this.applyToY=w,this.applyToZ=k,this.applyToPointArray=S,this.applyToTriplePoints=C,this.applyToPointStringified=T,this.toCSS=P,this.to2dCSS=A,this.clone=F,this.cloneFromProps=b,this.equals=_,this.inversePoints=D,this.inversePoint=x,this.getInverseMatrix=E,this._t=this.transform,this.isIdentity=g,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(e){return _typeof$3="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},_typeof$3(e)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(e){setLocationHref(e)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(e){setSubframeEnabled(e)}function setPrefix(e){setIdPrefix(e)}function loadAnimation(e){return!0===standalone&&(e.animationData=JSON.parse(animationData)),animationManager.loadAnimation(e)}function setQuality(e){if("string"==typeof e)switch(e){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(e)&&e>1&&setDefaultCurveSegments(e);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!=typeof navigator}function installPlugin(e,t){"expressions"===e&&setExpressionsPlugin(t)}function getFactory(e){switch(e){case"propertyFactory":return PropertyFactory;case"shapePropertyFactory":return ShapePropertyFactory;case"matrix":return Matrix;default:return null}}function checkReady(){"complete"===document.readyState&&(clearInterval(readyStateCheckInterval),searchAnimations())}function getQueryVariable(e){for(var t=queryString.split("&"),n=0;n=1?a.push({s:e-1,e:t-1}):(a.push({s:e,e:1}),a.push({s:0,e:t-1}));var o,s,u=[],l=a.length;for(o=0;or+n||(f=s.s*i<=r?0:(s.s*i-r)/n,c=s.e*i>=r+n?1:(s.e*i-r)/n,u.push([f,c]))}return u.length||u.push([0,0]),u},TrimModifier.prototype.releasePathsData=function(e){var t,n=e.length;for(t=0;t1?1+a:this.s.v<0?0+a:this.s.v+a)>(n=this.e.v>1?1+a:this.e.v<0?0+a:this.e.v+a)){var o=t;t=n,n=o}t=1e-4*Math.round(1e4*t),n=1e-4*Math.round(1e4*n),this.sValue=t,this.eValue=n}else t=this.sValue,n=this.eValue;var s,u,l,f,c,d=this.shapes.length,h=0;if(n===t)for(i=0;i=0;i-=1)if((p=this.shapes[i]).shape._mdf){for((m=p.localShapeCollection).releaseShapes(),2===this.m&&d>1?(_=this.calculateShapeEdges(t,n,p.totalShapeLength,y,h),y+=p.totalShapeLength):_=[[F,b]],u=_.length,s=0;s=1?g.push({s:p.totalShapeLength*(F-1),e:p.totalShapeLength*(b-1)}):(g.push({s:p.totalShapeLength*F,e:p.totalShapeLength}),g.push({s:0,e:p.totalShapeLength*(b-1)}));var v=this.addShapes(p,g[0]);if(g[0].s!==g[0].e){if(g.length>1)if(p.shape.paths.shapes[p.shape.paths._length-1].c){var w=v.pop();this.addPaths(v,m),v=this.addShapes(p,g[1],w)}else this.addPaths(v,m),v=this.addShapes(p,g[1]);this.addPaths(v,m)}}p.shape.paths=m}}},TrimModifier.prototype.addPaths=function(e,t){var n,r=e.length;for(n=0;nt.e){n.c=!1;break}t.s<=p&&t.e>=p+o.addedLength?(this.addSegment(d[r].v[i-1],d[r].o[i-1],d[r].i[i],d[r].v[i],n,s,g),g=!1):(l=bez.getNewSegment(d[r].v[i-1],d[r].v[i],d[r].o[i-1],d[r].i[i],(t.s-p)/o.addedLength,(t.e-p)/o.addedLength,u[i-1]),this.addSegmentFromArray(l,n,s,g),g=!1,n.c=!1),p+=o.addedLength,s+=1}if(d[r].c&&u.length){if(o=u[i-1],p<=t.e){var _=u[i-1].addedLength;t.s<=p&&t.e>=p+_?(this.addSegment(d[r].v[i-1],d[r].o[i-1],d[r].i[0],d[r].v[0],n,s,g),g=!1):(l=bez.getNewSegment(d[r].v[i-1],d[r].v[0],d[r].o[i-1],d[r].i[0],(t.s-p)/_,(t.e-p)/_,u[i-1]),this.addSegmentFromArray(l,n,s,g),g=!1,n.c=!1)}else n.c=!1;p+=o.addedLength,s+=1}if(n._length&&(n.setXYAt(n.v[f][0],n.v[f][1],"i",f),n.setXYAt(n.v[n._length-1][0],n.v[n._length-1][1],"o",n._length-1)),p>t.e)break;r=this.p.keyframes[this.p.keyframes.length-1].t?(r=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/n,0),i=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/n,0)):(r=this.p.pv,i=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/n,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){r=[],i=[];var a=this.px,o=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(r[0]=a.getValueAtTime((a.keyframes[0].t+.01)/n,0),r[1]=o.getValueAtTime((o.keyframes[0].t+.01)/n,0),i[0]=a.getValueAtTime(a.keyframes[0].t/n,0),i[1]=o.getValueAtTime(o.keyframes[0].t/n,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(r[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/n,0),r[1]=o.getValueAtTime(o.keyframes[o.keyframes.length-1].t/n,0),i[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/n,0),i[1]=o.getValueAtTime((o.keyframes[o.keyframes.length-1].t-.01)/n,0)):(r=[a.pv,o.pv],i[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/n,a.offsetTime),i[1]=o.getValueAtTime((o._caching.lastFrame+o.offsetTime-.01)/n,o.offsetTime))}else r=i=e;this.v.rotate(-Math.atan2(r[1]-i[1],r[0]-i[0]))}this.data.p&&this.data.p.s?this.data.p.z?this.v.translate(this.px.v,this.py.v,-this.pz.v):this.v.translate(this.px.v,this.py.v,0):this.v.translate(this.p.v[0],this.p.v[1],-this.p.v[2])}this.frameId=this.elem.globalData.frameId}},precalculateMatrix:function(){if(!this.a.k&&(this.pre.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.appliedTransformations=1,!this.s.effectsSequence.length)){if(this.pre.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.appliedTransformations=2,this.sk){if(this.sk.effectsSequence.length||this.sa.effectsSequence.length)return;this.pre.skewFromAxis(-this.sk.v,this.sa.v),this.appliedTransformations=3}this.r?this.r.effectsSequence.length||(this.pre.rotate(-this.r.v),this.appliedTransformations=4):this.rz.effectsSequence.length||this.ry.effectsSequence.length||this.rx.effectsSequence.length||this.or.effectsSequence.length||(this.pre.rotateZ(-this.rz.v).rotateY(this.ry.v).rotateX(this.rx.v).rotateZ(-this.or.v[2]).rotateY(this.or.v[1]).rotateX(this.or.v[0]),this.appliedTransformations=4)}},autoOrient:function(){}},extendPrototype([DynamicPropertyContainer],t),t.prototype.addDynamicProperty=function(e){this._addDynamicProperty(e),this.elem.addDynamicProperty(e),this._isDirty=!0},t.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(e,n,r){return new t(e,n,r)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function getFontProperties(e){for(var t=e.fStyle?e.fStyle.split(" "):[],n="normal",r="normal",i=t.length,a=0;a0;)n-=1,this._elements.unshift(t[n]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(e){var t,n=e.length;for(t=0;t0?Math.floor(d):Math.ceil(d),m=this.pMatrix.props,g=this.rMatrix.props,_=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var F,b,y=0;if(d>0){for(;yp;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),y-=1;h&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-h,!0),y-=h)}for(r=1===this.data.m?0:this._currentCopies-1,i=1===this.data.m?1:-1,a=this._currentCopies;a;){if(b=(n=(t=this.elemsData[r].it)[t.length-1].transform.mProps.v.props).length,t[t.length-1].transform.mProps._mdf=!0,t[t.length-1].transform.op._mdf=!0,t[t.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(r/(this._currentCopies-1)),0!==y){for((0!==r&&1===i||r!==this._currentCopies-1&&-1===i)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(g[0],g[1],g[2],g[3],g[4],g[5],g[6],g[7],g[8],g[9],g[10],g[11],g[12],g[13],g[14],g[15]),this.matrix.transform(_[0],_[1],_[2],_[3],_[4],_[5],_[6],_[7],_[8],_[9],_[10],_[11],_[12],_[13],_[14],_[15]),this.matrix.transform(m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],m[8],m[9],m[10],m[11],m[12],m[13],m[14],m[15]),F=0;F0&&(f=!1),f){var c=createTag("style");c.setAttribute("f-forigin",r[n].fOrigin),c.setAttribute("f-origin",r[n].origin),c.setAttribute("f-family",r[n].fFamily),c.type="text/css",c.innerText="@font-face {font-family: "+r[n].fFamily+"; font-style: normal; src: url('"+r[n].fPath+"');}",t.appendChild(c)}}else if("g"===r[n].fOrigin||1===r[n].origin){for(u=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),l=0;le?!0!==this.isInRange&&(this.globalData._mdf=!0,this._mdf=!0,this.isInRange=!0,this.show()):!1!==this.isInRange&&(this.globalData._mdf=!0,this.isInRange=!1,this.hide())},renderRenderable:function(){var e,t=this.renderableComponents.length;for(e=0;e0&&(this.maskElement.setAttribute("id",g),this.element.maskedElement.setAttribute(F,"url("+getLocationHref()+"#"+g+")"),a.appendChild(this.maskElement)),this.viewData.length&&this.element.addRenderableComponent(this)}FootageElement.prototype.prepareFrame=function(){},extendPrototype([RenderableElement,BaseElement,FrameElement],FootageElement),FootageElement.prototype.getBaseElement=function(){return null},FootageElement.prototype.renderFrame=function(){},FootageElement.prototype.destroy=function(){},FootageElement.prototype.initExpressions=function(){this.layerInterface=FootageInterface(this)},FootageElement.prototype.getFootageData=function(){return this.footageData},AudioElement.prototype.prepareFrame=function(e){if(this.prepareRenderableFrame(e,!0),this.prepareProperties(e,!0),this.tm._placeholder)this._currentTime=e/this.data.sr;else{var t=this.tm.v;this._currentTime=t}this._volume=this.lv.v[0];var n=this._volume*this._volumeMultiplier;this._previousVolume!==n&&(this._previousVolume=n,this.audio.volume(n))},extendPrototype([RenderableElement,BaseElement,FrameElement],AudioElement),AudioElement.prototype.renderFrame=function(){this.isInRange&&this._canPlay&&(this._isPlaying?(!this.audio.playing()||Math.abs(this._currentTime/this.globalData.frameRate-this.audio.seek())>.1)&&this.audio.seek(this._currentTime/this.globalData.frameRate):(this.audio.play(),this.audio.seek(this._currentTime/this.globalData.frameRate),this._isPlaying=!0))},AudioElement.prototype.show=function(){},AudioElement.prototype.hide=function(){this.audio.pause(),this._isPlaying=!1},AudioElement.prototype.pause=function(){this.audio.pause(),this._isPlaying=!1,this._canPlay=!1},AudioElement.prototype.resume=function(){this._canPlay=!0},AudioElement.prototype.setRate=function(e){this.audio.rate(e)},AudioElement.prototype.volume=function(e){this._volumeMultiplier=e,this._previousVolume=e*this._volume,this.audio.volume(this._previousVolume)},AudioElement.prototype.getBaseElement=function(){return null},AudioElement.prototype.destroy=function(){},AudioElement.prototype.sourceRectAtTime=function(){},AudioElement.prototype.initExpressions=function(){},BaseRenderer.prototype.checkLayers=function(e){var t,n,r=this.layers.length;for(this.completeLayers=!0,t=r-1;t>=0;t-=1)this.elements[t]||(n=this.layers[t]).ip-n.st<=e-this.layers[t].st&&n.op-n.st>e-this.layers[t].st&&this.buildItem(t),this.completeLayers=!!this.elements[t]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(e){switch(e.ty){case 2:return this.createImage(e);case 0:return this.createComp(e);case 1:return this.createSolid(e);case 3:default:return this.createNull(e);case 4:return this.createShape(e);case 5:return this.createText(e);case 6:return this.createAudio(e);case 13:return this.createCamera(e);case 15:return this.createFootage(e)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(e){return new AudioElement(e,this.globalData,this)},BaseRenderer.prototype.createFootage=function(e){return new FootageElement(e,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var e,t=this.layers.length;for(e=0;e1&&(a+=" C"+t.o[r-1][0]+","+t.o[r-1][1]+" "+t.i[0][0]+","+t.i[0][1]+" "+t.v[0][0]+","+t.v[0][1]),n.lastPath!==a){var o="";n.elem&&(t.c&&(o=e.inv?this.solidPath+a:a),n.elem.setAttribute("d",o)),n.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var e={createFilter:function(e,t){var n=createNS("filter");return n.setAttribute("id",e),!0!==t&&(n.setAttribute("filterUnits","objectBoundingBox"),n.setAttribute("x","0%"),n.setAttribute("y","0%"),n.setAttribute("width","100%"),n.setAttribute("height","100%")),n},createAlphaToLuminanceFilter:function(){var e=createNS("feColorMatrix");return e.setAttribute("type","matrix"),e.setAttribute("color-interpolation-filters","sRGB"),e.setAttribute("values","0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1"),e}};return e}(),featureSupport=function(){var e={maskType:!0};return(/MSIE 10/i.test(navigator.userAgent)||/MSIE 9/i.test(navigator.userAgent)||/rv:11.0/i.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent))&&(e.maskType=!1),e}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(e){var t,n,r="SourceGraphic",i=e.data.ef?e.data.ef.length:0,a=createElementID(),o=filtersFactory.createFilter(a,!0),s=0;for(this.filters=[],t=0;t=0&&!this.shapeModifiers[e].processShapes(this._isFirstFrame);e-=1);}},searchProcessedElement:function(e){for(var t=this.processedElements,n=0,r=t.length;n.01)return!1;n+=1}return!0},GradientProperty.prototype.checkCollapsable=function(){if(this.o.length/2!=this.c.length/4)return!1;if(this.data.k.k[0].s)for(var e=0,t=this.data.k.k.length;e0;)u=r.transformers[m].mProps._mdf||u,p-=1,m-=1;if(u)for(p=_-r.styles[f].lvl,m=r.transformers.length-1;p>0;)h=r.transformers[m].mProps.v.props,d.transform(h[0],h[1],h[2],h[3],h[4],h[5],h[6],h[7],h[8],h[9],h[10],h[11],h[12],h[13],h[14],h[15]),p-=1,m-=1}else d=e;if(o=(c=r.sh.paths)._length,u){for(s="",a=0;a=1?F=.99:F<=-1&&(F=-.99);var b=s*F,y=Math.cos(_+t.a.v)*b+f[0],v=Math.sin(_+t.a.v)*b+f[1];u.setAttribute("fx",y),u.setAttribute("fy",v),l&&!t.g._collapsable&&(t.of.setAttribute("fx",y),t.of.setAttribute("fy",v))}}function u(e,t,n){var r=t.style,i=t.d;i&&(i._mdf||n)&&i.dashStr&&(r.pElem.setAttribute("stroke-dasharray",i.dashStr),r.pElem.setAttribute("stroke-dashoffset",i.dashoffset[0])),t.c&&(t.c._mdf||n)&&r.pElem.setAttribute("stroke","rgb("+bmFloor(t.c.v[0])+","+bmFloor(t.c.v[1])+","+bmFloor(t.c.v[2])+")"),(t.o._mdf||n)&&r.pElem.setAttribute("stroke-opacity",t.o.v),(t.w._mdf||n)&&(r.pElem.setAttribute("stroke-width",t.w.v),r.msElem&&r.msElem.setAttribute("stroke-width",t.w.v))}return{createRenderFunction:function(e){switch(e.ty){case"fl":return a;case"gf":return s;case"gs":return o;case"st":return u;case"sh":case"el":case"rc":case"sr":return i;case"tr":return n;case"no":return r;default:return null}}}}();function SVGShapeElement(e,t,n){this.shapes=[],this.shapesData=e.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(e,t,n),this.prevViewData=[]}function LetterProps(e,t,n,r,i,a){this.o=e,this.sw=t,this.sc=n,this.fc=r,this.m=i,this.p=a,this._mdf={o:!0,sw:!!t,sc:!!n,fc:!!r,m:!0,p:!0}}function TextProperty(e,t){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=t,this.elem=e,this.comp=this.elem.comp,this.keysIndex=0,this.canResize=!1,this.minimumFontSize=1,this.effectsSequence=[],this.currentData={ascent:0,boxWidth:this.defaultBoxWidth,f:"",fStyle:"",fWeight:"",fc:"",j:"",justifyOffset:"",l:[],lh:0,lineWidths:[],ls:"",of:"",s:"",sc:"",sw:0,t:0,tr:0,sz:0,ps:null,fillColorAnim:!1,strokeColorAnim:!1,strokeWidthAnim:!1,yOffset:0,finalSize:0,finalText:[],finalLineHeight:0,__complete:!1},this.copyData(this.currentData,this.data.d.k[0].s),this.searchProperty()||this.completeTextData(this.currentData)}extendPrototype([BaseElement,TransformElement,SVGBaseElement,IShapeElement,HierarchyElement,FrameElement,RenderableDOMElement],SVGShapeElement),SVGShapeElement.prototype.initSecondaryElement=function(){},SVGShapeElement.prototype.identityMatrix=new Matrix,SVGShapeElement.prototype.buildExpressionInterface=function(){},SVGShapeElement.prototype.createContent=function(){this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes()},SVGShapeElement.prototype.filterUniqueShapes=function(){var e,t,n,r,i=this.shapes.length,a=this.stylesList.length,o=[],s=!1;for(n=0;n1&&s&&this.setShapesAsAnimated(o)}},SVGShapeElement.prototype.setShapesAsAnimated=function(e){var t,n=e.length;for(t=0;t=0;s-=1){if((d=this.searchProcessedElement(e[s]))?t[s]=n[d-1]:e[s]._render=o,"fl"===e[s].ty||"st"===e[s].ty||"gf"===e[s].ty||"gs"===e[s].ty||"no"===e[s].ty)d?t[s].style.closed=!1:t[s]=this.createStyleElement(e[s],i),e[s]._render&&t[s].style.pElem.parentNode!==r&&r.appendChild(t[s].style.pElem),m.push(t[s].style);else if("gr"===e[s].ty){if(d)for(l=t[s].it.length,u=0;u1,this.kf&&this.addEffect(this.getKeyframeValue.bind(this)),this.kf},TextProperty.prototype.addEffect=function(e){this.effectsSequence.push(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(e){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||e){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var t=this.currentData,n=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var r;this.lock=!0,this._mdf=!1;var i=this.effectsSequence.length,a=e||this.data.d.k[this.keysIndex].s;for(r=0;rt);)n+=1;return this.keysIndex!==n&&(this.keysIndex=n),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(e){for(var t,n,r=[],i=0,a=e.length,o=!1;i=55296&&t<=56319?(n=e.charCodeAt(i+1))>=56320&&n<=57343?(o||FontManager.isModifier(t,n)?(r[r.length-1]+=e.substr(i,2),o=!1):r.push(e.substr(i,2)),i+=1):r.push(e.charAt(i)):t>56319?(n=e.charCodeAt(i+1),FontManager.isZeroWidthJoiner(t,n)?(o=!0,r[r.length-1]+=e.substr(i,2),i+=1):r.push(e.charAt(i))):FontManager.isZeroWidthJoiner(t)?(r[r.length-1]+=e.charAt(i),o=!0):r.push(e.charAt(i)),i+=1;return r},TextProperty.prototype.completeTextData=function(e){e.__complete=!0;var t,n,r,i,a,o,s,u=this.elem.globalData.fontManager,l=this.data,f=[],c=0,d=l.m.g,h=0,p=0,m=0,g=[],_=0,F=0,b=u.getFontByName(e.f),y=0,v=getFontProperties(b);e.fWeight=v.weight,e.fStyle=v.style,e.finalSize=e.s,e.finalText=this.buildFinalText(e.t),n=e.finalText.length,e.finalLineHeight=e.lh;var w,k=e.tr/1e3*e.finalSize;if(e.sz)for(var E,x,D=!0,C=e.sz[0],S=e.sz[1];D;){E=0,_=0,n=(x=this.buildFinalText(e.t)).length,k=e.tr/1e3*e.finalSize;var T=-1;for(t=0;tC&&" "!==x[t]?(-1===T?n+=1:t=T,E+=e.finalLineHeight||1.2*e.finalSize,x.splice(t,T===t?1:0,"\r"),T=-1,_=0):(_+=y,_+=k);E+=b.ascent*e.finalSize/100,this.canResize&&e.finalSize>this.minimumFontSize&&SF?_:F,_=-2*k,i="",r=!0,m+=1):i=P,u.chars?(s=u.getCharData(P,b.fStyle,u.getFontByName(e.f).fFamily),y=r?0:s.w*e.finalSize/100):y=u.measureText(i,e.f,e.finalSize)," "===P?O+=y+k:(_+=y+k+O,O=0),f.push({l:y,an:y,add:h,n:r,anIndexes:[],val:i,line:m,animatorJustifyOffset:0}),2==d){if(h+=y,""===i||" "===i||t===n-1){for(""!==i&&" "!==i||(h-=y);p<=t;)f[p].an=h,f[p].ind=c,f[p].extra=y,p+=1;c+=1,h=0}}else if(3==d){if(h+=y,""===i||t===n-1){for(""===i&&(h-=y);p<=t;)f[p].an=h,f[p].ind=c,f[p].extra=y,p+=1;h=0,c+=1}}else f[c].ind=c,f[c].extra=0,c+=1;if(e.l=f,F=_>F?_:F,g.push(_),e.sz)e.boxWidth=e.sz[0],e.justifyOffset=0;else switch(e.boxWidth=F,e.j){case 1:e.justifyOffset=-e.boxWidth;break;case 2:e.justifyOffset=-e.boxWidth/2;break;default:e.justifyOffset=0}e.lineWidths=g;var A,j,B,I,M=l.a;o=M.length;var R=[];for(a=0;a0?i=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?o=1-this.xe.v/100:s=1+this.xe.v/100;var u=BezierFactory.getBezierEasing(i,a,o,s).get,l=0,f=this.finalS,c=this.finalE,d=this.data.sh;if(2===d)l=u(l=c===f?r>=c?1:0:e(0,t(.5/(c-f)+(r-f)/(c-f),1)));else if(3===d)l=u(l=c===f?r>=c?0:1:1-e(0,t(.5/(c-f)+(r-f)/(c-f),1)));else if(4===d)c===f?l=0:(l=e(0,t(.5/(c-f)+(r-f)/(c-f),1)))<.5?l*=2:l=1-2*(l-.5),l=u(l);else if(5===d){if(c===f)l=0;else{var h=c-f,p=-h/2+(r=t(e(0,r+.5-f),c-f)),m=h/2;l=Math.sqrt(1-p*p/(m*m))}l=u(l)}else 6===d?(c===f?l=0:(r=t(e(0,r+.5-f),c-f),l=(1+Math.cos(Math.PI+2*Math.PI*r/(c-f)))/2),l=u(l)):(r>=n(f)&&(l=e(0,t(r-f<0?t(c,1)-(f-r):c-r,1))),l=u(l));if(100!==this.sm.v){var g=.01*this.sm.v;0===g&&(g=1e-8);var _=.5-.5*g;l<_?l=0:(l=(l-_)/g)>1&&(l=1)}return l*this.a.v},getValue:function(e){this.iterateDynamicProperties(),this._mdf=e||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,e&&2===this.data.r&&(this.e.v=this._currentTextLength);var t=2===this.data.r?1:100/this.data.totalChars,n=this.o.v/t,r=this.s.v/t+n,i=this.e.v/t+n;if(r>i){var a=r;r=i,i=a}this.finalS=r,this.finalE=i}},extendPrototype([DynamicPropertyContainer],r),{getTextSelectorProp:function(e,t,n){return new r(e,t,n)}}}();function TextAnimatorDataProperty(e,t,n){var r={propType:!1},i=PropertyFactory.getProp,a=t.a;this.a={r:a.r?i(e,a.r,0,degToRads,n):r,rx:a.rx?i(e,a.rx,0,degToRads,n):r,ry:a.ry?i(e,a.ry,0,degToRads,n):r,sk:a.sk?i(e,a.sk,0,degToRads,n):r,sa:a.sa?i(e,a.sa,0,degToRads,n):r,s:a.s?i(e,a.s,1,.01,n):r,a:a.a?i(e,a.a,1,0,n):r,o:a.o?i(e,a.o,0,.01,n):r,p:a.p?i(e,a.p,1,0,n):r,sw:a.sw?i(e,a.sw,0,0,n):r,sc:a.sc?i(e,a.sc,1,0,n):r,fc:a.fc?i(e,a.fc,1,0,n):r,fh:a.fh?i(e,a.fh,0,0,n):r,fs:a.fs?i(e,a.fs,0,.01,n):r,fb:a.fb?i(e,a.fb,0,.01,n):r,t:a.t?i(e,a.t,0,0,n):r},this.s=TextSelectorProp.getTextSelectorProp(e,t.s,n),this.s.t=t.s.t}function TextAnimatorProperty(e,t,n){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=e,this._renderType=t,this._elem=n,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(n)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var e,t,n=this._textData.a.length,r=PropertyFactory.getProp;for(e=0;e=s+se||!p?(F=(s+se-l)/u.partialLength,q=h.point[0]+(u.point[0]-h.point[0])*F,L=h.point[1]+(u.point[1]-h.point[1])*F,E.translate(-v[0]*C[i].an*.005,-v[1]*I*.01),f=!1):p&&(l+=u.partialLength,(c+=1)>=p.length&&(c=0,m[d+=1]?p=m[d].points:y.v.c?(c=0,p=m[d=0].points):(l-=u.partialLength,p=null)),p&&(h=u,g=(u=p[c]).partialLength));R=C[i].an/2-C[i].add,E.translate(-R,0,0)}else R=C[i].an/2-C[i].add,E.translate(-R,0,0),E.translate(-v[0]*C[i].an*.005,-v[1]*I*.01,0);for(O=0;Oe?this.textSpans[e].span:createNS(u?"g":"text"),g<=e){if(o.setAttribute("stroke-linecap","butt"),o.setAttribute("stroke-linejoin","round"),o.setAttribute("stroke-miterlimit","4"),this.textSpans[e].span=o,u){var _=createNS("g");o.appendChild(_),this.textSpans[e].childSpan=_}this.textSpans[e].span=o,this.layerElement.appendChild(o)}o.style.display="inherit"}if(l.reset(),f&&(s[e].n&&(c=-p,d+=n.yOffset,d+=h?1:0,h=!1),this.applyTextPropertiesToMatrix(n,l,s[e].line,c,d),c+=s[e].l||0,c+=p),u){var F;if(1===(m=this.globalData.fontManager.getCharData(n.finalText[e],r.fStyle,this.globalData.fontManager.getFontByName(n.f).fFamily)).t)F=new SVGCompElement(m.data,this.globalData,this);else{var b=emptyShapeData;m.data&&m.data.shapes&&(b=this.buildShapeData(m.data,n.finalSize)),F=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[e].glyph){var y=this.textSpans[e].glyph;this.textSpans[e].childSpan.removeChild(y.layerElement),y.destroy()}this.textSpans[e].glyph=F,F._debug=!0,F.prepareFrame(0),F.renderFrame(),this.textSpans[e].childSpan.appendChild(F.layerElement),1===m.t&&this.textSpans[e].childSpan.setAttribute("transform","scale("+n.finalSize/100+","+n.finalSize/100+")")}else f&&o.setAttribute("transform","translate("+l.props[12]+","+l.props[13]+")"),o.textContent=s[e].val,o.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}f&&o&&o.setAttribute("d","")}else{var v=this.textContainer,w="start";switch(n.j){case 1:w="end";break;case 2:w="middle";break;default:w="start"}v.setAttribute("text-anchor",w),v.setAttribute("letter-spacing",p);var k=this.buildTextContents(n.finalText);for(t=k.length,d=n.ps?n.ps[1]+n.ascent:0,e=0;e=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].prepareFrame(e-this.layers[t].st);if(this.globalData._mdf)for(t=0;t=0;n-=1)(this.completeLayers||this.elements[n])&&(this.elements[n].prepareFrame(this.renderedFrame-this.layers[n].st),this.elements[n]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var e,t=this.layers.length;for(e=0;e=0;r-=1)n=e.transforms[r].transform.mProps.v.props,e.finalTransform.transform(n[0],n[1],n[2],n[3],n[4],n[5],n[6],n[7],n[8],n[9],n[10],n[11],n[12],n[13],n[14],n[15]);e._mdf=a},processSequences:function(e){var t,n=this.sequenceList.length;for(t=0;t=0;a-=1){if((u=this.searchProcessedElement(e[a]))?t[a]=n[u-1]:e[a]._shouldRender=r,"fl"===e[a].ty||"st"===e[a].ty||"gf"===e[a].ty||"gs"===e[a].ty)u?t[a].style.closed=!1:t[a]=this.createStyleElement(e[a],p),d.push(t[a].style);else if("gr"===e[a].ty){if(u)for(s=t[a].it.length,o=0;o=0;i-=1)"tr"===t[i].ty?(a=n[i].transform,this.renderShapeTransform(e,a)):"sh"===t[i].ty||"el"===t[i].ty||"rc"===t[i].ty||"sr"===t[i].ty?this.renderPath(t[i],n[i]):"fl"===t[i].ty?this.renderFill(t[i],n[i],a):"st"===t[i].ty?this.renderStroke(t[i],n[i],a):"gf"===t[i].ty||"gs"===t[i].ty?this.renderGradientFill(t[i],n[i],a):"gr"===t[i].ty?this.renderShape(a,t[i].it,n[i].it):t[i].ty;r&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(e,t){if(this._isFirstFrame||t._mdf||e.transforms._mdf){var n,r,i,a=e.trNodes,o=t.paths,s=o._length;a.length=0;var u=e.transforms.finalTransform;for(i=0;i=1?c=.99:c<=-1&&(c=-.99);var d=l*c,h=Math.cos(f+t.a.v)*d+s[0],p=Math.sin(f+t.a.v)*d+s[1];r=o.createRadialGradient(h,p,0,s[0],s[1],l)}var m=e.g.p,g=t.g.c,_=1;for(a=0;as&&"xMidYMid slice"===u||on&&"meet"===a||rn&&"slice"===a)?(e-this.transformCanvas.w*(t/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===s&&(rn&&"slice"===a)?(e-this.transformCanvas.w*(t/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===u&&(r>n&&"meet"===a||rn&&"meet"===a||r=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(e,t){if((this.renderedFrame!==e||!0!==this.renderConfig.clearCanvas||t)&&!this.destroyed&&-1!==e){var n;this.renderedFrame=e,this.globalData.frameNum=e-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||t,this.globalData.projectInterface.currentFrame=e;var r=this.layers.length;for(this.completeLayers||this.checkLayers(e),n=0;n=0;n-=1)(this.completeLayers||this.elements[n])&&this.elements[n].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(e){var t=this.elements;if(!t[e]&&99!==this.layers[e].ty){var n=this.createItem(this.layers[e],this,this.globalData);t[e]=n,n.initExpressions()}},CanvasRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;)this.pendingElements.pop().checkParenting()},CanvasRendererBase.prototype.hide=function(){this.animationItem.container.style.display="none"},CanvasRendererBase.prototype.show=function(){this.animationItem.container.style.display="block"},extendPrototype([CanvasRendererBase,ICompElement,CVBaseElement],CVCompElement),CVCompElement.prototype.renderInnerContent=function(){var e,t=this.canvasContext;for(t.beginPath(),t.moveTo(0,0),t.lineTo(this.data.w,0),t.lineTo(this.data.w,this.data.h),t.lineTo(0,this.data.h),t.lineTo(0,0),t.clip(),e=this.layers.length-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()},CVCompElement.prototype.destroy=function(){var e;for(e=this.layers.length-1;e>=0;e-=1)this.elements[e]&&this.elements[e].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(e){return new CVCompElement(e,this.globalData,this)},HBaseElement.prototype={checkBlendMode:function(){},initRendererElement:function(){this.baseElement=createTag(this.data.tg||"div"),this.data.hasMask?(this.svgElement=createNS("svg"),this.layerElement=createNS("g"),this.maskedElement=this.layerElement,this.svgElement.appendChild(this.layerElement),this.baseElement.appendChild(this.svgElement)):this.layerElement=this.baseElement,styleDiv(this.baseElement)},createContainerElements:function(){this.renderableEffectsManager=new CVEffects(this),this.transformedElement=this.baseElement,this.maskedElement=this.layerElement,this.data.ln&&this.layerElement.setAttribute("id",this.data.ln),this.data.cl&&this.layerElement.setAttribute("class",this.data.cl),0!==this.data.bm&&this.setBlendMode()},renderElement:function(){var e=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var t=this.finalTransform.mat.toCSS();e.transform=t,e.webkitTransform=t}this.finalTransform._opMdf&&(e.opacity=this.finalTransform.mProp.o.v)},renderFrame:function(){this.data.hd||this.hidden||(this.renderTransform(),this.renderRenderable(),this.renderElement(),this.renderInnerContent(),this._isFirstFrame&&(this._isFirstFrame=!1))},destroy:function(){this.layerElement=null,this.transformedElement=null,this.matteElement&&(this.matteElement=null),this.maskManager&&(this.maskManager.destroy(),this.maskManager=null)},createRenderableComponents:function(){this.maskManager=new MaskElement(this.data,this,this.globalData)},addEffects:function(){},setMatte:function(){}},HBaseElement.prototype.getBaseElement=SVGBaseElement.prototype.getBaseElement,HBaseElement.prototype.destroyBaseElement=HBaseElement.prototype.destroy,HBaseElement.prototype.buildElementParenting=BaseRenderer.prototype.buildElementParenting,extendPrototype([BaseElement,TransformElement,HBaseElement,HierarchyElement,FrameElement,RenderableDOMElement],HSolidElement),HSolidElement.prototype.createContent=function(){var e;this.data.hasMask?((e=createNS("rect")).setAttribute("width",this.data.sw),e.setAttribute("height",this.data.sh),e.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((e=createTag("div")).style.width=this.data.sw+"px",e.style.height=this.data.sh+"px",e.style.backgroundColor=this.data.sc),this.layerElement.appendChild(e)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var e;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),e=this.svgElement;else{e=createNS("svg");var t=this.comp.data?this.comp.data:this.globalData.compSize;e.setAttribute("width",t.w),e.setAttribute("height",t.h),e.appendChild(this.shapesContainer),this.layerElement.appendChild(e)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=e},HShapeElement.prototype.getTransformedPoint=function(e,t){var n,r=e.length;for(n=0;n0&&s<1&&c[d].push(this.calculateF(s,e,t,n,r,d)):(u=a*a-4*o*i)>=0&&((l=(-a+bmSqrt(u))/(2*i))>0&&l<1&&c[d].push(this.calculateF(l,e,t,n,r,d)),(f=(-a-bmSqrt(u))/(2*i))>0&&f<1&&c[d].push(this.calculateF(f,e,t,n,r,d))));this.shapeBoundingBox.left=bmMin.apply(null,c[0]),this.shapeBoundingBox.top=bmMin.apply(null,c[1]),this.shapeBoundingBox.right=bmMax.apply(null,c[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,c[1])},HShapeElement.prototype.calculateF=function(e,t,n,r,i,a){return bmPow(1-e,3)*t[a]+3*bmPow(1-e,2)*e*n[a]+3*(1-e)*bmPow(e,2)*r[a]+bmPow(e,3)*i[a]},HShapeElement.prototype.calculateBoundingBox=function(e,t){var n,r=e.length;for(n=0;n=e.x+e.width&&this.currentBBox.height+this.currentBBox.y>=e.y+e.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var e=this.tempBoundingBox,t=999999;if(e.x=t,e.xMax=-t,e.y=t,e.yMax=-t,this.calculateBoundingBox(this.itemsData,e),e.width=e.xMax=0;e-=1){var r=this.hierarchy[e].finalTransform.mProp;this.mat.translate(-r.p.v[0],-r.p.v[1],r.p.v[2]),this.mat.rotateX(-r.or.v[0]).rotateY(-r.or.v[1]).rotateZ(r.or.v[2]),this.mat.rotateX(-r.rx.v).rotateY(-r.ry.v).rotateZ(r.rz.v),this.mat.scale(1/r.s.v[0],1/r.s.v[1],1/r.s.v[2]),this.mat.translate(r.a.v[0],r.a.v[1],r.a.v[2])}if(this.p?this.mat.translate(-this.p.v[0],-this.p.v[1],this.p.v[2]):this.mat.translate(-this.px.v,-this.py.v,this.pz.v),this.a){var i;i=this.p?[this.p.v[0]-this.a.v[0],this.p.v[1]-this.a.v[1],this.p.v[2]-this.a.v[2]]:[this.px.v-this.a.v[0],this.py.v-this.a.v[1],this.pz.v-this.a.v[2]];var a=Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2)+Math.pow(i[2],2)),o=[i[0]/a,i[1]/a,i[2]/a],s=Math.sqrt(o[2]*o[2]+o[0]*o[0]),u=Math.atan2(o[1],s),l=Math.atan2(o[0],-o[2]);this.mat.rotateY(l).rotateX(-u)}this.mat.rotateX(-this.rx.v).rotateY(-this.ry.v).rotateZ(this.rz.v),this.mat.rotateX(-this.or.v[0]).rotateY(-this.or.v[1]).rotateZ(this.or.v[2]),this.mat.translate(this.globalData.compSize.w/2,this.globalData.compSize.h/2,0),this.mat.translate(0,0,this.pe.v);var f=!this._prevMat.equals(this.mat);if((f||this.pe._mdf)&&this.comp.threeDElements){var c,d,h;for(t=this.comp.threeDElements.length,e=0;e=e)return this.threeDElements[t].perspectiveElem;t+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(e,t){var n,r,i=createTag("div");styleDiv(i);var a=createTag("div");if(styleDiv(a),"3d"===t){(n=i.style).width=this.globalData.compSize.w+"px",n.height=this.globalData.compSize.h+"px";var o="50% 50%";n.webkitTransformOrigin=o,n.mozTransformOrigin=o,n.transformOrigin=o;var s="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(r=a.style).transform=s,r.webkitTransform=s}i.appendChild(a);var u={container:a,perspectiveElem:i,startPos:e,endPos:e,type:t};return this.threeDElements.push(u),u},HybridRendererBase.prototype.build3dContainers=function(){var e,t,n=this.layers.length,r="";for(e=0;e=0;e-=1)this.resizerElem.appendChild(this.threeDElements[e].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(e,t){for(var n=0,r=this.threeDElements.length;no?(e=i/this.globalData.compSize.w,t=i/this.globalData.compSize.w,n=0,r=(a-this.globalData.compSize.h*(i/this.globalData.compSize.w))/2):(e=a/this.globalData.compSize.h,t=a/this.globalData.compSize.h,n=(i-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,r=0);var s=this.resizerElem.style;s.webkitTransform="matrix3d("+e+",0,0,0,0,"+t+",0,0,0,0,1,0,"+n+","+r+",0,1)",s.transform=s.webkitTransform},HybridRendererBase.prototype.renderFrame=SVGRenderer.prototype.renderFrame,HybridRendererBase.prototype.hide=function(){this.resizerElem.style.display="none"},HybridRendererBase.prototype.show=function(){this.resizerElem.style.display="block"},HybridRendererBase.prototype.initItems=function(){if(this.buildAllItems(),this.camera)this.camera.setup();else{var e,t=this.globalData.compSize.w,n=this.globalData.compSize.h,r=this.threeDElements.length;for(e=0;e=o;)e/=2,t/=2,n>>>=1;return(e+n)/t};return F.int32=function(){return 0|_.g(4)},F.quick=function(){return _.g(4)/4294967296},F.double=F,c(d(_.S),e),(h.pass||p||function(e,n,r,i){return i&&(i.S&&l(i,_),e.state=function(){return l(_,{})}),r?(t.random=e,n):e})(F,g,"global"in h?h.global:this==t,h.state)},c(t.random(),e)}function initialize$2(e){seedRandom([],e)}var propTypes={SHAPE:"shape"};function _typeof(e){return _typeof="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},_typeof(e)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(e){return e.constructor===Array||e.constructor===Float32Array}function isNumerable(e,t){return"number"===e||"boolean"===e||"string"===e||t instanceof Number}function $bm_neg(e){var t=_typeof(e);if("number"===t||"boolean"===t||e instanceof Number)return-e;if($bm_isInstanceOfArray(e)){var n,r=e.length,i=[];for(n=0;nn){var r=n;n=t,t=r}return Math.min(Math.max(e,t),n)}function radiansToDegrees(e){return e/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(e){return e*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(e,t){if("number"==typeof e||e instanceof Number)return t=t||0,Math.abs(e-t);var n;t||(t=helperLengthArray);var r=Math.min(e.length,t.length),i=0;for(n=0;n.5?l/(2-o-s):l/(o+s),o){case r:t=(i-a)/l+(i1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function hslToRgb(e){var t,n,r,i=e[0],a=e[1],o=e[2];if(0===a)t=o,r=o,n=o;else{var s=o<.5?o*(1+a):o+a-o*a,u=2*o-s;t=hue2rgb(u,s,i+1/3),n=hue2rgb(u,s,i),r=hue2rgb(u,s,i-1/3)}return[t,n,r,e[3]]}function linear(e,t,n,r,i){if(void 0!==r&&void 0!==i||(r=t,i=n,t=0,n=1),n=n)return i;var o,s=n===t?0:(e-t)/(n-t);if(!r.length)return r+(i-r)*s;var u=r.length,l=createTypedArray("float32",u);for(o=0;o1){for(r=0;r1?t=1:t<0&&(t=0);var o=e(t);if($bm_isInstanceOfArray(i)){var s,u=i.length,l=createTypedArray("float32",u);for(s=0;sdata.k[t].t&&edata.k[t+1].t-e?(n=t+2,r=data.k[t+1].t):(n=t+1,r=data.k[t].t);break}}-1===n&&(n=t+1,r=data.k[t].t)}else n=0,r=0;var a={};return a.index=n,a.time=r/elem.comp.globalData.frameRate,a}function key(e){var t,n,r;if(!data.k.length||"number"==typeof data.k[0])throw new Error("The property has no keyframe at index "+e);e-=1,t={time:data.k[e].t/elem.comp.globalData.frameRate,value:[]};var i=Object.prototype.hasOwnProperty.call(data.k[e],"s")?data.k[e].s:data.k[e-1].e;for(r=i.length,n=0;nl.length-1)&&(t=l.length-1),r=f-(i=l[l.length-1-t].t)),"pingpong"===e){if(Math.floor((u-i)/r)%2!=0)return this.getValueAtTime((r-(u-i)%r+i)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var c=this.getValueAtTime(i/this.comp.globalData.frameRate,0),d=this.getValueAtTime(f/this.comp.globalData.frameRate,0),h=this.getValueAtTime(((u-i)%r+i)/this.comp.globalData.frameRate,0),p=Math.floor((u-i)/r);if(this.pv.length){for(o=(s=new Array(c.length)).length,a=0;a=f)return this.pv;if(n?i=f+(r=t?Math.abs(this.elem.comp.globalData.frameRate*t):Math.max(0,this.elem.data.op-f)):((!t||t>l.length-1)&&(t=l.length-1),r=(i=l[t].t)-f),"pingpong"===e){if(Math.floor((f-u)/r)%2==0)return this.getValueAtTime(((f-u)%r+f)/this.comp.globalData.frameRate,0)}else{if("offset"===e){var c=this.getValueAtTime(f/this.comp.globalData.frameRate,0),d=this.getValueAtTime(i/this.comp.globalData.frameRate,0),h=this.getValueAtTime((r-(f-u)%r+f)/this.comp.globalData.frameRate,0),p=Math.floor((f-u)/r)+1;if(this.pv.length){for(o=(s=new Array(c.length)).length,a=0;a1?(i+e-a)/(t-1):1,s=0,u=0;for(n=this.pv.length?createTypedArray("float32",this.pv.length):0;so){var f=s,c=n.c&&s===u-1?0:s+1,d=(o-l)/a[s].addedLength;r=bez.getPointInSegment(n.v[f],n.v[c],n.o[f],n.i[c],d,a[s]);break}l+=a[s].addedLength,s+=1}return r||(r=n.c?[n.v[0][0],n.v[0][1]]:[n.v[n._length-1][0],n.v[n._length-1][1]]),r},vectorOnPath:function(e,t,n){1==e?e=this.v.c:0==e&&(e=.999);var r=this.pointOnPath(e,t),i=this.pointOnPath(e+.001,t),a=i[0]-r[0],o=i[1]-r[1],s=Math.sqrt(Math.pow(a,2)+Math.pow(o,2));return 0===s?[0,0]:"tangent"===n?[a/s,o/s]:[-o/s,a/s]},tangentOnPath:function(e,t){return this.vectorOnPath(e,t,"tangent")},normalOnPath:function(e,t){return this.vectorOnPath(e,t,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([l],s),extendPrototype([l],u),u.prototype.getValueAtTime=function(e){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),e*=this.elem.globalData.frameRate,(e-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime=l?h<0?r:i:r+d*Math.pow((a-e)/h,1/n),f[c]=o,c+=1,s+=256/255;return f.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){var t,n=this.filterManager.effectElements;this.feFuncRComposed&&(e||n[3].p._mdf||n[4].p._mdf||n[5].p._mdf||n[6].p._mdf||n[7].p._mdf)&&(t=this.getTableValue(n[3].p.v,n[4].p.v,n[5].p.v,n[6].p.v,n[7].p.v),this.feFuncRComposed.setAttribute("tableValues",t),this.feFuncGComposed.setAttribute("tableValues",t),this.feFuncBComposed.setAttribute("tableValues",t)),this.feFuncR&&(e||n[10].p._mdf||n[11].p._mdf||n[12].p._mdf||n[13].p._mdf||n[14].p._mdf)&&(t=this.getTableValue(n[10].p.v,n[11].p.v,n[12].p.v,n[13].p.v,n[14].p.v),this.feFuncR.setAttribute("tableValues",t)),this.feFuncG&&(e||n[17].p._mdf||n[18].p._mdf||n[19].p._mdf||n[20].p._mdf||n[21].p._mdf)&&(t=this.getTableValue(n[17].p.v,n[18].p.v,n[19].p.v,n[20].p.v,n[21].p.v),this.feFuncG.setAttribute("tableValues",t)),this.feFuncB&&(e||n[24].p._mdf||n[25].p._mdf||n[26].p._mdf||n[27].p._mdf||n[28].p._mdf)&&(t=this.getTableValue(n[24].p.v,n[25].p.v,n[26].p.v,n[27].p.v,n[28].p.v),this.feFuncB.setAttribute("tableValues",t)),this.feFuncA&&(e||n[31].p._mdf||n[32].p._mdf||n[33].p._mdf||n[34].p._mdf||n[35].p._mdf)&&(t=this.getTableValue(n[31].p.v,n[32].p.v,n[33].p.v,n[34].p.v,n[35].p.v),this.feFuncA.setAttribute("tableValues",t))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(e){if(e||this.filterManager._mdf){if((e||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),e||this.filterManager.effectElements[0].p._mdf){var t=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*t[0]),Math.round(255*t[1]),Math.round(255*t[2])))}if((e||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),e||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var n=this.filterManager.effectElements[3].p.v,r=(this.filterManager.effectElements[2].p.v-90)*degToRads,i=n*Math.cos(r),a=n*Math.sin(r);this.feOffset.setAttribute("dx",i),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(e,t,n){this.initialized=!1,this.filterManager=t,this.filterElem=e,this.elem=n,n.matteElement=createNS("g"),n.matteElement.appendChild(n.layerElement),n.matteElement.appendChild(n.transformedElement),n.baseElement=n.matteElement}function SVGGaussianBlurEffect(e,t,n,r){e.setAttribute("x","-100%"),e.setAttribute("y","-100%"),e.setAttribute("width","300%"),e.setAttribute("height","300%"),this.filterManager=t;var i=createNS("feGaussianBlur");i.setAttribute("result",r),e.appendChild(i),this.feGaussianBlur=i}return SVGMatte3Effect.prototype.findSymbol=function(e){for(var t=0,n=_svgMatteSymbols.length;t{const i=[t(r),r];return e&&n(e[0],i[0])===e[0]?e:i}),null)[1]}function $(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function N(e,t,n){return R(e)&&e>=t&&e<=n}function z(e,t=2){let n;return n=e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0"),n}function G(e){return I(e)||null===e||""===e?void 0:parseInt(e,10)}function V(e){return I(e)||null===e||""===e?void 0:parseFloat(e)}function H(e){if(!I(e)&&null!==e&&""!==e){const t=1e3*parseFloat("0."+e);return Math.floor(t)}}function U(e,t,n=!1){const r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function W(e){return e%4==0&&(e%100!=0||e%400==0)}function Y(e){return W(e)?366:365}function K(e,t){const n=function(e,t){return e-t*Math.floor(e/t)}(t-1,12)+1;return 2===n?W(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Z(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(t.getUTCFullYear()-1900)),+t}function X(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===t||3===r?53:52}function Q(e){return e>99?e:e>60?1900+e:2e3+e}function J(e,t,n,r=null){const i=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(a.timeZone=r);const o={timeZoneName:t,...a},s=new Intl.DateTimeFormat(n,o).formatToParts(i).find((e=>"timezonename"===e.type.toLowerCase()));return s?s.value:null}function ee(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function te(e){const t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new u(`Invalid unit value ${e}`);return t}function ne(e,t){const n={};for(const r in e)if($(e,r)){const i=e[r];if(null==i)continue;n[t(r)]=te(i)}return n}function re(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${z(n,2)}:${z(r,2)}`;case"narrow":return`${i}${n}${r>0?`:${r}`:""}`;case"techie":return`${i}${z(n,2)}${z(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function ie(e){return function(e,t){return t.reduce(((t,n)=>(t[n]=e[n],t)),{})}(e,["hour","minute","second","millisecond"])}const ae=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,oe=["January","February","March","April","May","June","July","August","September","October","November","December"],se=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],ue=["J","F","M","A","M","J","J","A","S","O","N","D"];function le(e){switch(e){case"narrow":return[...ue];case"short":return[...se];case"long":return[...oe];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const fe=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],ce=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],de=["M","T","W","T","F","S","S"];function he(e){switch(e){case"narrow":return[...de];case"short":return[...ce];case"long":return[...fe];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const pe=["AM","PM"],me=["Before Christ","Anno Domini"],ge=["BC","AD"],_e=["B","A"];function Fe(e){switch(e){case"narrow":return[..._e];case"short":return[...ge];case"long":return[...me];default:return null}}function be(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const ye={D:h,DD:p,DDD:g,DDDD:_,t:F,tt:b,ttt:y,tttt:v,T:w,TT:k,TTT:E,TTTT:x,f:D,ff:S,fff:O,ffff:j,F:C,FF:T,FFF:A,FFFF:B};class ve{static create(e,t={}){return new ve(e,t)}static parseFormat(e){let t=null,n="",r=!1;const i=[];for(let a=0;a0&&i.push({literal:r,val:n}),t=null,n="",r=!r):r||o===t?n+=o:(n.length>0&&i.push({literal:!1,val:n}),n=o,t=o)}return n.length>0&&i.push({literal:r,val:n}),i}static macroTokenToFormatOpts(e){return ye[e]}constructor(e,t){this.opts=t,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,t){null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem());return this.systemLoc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTime(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).format()}formatDateTimeParts(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).formatToParts()}resolvedOptions(e,t={}){return this.loc.dtFormatter(e,{...this.opts,...t}).resolvedOptions()}num(e,t=0){if(this.opts.forceSimple)return z(e,t);const n={...this.opts};return t>0&&(n.padTo=t),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,t){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,i=(t,n)=>this.loc.extract(e,t,n),a=t=>e.isOffsetFixed&&0===e.offset&&t.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,t.format):"",o=()=>n?function(e){return pe[e.hour<12?0:1]}(e):i({hour:"numeric",hourCycle:"h12"},"dayperiod"),s=(t,r)=>n?function(e,t){return le(t)[e.month-1]}(e,t):i(r?{month:t}:{month:t,day:"numeric"},"month"),u=(t,r)=>n?function(e,t){return he(t)[e.weekday-1]}(e,t):i(r?{weekday:t}:{weekday:t,month:"long",day:"numeric"},"weekday"),l=t=>{const n=ve.macroTokenToFormatOpts(t);return n?this.formatWithSystemDefault(e,n):t},f=t=>n?function(e,t){return Fe(t)[e.year<0?0:1]}(e,t):i({era:t},"era");return be(ve.parseFormat(t),(t=>{switch(t){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12==0?12:e.hour%12);case"hh":return this.num(e.hour%12==0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return a({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return a({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return a({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return o();case"d":return r?i({day:"numeric"},"day"):this.num(e.day);case"dd":return r?i({day:"2-digit"},"day"):this.num(e.day,2);case"c":case"E":return this.num(e.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return r?i({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return r?i({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return s("short",!0);case"LLLL":return s("long",!0);case"LLLLL":return s("narrow",!0);case"M":return r?i({month:"numeric"},"month"):this.num(e.month);case"MM":return r?i({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return s("short",!1);case"MMMM":return s("long",!1);case"MMMMM":return s("narrow",!1);case"y":return r?i({year:"numeric"},"year"):this.num(e.year);case"yy":return r?i({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return r?i({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return r?i({year:"numeric"},"year"):this.num(e.year,6);case"G":return f("short");case"GG":return f("long");case"GGGGG":return f("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return l(t)}}))}formatDurationFromString(e,t){const n=e=>{switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=ve.parseFormat(t),i=r.reduce(((e,{literal:t,val:n})=>t?e:e.concat(n)),[]);return be(r,(e=>t=>{const r=n(t);return r?this.num(e.get(r),t.length):t})(e.shiftTo(...i.map(n).filter((e=>e)))))}}class we{constructor(e,t){this.reason=e,this.explanation=t}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class ke{get type(){throw new l}get name(){throw new l}get ianaName(){return this.name}get isUniversal(){throw new l}offsetName(e,t){throw new l}formatOffset(e,t){throw new l}offset(e){throw new l}equals(e){throw new l}get isValid(){throw new l}}let Ee=null;class xe extends ke{static get instance(){return null===Ee&&(Ee=new xe),Ee}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return J(e,t,n)}formatOffset(e,t){return re(this.offset(e),t)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return"system"===e.type}get isValid(){return!0}}let De={};const Ce={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let Se={};class Te extends ke{static create(e){return Se[e]||(Se[e]=new Te(e)),Se[e]}static resetCache(){Se={},De={}}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}}constructor(e){super(),this.zoneName=e,this.valid=Te.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:t,locale:n}){return J(e,t,n,this.name)}formatOffset(e,t){return re(this.offset(e),t)}offset(e){const t=new Date(e);if(isNaN(t))return NaN;const n=(r=this.name,De[r]||(De[r]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),De[r]);var r;let[i,a,o,s,u,l,f]=n.formatToParts?function(e,t){const n=e.formatToParts(t),r=[];for(let e=0;e=0?d:1e3+d,(Z({year:i,month:a,day:o,hour:24===u?0:u,minute:l,second:f,millisecond:0})-c)/6e4}equals(e){return"iana"===e.type&&e.name===this.name}get isValid(){return this.valid}}let Pe=null;class Oe extends ke{static get utcInstance(){return null===Pe&&(Pe=new Oe(0)),Pe}static instance(e){return 0===e?Oe.utcInstance:new Oe(e)}static parseSpecifier(e){if(e){const t=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(t)return new Oe(ee(t[1],t[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${re(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${re(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,t){return re(this.fixed,t)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return"fixed"===e.type&&e.fixed===this.fixed}get isValid(){return!0}}class Ae extends ke{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function je(e,t){if(I(e)||null===e)return t;if(e instanceof ke)return e;if("string"==typeof e){const n=e.toLowerCase();return"default"===n?t:"local"===n||"system"===n?xe.instance:"utc"===n||"gmt"===n?Oe.utcInstance:Oe.parseSpecifier(n)||Te.create(e)}return M(e)?Oe.instance(e):"object"==typeof e&&e.offset&&"number"==typeof e.offset?e:new Ae(e)}let Be,Ie=()=>Date.now(),Me="system",Re=null,qe=null,Le=null;class $e{static get now(){return Ie}static set now(e){Ie=e}static set defaultZone(e){Me=e}static get defaultZone(){return je(Me,xe.instance)}static get defaultLocale(){return Re}static set defaultLocale(e){Re=e}static get defaultNumberingSystem(){return qe}static set defaultNumberingSystem(e){qe=e}static get defaultOutputCalendar(){return Le}static set defaultOutputCalendar(e){Le=e}static get throwOnInvalid(){return Be}static set throwOnInvalid(e){Be=e}static resetCaches(){Xe.resetCache(),Te.resetCache()}}let Ne={};let ze={};function Ge(e,t={}){const n=JSON.stringify([e,t]);let r=ze[n];return r||(r=new Intl.DateTimeFormat(e,t),ze[n]=r),r}let Ve={};let He={};let Ue=null;function We(e,t,n,r,i){const a=e.listingMode(n);return"error"===a?null:"en"===a?r(t):i(t)}class Ye{constructor(e,t,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:i,...a}=n;if(!t||Object.keys(a).length>0){const t={useGrouping:!1,...n};n.padTo>0&&(t.minimumIntegerDigits=n.padTo),this.inf=function(e,t={}){const n=JSON.stringify([e,t]);let r=Ve[n];return r||(r=new Intl.NumberFormat(e,t),Ve[n]=r),r}(e,t)}}format(e){if(this.inf){const t=this.floor?Math.floor(e):e;return this.inf.format(t)}return z(this.floor?Math.floor(e):U(e,3),this.padTo)}}class Ke{constructor(e,t,n){let r;if(this.opts=n,e.zone.isUniversal){const t=e.offset/60*-1,i=t>=0?`Etc/GMT+${t}`:`Etc/GMT${t}`;0!==e.offset&&Te.create(i).valid?(r=i,this.dt=e):(r="UTC",n.timeZoneName?this.dt=e:this.dt=0===e.offset?e:Qn.fromMillis(e.ts+60*e.offset*1e3))}else"system"===e.zone.type?this.dt=e:(this.dt=e,r=e.zone.name);const i={...this.opts};r&&(i.timeZone=r),this.dtf=Ge(t,i)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class Ze{constructor(e,t,n){this.opts={style:"long",...n},!t&&q()&&(this.rtf=function(e,t={}){const{base:n,...r}=t,i=JSON.stringify([e,r]);let a=He[i];return a||(a=new Intl.RelativeTimeFormat(e,t),He[i]=a),a}(e,n))}format(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,n="always",r=!1){const i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===n&&a){const n="days"===e;switch(t){case 1:return n?"tomorrow":`next ${i[e][0]}`;case-1:return n?"yesterday":`last ${i[e][0]}`;case 0:return n?"today":`this ${i[e][0]}`}}const o=Object.is(t,-0)||t<0,s=Math.abs(t),u=1===s,l=i[e],f=r?u?l[1]:l[2]||l[1]:u?i[e][0]:e;return o?`${s} ${f} ago`:`in ${s} ${f}`}(t,e,this.opts.numeric,"long"!==this.opts.style)}formatToParts(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]}}class Xe{static fromOpts(e){return Xe.create(e.locale,e.numberingSystem,e.outputCalendar,e.defaultToEN)}static create(e,t,n,r=!1){const i=e||$e.defaultLocale,a=i||(r?"en-US":Ue||(Ue=(new Intl.DateTimeFormat).resolvedOptions().locale,Ue)),o=t||$e.defaultNumberingSystem,s=n||$e.defaultOutputCalendar;return new Xe(a,o,s,i)}static resetCache(){Ue=null,ze={},Ve={},He={}}static fromObject({locale:e,numberingSystem:t,outputCalendar:n}={}){return Xe.create(e,t,n)}constructor(e,t,n,r){const[i,a,o]=function(e){const t=e.indexOf("-u-");if(-1===t)return[e];{let n;const r=e.substring(0,t);try{n=Ge(e).resolvedOptions()}catch(e){n=Ge(r).resolvedOptions()}const{numberingSystem:i,calendar:a}=n;return[r,i,a]}}(e);this.locale=i,this.numberingSystem=t||a||null,this.outputCalendar=n||o||null,this.intl=function(e,t,n){return n||t?(e+="-u",n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`),e):e}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){var e;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(e=this).numberingSystem||"latn"===e.numberingSystem)&&("latn"===e.numberingSystem||!e.locale||e.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const e=this.isEnglish(),t=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return e&&t?"en":"intl"}clone(e){return e&&0!==Object.getOwnPropertyNames(e).length?Xe.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,e.defaultToEN||!1):this}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,t=!1,n=!0){return We(this,e,n,le,(()=>{const n=t?{month:e,day:"numeric"}:{month:e},r=t?"format":"standalone";return this.monthsCache[r][e]||(this.monthsCache[r][e]=function(e){const t=[];for(let n=1;n<=12;n++){const r=Qn.utc(2016,n,1);t.push(e(r))}return t}((e=>this.extract(e,n,"month")))),this.monthsCache[r][e]}))}weekdays(e,t=!1,n=!0){return We(this,e,n,he,(()=>{const n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},r=t?"format":"standalone";return this.weekdaysCache[r][e]||(this.weekdaysCache[r][e]=function(e){const t=[];for(let n=1;n<=7;n++){const r=Qn.utc(2016,11,13+n);t.push(e(r))}return t}((e=>this.extract(e,n,"weekday")))),this.weekdaysCache[r][e]}))}meridiems(e=!0){return We(this,void 0,e,(()=>pe),(()=>{if(!this.meridiemCache){const e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Qn.utc(2016,11,13,9),Qn.utc(2016,11,13,19)].map((t=>this.extract(t,e,"dayperiod")))}return this.meridiemCache}))}eras(e,t=!0){return We(this,e,t,Fe,(()=>{const t={era:e};return this.eraCache[e]||(this.eraCache[e]=[Qn.utc(-40,1,1),Qn.utc(2017,1,1)].map((e=>this.extract(e,t,"era")))),this.eraCache[e]}))}extract(e,t,n){const r=this.dtFormatter(e,t).formatToParts().find((e=>e.type.toLowerCase()===n));return r?r.value:null}numberFormatter(e={}){return new Ye(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,t={}){return new Ke(e,this.intl,t)}relFormatter(e={}){return new Ze(this.intl,this.isEnglish(),e)}listFormatter(e={}){return function(e,t={}){const n=JSON.stringify([e,t]);let r=Ne[n];return r||(r=new Intl.ListFormat(e,t),Ne[n]=r),r}(this.intl,e)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}}function Qe(...e){const t=e.reduce(((e,t)=>e+t.source),"");return RegExp(`^${t}$`)}function Je(...e){return t=>e.reduce((([e,n,r],i)=>{const[a,o,s]=i(t,r);return[{...e,...a},o||n,s]}),[{},null,1]).slice(0,2)}function et(e,...t){if(null==e)return[null,null];for(const[n,r]of t){const t=n.exec(e);if(t)return r(t)}return[null,null]}function tt(...e){return(t,n)=>{const r={};let i;for(i=0;ivoid 0!==e&&(t||e&&f)?-e:e;return[{years:d(V(n)),months:d(V(r)),weeks:d(V(i)),days:d(V(a)),hours:d(V(o)),minutes:d(V(s)),seconds:d(V(u),"-0"===u),milliseconds:d(H(l),c)}]}const _t={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ft(e,t,n,r,i,a,o){const s={year:2===t.length?Q(G(t)):G(t),month:se.indexOf(n)+1,day:G(r),hour:G(i),minute:G(a)};return o&&(s.second=G(o)),e&&(s.weekday=e.length>3?fe.indexOf(e)+1:ce.indexOf(e)+1),s}const bt=/^(?:(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\d)(\d\d)))$/;function yt(e){const[,t,n,r,i,a,o,s,u,l,f,c]=e,d=Ft(t,i,r,n,a,o,s);let h;return h=u?_t[u]:l?0:ee(f,c),[d,new Oe(h)]}const vt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,wt=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,kt=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Et(e){const[,t,n,r,i,a,o,s]=e;return[Ft(t,i,r,n,a,o,s),Oe.utcInstance]}function xt(e){const[,t,n,r,i,a,o,s]=e;return[Ft(t,s,n,r,i,a,o),Oe.utcInstance]}const Dt=Qe(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,at),Ct=Qe(/(\d{4})-?W(\d\d)(?:-?(\d))?/,at),St=Qe(/(\d{4})-?(\d{3})/,at),Tt=Qe(it),Pt=Je((function(e,t){return[{year:ft(e,t),month:ft(e,t+1,1),day:ft(e,t+2,1)},null,t+3]}),ct,dt,ht),Ot=Je(ot,ct,dt,ht),At=Je(st,ct,dt,ht),jt=Je(ct,dt,ht);const Bt=Je(ct);const It=Qe(/(\d{4})-(\d\d)-(\d\d)/,lt),Mt=Qe(ut),Rt=Je(ct,dt,ht);const qt={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},Lt={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...qt},$t=365.2425,Nt=30.436875,zt={years:{quarters:4,months:12,weeks:52.1775,days:$t,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:Nt,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...qt},Gt=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],Vt=Gt.slice(0).reverse();function Ht(e,t,n=!1){const r={values:n?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new Wt(r)}function Ut(e,t,n,r,i){const a=e[i][n],o=t[n]/a,s=!(Math.sign(o)===Math.sign(r[i]))&&0!==r[i]&&Math.abs(o)<=1?function(e){return e<0?Math.floor(e):Math.ceil(e)}(o):Math.trunc(o);r[i]+=s,t[n]-=s*a}class Wt{constructor(e){const t="longterm"===e.conversionAccuracy||!1;let n=t?zt:Lt;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||Xe.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,t){return Wt.fromObject({milliseconds:e},t)}static fromObject(e,t={}){if(null==e||"object"!=typeof e)throw new u("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new Wt({values:ne(e,Wt.normalizeUnit),loc:Xe.fromObject(t),conversionAccuracy:t.conversionAccuracy,matrix:t.matrix})}static fromDurationLike(e){if(M(e))return Wt.fromMillis(e);if(Wt.isDuration(e))return e;if("object"==typeof e)return Wt.fromObject(e);throw new u(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,t){const[n]=function(e){return et(e,[mt,gt])}(e);return n?Wt.fromObject(n,t):Wt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,t){const[n]=function(e){return et(e,[pt,Bt])}(e);return n?Wt.fromObject(n,t):Wt.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the Duration is invalid");const n=e instanceof we?e:new we(e,t);if($e.throwOnInvalid)throw new a(n);return new Wt({invalid:n})}static normalizeUnit(e){const t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new s(e);return t}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,t={}){const n={...t,floor:!1!==t.round&&!1!==t.floor};return this.isValid?ve.create(this.loc,n).formatDurationFromString(this,e):"Invalid Duration"}toHuman(e={}){const t=Gt.map((t=>{const n=this.values[t];return I(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:t.slice(0,-1)}).format(n)})).filter((e=>e));return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(t)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return 0!==this.years&&(e+=this.years+"Y"),0===this.months&&0===this.quarters||(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(e+=U(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;const t=this.toMillis();if(t<0||t>=864e5)return null;e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e};const n=this.shiftTo("hours","minutes","seconds","milliseconds");let r="basic"===e.format?"hhmm":"hh:mm";e.suppressSeconds&&0===n.seconds&&0===n.milliseconds||(r+="basic"===e.format?"ss":":ss",e.suppressMilliseconds&&0===n.milliseconds||(r+=".SSS"));let i=n.toFormat(r);return e.includePrefix&&(i="T"+i),i}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;const t=Wt.fromDurationLike(e),n={};for(const e of Gt)($(t.values,e)||$(this.values,e))&&(n[e]=t.get(e)+this.get(e));return Ht(this,{values:n},!0)}minus(e){if(!this.isValid)return this;const t=Wt.fromDurationLike(e);return this.plus(t.negate())}mapUnits(e){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=te(e(this.values[n],n));return Ht(this,{values:t},!0)}get(e){return this[Wt.normalizeUnit(e)]}set(e){if(!this.isValid)return this;return Ht(this,{values:{...this.values,...ne(e,Wt.normalizeUnit)}})}reconfigure({locale:e,numberingSystem:t,conversionAccuracy:n,matrix:r}={}){return Ht(this,{loc:this.loc.clone({locale:e,numberingSystem:t}),matrix:r,conversionAccuracy:n})}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;const e=this.toObject();return function(e,t){Vt.reduce(((n,r)=>I(t[r])?n:(n&&Ut(e,t,n,t,r),r)),null)}(this.matrix,e),Ht(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(0===e.length)return this;e=e.map((e=>Wt.normalizeUnit(e)));const t={},n={},r=this.toObject();let i;for(const a of Gt)if(e.indexOf(a)>=0){i=a;let e=0;for(const t in n)e+=this.matrix[t][a]*n[t],n[t]=0;M(r[a])&&(e+=r[a]);const o=Math.trunc(e);t[a]=o,n[a]=(1e3*e-1e3*o)/1e3;for(const e in r)Gt.indexOf(e)>Gt.indexOf(a)&&Ut(this.matrix,r,e,t,a)}else M(r[a])&&(n[a]=r[a]);for(const e in n)0!==n[e]&&(t[i]+=e===i?n[e]:n[e]/this.matrix[i][e]);return Ht(this,{values:t},!0).normalize()}negate(){if(!this.isValid)return this;const e={};for(const t of Object.keys(this.values))e[t]=0===this.values[t]?0:-this.values[t];return Ht(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid)return!1;if(!this.loc.equals(e.loc))return!1;for(const r of Gt)if(t=this.values[r],n=e.values[r],!(void 0===t||0===t?void 0===n||0===n:t===n))return!1;var t,n;return!0}}const Yt="Invalid Interval";class Kt{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the Interval is invalid");const n=e instanceof we?e:new we(e,t);if($e.throwOnInvalid)throw new i(n);return new Kt({invalid:n})}static fromDateTimes(e,t){const n=Jn(e),r=Jn(t),i=function(e,t){return e&&e.isValid?t&&t.isValid?te}isBefore(e){return!!this.isValid&&this.e<=e}contains(e){return!!this.isValid&&(this.s<=e&&this.e>e)}set({start:e,end:t}={}){return this.isValid?Kt.fromDateTimes(e||this.s,t||this.e):this}splitAt(...e){if(!this.isValid)return[];const t=e.map(Jn).filter((e=>this.contains(e))).sort(),n=[];let{s:r}=this,i=0;for(;r+this.e?this.e:e;n.push(Kt.fromDateTimes(r,a)),r=a,i+=1}return n}splitBy(e){const t=Wt.fromDurationLike(e);if(!this.isValid||!t.isValid||0===t.as("milliseconds"))return[];let n,{s:r}=this,i=1;const a=[];for(;re*i)));n=+e>+this.e?this.e:e,a.push(Kt.fromDateTimes(r,n)),r=n,i+=1}return a}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s=e.e)}equals(e){return!(!this.isValid||!e.isValid)&&(this.s.equals(e.s)&&this.e.equals(e.e))}intersection(e){if(!this.isValid)return this;const t=this.s>e.s?this.s:e.s,n=this.e=n?null:Kt.fromDateTimes(t,n)}union(e){if(!this.isValid)return this;const t=this.se.e?this.e:e.e;return Kt.fromDateTimes(t,n)}static merge(e){const[t,n]=e.sort(((e,t)=>e.s-t.s)).reduce((([e,t],n)=>t?t.overlaps(n)||t.abutsStart(n)?[e,t.union(n)]:[e.concat([t]),n]:[e,n]),[[],null]);return n&&t.push(n),t}static xor(e){let t=null,n=0;const r=[],i=e.map((e=>[{time:e.s,type:"s"},{time:e.e,type:"e"}])),a=Array.prototype.concat(...i).sort(((e,t)=>e.time-t.time));for(const e of a)n+="s"===e.type?1:-1,1===n?t=e.time:(t&&+t!=+e.time&&r.push(Kt.fromDateTimes(t,e.time)),t=null);return Kt.merge(r)}difference(...e){return Kt.xor([this].concat(e)).map((e=>this.intersection(e))).filter((e=>e&&!e.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Yt}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:Yt}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Yt}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:Yt}toFormat(e,{separator:t=" – "}={}){return this.isValid?`${this.s.toFormat(e)}${t}${this.e.toFormat(e)}`:Yt}toDuration(e,t){return this.isValid?this.e.diff(this.s,e,t):Wt.invalid(this.invalidReason)}mapEndpoints(e){return Kt.fromDateTimes(e(this.s),e(this.e))}}class Zt{static hasDST(e=$e.defaultZone){const t=Qn.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset}static isValidIANAZone(e){return Te.isValidZone(e)}static normalizeZone(e){return je(e,$e.defaultZone)}static months(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Xe.create(t,n,i)).months(e)}static monthsFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null,outputCalendar:i="gregory"}={}){return(r||Xe.create(t,n,i)).months(e,!0)}static weekdays(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Xe.create(t,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:t=null,numberingSystem:n=null,locObj:r=null}={}){return(r||Xe.create(t,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return Xe.create(e).meridiems()}static eras(e="short",{locale:t=null}={}){return Xe.create(t,null,"gregory").eras(e)}static features(){return{relative:q()}}}function Xt(e,t){const n=e=>e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(Wt.fromMillis(r).as("days"))}function Qt(e,t,n,r){let[i,a,o,s]=function(e,t,n){const r=[["years",(e,t)=>t.year-e.year],["quarters",(e,t)=>t.quarter-e.quarter+4*(t.year-e.year)],["months",(e,t)=>t.month-e.month+12*(t.year-e.year)],["weeks",(e,t)=>{const n=Xt(e,t);return(n-n%7)/7}],["days",Xt]],i={};let a,o;for(const[s,u]of r)if(n.indexOf(s)>=0){a=s;let n=u(e,t);o=e.plus({[s]:n}),o>t?(e=e.plus({[s]:n-1}),n-=1):e=o,i[s]=n}return[e,i,o,a]}(e,t,n);const u=t-i,l=n.filter((e=>["hours","minutes","seconds","milliseconds"].indexOf(e)>=0));0===l.length&&(o0?Wt.fromMillis(u,r).shiftTo(...l).plus(f):f}const Jt={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},en={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},tn=Jt.hanidec.replace(/[\[|\]]/g,"").split("");function nn({numberingSystem:e},t=""){return new RegExp(`${Jt[e||"latn"]}${t}`)}function rn(e,t=(e=>e)){return{regex:e,deser:([e])=>t(function(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n=n&&r<=i&&(t+=r-n)}}return parseInt(t,10)}return t}(e))}}const an=`[ ${String.fromCharCode(160)}]`,on=new RegExp(an,"g");function sn(e){return e.replace(/\./g,"\\.?").replace(on,an)}function un(e){return e.replace(/\./g,"").replace(on," ").toLowerCase()}function ln(e,t){return null===e?null:{regex:RegExp(e.map(sn).join("|")),deser:([n])=>e.findIndex((e=>un(n)===un(e)))+t}}function fn(e,t){return{regex:e,deser:([,e,t])=>ee(e,t),groups:t}}function cn(e){return{regex:e,deser:([e])=>e}}const dn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let hn=null;function pn(e,t){return Array.prototype.concat(...e.map((e=>function(e,t){if(e.literal)return e;const n=gn(ve.macroTokenToFormatOpts(e.val),t);return null==n||n.includes(void 0)?e:n}(e,t))))}function mn(e,t,n){const r=pn(ve.parseFormat(n),e),i=r.map((t=>function(e,t){const n=nn(t),r=nn(t,"{2}"),i=nn(t,"{3}"),a=nn(t,"{4}"),o=nn(t,"{6}"),s=nn(t,"{1,2}"),u=nn(t,"{1,3}"),l=nn(t,"{1,6}"),f=nn(t,"{1,9}"),c=nn(t,"{2,4}"),d=nn(t,"{4,6}"),h=e=>{return{regex:RegExp((t=e.val,t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([e])=>e,literal:!0};var t},p=(p=>{if(e.literal)return h(p);switch(p.val){case"G":return ln(t.eras("short",!1),0);case"GG":return ln(t.eras("long",!1),0);case"y":return rn(l);case"yy":case"kk":return rn(c,Q);case"yyyy":case"kkkk":return rn(a);case"yyyyy":return rn(d);case"yyyyyy":return rn(o);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return rn(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return rn(r);case"MMM":return ln(t.months("short",!0,!1),1);case"MMMM":return ln(t.months("long",!0,!1),1);case"LLL":return ln(t.months("short",!1,!1),1);case"LLLL":return ln(t.months("long",!1,!1),1);case"o":case"S":return rn(u);case"ooo":case"SSS":return rn(i);case"u":return cn(f);case"uu":return cn(s);case"uuu":case"E":case"c":return rn(n);case"a":return ln(t.meridiems(),0);case"EEE":return ln(t.weekdays("short",!1,!1),1);case"EEEE":return ln(t.weekdays("long",!1,!1),1);case"ccc":return ln(t.weekdays("short",!0,!1),1);case"cccc":return ln(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return fn(new RegExp(`([+-]${s.source})(?::(${r.source}))?`),2);case"ZZZ":return fn(new RegExp(`([+-]${s.source})(${r.source})?`),2);case"z":return cn(/[a-z_+-/]{1,256}?/i);default:return h(p)}})(e)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return p.token=e,p}(t,e))),a=i.find((e=>e.invalidReason));if(a)return{input:t,tokens:r,invalidReason:a.invalidReason};{const[e,n]=function(e){return[`^${e.map((e=>e.regex)).reduce(((e,t)=>`${e}(${t.source})`),"")}$`,e]}(i),a=RegExp(e,"i"),[s,u]=function(e,t,n){const r=e.match(t);if(r){const e={};let t=1;for(const i in n)if($(n,i)){const a=n[i],o=a.groups?a.groups+1:1;!a.literal&&a.token&&(e[a.token.val[0]]=a.deser(r.slice(t,t+o))),t+=o}return[r,e]}return[r,{}]}(t,a,n),[l,f,c]=u?function(e){let t,n=null;return I(e.z)||(n=Te.create(e.z)),I(e.Z)||(n||(n=new Oe(e.Z)),t=e.Z),I(e.q)||(e.M=3*(e.q-1)+1),I(e.h)||(e.h<12&&1===e.a?e.h+=12:12===e.h&&0===e.a&&(e.h=0)),0===e.G&&e.y&&(e.y=-e.y),I(e.u)||(e.S=H(e.u)),[Object.keys(e).reduce(((t,n)=>{const r=(e=>{switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return r&&(t[r]=e[n]),t}),{}),n,t]}(u):[null,null,void 0];if($(u,"a")&&$(u,"H"))throw new o("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:a,rawMatches:s,matches:u,result:l,zone:f,specificOffset:c}}}function gn(e,t){if(!e)return null;return ve.create(t,e).formatDateTimeParts((hn||(hn=Qn.fromMillis(1555555555555)),hn)).map((t=>function(e,t,n){const{type:r,value:i}=e;if("literal"===r)return{literal:!0,val:i};const a=n[r];let o=dn[r];return"object"==typeof o&&(o=o[a]),o?{literal:!1,val:o}:void 0}(t,0,e)))}const _n=[0,31,59,90,120,151,181,212,243,273,304,334],Fn=[0,31,60,91,121,152,182,213,244,274,305,335];function bn(e,t){return new we("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function yn(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const i=r.getUTCDay();return 0===i?7:i}function vn(e,t,n){return n+(W(e)?Fn:_n)[t-1]}function wn(e,t){const n=W(e)?Fn:_n,r=n.findIndex((e=>eX(t)?(o=t+1,s=1):o=t,{weekYear:o,weekNumber:s,weekday:a,...ie(e)}}function En(e){const{weekYear:t,weekNumber:n,weekday:r}=e,i=yn(t,1,4),a=Y(t);let o,s=7*n+r-i-3;s<1?(o=t-1,s+=Y(o)):s>a?(o=t+1,s-=Y(t)):o=t;const{month:u,day:l}=wn(o,s);return{year:o,month:u,day:l,...ie(e)}}function xn(e){const{year:t,month:n,day:r}=e;return{year:t,ordinal:vn(t,n,r),...ie(e)}}function Dn(e){const{year:t,ordinal:n}=e,{month:r,day:i}=wn(t,n);return{year:t,month:r,day:i,...ie(e)}}function Cn(e){const t=R(e.year),n=N(e.month,1,12),r=N(e.day,1,K(e.year,e.month));return t?n?!r&&bn("day",e.day):bn("month",e.month):bn("year",e.year)}function Sn(e){const{hour:t,minute:n,second:r,millisecond:i}=e,a=N(t,0,23)||24===t&&0===n&&0===r&&0===i,o=N(n,0,59),s=N(r,0,59),u=N(i,0,999);return a?o?s?!u&&bn("millisecond",i):bn("second",r):bn("minute",n):bn("hour",t)}const Tn="Invalid DateTime",Pn=864e13;function On(e){return new we("unsupported zone",`the zone "${e.name}" is not supported`)}function An(e){return null===e.weekData&&(e.weekData=kn(e.c)),e.weekData}function jn(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Qn({...n,...t,old:n})}function Bn(e,t,n){let r=e-60*t*1e3;const i=n.offset(r);if(t===i)return[r,t];r-=60*(i-t)*1e3;const a=n.offset(r);return i===a?[r,i]:[e-60*Math.min(i,a)*1e3,Math.max(i,a)]}function In(e,t){const n=new Date(e+=60*t*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function Mn(e,t,n){return Bn(Z(e),t,n)}function Rn(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),a={...e.c,year:r,month:i,day:Math.min(e.c.day,K(r,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)},o=Wt.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=Z(a);let[u,l]=Bn(s,n,e.zone);return 0!==o&&(u+=o,l=e.zone.offset(u)),{ts:u,o:l}}function qn(e,t,n,r,i,a){const{setZone:o,zone:s}=n;if(e&&0!==Object.keys(e).length){const r=t||s,i=Qn.fromObject(e,{...n,zone:r,specificOffset:a});return o?i:i.setZone(s)}return Qn.invalid(new we("unparsable",`the input "${i}" can't be parsed as ${r}`))}function Ln(e,t,n=!0){return e.isValid?ve.create(Xe.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function $n(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=z(e.c.year,n?6:4),t?(r+="-",r+=z(e.c.month),r+="-",r+=z(e.c.day)):(r+=z(e.c.month),r+=z(e.c.day)),r}function Nn(e,t,n,r,i,a){let o=z(e.c.hour);return t?(o+=":",o+=z(e.c.minute),0===e.c.second&&n||(o+=":")):o+=z(e.c.minute),0===e.c.second&&n||(o+=z(e.c.second),0===e.c.millisecond&&r||(o+=".",o+=z(e.c.millisecond,3))),i&&(e.isOffsetFixed&&0===e.offset&&!a?o+="Z":e.o<0?(o+="-",o+=z(Math.trunc(-e.o/60)),o+=":",o+=z(Math.trunc(-e.o%60))):(o+="+",o+=z(Math.trunc(e.o/60)),o+=":",o+=z(Math.trunc(e.o%60)))),a&&(o+="["+e.zone.ianaName+"]"),o}const zn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Gn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Vn={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Hn=["year","month","day","hour","minute","second","millisecond"],Un=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Wn=["year","ordinal","hour","minute","second","millisecond"];function Yn(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new s(e);return t}function Kn(e,t){const n=je(t.zone,$e.defaultZone),r=Xe.fromObject(t),i=$e.now();let a,o;if(I(e.year))a=i;else{for(const t of Hn)I(e[t])&&(e[t]=zn[t]);const t=Cn(e)||Sn(e);if(t)return Qn.invalid(t);const r=n.offset(i);[a,o]=Mn(e,r,n)}return new Qn({ts:a,zone:n,loc:r,o:o})}function Zn(e,t,n){const r=!!I(n.round)||n.round,i=(e,i)=>{e=U(e,r||n.calendary?0:2,!0);return t.loc.clone(n).relFormatter(n).format(e,i)},a=r=>n.calendary?t.hasSame(e,r)?0:t.startOf(r).diff(e.startOf(r),r).get(r):t.diff(e,r).get(r);if(n.unit)return i(a(n.unit),n.unit);for(const e of n.units){const t=a(e);if(Math.abs(t)>=1)return i(t,e)}return i(e>t?-0:0,n.units[n.units.length-1])}function Xn(e){let t,n={};return e.length>0&&"object"==typeof e[e.length-1]?(n=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[n,t]}class Qn{constructor(e){const t=e.zone||$e.defaultZone;let n=e.invalid||(Number.isNaN(e.ts)?new we("invalid input"):null)||(t.isValid?null:On(t));this.ts=I(e.ts)?$e.now():e.ts;let r=null,i=null;if(!n){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t))[r,i]=[e.old.c,e.old.o];else{const e=t.offset(this.ts);r=In(this.ts,e),n=Number.isNaN(r.year)?new we("invalid input"):null,r=n?null:r,i=n?null:e}}this._zone=t,this.loc=e.loc||Xe.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=i,this.isLuxonDateTime=!0}static now(){return new Qn({})}static local(){const[e,t]=Xn(arguments),[n,r,i,a,o,s,u]=t;return Kn({year:n,month:r,day:i,hour:a,minute:o,second:s,millisecond:u},e)}static utc(){const[e,t]=Xn(arguments),[n,r,i,a,o,s,u]=t;return e.zone=Oe.utcInstance,Kn({year:n,month:r,day:i,hour:a,minute:o,second:s,millisecond:u},e)}static fromJSDate(e,t={}){const n=(r=e,"[object Date]"===Object.prototype.toString.call(r)?e.valueOf():NaN);var r;if(Number.isNaN(n))return Qn.invalid("invalid input");const i=je(t.zone,$e.defaultZone);return i.isValid?new Qn({ts:n,zone:i,loc:Xe.fromObject(t)}):Qn.invalid(On(i))}static fromMillis(e,t={}){if(M(e))return e<-Pn||e>Pn?Qn.invalid("Timestamp out of range"):new Qn({ts:e,zone:je(t.zone,$e.defaultZone),loc:Xe.fromObject(t)});throw new u(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,t={}){if(M(e))return new Qn({ts:1e3*e,zone:je(t.zone,$e.defaultZone),loc:Xe.fromObject(t)});throw new u("fromSeconds requires a numerical input")}static fromObject(e,t={}){e=e||{};const n=je(t.zone,$e.defaultZone);if(!n.isValid)return Qn.invalid(On(n));const r=$e.now(),i=I(t.specificOffset)?n.offset(r):t.specificOffset,a=ne(e,Yn),s=!I(a.ordinal),u=!I(a.year),l=!I(a.month)||!I(a.day),f=u||l,c=a.weekYear||a.weekNumber,d=Xe.fromObject(t);if((f||s)&&c)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&s)throw new o("Can't mix ordinal dates with month/day");const h=c||a.weekday&&!f;let p,m,g=In(r,i);h?(p=Un,m=Gn,g=kn(g)):s?(p=Wn,m=Vn,g=xn(g)):(p=Hn,m=zn);let _=!1;for(const e of p){I(a[e])?a[e]=_?m[e]:g[e]:_=!0}const F=h?function(e){const t=R(e.weekYear),n=N(e.weekNumber,1,X(e.weekYear)),r=N(e.weekday,1,7);return t?n?!r&&bn("weekday",e.weekday):bn("week",e.week):bn("weekYear",e.weekYear)}(a):s?function(e){const t=R(e.year),n=N(e.ordinal,1,Y(e.year));return t?!n&&bn("ordinal",e.ordinal):bn("year",e.year)}(a):Cn(a),b=F||Sn(a);if(b)return Qn.invalid(b);const y=h?En(a):s?Dn(a):a,[v,w]=Mn(y,i,n),k=new Qn({ts:v,zone:n,o:w,loc:d});return a.weekday&&f&&e.weekday!==k.weekday?Qn.invalid("mismatched weekday",`you can't specify both a weekday of ${a.weekday} and a date of ${k.toISO()}`):k}static fromISO(e,t={}){const[n,r]=function(e){return et(e,[Dt,Pt],[Ct,Ot],[St,At],[Tt,jt])}(e);return qn(n,r,t,"ISO 8601",e)}static fromRFC2822(e,t={}){const[n,r]=function(e){return et(function(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(e),[bt,yt])}(e);return qn(n,r,t,"RFC 2822",e)}static fromHTTP(e,t={}){const[n,r]=function(e){return et(e,[vt,Et],[wt,Et],[kt,xt])}(e);return qn(n,r,t,"HTTP",t)}static fromFormat(e,t,n={}){if(I(e)||I(t))throw new u("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:i=null}=n,a=Xe.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),[o,s,l,f]=function(e,t,n){const{result:r,zone:i,specificOffset:a,invalidReason:o}=mn(e,t,n);return[r,i,a,o]}(a,e,t);return f?Qn.invalid(f):qn(o,s,n,`format ${t}`,e,l)}static fromString(e,t,n={}){return Qn.fromFormat(e,t,n)}static fromSQL(e,t={}){const[n,r]=function(e){return et(e,[It,Pt],[Mt,Rt])}(e);return qn(n,r,t,"SQL",e)}static invalid(e,t=null){if(!e)throw new u("need to specify a reason the DateTime is invalid");const n=e instanceof we?e:new we(e,t);if($e.throwOnInvalid)throw new r(n);return new Qn({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,t={}){const n=gn(e,Xe.fromObject(t));return n?n.map((e=>e?e.val:null)).join(""):null}static expandFormat(e,t={}){return pn(ve.parseFormat(e),Xe.fromObject(t)).map((e=>e.val)).join("")}get(e){return this[e]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?An(this).weekYear:NaN}get weekNumber(){return this.isValid?An(this).weekNumber:NaN}get weekday(){return this.isValid?An(this).weekday:NaN}get ordinal(){return this.isValid?xn(this.c).ordinal:NaN}get monthShort(){return this.isValid?Zt.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Zt.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Zt.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Zt.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}get isInLeapYear(){return W(this.year)}get daysInMonth(){return K(this.year,this.month)}get daysInYear(){return this.isValid?Y(this.year):NaN}get weeksInWeekYear(){return this.isValid?X(this.weekYear):NaN}resolvedLocaleOptions(e={}){const{locale:t,numberingSystem:n,calendar:r}=ve.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t,numberingSystem:n,outputCalendar:r}}toUTC(e=0,t={}){return this.setZone(Oe.instance(e),t)}toLocal(){return this.setZone($e.defaultZone)}setZone(e,{keepLocalTime:t=!1,keepCalendarTime:n=!1}={}){if((e=je(e,$e.defaultZone)).equals(this.zone))return this;if(e.isValid){let r=this.ts;if(t||n){const t=e.offset(this.ts),n=this.toObject();[r]=Mn(n,t,e)}return jn(this,{ts:r,zone:e})}return Qn.invalid(On(e))}reconfigure({locale:e,numberingSystem:t,outputCalendar:n}={}){return jn(this,{loc:this.loc.clone({locale:e,numberingSystem:t,outputCalendar:n})})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;const t=ne(e,Yn),n=!I(t.weekYear)||!I(t.weekNumber)||!I(t.weekday),r=!I(t.ordinal),i=!I(t.year),a=!I(t.month)||!I(t.day),s=i||a,u=t.weekYear||t.weekNumber;if((s||r)&&u)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&r)throw new o("Can't mix ordinal dates with month/day");let l;n?l=En({...kn(this.c),...t}):I(t.ordinal)?(l={...this.toObject(),...t},I(t.day)&&(l.day=Math.min(K(l.year,l.month),l.day))):l=Dn({...xn(this.c),...t});const[f,c]=Mn(l,this.o,this.zone);return jn(this,{ts:f,o:c})}plus(e){if(!this.isValid)return this;return jn(this,Rn(this,Wt.fromDurationLike(e)))}minus(e){if(!this.isValid)return this;return jn(this,Rn(this,Wt.fromDurationLike(e).negate()))}startOf(e){if(!this.isValid)return this;const t={},n=Wt.normalizeUnit(e);switch(n){case"years":t.month=1;case"quarters":case"months":t.day=1;case"weeks":case"days":t.hour=0;case"hours":t.minute=0;case"minutes":t.second=0;case"seconds":t.millisecond=0}if("weeks"===n&&(t.weekday=1),"quarters"===n){const e=Math.ceil(this.month/3);t.month=3*(e-1)+1}return this.set(t)}endOf(e){return this.isValid?this.plus({[e]:1}).startOf(e).minus(1):this}toFormat(e,t={}){return this.isValid?ve.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):Tn}toLocaleString(e=h,t={}){return this.isValid?ve.create(this.loc.clone(t),e).formatDateTime(this):Tn}toLocaleParts(e={}){return this.isValid?ve.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:t=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:i=!1}={}){if(!this.isValid)return null;const a="extended"===e;let o=$n(this,a);return o+="T",o+=Nn(this,a,t,n,r,i),o}toISODate({format:e="extended"}={}){return this.isValid?$n(this,"extended"===e):null}toISOWeekDate(){return Ln(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:t=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:i=!1,format:a="extended"}={}){if(!this.isValid)return null;return(r?"T":"")+Nn(this,"extended"===a,t,e,n,i)}toRFC2822(){return Ln(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Ln(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?$n(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:t=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(t||e)&&(n&&(r+=" "),t?r+="z":e&&(r+="ZZ")),Ln(this,r,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():Tn}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};const t={...this.c};return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,t="milliseconds",n={}){if(!this.isValid||!e.isValid)return Wt.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},i=(s=t,Array.isArray(s)?s:[s]).map(Wt.normalizeUnit),a=e.valueOf()>this.valueOf(),o=Qt(a?this:e,a?e:this,i,r);var s;return a?o.negate():o}diffNow(e="milliseconds",t={}){return this.diff(Qn.now(),e,t)}until(e){return this.isValid?Kt.fromDateTimes(this,e):this}hasSame(e,t){if(!this.isValid)return!1;const n=e.valueOf(),r=this.setZone(e.zone,{keepLocalTime:!0});return r.startOf(t)<=n&&n<=r.endOf(t)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;const t=e.base||Qn.fromObject({},{zone:this.zone}),n=e.padding?thise.valueOf()),Math.min)}static max(...e){if(!e.every(Qn.isDateTime))throw new u("max requires all arguments be DateTimes");return L(e,(e=>e.valueOf()),Math.max)}static fromFormatExplain(e,t,n={}){const{locale:r=null,numberingSystem:i=null}=n;return mn(Xe.fromOpts({locale:r,numberingSystem:i,defaultToEN:!0}),e,t)}static fromStringExplain(e,t,n={}){return Qn.fromFormatExplain(e,t,n)}static get DATE_SHORT(){return h}static get DATE_MED(){return p}static get DATE_MED_WITH_WEEKDAY(){return m}static get DATE_FULL(){return g}static get DATE_HUGE(){return _}static get TIME_SIMPLE(){return F}static get TIME_WITH_SECONDS(){return b}static get TIME_WITH_SHORT_OFFSET(){return y}static get TIME_WITH_LONG_OFFSET(){return v}static get TIME_24_SIMPLE(){return w}static get TIME_24_WITH_SECONDS(){return k}static get TIME_24_WITH_SHORT_OFFSET(){return E}static get TIME_24_WITH_LONG_OFFSET(){return x}static get DATETIME_SHORT(){return D}static get DATETIME_SHORT_WITH_SECONDS(){return C}static get DATETIME_MED(){return S}static get DATETIME_MED_WITH_SECONDS(){return T}static get DATETIME_MED_WITH_WEEKDAY(){return P}static get DATETIME_FULL(){return O}static get DATETIME_FULL_WITH_SECONDS(){return A}static get DATETIME_HUGE(){return j}static get DATETIME_HUGE_WITH_SECONDS(){return B}}function Jn(e){if(Qn.isDateTime(e))return e;if(e&&e.valueOf&&M(e.valueOf()))return Qn.fromJSDate(e);if(e&&"object"==typeof e)return Qn.fromObject(e);throw new u(`Unknown datetime argument: ${e}, of type ${typeof e}`)}t.DateTime=Qn,t.Duration=Wt,t.FixedOffsetZone=Oe,t.IANAZone=Te,t.Info=Zt,t.Interval=Kt,t.InvalidZone=Ae,t.Settings=$e,t.SystemZone=xe,t.VERSION="3.0.4",t.Zone=ke},1246:function(e,t,n){var r,i; /*! @preserve * numeral.js * version : 2.0.6 * author : Adam Draper * license : MIT * http://adamwdraper.github.com/Numeral-js/ */r=function(){var e,t,n,r,i,a="2.0.6",o={},s={},u={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},l={currentLocale:u.currentLocale,zeroFormat:u.zeroFormat,nullFormat:u.nullFormat,defaultFormat:u.defaultFormat,scalePercentBy100:u.scalePercentBy100};function f(e,t){this._input=e,this._value=t}return(e=function(n){var r,i,a,s;if(e.isNumeral(n))r=n.value();else if(0===n||void 0===n)r=0;else if(null===n||t.isNaN(n))r=null;else if("string"==typeof n)if(l.zeroFormat&&n===l.zeroFormat)r=0;else if(l.nullFormat&&n===l.nullFormat||!n.replace(/[^0-9]+/g,"").length)r=null;else{for(i in o)if((s="function"==typeof o[i].regexps.unformat?o[i].regexps.unformat():o[i].regexps.unformat)&&n.match(s)){a=o[i].unformat;break}r=(a=a||e._.stringToNumber)(n)}else r=Number(n)||null;return new f(n,r)}).version=a,e.isNumeral=function(e){return e instanceof f},e._=t={numberToFormat:function(t,n,r){var i,a,o,u,l,f,c,d=s[e.options.currentLocale],h=!1,p=!1,m=0,g="",_=1e12,F=1e9,b=1e6,y=1e3,v="",w=!1;if(t=t||0,a=Math.abs(t),e._.includes(n,"(")?(h=!0,n=n.replace(/[\(|\)]/g,"")):(e._.includes(n,"+")||e._.includes(n,"-"))&&(l=e._.includes(n,"+")?n.indexOf("+"):t<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),e._.includes(n,"a")&&(i=!!(i=n.match(/a(k|m|b|t)?/))&&i[1],e._.includes(n," a")&&(g=" "),n=n.replace(new RegExp(g+"a[kmbt]?"),""),a>=_&&!i||"t"===i?(g+=d.abbreviations.trillion,t/=_):a<_&&a>=F&&!i||"b"===i?(g+=d.abbreviations.billion,t/=F):a=b&&!i||"m"===i?(g+=d.abbreviations.million,t/=b):(a=y&&!i||"k"===i)&&(g+=d.abbreviations.thousand,t/=y)),e._.includes(n,"[.]")&&(p=!0,n=n.replace("[.]",".")),o=t.toString().split(".")[0],u=n.split(".")[1],f=n.indexOf(","),m=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,u?(e._.includes(u,"[")?(u=(u=u.replace("]","")).split("["),v=e._.toFixed(t,u[0].length+u[1].length,r,u[1].length)):v=e._.toFixed(t,u.length,r),o=v.split(".")[0],v=e._.includes(v,".")?d.delimiters.decimal+v.split(".")[1]:"",p&&0===Number(v.slice(1))&&(v="")):o=e._.toFixed(t,0,r),g&&!i&&Number(o)>=1e3&&g!==d.abbreviations.trillion)switch(o=String(Number(o)/1e3),g){case d.abbreviations.thousand:g=d.abbreviations.million;break;case d.abbreviations.million:g=d.abbreviations.billion;break;case d.abbreviations.billion:g=d.abbreviations.trillion}if(e._.includes(o,"-")&&(o=o.slice(1),w=!0),o.length0;k--)o="0"+o;return f>-1&&(o=o.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),0===n.indexOf(".")&&(o=""),c=o+v+(g||""),h?c=(h&&w?"(":"")+c+(h&&w?")":""):l>=0?c=0===l?(w?"-":"+")+c:c+(w?"-":"+"):w&&(c="-"+c),c},stringToNumber:function(e){var t,n,r,i=s[l.currentLocale],a=e,o={thousand:3,million:6,billion:9,trillion:12};if(l.zeroFormat&&e===l.zeroFormat)n=0;else if(l.nullFormat&&e===l.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==i.delimiters.decimal&&(e=e.replace(/\./g,"").replace(i.delimiters.decimal,".")),o)if(r=new RegExp("[^a-zA-Z]"+i.abbreviations[t]+"(?:\\)|(\\"+i.currency.symbol+")?(?:\\))?)?$"),a.match(r)){n*=Math.pow(10,o[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,r=Object(e),i=r.length>>>0,a=0;if(3===arguments.length)n=arguments[2];else{for(;a=i)throw new TypeError("Reduce of empty array with no initial value");n=r[a++]}for(;ar?e:r}),1)},toFixed:function(e,t,n,r){var i,a,o,s,u=e.toString().split("."),l=t-(r||0);return i=2===u.length?Math.min(Math.max(u[1].length,l),t):l,o=Math.pow(10,i),s=(n(e+"e+"+i)/o).toFixed(i),r>t-i&&(a=new RegExp("\\.?0{1,"+(r-(t-i))+"}$"),s=s.replace(a,"")),s}},e.options=l,e.formats=o,e.locales=s,e.locale=function(e){return e&&(l.currentLocale=e.toLowerCase()),l.currentLocale},e.localeData=function(e){if(!e)return s[l.currentLocale];if(e=e.toLowerCase(),!s[e])throw new Error("Unknown locale : "+e);return s[e]},e.reset=function(){for(var e in u)l[e]=u[e]},e.zeroFormat=function(e){l.zeroFormat="string"==typeof e?e:null},e.nullFormat=function(e){l.nullFormat="string"==typeof e?e:null},e.defaultFormat=function(e){l.defaultFormat="string"==typeof e?e:"0.0"},e.register=function(e,t,n){if(t=t.toLowerCase(),this[e+"s"][t])throw new TypeError(t+" "+e+" already registered.");return this[e+"s"][t]=n,n},e.validate=function(t,n){var r,i,a,o,s,u,l,f;if("string"!=typeof t&&(t+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",t)),(t=t.trim()).match(/^\d+$/))return!0;if(""===t)return!1;try{l=e.localeData(n)}catch(t){l=e.localeData(e.locale())}return a=l.currency.symbol,s=l.abbreviations,r=l.delimiters.decimal,i="."===l.delimiters.thousands?"\\.":l.delimiters.thousands,!(null!==(f=t.match(/^[^\d]+/))&&(t=t.substr(1),f[0]!==a)||null!==(f=t.match(/[^\d]+$/))&&(t=t.slice(0,-1),f[0]!==s.thousand&&f[0]!==s.million&&f[0]!==s.billion&&f[0]!==s.trillion)||(u=new RegExp(i+"{2}"),t.match(/[^\d.,]/g)||(o=t.split(r)).length>2||(o.length<2?!o[0].match(/^\d+.*\d$/)||o[0].match(u):1===o[0].length?!o[0].match(/^\d+$/)||o[0].match(u)||!o[1].match(/^\d+$/):!o[0].match(/^\d+.*\d$/)||o[0].match(u)||!o[1].match(/^\d+$/))))},e.fn=f.prototype={clone:function(){return e(this)},format:function(t,n){var r,i,a,s=this._value,u=t||l.defaultFormat;if(n=n||Math.round,0===s&&null!==l.zeroFormat)i=l.zeroFormat;else if(null===s&&null!==l.nullFormat)i=l.nullFormat;else{for(r in o)if(u.match(o[r].regexps.format)){a=o[r].format;break}i=(a=a||e._.numberToFormat)(s,u,n)}return i},value:function(){return this._value},input:function(){return this._input},set:function(e){return this._value=Number(e),this},add:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e+Math.round(n*t)}return this._value=t.reduce([this._value,e],r,0)/n,this},subtract:function(e){var n=t.correctionFactor.call(null,this._value,e);function r(e,t,r,i){return e-Math.round(n*t)}return this._value=t.reduce([e],r,Math.round(this._value*n))/n,this},multiply:function(e){function n(e,n,r,i){var a=t.correctionFactor(e,n);return Math.round(e*a)*Math.round(n*a)/Math.round(a*a)}return this._value=t.reduce([this._value,e],n,1),this},divide:function(e){function n(e,n,r,i){var a=t.correctionFactor(e,n);return Math.round(e*a)/Math.round(n*a)}return this._value=t.reduce([this._value,e],n),this},difference:function(t){return Math.abs(e(this._value).subtract(t).value())}},e.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(e){var t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},currency:{symbol:"$"}}),e.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(t,n,r){var i,a=e._.includes(n," BPS")?" ":"";return t*=1e4,n=n.replace(/\s?BPS/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,a+"BPS"),i=i.join("")):i=i+a+"BPS",i},unformat:function(t){return+(1e-4*e._.stringToNumber(t)).toFixed(15)}}),r={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},i="("+(i=(n={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]}).suffixes.concat(r.suffixes.filter((function(e){return n.suffixes.indexOf(e)<0}))).join("|")).replace("B","B(?!PS)")+")",e.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(i)},format:function(t,i,a){var o,s,u,l=e._.includes(i,"ib")?r:n,f=e._.includes(i," b")||e._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),o=0;o<=l.suffixes.length;o++)if(s=Math.pow(l.base,o),u=Math.pow(l.base,o+1),null===t||0===t||t>=s&&t0&&(t/=s);break}return e._.numberToFormat(t,i,a)+f},unformat:function(t){var i,a,o=e._.stringToNumber(t);if(o){for(i=n.suffixes.length-1;i>=0;i--){if(e._.includes(t,n.suffixes[i])){a=Math.pow(n.base,i);break}if(e._.includes(t,r.suffixes[i])){a=Math.pow(r.base,i);break}}o*=a||1}return o}}),e.register("format","currency",{regexps:{format:/(\$)/},format:function(t,n,r){var i,a,o=e.locales[e.options.currentLocale],s={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=e._.numberToFormat(t,n,r),t>=0?(s.before=s.before.replace(/[\-\(]/,""),s.after=s.after.replace(/[\-\)]/,"")):t<0&&!e._.includes(s.before,"-")&&!e._.includes(s.before,"(")&&(s.before="-"+s.before),a=0;a=0;a--)switch(s.after[a]){case"$":i=a===s.after.length-1?i+o.currency.symbol:e._.insert(i,o.currency.symbol,-(s.after.length-(1+a)));break;case" ":i=a===s.after.length-1?i+" ":e._.insert(i," ",-(s.after.length-(1+a)+o.currency.symbol.length-1))}return i}}),e.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(t,n,r){var i=("number"!=typeof t||e._.isNaN(t)?"0e+0":t.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),e._.numberToFormat(Number(i[0]),n,r)+"e"+i[1]},unformat:function(t){var n=e._.includes(t,"e+")?t.split("e+"):t.split("e-"),r=Number(n[0]),i=Number(n[1]);function a(t,n,r,i){var a=e._.correctionFactor(t,n);return t*a*(n*a)/(a*a)}return i=e._.includes(t,"e-")?i*=-1:i,e._.reduce([r,Math.pow(10,i)],a,1)}}),e.register("format","ordinal",{regexps:{format:/(o)/},format:function(t,n,r){var i=e.locales[e.options.currentLocale],a=e._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),a+=i.ordinal(t),e._.numberToFormat(t,n,r)+a}}),e.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(t,n,r){var i,a=e._.includes(n," %")?" ":"";return e.options.scalePercentBy100&&(t*=100),n=n.replace(/\s?\%/,""),i=e._.numberToFormat(t,n,r),e._.includes(i,")")?((i=i.split("")).splice(-1,0,a+"%"),i=i.join("")):i=i+a+"%",i},unformat:function(t){var n=e._.stringToNumber(t);return e.options.scalePercentBy100?.01*n:n}}),e.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(e,t,n){var r=Math.floor(e/60/60),i=Math.floor((e-60*r*60)/60),a=Math.round(e-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(a<10?"0"+a:a)},unformat:function(e){var t=e.split(":"),n=0;return 3===t.length?(n+=60*Number(t[0])*60,n+=60*Number(t[1]),n+=Number(t[2])):2===t.length&&(n+=60*Number(t[0]),n+=Number(t[1])),Number(n)}}),e},void 0===(i="function"==typeof r?r.call(t,n,t,e):r)||(e.exports=i)},37320:function(e){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,a){for(var o,s,u=i(e),l=1;l