@drayman/elements 1.24.0 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/README.md +2 -4
  2. package/dist/button/3rdpartylicenses.txt +3 -45
  3. package/dist/button/main.js +1 -1
  4. package/dist/button/polyfills.js +1 -1
  5. package/dist/calendar/3rdpartylicenses.txt +3 -52
  6. package/dist/calendar/main.js +1 -1
  7. package/dist/calendar/polyfills.js +1 -1
  8. package/dist/calendar/styles.css +1 -1
  9. package/dist/checkbox/3rdpartylicenses.txt +3 -30
  10. package/dist/checkbox/main.js +1 -1
  11. package/dist/checkbox/polyfills.js +1 -1
  12. package/dist/claviz-charts/3rdpartylicenses.txt +1 -28
  13. package/dist/claviz-charts/main.js +1 -1
  14. package/dist/claviz-charts/polyfills.js +1 -1
  15. package/dist/code-editor/3rdpartylicenses.txt +2 -139
  16. package/dist/code-editor/main.js +1 -1
  17. package/dist/code-editor/polyfills.js +1 -1
  18. package/dist/datepicker/3rdpartylicenses.txt +3 -91
  19. package/dist/datepicker/main.js +1 -1
  20. package/dist/datepicker/polyfills.js +1 -1
  21. package/dist/file-uploader/3rdpartylicenses.txt +1 -28
  22. package/dist/file-uploader/main.js +1 -1
  23. package/dist/file-uploader/polyfills.js +1 -1
  24. package/dist/{jsondiffpatch → gauge}/3rdpartylicenses.txt +15 -38
  25. package/dist/gauge/main.js +1 -0
  26. package/dist/gauge/polyfills.js +1 -0
  27. package/dist/grid/3rdpartylicenses.txt +3 -45
  28. package/dist/grid/main.js +1 -1
  29. package/dist/grid/polyfills.js +1 -1
  30. package/dist/menu/3rdpartylicenses.txt +3 -45
  31. package/dist/menu/main.js +1 -1
  32. package/dist/menu/polyfills.js +1 -1
  33. package/dist/nebula/3rdpartylicenses.txt +24 -62
  34. package/dist/nebula/main.js +1 -1
  35. package/dist/nebula/polyfills.js +1 -1
  36. package/dist/ngx-charts/3rdpartylicenses.txt +2 -44
  37. package/dist/ngx-charts/main.js +1 -1
  38. package/dist/ngx-charts/polyfills.js +1 -1
  39. package/dist/ngx-graph/3rdpartylicenses.txt +3 -69
  40. package/dist/ngx-graph/main.js +1 -1
  41. package/dist/ngx-graph/polyfills.js +1 -1
  42. package/dist/number-field/3rdpartylicenses.txt +3 -30
  43. package/dist/number-field/main.js +1 -1
  44. package/dist/number-field/polyfills.js +1 -1
  45. package/dist/pdf-viewer/3rdpartylicenses.txt +26 -12
  46. package/dist/pdf-viewer/main.js +1 -1
  47. package/dist/pdf-viewer/polyfills.js +1 -1
  48. package/dist/radio-group/3rdpartylicenses.txt +3 -52
  49. package/dist/radio-group/main.js +1 -1
  50. package/dist/radio-group/polyfills.js +1 -1
  51. package/dist/select/3rdpartylicenses.txt +3 -30
  52. package/dist/select/main.js +1 -1
  53. package/dist/select/polyfills.js +1 -1
  54. package/dist/table/3rdpartylicenses.txt +3 -91
  55. package/dist/table/main.js +1 -1
  56. package/dist/table/polyfills.js +1 -1
  57. package/dist/text-field/3rdpartylicenses.txt +3 -45
  58. package/dist/text-field/main.js +1 -1
  59. package/dist/text-field/polyfills.js +1 -1
  60. package/dist/textarea-field/3rdpartylicenses.txt +3 -30
  61. package/dist/textarea-field/main.js +1 -1
  62. package/dist/textarea-field/polyfills.js +1 -1
  63. package/dist/timepicker/3rdpartylicenses.txt +3 -67
  64. package/dist/timepicker/main.js +1 -1
  65. package/dist/timepicker/polyfills.js +1 -1
  66. package/dist/types/checkbox/src/app/models/checkbox-options.d.ts +0 -0
  67. package/dist/types/claviz-charts/src/app/models/claviz-charts-options.d.ts +0 -0
  68. package/dist/types/datepicker/src/app/models/datepicker-options.d.ts +0 -0
  69. package/dist/types/file-uploader/src/app/models/file-uploader-options.d.ts +0 -0
  70. package/dist/types/gauge/src/app/models/gauge-options.d.ts +91 -0
  71. package/dist/types/menu/src/app/models/menu-options.d.ts +0 -0
  72. package/dist/types/nebula/src/app/models/nebula-options.d.ts +0 -0
  73. package/dist/types/ngx-charts/src/app/models/ngx-charts-options.d.ts +0 -0
  74. package/dist/types/ngx-graph/src/app/models/ngx-graph-options.d.ts +0 -0
  75. package/dist/types/number-field/src/app/models/number-field-options.d.ts +0 -0
  76. package/dist/types/pdf-viewer/src/app/models/pdf-viewer-options.d.ts +0 -0
  77. package/dist/types/radio-group/src/app/models/radio-group-options.d.ts +0 -0
  78. package/dist/types/select/src/app/models/select-options.d.ts +0 -0
  79. package/dist/types/shared/models/autocomplete-options-base.d.ts +0 -0
  80. package/dist/types/shared/models/button-options-base.d.ts +0 -0
  81. package/dist/types/shared/models/button-options.d.ts +0 -0
  82. package/dist/types/shared/models/field-options-base.d.ts +0 -0
  83. package/dist/types/shared/models/input-field-options-base.d.ts +0 -0
  84. package/dist/types/shared/models/input-mask-options-base.d.ts +0 -0
  85. package/dist/types/table/src/app/models/table-options.d.ts +0 -0
  86. package/dist/types/text-field/src/app/models/text-field-options.d.ts +0 -0
  87. package/dist/types/textarea-field/src/app/models/textarea-field-options.d.ts +0 -0
  88. package/dist/types/timepicker/src/app/models/timepicker-options.d.ts +0 -0
  89. package/dist/types/youtube-player/src/app/models/youtube-player-options.d.ts +0 -0
  90. package/dist/youtube-player/3rdpartylicenses.txt +2 -29
  91. package/dist/youtube-player/main.js +1 -1
  92. package/dist/youtube-player/polyfills.js +1 -1
  93. package/package.json +188 -183
  94. package/types/index.d.ts +35 -0
  95. package/dist/jsondiffpatch/favicon.ico +0 -0
  96. package/dist/jsondiffpatch/main.js +0 -1
  97. package/dist/jsondiffpatch/polyfills.js +0 -1
  98. package/dist/monaco-editor/3rdpartylicenses.txt +0 -406
  99. package/dist/monaco-editor/favicon.ico +0 -0
  100. package/dist/monaco-editor/main.js +0 -1
  101. package/dist/monaco-editor/polyfills.js +0 -1
  102. package/dist/monaco-editor/styles.css +0 -1
  103. package/dist/picasso/3rdpartylicenses.txt +0 -465
  104. package/dist/picasso/favicon.ico +0 -0
  105. package/dist/picasso/main.js +0 -1
  106. package/dist/picasso/polyfills.js +0 -1
  107. package/dist/picasso/styles.css +0 -0
  108. package/dist/pivot-grid/3rdpartylicenses.txt +0 -418
  109. package/dist/pivot-grid/main.js +0 -1
  110. package/dist/pivot-grid/polyfills.js +0 -1
  111. package/dist/pivot-grid/styles.css +0 -0
  112. package/dist/types/picasso/src/app/models/picasso-options.d.ts +0 -3
  113. package/dist/types/pivot-grid/src/app/models/pivot-grid-options.d.ts +0 -62
  114. /package/dist/{pivot-grid → gauge}/favicon.ico +0 -0
  115. /package/dist/{jsondiffpatch → gauge}/styles.css +0 -0
@@ -1 +1 @@
1
- !function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,(function(t){return e[t]}).bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({0:function(e,t,n){e.exports=n("zUnb")},WAnW:function(e,t,n){!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=[],s=[],o=function(){var e=[].concat(s);s.length=0,e.forEach((function(e){a(e.type,e.data)}))},a=function(e,t,n){!n||document.hidden?(h[e]&&h[e](t),i.push({type:e,data:t})):s.push({type:e,data:t})},l=function(e){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return c[e]?(t=c)[e].apply(t,r):null},u={getState:function(){return Object.assign({},r)},processActionQueue:function(){var e=[].concat(i);return i.length=0,e},processDispatchQueue:o,dispatch:a,query:l},c={};t.forEach((function(e){c=Object.assign({},e(r),{},c)}));var h={};return n.forEach((function(e){h=Object.assign({},e(a,l,r),{},h)})),u},r=function(e,t){for(var n in e)e.hasOwnProperty(n)&&t(n,e[n])},i=function(e){var t={};return r(e,(function(n){!function(e,t,n){"function"!=typeof n?Object.defineProperty(e,t,Object.assign({},n)):e[t]=n}(t,n,e[n])})),t},s=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(null===n)return e.getAttribute(t)||e.hasAttribute(t);e.setAttribute(t,n)},o="http://www.w3.org/2000/svg",a=["svg","path"],l=function(e){return a.includes(e)},u=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof t&&(n=t,t=null);var i=l(e)?document.createElementNS(o,e):document.createElement(e);return t&&(l(e)?s(i,"class",t):i.className=t),r(n,(function(e,t){s(i,e,t)})),i},c=function(e){return function(t,n){void 0!==n&&e.children[n]?e.insertBefore(t,e.children[n]):e.appendChild(t)}},h=function(e,t){return function(e,n){return void 0!==n?t.splice(n,0,e):t.push(e),e}},d=function(e,t){return function(n){return t.splice(t.indexOf(n),1),n.element.parentNode&&e.removeChild(n.element),n}},f="undefined"!=typeof window&&void 0!==window.document,p=function(){return f},m="children"in(p()?u("svg"):{})?function(e){return e.children.length}:function(e){return e.childNodes.length},_=function(e,t,n,r){var i=n[0]||e.left,s=n[1]||e.top,o=i+e.width,a=s+e.height*(r[1]||1),l={element:Object.assign({},e),inner:{left:e.left,top:e.top,right:e.right,bottom:e.bottom},outer:{left:i,top:s,right:o,bottom:a}};return t.filter((function(e){return!e.isRectIgnored()})).map((function(e){return e.rect})).forEach((function(e){y(l.inner,Object.assign({},e.inner)),y(l.outer,Object.assign({},e.outer))})),g(l.inner),l.outer.bottom+=l.element.marginBottom,l.outer.right+=l.element.marginRight,g(l.outer),l},y=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)},g=function(e){e.width=e.right-e.left,e.height=e.bottom-e.top},E=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)<r&&Math.abs(n)<r},T=function(e){return e<.5?2*e*e:(4-2*e)*e-1},I={spring:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiffness,n=void 0===t?.5:t,r=e.damping,s=void 0===r?.75:r,o=e.mass,a=void 0===o?10:o,l=null,u=null,c=0,h=!1,d=i({interpolate:function(e,t){if(!h){if(!E(l)||!E(u))return h=!0,void(c=0);v(u+=c+=-(u-l)*n/a,l,c*=s)||t?(c=0,h=!0,d.onupdate(u=l),d.oncomplete(u)):d.onupdate(u)}},target:{set:function(e){if(E(e)&&!E(u)&&(u=e),null===l&&(l=e,u=e),u===(l=e)||void 0===l)return h=!0,c=0,d.onupdate(u),void d.oncomplete(u);h=!1},get:function(){return l}},resting:{get:function(){return h}},onupdate:function(e){},oncomplete:function(e){}});return d},tween:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.duration,s=void 0===r?500:r,o=n.easing,a=void 0===o?T:o,l=n.delay,u=void 0===l?0:l,c=null,h=!0,d=!1,f=null,p=i({interpolate:function(n,r){h||null===f||(null===c&&(c=n),n-c<u||((e=n-c-u)>=s||r?(e=1,p.onupdate((t=d?0:1)*f),p.oncomplete(t*f),h=!0):(t=e/s,p.onupdate((e>=0?a(d?1-t:t):0)*f))))},target:{get:function(){return d?0:f},set:function(e){if(null===f)return f=e,p.onupdate(e),void p.oncomplete(e);e<f?(f=1,d=!0):(d=!1,f=e),h=!1,c=null}},resting:{get:function(){return h}},onupdate:function(e){},oncomplete:function(e){}});return p}},b=function(e,t,n){var r=e[t]&&"object"==typeof e[t][n]?e[t][n]:e[t]||e,i="string"==typeof r?r:r.type,s="object"==typeof r?Object.assign({},r):{};return I[i]?I[i](s):null},w=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];(t=Array.isArray(t)?t:[t]).forEach((function(t){e.forEach((function(e){var i=e,s=function(){return n[e]},o=function(t){return n[e]=t};"object"==typeof e&&(i=e.key,s=e.getter||s,o=e.setter||o),t[i]&&!r||(t[i]={get:s,set:o})}))}))},S=function(e){return null!=e},O={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},R={styles:function(e){var t=e.mixinConfig,n=e.viewProps,r=e.viewInternalAPI,i=e.viewExternalAPI,s=e.view,o=Object.assign({},n),a={};w(t,[r,i],n);var l=function(){return s.rect?_(s.rect,s.childViews,[n.translateX||0,n.translateY||0],[n.scaleX||0,n.scaleY||0]):null};return r.rect={get:l},i.rect={get:l},t.forEach((function(e){n[e]=void 0===o[e]?O[e]:o[e]})),{write:function(){if(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}(a,n))return function(e,t){var n=t.opacity,r=t.perspective,i=t.translateX,s=t.translateY,o=t.scaleX,a=t.scaleY,l=t.rotateX,u=t.rotateY,c=t.rotateZ,h=t.originX,d=t.originY,f=t.width,p=t.height,m="",_="";(S(h)||S(d))&&(_+="transform-origin: "+(h||0)+"px "+(d||0)+"px;"),S(r)&&(m+="perspective("+r+"px) "),(S(i)||S(s))&&(m+="translate3d("+(i||0)+"px, "+(s||0)+"px, 0) "),(S(o)||S(a))&&(m+="scale3d("+(S(o)?o:1)+", "+(S(a)?a:1)+", 1) "),S(c)&&(m+="rotateZ("+c+"rad) "),S(l)&&(m+="rotateX("+l+"rad) "),S(u)&&(m+="rotateY("+u+"rad) "),m.length&&(_+="transform:"+m+";"),S(n)&&(_+="opacity:"+n+";",0===n&&(_+="visibility:hidden;"),n<1&&(_+="pointer-events:none;")),S(p)&&(_+="height:"+p+"px;"),S(f)&&(_+="width:"+f+"px;");var y=e.elementCurrentStyle||"";_.length===y.length&&_===y||(e.style.cssText=_,e.elementCurrentStyle=_)}(s.element,n),Object.assign(a,Object.assign({},n)),!0},destroy:function(){}}},listeners:function(e){var t,n=e.viewExternalAPI,r=e.view,i=[],s=(t=r.element,function(e,n){t.addEventListener(e,n)}),o=function(e){return function(t,n){e.removeEventListener(t,n)}}(r.element);return n.on=function(e,t){i.push({type:e,fn:t}),s(e,t)},n.off=function(e,t){i.splice(i.findIndex((function(n){return n.type===e&&n.fn===t})),1),o(e,t)},{write:function(){return!0},destroy:function(){i.forEach((function(e){o(e.type,e.fn)}))}}},animations:function(e){var t=e.mixinConfig,n=e.viewProps,i=e.viewInternalAPI,s=e.viewExternalAPI,o=Object.assign({},n),a=[];return r(t,(function(e,t){var r=b(t);r&&(r.onupdate=function(t){n[e]=t},r.target=o[e],w([{key:e,setter:function(e){r.target!==e&&(r.target=e)},getter:function(){return n[e]}}],[i,s],n,!0),a.push(r))})),{write:function(e){var t=document.hidden,n=!0;return a.forEach((function(r){r.resting||(n=!1),r.interpolate(e,t)})),n},destroy:function(){}}},apis:function(e){w(e.mixinConfig,e.viewExternalAPI,e.viewProps)}},D=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},A=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.tag,n=void 0===t?"div":t,r=e.name,s=void 0===r?null:r,o=e.attributes,a=void 0===o?{}:o,l=e.read,f=void 0===l?function(){}:l,p=e.write,y=void 0===p?function(){}:p,g=e.create,E=void 0===g?function(){}:g,v=e.destroy,T=void 0===v?function(){}:v,I=e.filterFrameActionsForChild,b=void 0===I?function(e,t){return t}:I,w=e.didCreateView,S=void 0===w?function(){}:w,O=e.didWriteView,A=void 0===O?function(){}:O,C=e.ignoreRect,P=void 0!==C&&C,N=e.ignoreRectUpdate,M=void 0!==N&&N,L=e.mixins,x=void 0===L?[]:L;return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=u(n,"filepond--"+s,a),o=window.getComputedStyle(r,null),l=D(),p=null,g=!1,v=[],I=[],w={},O={},C=[y],N=[f],L=[T],k=function(){return r},F=function(){return v.concat()},G=function(e){return function(t,n){return t(e,n)}},j=function(){return p||(p=_(l,v,[0,0],[1,1]))},V=function(){p=null,v.forEach((function(e){return e._read()})),!(M&&l.width&&l.height)&&D(l,r,o);var e={root:Y,props:t,rect:l};N.forEach((function(t){return t(e)}))},B=function(e,n,r){var i=0===n.length;return C.forEach((function(s){!1===s({props:t,root:Y,actions:n,timestamp:e,shouldOptimize:r})&&(i=!1)})),I.forEach((function(t){!1===t.write(e)&&(i=!1)})),v.filter((function(e){return!!e.element.parentNode})).forEach((function(t){t._write(e,b(t,n),r)||(i=!1)})),v.forEach((function(t,s){t.element.parentNode||(Y.appendChild(t.element,s),t._read(),t._write(e,b(t,n),r),i=!1)})),g=i,A({props:t,root:Y,actions:n,timestamp:e}),i},q=function(){I.forEach((function(e){return e.destroy()})),L.forEach((function(e){e({root:Y,props:t})})),v.forEach((function(e){return e._destroy()}))},U={element:{get:k},style:{get:function(){return o}},childViews:{get:F}},H=Object.assign({},U,{rect:{get:j},ref:{get:function(){return w}},is:function(e){return s===e},appendChild:c(r),createChildView:G(e),linkView:function(e){return v.push(e),e},unlinkView:function(e){v.splice(v.indexOf(e),1)},appendChildView:h(0,v),removeChildView:d(r,v),registerWriter:function(e){return C.push(e)},registerReader:function(e){return N.push(e)},registerDestroyer:function(e){return L.push(e)},invalidateLayout:function(){return r.layoutCalculated=!1},dispatch:e.dispatch,query:e.query}),z={element:{get:k},childViews:{get:F},rect:{get:j},resting:{get:function(){return g}},isRectIgnored:function(){return P},_read:V,_write:B,_destroy:q},W=Object.assign({},U,{rect:{get:function(){return l}}});Object.keys(x).sort((function(e,t){return"styles"===e?1:"styles"===t?-1:0})).forEach((function(e){var n=R[e]({mixinConfig:x[e],viewProps:t,viewState:O,viewInternalAPI:H,viewExternalAPI:z,view:i(W)});n&&I.push(n)}));var Y=i(H);E({root:Y,props:t});var $=m(r);return v.forEach((function(e,t){Y.appendChild(e.element,$+t)})),S(Y),i(z)}},C=function(e,t){return function(n){var r=n.root,i=n.props,s=n.actions,o=void 0===s?[]:s,a=n.timestamp,l=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:a,shouldOptimize:l})})),t&&t({root:r,props:i,actions:o,timestamp:a,shouldOptimize:l})}},P=function(e,t){return t.parentNode.insertBefore(e,t)},N=function(e,t){return t.parentNode.insertBefore(e,t.nextSibling)},M=function(e){return Array.isArray(e)},L=function(e){return null==e},x=function(e){return e.trim()},k=function(e){return""+e},F=function(e){return"boolean"==typeof e},G=function(e){return F(e)?e:"true"===e},j=function(e){return"string"==typeof e},V=function(e){return E(e)?e:j(e)?k(e).replace(/[a-z]+/gi,""):0},B=function(e){return parseInt(V(e),10)},q=function(e){return parseFloat(V(e))},U=function(e){return E(e)&&isFinite(e)&&Math.floor(e)===e},H=function(e){if(U(e))return e;var t=k(e).trim();return/MB$/i.test(t)?(t=t.replace(/MB$i/,"").trim(),1e3*B(t)*1e3):/KB/i.test(t)?(t=t.replace(/KB$i/,"").trim(),1e3*B(t)):B(t)},z=function(e){return"function"==typeof e},W={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},Y=function(e){return"object"==typeof e&&null!==e},$=function(e){return M(e)?"array":function(e){return null===e}(e)?"null":U(e)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(e)?"bytes":function(e){return Y(e)&&j(e.url)&&Y(e.process)&&Y(e.revert)&&Y(e.restore)&&Y(e.fetch)}(e)?"api":typeof e},Q={array:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return L(e)?[]:M(e)?e:k(e).split(t).map(x).filter((function(e){return e.length}))},boolean:G,int:function(e){return"bytes"===$(e)?H(e):B(e)},number:q,float:q,bytes:H,string:function(e){return z(e)?e:k(e)},function:function(e){return function(e){for(var t=self,n=e.split("."),r=null;r=n.shift();)if(!(t=t[r]))return null;return t}(e)},serverapi:function(e){return(n={}).url=j(t=e)?t:t.url||"",n.timeout=t.timeout?parseInt(t.timeout,10):0,n.headers=t.headers?t.headers:{},r(W,(function(e){n[e]=function(e,t,n,r,i){if(null===t)return null;if("function"==typeof t)return t;var s={url:"GET"===n||"PATCH"===n?"?"+e+"=":"",method:n,headers:i,withCredentials:!1,timeout:r,onload:null,ondata:null,onerror:null};if(j(t))return s.url=t,s;if(Object.assign(s,t),j(s.headers)){var o=s.headers.split(/:(.+)/);s.headers={header:o[0],value:o[1]}}return s.withCredentials=G(s.withCredentials),s}(e,t[e],W[e],n.timeout,n.headers)})),n.remove=t.remove||null,delete n.headers,n;var t,n},object:function(e){try{return JSON.parse(e.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",'))}catch(t){return null}}},Z=function(e,t,n){if(e===t)return e;var r=$(e);if(r!==n){var i=Q[n](e);if(r=$(i),null===i)throw'Trying to assign value with incorrect type to "'+option+'", allowed type: "'+n+'"';e=i}return e},X=function(e){var t={};return r(e,(function(n){var r,i,s,o=e[n];t[n]=(i=o[1],s=r=o[0],{enumerable:!0,get:function(){return s},set:function(e){s=Z(e,r,i)}})})),i(t)},K=function(e){return{items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:X(e)}},J=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)},ee=function(e,t){var n={};return r(t,(function(t){n[t]={get:function(){return e.getState().options[t]},set:function(n){e.dispatch("SET_"+J(t,"_").toUpperCase(),{value:n})}}})),n},te=function(e){return function(t,n,i){var s={};return r(e,(function(e){var n=J(e,"_").toUpperCase();s["SET_"+n]=function(r){try{i.options[e]=r.value}catch(s){}t("DID_SET_"+n,{value:i.options[e]})}})),s}},ne=function(e){return function(t){var n={};return r(e,(function(e){n["GET_"+J(e,"_").toUpperCase()]=function(n){return t.options[e]}})),n}},re=function(){return Math.random().toString(36).substr(2,9)};function ie(e){this.wrapped=e}function se(e){var t,n;function r(t,n){try{var s=e[t](n),o=s.value,a=o instanceof ie;Promise.resolve(a?o.wrapped:o).then((function(e){a?r("next",e):i(s.done?"return":"normal",e)}),(function(e){r("throw",e)}))}catch(l){i("throw",l)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise((function(s,o){var a={key:e,arg:i,resolve:s,reject:o,next:null};n?n=n.next=a:(t=n=a,r(e,i))}))},"function"!=typeof e.return&&(this.return=void 0)}function oe(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},s=Object.keys(e);for(r=0;r<s.length;r++)t.indexOf(n=s[r])>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)t.indexOf(n=s[r])>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ae(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}"function"==typeof Symbol&&Symbol.asyncIterator&&(se.prototype[Symbol.asyncIterator]=function(){return this}),se.prototype.next=function(e){return this._invoke("next",e)},se.prototype.throw=function(e){return this._invoke("throw",e)},se.prototype.return=function(e){return this._invoke("return",e)};var le,ue,ce=function(e,t){return e.splice(t,1)},he=function(){var e=[],t=function(t,n){ce(e,e.findIndex((function(e){return e.event===t&&(e.cb===n||!n)})))},n=function(t,n,r){e.filter((function(e){return e.event===t})).map((function(e){return e.cb})).forEach((function(e){return function(e,t){t?e():document.hidden?Promise.resolve(1).then(e):setTimeout(e,0)}((function(){return e.apply(void 0,ae(n))}),r)}))};return{fireSync:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n(e,r,!0)},fire:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];n(e,r,!1)},on:function(t,n){e.push({event:t,cb:n})},onOnce:function(n,r){e.push({event:n,cb:function(){t(n,r),r.apply(void 0,arguments)}})},off:t}},de=function(e,t,n){Object.getOwnPropertyNames(e).filter((function(e){return!n.includes(e)})).forEach((function(n){return Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))},fe=["fire","process","revert","load","on","off","onOnce","retryLoad","extend","archive","archived","release","released","requestProcessing","freeze"],pe=function(e){var t={};return de(e,t,fe),t},me=function(e){e.forEach((function(t,n){t.released&&ce(e,n)}))},_e={INIT:1,IDLE:2,PROCESSING_QUEUED:9,PROCESSING:3,PROCESSING_COMPLETE:5,PROCESSING_ERROR:6,PROCESSING_REVERT_ERROR:10,LOADING:7,LOAD_ERROR:8},ye={INPUT:1,LIMBO:2,LOCAL:3},ge=function(e){return/[^0-9]+/.exec(e)},Ee=function(){return ge(1.1.toLocaleString())[0]},ve={BOOLEAN:"boolean",INT:"int",NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",FUNCTION:"function",ACTION:"action",SERVER_API:"serverapi",REGEX:"regex"},Te=[],Ie=function(e,t,n){return new Promise((function(r,i){var s=Te.filter((function(t){return t.key===e})).map((function(e){return e.cb}));if(0!==s.length){var o=s.shift();s.reduce((function(e,t){return e.then((function(e){return t(e,n)}))}),o(t,n)).then((function(e){return r(e)})).catch((function(e){return i(e)}))}else r(t)}))},be=function(e,t,n){return Te.filter((function(t){return t.key===e})).map((function(e){return e.cb(t,n)}))},we=function(e,t){return Te.push({key:e,cb:t})},Se=function(){return Object.assign({},Oe)},Oe={id:[null,ve.STRING],name:["filepond",ve.STRING],disabled:[!1,ve.BOOLEAN],className:[null,ve.STRING],required:[!1,ve.BOOLEAN],captureMethod:[null,ve.STRING],allowSyncAcceptAttribute:[!0,ve.BOOLEAN],allowDrop:[!0,ve.BOOLEAN],allowBrowse:[!0,ve.BOOLEAN],allowPaste:[!0,ve.BOOLEAN],allowMultiple:[!1,ve.BOOLEAN],allowReplace:[!0,ve.BOOLEAN],allowRevert:[!0,ve.BOOLEAN],allowRemove:[!0,ve.BOOLEAN],allowProcess:[!0,ve.BOOLEAN],allowReorder:[!1,ve.BOOLEAN],allowDirectoriesOnly:[!1,ve.BOOLEAN],forceRevert:[!1,ve.BOOLEAN],maxFiles:[null,ve.INT],checkValidity:[!1,ve.BOOLEAN],itemInsertLocationFreedom:[!0,ve.BOOLEAN],itemInsertLocation:["before",ve.STRING],itemInsertInterval:[75,ve.INT],dropOnPage:[!1,ve.BOOLEAN],dropOnElement:[!0,ve.BOOLEAN],dropValidation:[!1,ve.BOOLEAN],ignoredFiles:[[".ds_store","thumbs.db","desktop.ini"],ve.ARRAY],instantUpload:[!0,ve.BOOLEAN],maxParallelUploads:[2,ve.INT],chunkUploads:[!1,ve.BOOLEAN],chunkForce:[!1,ve.BOOLEAN],chunkSize:[5e6,ve.INT],chunkRetryDelays:[[500,1e3,3e3],ve.Array],server:[null,ve.SERVER_API],labelDecimalSeparator:[Ee(),ve.STRING],labelThousandsSeparator:[(le=Ee(),ue=1e3.toLocaleString(),ue!==1e3.toString()?ge(ue)[0]:"."===le?",":"."),ve.STRING],labelIdle:['Drag & Drop your files or <span class="filepond--label-action">Browse</span>',ve.STRING],labelInvalidField:["Field contains invalid files",ve.STRING],labelFileWaitingForSize:["Waiting for size",ve.STRING],labelFileSizeNotAvailable:["Size not available",ve.STRING],labelFileCountSingular:["file in list",ve.STRING],labelFileCountPlural:["files in list",ve.STRING],labelFileLoading:["Loading",ve.STRING],labelFileAdded:["Added",ve.STRING],labelFileLoadError:["Error during load",ve.STRING],labelFileRemoved:["Removed",ve.STRING],labelFileRemoveError:["Error during remove",ve.STRING],labelFileProcessing:["Uploading",ve.STRING],labelFileProcessingComplete:["Upload complete",ve.STRING],labelFileProcessingAborted:["Upload cancelled",ve.STRING],labelFileProcessingError:["Error during upload",ve.STRING],labelFileProcessingRevertError:["Error during revert",ve.STRING],labelTapToCancel:["tap to cancel",ve.STRING],labelTapToRetry:["tap to retry",ve.STRING],labelTapToUndo:["tap to undo",ve.STRING],labelButtonRemoveItem:["Remove",ve.STRING],labelButtonAbortItemLoad:["Abort",ve.STRING],labelButtonRetryItemLoad:["Retry",ve.STRING],labelButtonAbortItemProcessing:["Cancel",ve.STRING],labelButtonUndoItemProcessing:["Undo",ve.STRING],labelButtonRetryItemProcessing:["Retry",ve.STRING],labelButtonProcessItem:["Upload",ve.STRING],iconRemove:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M11.586 13l-2.293 2.293a1 1 0 0 0 1.414 1.414L13 14.414l2.293 2.293a1 1 0 0 0 1.414-1.414L14.414 13l2.293-2.293a1 1 0 0 0-1.414-1.414L13 11.586l-2.293-2.293a1 1 0 0 0-1.414 1.414L11.586 13z" fill="currentColor" fill-rule="nonzero"/></svg>',ve.STRING],iconProcess:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M14 10.414v3.585a1 1 0 0 1-2 0v-3.585l-1.293 1.293a1 1 0 0 1-1.414-1.415l3-3a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.415L14 10.414zM9 18a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2H9z" fill="currentColor" fill-rule="evenodd"/></svg>',ve.STRING],iconRetry:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M10.81 9.185l-.038.02A4.997 4.997 0 0 0 8 13.683a5 5 0 0 0 5 5 5 5 0 0 0 5-5 1 1 0 0 1 2 0A7 7 0 1 1 9.722 7.496l-.842-.21a.999.999 0 1 1 .484-1.94l3.23.806c.535.133.86.675.73 1.21l-.804 3.233a.997.997 0 0 1-1.21.73.997.997 0 0 1-.73-1.21l.23-.928v-.002z" fill="currentColor" fill-rule="nonzero"/></svg>',ve.STRING],iconUndo:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M9.185 10.81l.02-.038A4.997 4.997 0 0 1 13.683 8a5 5 0 0 1 5 5 5 5 0 0 1-5 5 1 1 0 0 0 0 2A7 7 0 1 0 7.496 9.722l-.21-.842a.999.999 0 1 0-1.94.484l.806 3.23c.133.535.675.86 1.21.73l3.233-.803a.997.997 0 0 0 .73-1.21.997.997 0 0 0-1.21-.73l-.928.23-.002-.001z" fill="currentColor" fill-rule="nonzero"/></svg>',ve.STRING],iconDone:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M18.293 9.293a1 1 0 0 1 1.414 1.414l-7.002 7a1 1 0 0 1-1.414 0l-3.998-4a1 1 0 1 1 1.414-1.414L12 15.586l6.294-6.293z" fill="currentColor" fill-rule="nonzero"/></svg>',ve.STRING],oninit:[null,ve.FUNCTION],onwarning:[null,ve.FUNCTION],onerror:[null,ve.FUNCTION],onactivatefile:[null,ve.FUNCTION],oninitfile:[null,ve.FUNCTION],onaddfilestart:[null,ve.FUNCTION],onaddfileprogress:[null,ve.FUNCTION],onaddfile:[null,ve.FUNCTION],onprocessfilestart:[null,ve.FUNCTION],onprocessfileprogress:[null,ve.FUNCTION],onprocessfileabort:[null,ve.FUNCTION],onprocessfilerevert:[null,ve.FUNCTION],onprocessfile:[null,ve.FUNCTION],onprocessfiles:[null,ve.FUNCTION],onremovefile:[null,ve.FUNCTION],onpreparefile:[null,ve.FUNCTION],onupdatefiles:[null,ve.FUNCTION],onreorderfiles:[null,ve.FUNCTION],beforeDropFile:[null,ve.FUNCTION],beforeAddFile:[null,ve.FUNCTION],beforeRemoveFile:[null,ve.FUNCTION],stylePanelLayout:[null,ve.STRING],stylePanelAspectRatio:[null,ve.STRING],styleItemPanelAspectRatio:[null,ve.STRING],styleButtonRemoveItemPosition:["left",ve.STRING],styleButtonProcessItemPosition:["right",ve.STRING],styleLoadIndicatorPosition:["right",ve.STRING],styleProgressIndicatorPosition:["right",ve.STRING],styleButtonRemoveItemAlign:[!1,ve.BOOLEAN],files:[[],ve.ARRAY]},Re=function(e,t){return L(t)?e[0]||null:U(t)?e[t]||null:("object"==typeof t&&(t=t.id),e.find((function(e){return e.id===t}))||null)},De=function(e){if(L(e))return e;if(/:/.test(e)){var t=e.split(":");return t[1]/t[0]}return parseFloat(e)},Ae=function(e){return e.filter((function(e){return!e.archived}))},Ce={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},Pe=[_e.LOAD_ERROR,_e.PROCESSING_ERROR,_e.PROCESSING_REVERT_ERROR],Ne=[_e.LOADING,_e.PROCESSING,_e.PROCESSING_QUEUED,_e.INIT],Me=[_e.PROCESSING_COMPLETE],Le=function(e){return Pe.includes(e.status)},xe=function(e){return Ne.includes(e.status)},ke=function(e){return Me.includes(e.status)},Fe=function(e){return{GET_STATUS:function(){var t=Ae(e.items),n=Ce.ERROR,r=Ce.BUSY,i=Ce.IDLE,s=Ce.READY;return 0===t.length?Ce.EMPTY:t.some(Le)?n:t.some(xe)?r:t.some(ke)?s:i},GET_ITEM:function(t){return Re(e.items,t)},GET_ACTIVE_ITEM:function(t){return Re(Ae(e.items),t)},GET_ACTIVE_ITEMS:function(){return Ae(e.items)},GET_ITEMS:function(){return e.items},GET_ITEM_NAME:function(t){var n=Re(e.items,t);return n?n.filename:null},GET_ITEM_SIZE:function(t){var n=Re(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:De(e.options.stylePanelAspectRatio)},GET_ITEM_PANEL_ASPECT_RATIO:function(){return e.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(t){return Ae(e.items).filter((function(e){return e.status===t}))},GET_TOTAL_ITEMS:function(){return Ae(e.items).length},IS_ASYNC:function(){return Y(e.options.server)&&(Y(e.options.server.process)||z(e.options.server.process))}}},Ge=function(e,t,n){return Math.max(Math.min(n,e),t)},je=function(e){return/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(e)},Ve=function(e){return e.split("/").pop().split("?").shift()},Be=function(e){return e.split(".").pop()},qe=function(e){if("string"!=typeof e)return"";var t=e.split("/").pop();return/svg/.test(t)?"svg":/zip|compressed/.test(t)?"zip":/plain/.test(t)?"txt":/msword/.test(t)?"doc":/[a-z]+/.test(t)?"jpeg"===t?"jpg":t:""},Ue=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(t+e).slice(-t.length)},He=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return e.getFullYear()+"-"+Ue(e.getMonth()+1,"00")+"-"+Ue(e.getDate(),"00")+"_"+Ue(e.getHours(),"00")+"-"+Ue(e.getMinutes(),"00")+"-"+Ue(e.getSeconds(),"00")},ze=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=e.slice(0,e.size,"string"==typeof n?n:e.type);return i.lastModifiedDate=new Date,e._relativePath&&(i._relativePath=e._relativePath),j(t)||(t=He()),t&&null===r&&Be(t)?i.name=t:(r=r||qe(i.type),i.name=t+(r?"."+r:"")),i},We=function(e,t){var n=window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if(n){var r=new n;return r.append(e),r.getBlob(t)}return new Blob([e],{type:t})},Ye=function(e){return(/^data:(.+);/.exec(e)||[])[1]||null},$e=function(e){if(!/^content-disposition:/i.test(e))return null;var t=e.split(/filename=|filename\*=.+''/).splice(1).map((function(e){return e.trim().replace(/^["']|[;"']{0,2}$/g,"")})).filter((function(e){return e.length}));return t.length?decodeURI(t[t.length-1]):null},Qe=function(e){if(/content-length:/i.test(e)){var t=e.match(/[0-9]+/)[0];return t?parseInt(t,10):null}return null},Ze=function(e){return/x-content-transfer-id:/i.test(e)&&(e.split(":")[1]||"").trim()||null},Xe=function(e){var t={source:null,name:null,size:null},n=e.split("\n"),r=!0,i=!1,s=void 0;try{for(var o,a=n[Symbol.iterator]();!(r=(o=a.next()).done);r=!0){var l=o.value,u=$e(l);if(u)t.name=u;else{var c=Qe(l);if(c)t.size=c;else{var h=Ze(l);h&&(t.source=h)}}}}catch(d){i=!0,s=d}finally{try{r||null==a.return||a.return()}finally{if(i)throw s}}return t},Ke=function(e){var t={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},n=Object.assign({},he(),{setSource:function(e){return t.source=e},getProgress:function(){return t.progress},abort:function(){t.request&&t.request.abort&&t.request.abort()},load:function(){var r,i,s,o=t.source;n.fire("init",o),o instanceof File?n.fire("load",o):o instanceof Blob?n.fire("load",ze(o,o.name)):je(o)?n.fire("load",ze((s=Ye(i=o),function(e,t){for(var n=new ArrayBuffer(e.length),r=new Uint8Array(n),i=0;i<e.length;i++)r[i]=e.charCodeAt(i);return We(n,t)}(function(e){return atob(function(e){return e.split(",")[1].replace(/\s/g,"")}(e))}(i),s)),undefined,null,undefined)):(r=o,e?(t.timestamp=Date.now(),t.request=e(r,(function(e){t.duration=Date.now()-t.timestamp,t.complete=!0,e instanceof Blob&&(e=ze(e,e.name||Ve(r))),n.fire("load",e instanceof Blob?e:e?e.body:null)}),(function(e){n.fire("error","string"==typeof e?{type:"error",code:0,body:e}:e)}),(function(e,r,i){i&&(t.size=i),t.duration=Date.now()-t.timestamp,e?(t.progress=r/i,n.fire("progress",t.progress)):t.progress=null}),(function(){n.fire("abort")}),(function(e){var r=Xe("string"==typeof e?e:e.headers);n.fire("meta",{size:t.size||r.size,filename:r.name,source:r.source})}))):n.fire("error",{type:"error",body:"Can't load URL",code:400}))}});return n},Je=function(e){return/GET|HEAD/.test(e)},et=function(e,t,n){var r={onheaders:function(){},onprogress:function(){},onload:function(){},ontimeout:function(){},onerror:function(){},onabort:function(){},abort:function(){i=!0,o.abort()}},i=!1,s=!1;n=Object.assign({method:"POST",headers:{},withCredentials:!1},n),t=encodeURI(t),Je(n.method)&&e&&(t=""+t+encodeURIComponent("string"==typeof e?e:JSON.stringify(e)));var o=new XMLHttpRequest;return(Je(n.method)?o:o.upload).onprogress=function(e){i||r.onprogress(e.lengthComputable,e.loaded,e.total)},o.onreadystatechange=function(){o.readyState<2||4===o.readyState&&0===o.status||s||(s=!0,r.onheaders(o))},o.onload=function(){o.status>=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),U(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},tt=function(e,t,n,r){return{type:e,code:t,body:n,headers:r}},nt=function(e){return function(t){e(tt("error",0,"Timeout",t.getAllResponseHeaders()))}},rt=function(e){return/\?/.test(e)},it=function(){for(var e="",t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e+=rt(e)&&rt(t)?t.replace(/\?/,"&"):t})),e},st=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"==typeof t)return t;if(!t||!j(t.url))return null;var n=t.onload||function(e){return e},r=t.onerror||function(e){return null};return function(i,s,o,a,l,u){var c=et(i,it(e,t.url),Object.assign({},t,{responseType:"blob"}));return c.onload=function(e){var r=e.getAllResponseHeaders(),o=Xe(r).name||Ve(i);s(tt("load",e.status,"HEAD"===t.method?null:ze(n(e.response),o),r))},c.onerror=function(e){o(tt("error",e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))},c.onheaders=function(e){u(tt("headers",e.status,null,e.getAllResponseHeaders()))},c.ontimeout=nt(o),c.onprogress=a,c.onabort=l,c}},ot=function(e,t,n,r,i,s,o,a,l,u,c){for(var h=[],d=c.chunkServer,f=c.chunkSize,p=c.chunkRetryDelays,m={serverId:c.chunkTransferId,aborted:!1},_=t.ondata||function(e){return e},y=t.onload||function(e,t){return"HEAD"===t?e.getResponseHeader("Upload-Offset"):e.response},g=t.onerror||function(e){return null},E=Math.floor(r.size/f),v=0;v<=E;v++){var T=v*f,I=r.slice(T,T+f,"application/offset+octet-stream");h[v]={index:v,size:I.size,offset:T,data:I,file:r,progress:0,retries:ae(p),status:0,error:null,request:null,timeout:null}}var b,w,S,O,R=function(e){return 0===e.status||3===e.status},D=function(t){if(!m.aborted)if(t=t||h.find(R)){t.status=2,t.progress=null;var n=d.ondata||function(e){return e},i=d.onerror||function(e){return null},a=it(e,d.url,m.serverId),u="function"==typeof d.headers?d.headers(t):Object.assign({},d.headers,{"Content-Type":"application/offset+octet-stream","Upload-Offset":t.offset,"Upload-Length":r.size,"Upload-Name":r.name}),c=t.request=et(n(t.data),a,Object.assign({},d,{headers:u}));c.onload=function(){t.status=1,t.request=null,P()},c.onprogress=function(e,n,r){t.progress=e?n:null,C()},c.onerror=function(e){t.status=3,t.request=null,t.error=i(e.response)||e.statusText,A(t)||o(tt("error",e.status,i(e.response)||e.statusText,e.getAllResponseHeaders()))},c.ontimeout=function(e){t.status=3,t.request=null,A(t)||nt(o)(e)},c.onabort=function(){t.status=0,t.request=null,l()}}else h.every((function(e){return 1===e.status}))&&s(m.serverId)},A=function(e){return 0!==e.retries.length&&(e.status=4,clearTimeout(e.timeout),e.timeout=setTimeout((function(){D(e)}),e.retries.shift()),!0)},C=function(){var e=h.reduce((function(e,t){return null===e||null===t.progress?null:e+t.progress}),0);if(null===e)return a(!1,0,0);var t=h.reduce((function(e,t){return e+t.size}),0);a(!0,e,t)},P=function(){h.filter((function(e){return 2===e.status})).length>=1||D()};return m.serverId?(b=function(e){m.aborted||(h.filter((function(t){return t.offset<e})).forEach((function(e){e.status=1,e.progress=e.size})),P())},w=it(e,d.url,m.serverId),S={headers:"function"==typeof t.headers?t.headers(m.serverId):Object.assign({},t.headers),method:"HEAD"},(O=et(null,w,S)).onload=function(e){return b(y(e,S.method))},O.onerror=function(e){return o(tt("error",e.status,g(e.response)||e.statusText,e.getAllResponseHeaders()))},O.ontimeout=nt(o)):function(s){var a=new FormData;Y(i)&&a.append(n,JSON.stringify(i));var l="function"==typeof t.headers?t.headers(r,i):Object.assign({},t.headers,{"Upload-Length":r.size}),c=Object.assign({},t,{headers:l}),h=et(_(a),it(e,t.url),c);h.onload=function(e){return t=y(e,c.method),void(m.aborted||(u(t),m.serverId=t,P()));var t},h.onerror=function(e){return o(tt("error",e.status,g(e.response)||e.statusText,e.getAllResponseHeaders()))},h.ontimeout=nt(o)}(),{abort:function(){m.aborted=!0,h.forEach((function(e){clearTimeout(e.timeout),e.request&&e.request.abort()}))}}},at=function(e,t,n,r){return function(i,s,o,a,l,u,c){if(i){var h=r.chunkUploads;if(i instanceof Blob&&h&&(h&&i.size>r.chunkSize||r.chunkForce))return ot(e,t,n,i,s,o,a,l,u,c,r);var d=t.ondata||function(e){return e},f=t.onload||function(e){return e},p=t.onerror||function(e){return null},m=new FormData;Y(s)&&m.append(n,JSON.stringify(s)),(i instanceof Blob?[{name:null,file:i}]:i).forEach((function(e){m.append(n,e.file,null===e.name?e.file.name:""+e.name+e.file.name)}));var _=et(d(m),it(e,t.url),t);return _.onload=function(e){o(tt("load",e.status,f(e.response),e.getAllResponseHeaders()))},_.onerror=function(e){a(tt("error",e.status,p(e.response)||e.statusText,e.getAllResponseHeaders()))},_.ontimeout=nt(a),_.onprogress=l,_.onabort=u,_}}},lt=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0;if("function"==typeof t)return t;if(!t||!j(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,s,o){var a=et(i,e+t.url,t);return a.onload=function(e){s(tt("load",e.status,n(e.response),e.getAllResponseHeaders()))},a.onerror=function(e){o(tt("error",e.status,r(e.response)||e.statusText,e.getAllResponseHeaders()))},a.ontimeout=nt(o),a}},ut=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)},ct=function(e){return e.substr(0,e.lastIndexOf("."))||e},ht=function(e){var t=[e.name,e.size,e.type];return e instanceof Blob||je(e)?t[0]=e.name||He():je(e)?(t[1]=e.length,t[2]=Ye(e)):j(e)&&(t[0]=Ve(e),t[1]=0,t[2]="application/octet-stream"),{name:t[0],size:t[1],type:t[2]}},dt=function(e){return!!(e instanceof File||e instanceof Blob&&e.name)},ft=function e(t){if(!Y(t))return t;var n=M(t)?[]:{};for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];n[r]=i&&Y(i)?e(i):i}return n},pt=function(e,t){var n=function(e,t){return L(t)?0:j(t)?e.findIndex((function(e){return e.id===t})):-1}(e,t);if(!(n<0))return e[n]||null},mt=function(e,t,n,r,i,s){var o=et(null,e,{method:"GET",responseType:"blob"});return o.onload=function(n){var r=n.getAllResponseHeaders(),i=Xe(r).name||Ve(e);t(tt("load",n.status,ze(n.response,i),r))},o.onerror=function(e){n(tt("error",e.status,e.statusText,e.getAllResponseHeaders()))},o.onheaders=function(e){s(tt("headers",e.status,null,e.getAllResponseHeaders()))},o.ontimeout=nt(n),o.onprogress=r,o.onabort=i,o},_t=function(e){return 0===e.indexOf("//")&&(e=location.protocol+e),e.toLowerCase().replace("blob:","").replace(/([a-z])?:\/\//,"$1").split("/")[0]},yt=function(e){return function(){return z(e)?e.apply(void 0,arguments):e}},gt=function(e,t){clearTimeout(t.listUpdateTimeout),t.listUpdateTimeout=setTimeout((function(){e("DID_UPDATE_ITEMS",{items:Ae(t.items)})}),0)},Et=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new Promise((function(t){if(!e)return t(!0);var r=e.apply(void 0,n);return null==r?t(!0):"boolean"==typeof r?t(r):void("function"==typeof r.then&&r.then(t))}))},vt=function(e,t){e.items.sort((function(e,n){return t(pe(e),pe(n))}))},Tt=function(e,t){return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.query,i=n.success,s=void 0===i?function(){}:i,o=n.failure,a=void 0===o?function(){}:o,l=oe(n,["query","success","failure"]),u=Re(e.items,r);u?t(u,s,a,l||{}):a({error:tt("error",0,"Item not found"),file:null})}},It=function(e,t,n){return{ABORT_ALL:function(){Ae(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}})),s=Ae(n.items);s.forEach((function(t){i.find((function(e){return e.source===t.source||e.source===t.file}))||e("REMOVE_ITEM",{query:t,remove:!1})})),s=Ae(n.items),i.forEach((function(t,n){s.find((function(e){return e.source===t.source||e.file===t.source}))||e("ADD_ITEM",Object.assign({},t,{interactionMethod:5,index:n}))}))},DID_UPDATE_ITEM_METADATA:function(r){var i=r.id;clearTimeout(n.itemUpdateTimeout),n.itemUpdateTimeout=setTimeout((function(){var r,s=pt(n.items,i);if(t("IS_ASYNC")){var o=function(){setTimeout((function(){e("REQUEST_ITEM_PROCESSING",{query:i})}),32)};return s.status===_e.PROCESSING_COMPLETE?(r=n.options.instantUpload,void s.revert(lt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(r?o:function(){}).catch((function(){}))):s.status===_e.PROCESSING?function(e){s.abortProcessing().then(e?o:function(){})}(n.options.instantUpload):void(n.options.instantUpload&&o())}Ie("SHOULD_PREPARE_OUTPUT",!1,{item:s,query:t}).then((function(t){t&&e("REQUEST_PREPARE_OUTPUT",{query:i,item:s,success:function(t){e("DID_PREPARE_OUTPUT",{id:i,file:t})}},!0)}))}),0)},MOVE_ITEM:function(e){var t=e.index,r=Re(n.items,e.query);if(r){var i=n.items.indexOf(r);i!==(t=Ge(t,0,n.items.length-1))&&n.items.splice(t,0,n.items.splice(i,1)[0])}},SORT:function(r){vt(n,r.compare),e("DID_SORT_ITEMS",{items:t("GET_ACTIVE_ITEMS")})},ADD_ITEMS:function(n){var r=n.items,i=n.index,s=n.interactionMethod,o=n.success,a=void 0===o?function(){}:o,l=n.failure,u=void 0===l?function(){}:l,c=i;if(-1===i||void 0===i){var h=t("GET_ITEM_INSERT_LOCATION"),d=t("GET_TOTAL_ITEMS");c="before"===h?0:d}var f=t("GET_IGNORED_FILES"),p=r.filter((function(e){return dt(e)?!f.includes(e.name.toLowerCase()):!L(e)})).map((function(t){return new Promise((function(n,r){e("ADD_ITEM",{interactionMethod:s,source:t.source||t,success:n,failure:r,index:c++,options:t.options||{}})}))}));Promise.all(p).then(a).catch(u)},ADD_ITEM:function(r){var s=r.source,o=r.index,a=void 0===o?-1:o,l=r.interactionMethod,u=r.success,c=void 0===u?function(){}:u,h=r.failure,d=void 0===h?function(){}:h,f=r.options,p=void 0===f?{}:f;if(L(s))d({error:tt("error",0,"No source"),file:null});else if(!dt(s)||!n.options.ignoredFiles.includes(s.name.toLowerCase())){if(!function(e){var t=Ae(e.items).length;if(!e.options.allowMultiple)return 0===t;var n=e.options.maxFiles;return null===n||t<n}(n)){if(n.options.allowMultiple||!n.options.allowMultiple&&!n.options.allowReplace){var m=tt("warning",0,"Max files");return e("DID_THROW_MAX_FILES",{source:s,error:m}),void d({error:m,file:null})}var _=Ae(n.items)[0];if(_.status===_e.PROCESSING_COMPLETE||_.status===_e.PROCESSING_REVERT_ERROR){var y=t("GET_FORCE_REVERT");if(_.revert(lt(n.options.server.url,n.options.server.revert),y).then((function(){y&&e("ADD_ITEM",{source:s,index:a,interactionMethod:l,success:c,failure:d,options:p})})).catch((function(){})),y)return}e("REMOVE_ITEM",{query:_.id})}var g="local"===p.type?ye.LOCAL:"limbo"===p.type?ye.LIMBO:ye.INPUT,E=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=re(),s={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,a={},l=function(e){return s.status=e},u=function(e){if(!s.released&&!s.frozen){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];d.fire.apply(d,[e].concat(n))}},c=function e(t,n){if(s.processingAborted)s.processingAborted=!1;else if(l(_e.PROCESSING),o=null,s.file instanceof Blob){t.on("load",(function(e){s.transferId=null,s.serverFileReference=e})),t.on("transfer",(function(e){s.transferId=e})),t.on("load-perceived",(function(e){s.activeProcessor=null,s.transferId=null,s.serverFileReference=e,l(_e.PROCESSING_COMPLETE),u("process-complete",e)})),t.on("start",(function(){u("process-start")})),t.on("error",(function(e){s.activeProcessor=null,l(_e.PROCESSING_ERROR),u("process-error",e)})),t.on("abort",(function(e){s.activeProcessor=null,s.transferId=null,s.serverFileReference=e,l(_e.IDLE),u("process-abort"),o&&o()})),t.on("progress",(function(e){u("process-progress",e)}));var r=console.error;n(s.file,(function(e){s.archived||t.process(e,Object.assign({},a))}),r),s.activeProcessor=t}else d.on("load",(function(){e(t,n)}))},h=function(e,t,n){var r=e.split("."),i=r[0],s=r.pop(),o=a;r.forEach((function(e){return o=o[e]})),JSON.stringify(o[s])!==JSON.stringify(t)&&(o[s]=t,n||u("metadata-update",{key:i,value:a[i]}))},d=Object.assign({id:{get:function(){return r}},origin:{get:function(){return e}},serverId:{get:function(){return s.serverFileReference}},transferId:{get:function(){return s.transferId}},status:{get:function(){return s.status}},filename:{get:function(){return s.file.name}},filenameWithoutExtension:{get:function(){return ct(s.file.name)}},fileExtension:{get:function(){return Be(s.file.name)}},fileType:{get:function(){return s.file.type}},fileSize:{get:function(){return s.file.size}},file:{get:function(){return s.file}},relativePath:{get:function(){return s.file._relativePath}},source:{get:function(){return s.source}},getMetadata:function(e){return ft(e?a[e]:a)},setMetadata:function(e,t,n){if(Y(e)){var r=e;return Object.keys(r).forEach((function(e){h(e,r[e],t)})),e}return h(e,t,n),t},extend:function(e,t){return f[e]=t},abortLoad:function(){s.activeLoader?s.activeLoader.abort():(l(_e.INIT),u("load-abort"))},retryLoad:function(){s.activeLoader&&s.activeLoader.load()},requestProcessing:function(){s.processingAborted=!1,l(_e.PROCESSING_QUEUED)},abortProcessing:function(){return new Promise((function(e){if(!s.activeProcessor)return s.processingAborted=!0,l(_e.IDLE),u("process-abort"),void e();o=function(){e()},s.activeProcessor.abort()}))},load:function(t,n,r){s.source=t,d.fireSync("init"),s.file?d.fireSync("load-skip"):(s.file=ht(t),n.on("init",(function(){u("load-init")})),n.on("meta",(function(t){s.file.size=t.size,s.file.filename=t.filename,t.source&&(e=ye.LIMBO,s.serverFileReference=t.source,s.status=_e.PROCESSING_COMPLETE),u("load-meta")})),n.on("progress",(function(e){l(_e.LOADING),u("load-progress",e)})),n.on("error",(function(e){l(_e.LOAD_ERROR),u("load-request-error",e)})),n.on("abort",(function(){l(_e.INIT),u("load-abort")})),n.on("load",(function(t){s.activeLoader=null;var n=function(t){s.file=dt(t)?t:s.file,l(e===ye.LIMBO&&s.serverFileReference?_e.PROCESSING_COMPLETE:_e.IDLE),u("load")};s.serverFileReference?n(t):r(t,n,(function(e){s.file=t,u("load-meta"),l(_e.LOAD_ERROR),u("load-file-error",e)}))})),n.setSource(t),s.activeLoader=n,n.load())},process:c,revert:function(e,t){return new Promise((function(n,r){null!==s.serverFileReference?(e(s.serverFileReference,(function(){s.serverFileReference=null,n()}),(function(e){t?(l(_e.PROCESSING_REVERT_ERROR),u("process-revert-error"),r(e)):n()})),l(_e.IDLE),u("process-revert")):n()}))}},he(),{freeze:function(){return s.frozen=!0},release:function(){return s.released=!0},released:{get:function(){return s.released}},archive:function(){return s.archived=!0},archived:{get:function(){return s.archived}}}),f=i(d);return f}(g,g===ye.INPUT?null:s,p.file);Object.keys(p.metadata||{}).forEach((function(e){E.setMetadata(e,p.metadata[e])})),be("DID_CREATE_ITEM",E,{query:t,dispatch:e});var v=t("GET_ITEM_INSERT_LOCATION");n.options.itemInsertLocationFreedom||(a="before"===v?-1:n.items.length),function(e,t,n){L(t)||(void 0===n?e.push(t):function(e,t,n){e.splice(t,0,n)}(e,n=Ge(n,0,e.length),t))}(n.items,E,a),z(v)&&s&&vt(n,v);var T=E.id;E.on("init",(function(){e("DID_INIT_ITEM",{id:T})})),E.on("load-init",(function(){e("DID_START_ITEM_LOAD",{id:T})})),E.on("load-meta",(function(){e("DID_UPDATE_ITEM_META",{id:T})})),E.on("load-progress",(function(t){e("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:T,progress:t})})),E.on("load-request-error",(function(t){var r=yt(n.options.labelFileLoadError)(t);if(t.code>=400&&t.code<500)return e("DID_THROW_ITEM_INVALID",{id:T,error:t,status:{main:r,sub:t.code+" ("+t.body+")"}}),void d({error:t,file:pe(E)});e("DID_THROW_ITEM_LOAD_ERROR",{id:T,error:t,status:{main:r,sub:n.options.labelTapToRetry}})})),E.on("load-file-error",(function(t){e("DID_THROW_ITEM_INVALID",{id:T,error:t.status,status:t.status}),d({error:t.status,file:pe(E)})})),E.on("load-abort",(function(){e("REMOVE_ITEM",{query:T})})),E.on("load-skip",(function(){e("COMPLETE_LOAD_ITEM",{query:T,item:E,data:{source:s,success:c}})})),E.on("load",(function(){var r=function(r){r?(E.on("metadata-update",(function(t){e("DID_UPDATE_ITEM_METADATA",{id:T,change:t})})),Ie("SHOULD_PREPARE_OUTPUT",!1,{item:E,query:t}).then((function(t){var r=function(){e("COMPLETE_LOAD_ITEM",{query:T,item:E,data:{source:s,success:c}}),gt(e,n)};t?e("REQUEST_PREPARE_OUTPUT",{query:T,item:E,success:function(t){e("DID_PREPARE_OUTPUT",{id:T,file:t}),r()}},!0):r()}))):e("REMOVE_ITEM",{query:T})};Ie("DID_LOAD_ITEM",E,{query:t,dispatch:e}).then((function(){Et(t("GET_BEFORE_ADD_FILE"),pe(E)).then(r)})).catch((function(){r(!1)}))})),E.on("process-start",(function(){e("DID_START_ITEM_PROCESSING",{id:T})})),E.on("process-progress",(function(t){e("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:T,progress:t})})),E.on("process-error",(function(t){e("DID_THROW_ITEM_PROCESSING_ERROR",{id:T,error:t,status:{main:yt(n.options.labelFileProcessingError)(t),sub:n.options.labelTapToRetry}})})),E.on("process-revert-error",(function(t){e("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:T,error:t,status:{main:yt(n.options.labelFileProcessingRevertError)(t),sub:n.options.labelTapToRetry}})})),E.on("process-complete",(function(t){e("DID_COMPLETE_ITEM_PROCESSING",{id:T,error:null,serverFileReference:t}),e("DID_DEFINE_VALUE",{id:T,value:t})})),E.on("process-abort",(function(){e("DID_ABORT_ITEM_PROCESSING",{id:T})})),E.on("process-revert",(function(){e("DID_REVERT_ITEM_PROCESSING",{id:T}),e("DID_DEFINE_VALUE",{id:T,value:null})})),e("DID_ADD_ITEM",{id:T,index:a,interactionMethod:l}),gt(e,n);var I=n.options.server||{},b=I.url,w=I.load,S=I.restore,O=I.fetch;E.load(s,Ke(g===ye.INPUT?j(s)&&function(e){return(e.indexOf(":")>-1||e.indexOf("//")>-1)&&_t(location.href)!==_t(e)}(s)&&O?st(b,O):mt:st(b,g===ye.LIMBO?S:w)),(function(e,n,r){Ie("LOAD_FILE",e,{query:t}).then(n).catch(r)}))}},REQUEST_PREPARE_OUTPUT:function(e){var n=e.item,r=e.success,i=e.failure,s=void 0===i?function(){}:i,o={error:tt("error",0,"Item not found"),file:null};if(n.archived)return s(o);Ie("PREPARE_OUTPUT",n.file,{query:t,item:n}).then((function(e){Ie("COMPLETE_PREPARE_OUTPUT",e,{query:t,item:n}).then((function(e){if(n.archived)return s(o);r(e)}))}))},COMPLETE_LOAD_ITEM:function(r){var i=r.item,s=r.data,o=s.success,a=s.source,l=t("GET_ITEM_INSERT_LOCATION");if(z(l)&&a&&vt(n,l),e("DID_LOAD_ITEM",{id:i.id,error:null,serverFileReference:i.origin===ye.INPUT?null:a}),o(pe(i)),i.origin!==ye.LOCAL)return i.origin===ye.LIMBO?(e("DID_COMPLETE_ITEM_PROCESSING",{id:i.id,error:null,serverFileReference:a}),void e("DID_DEFINE_VALUE",{id:i.id,value:a})):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:Tt(n,(function(e){e.retryLoad()})),REQUEST_ITEM_PREPARE:Tt(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:Tt(n,(function(r,i,s){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:s},!0));else{var o=function(){return e("REQUEST_ITEM_PROCESSING",{query:r,success:i,failure:s})},a=function(){return document.hidden?o():setTimeout(o,32)};r.status===_e.PROCESSING_COMPLETE||r.status===_e.PROCESSING_REVERT_ERROR?r.revert(lt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then(a).catch((function(){})):r.status===_e.PROCESSING&&r.abortProcessing().then(a)}})),PROCESS_ITEM:Tt(n,(function(r,i,s){var o=t("GET_MAX_PARALLEL_UPLOADS");if(t("GET_ITEMS_BY_STATUS",_e.PROCESSING).length!==o){if(r.status!==_e.PROCESSING){var a=function t(){var r=n.processingQueue.shift();if(r){var i=r.id,s=r.success,o=r.failure,a=Re(n.items,i);a&&!a.archived?e("PROCESS_ITEM",{query:i,success:s,failure:o},!0):t()}};r.onOnce("process-complete",(function(){i(pe(r)),a(),t("GET_ITEMS_BY_STATUS",_e.PROCESSING_COMPLETE).length===n.items.length&&e("DID_COMPLETE_ITEM_PROCESSING_ALL")})),r.onOnce("process-error",(function(e){s({error:e,file:pe(r)}),a()}));var l=n.options;r.process(function(e){var t={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},n=function(){t.request&&(t.perceivedPerformanceUpdater.clear(),t.request.abort&&t.request.abort(),t.complete=!0)},r=Object.assign({},he(),{process:function(n,i){var s=function(){0!==t.duration&&null!==t.progress&&r.fire("progress",r.getProgress())},o=function(){t.complete=!0,r.fire("load-perceived",t.response.body)};r.fire("start"),t.timestamp=Date.now(),t.perceivedPerformanceUpdater=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,s=Date.now();return function o(){var a=Date.now()-s,l=ut(n,r);a+l>t&&(l=a+l-t);var u=a/t;u>=1||document.hidden?e(1):(e(u),i=setTimeout(o,l))}(),{clear:function(){clearTimeout(i)}}}((function(e){t.perceivedProgress=e,t.perceivedDuration=Date.now()-t.timestamp,s(),t.response&&1===t.perceivedProgress&&!t.complete&&o()}),ut(750,1500)),t.request=e(n,i,(function(e){t.response=Y(e)?e:{type:"load",code:200,body:""+e,headers:{}},t.duration=Date.now()-t.timestamp,t.progress=1,r.fire("load",t.response.body),1===t.perceivedProgress&&o()}),(function(e){t.perceivedPerformanceUpdater.clear(),r.fire("error",Y(e)?e:{type:"error",code:0,body:""+e})}),(function(e,n,r){t.duration=Date.now()-t.timestamp,t.progress=e?n/r:null,s()}),(function(){t.perceivedPerformanceUpdater.clear(),r.fire("abort",t.response?t.response.body:null)}),(function(e){r.fire("transfer",e)}))},abort:n,getProgress:function(){return t.progress?Math.min(t.progress,t.perceivedProgress):null},getDuration:function(){return Math.min(t.duration,t.perceivedDuration)},reset:function(){n(),t.complete=!1,t.perceivedProgress=0,t.progress=0,t.timestamp=null,t.perceivedDuration=0,t.duration=0,t.request=null,t.response=null}});return r}(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),s=0;s<e;s++)i[s]=arguments[s];return t.apply(void 0,[n].concat(i,[r]))}:t&&j(t.url)?at(e,t,n,r):null}(l.server.url,l.server.process,l.name,{chunkTransferId:r.transferId,chunkServer:l.server.patch,chunkUploads:l.chunkUploads,chunkForce:l.chunkForce,chunkSize:l.chunkSize,chunkRetryDelays:l.chunkRetryDelays})),(function(n,i,s){Ie("PREPARE_OUTPUT",n,{query:t,item:r}).then((function(t){e("DID_PREPARE_OUTPUT",{id:r.id,file:t}),i(t)})).catch(s)}))}}else n.processingQueue.push({id:r.id,success:i,failure:s})})),RETRY_ITEM_PROCESSING:Tt(n,(function(t){e("REQUEST_ITEM_PROCESSING",{query:t})})),REQUEST_REMOVE_ITEM:Tt(n,(function(n){Et(t("GET_BEFORE_REMOVE_FILE"),pe(n)).then((function(t){t&&e("REMOVE_ITEM",{query:n})}))})),RELEASE_ITEM:Tt(n,(function(e){e.release()})),REMOVE_ITEM:Tt(n,(function(r,i,s,o){var a=function(){var t=r.id;pt(n.items,t).archive(),e("DID_REMOVE_ITEM",{error:null,id:t,item:r}),gt(e,n),i(pe(r))},l=n.options.server;r.origin===ye.LOCAL&&l&&z(l.remove)&&!1!==o.remove?(e("DID_START_ITEM_REMOVE",{id:r.id}),l.remove(r.source,(function(){return a()}),(function(t){e("DID_THROW_ITEM_REMOVE_ERROR",{id:r.id,error:tt("error",0,t,null),status:{main:yt(n.options.labelFileRemoveError)(t),sub:n.options.labelTapToRetry}})}))):(o.revert&&r.origin!==ye.LOCAL&&null!==r.serverId&&r.revert(lt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")),a())})),ABORT_ITEM_LOAD:Tt(n,(function(e){e.abortLoad()})),ABORT_ITEM_PROCESSING:Tt(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:Tt(n,(function(r){if(n.options.instantUpload){var i=function(t){t&&e("REVERT_ITEM_PROCESSING",{query:r})},s=t("GET_BEFORE_REMOVE_FILE");if(!s)return i(!0);var o=s(pe(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:Tt(n,(function(r){r.revert(lt(n.options.server.url,n.options.server.revert),t("GET_FORCE_REVERT")).then((function(){(n.options.instantUpload||function(e){return!dt(e.file)}(r))&&e("REMOVE_ITEM",{query:r.id})})).catch((function(){}))})),SET_OPTIONS:function(t){r(t.options,(function(t,n){e("SET_"+J(t,"_").toUpperCase(),{value:n})}))}}},bt=function(e){return document.createElement(e)},wt=function(e,t){var n=e.childNodes[0];n?t!==n.nodeValue&&(n.nodeValue=t):(n=document.createTextNode(t),e.appendChild(n))},St=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)}},Ot=A({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:function(e){var t=e.root,n=e.props;n.spin=!1,n.progress=0,n.opacity=0;var r=u("svg");t.ref.path=u("path",{"stroke-width":2,"stroke-linecap":"round"}),r.appendChild(t.ref.path),t.ref.svg=r,t.appendChild(r)},write:function(e){var t,n,r,i=e.root,o=e.props;if(0!==o.opacity){o.align&&(i.element.dataset.align=o.align);var a=parseInt(s(i.ref.path,"stroke-width"),10),l=.5*i.rect.element.width,u=0,c=0;o.spin?(u=0,c=.5):(u=0,c=o.progress);var h=(r=1,(n=c)>(t=u)&&n-t<=.5&&(r=0),t>n&&t-n>=.5&&(r=0),function(e,t,n,r,i,s){var o=St(e,t,n,i),a=St(e,t,n,r);return["M",o.x,o.y,"A",n,n,0,s,0,a.x,a.y].join(" ")}(l,l,l-a,360*Math.min(.9999,t),360*Math.min(.9999,n),r));s(i.ref.path,"d",h),s(i.ref.path,"stroke-opacity",o.spin||o.progress>0?1:0)}},mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),Rt=A({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:function(e){var t=e.props;e.root.element.innerHTML=(t.icon||"")+"<span>"+t.label+"</span>",t.isDisabled=!1},write: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,s(t.element,"disabled","disabled")):!i&&r&&(n.isDisabled=!1,t.element.removeAttribute("disabled"))}}),Dt=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".";return(e=Math.round(Math.abs(e)))<1e3?e+" bytes":e<Ct?Math.floor(e/At)+" KB":e<Pt?Nt(e/Ct,1,t)+" MB":Nt(e/Pt,2,t)+" GB"},At=1e3,Ct=1e6,Pt=1e9,Nt=function(e,t,n){return e.toFixed(t).split(".").filter((function(e){return"0"!==e})).join(n)},Mt=function(e){var t=e.root,n=e.props;wt(t.ref.fileSize,Dt(t.query("GET_ITEM_SIZE",n.id))),wt(t.ref.fileName,t.query("GET_ITEM_NAME",n.id))},Lt=function(e){var t=e.root;U(t.query("GET_ITEM_SIZE",e.props.id))||wt(t.ref.fileSize,t.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"))},xt=A({name:"file-info",ignoreRect:!0,ignoreRectUpdate:!0,write:C({DID_LOAD_ITEM:Mt,DID_UPDATE_ITEM_META:Mt,DID_THROW_ITEM_LOAD_ERROR:Lt,DID_THROW_ITEM_INVALID:Lt}),didCreateView:function(e){be("CREATE_VIEW",Object.assign({},e,{view:e}))},create:function(e){var t=e.root,n=e.props,r=bt("span");r.className="filepond--file-info-main",s(r,"aria-hidden","true"),t.appendChild(r),t.ref.fileName=r;var i=bt("span");i.className="filepond--file-info-sub",t.appendChild(i),t.ref.fileSize=i,wt(i,t.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),wt(r,t.query("GET_ITEM_NAME",n.id))},mixins:{styles:["translateX","translateY"],animations:{translateX:"spring",translateY:"spring"}}}),kt=function(e){return Math.round(100*e)},Ft=function(e){var t=e.root,n=e.action,r=null===n.progress?t.query("GET_LABEL_FILE_LOADING"):t.query("GET_LABEL_FILE_LOADING")+" "+kt(n.progress)+"%";wt(t.ref.main,r),wt(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},Gt=function(e){var t=e.root;wt(t.ref.main,""),wt(t.ref.sub,"")},jt=function(e){var t=e.root,n=e.action;wt(t.ref.main,n.status.main),wt(t.ref.sub,n.status.sub)},Vt=A({name:"file-status",ignoreRect:!0,ignoreRectUpdate:!0,write:C({DID_LOAD_ITEM:Gt,DID_REVERT_ITEM_PROCESSING:Gt,DID_REQUEST_ITEM_PROCESSING:function(e){var t=e.root;wt(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING")),wt(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},DID_ABORT_ITEM_PROCESSING:function(e){var t=e.root;wt(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_ABORTED")),wt(t.ref.sub,t.query("GET_LABEL_TAP_TO_RETRY"))},DID_COMPLETE_ITEM_PROCESSING:function(e){var t=e.root;wt(t.ref.main,t.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),wt(t.ref.sub,t.query("GET_LABEL_TAP_TO_UNDO"))},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(e){var t=e.root,n=e.action,r=null===n.progress?t.query("GET_LABEL_FILE_PROCESSING"):t.query("GET_LABEL_FILE_PROCESSING")+" "+kt(n.progress)+"%";wt(t.ref.main,r),wt(t.ref.sub,t.query("GET_LABEL_TAP_TO_CANCEL"))},DID_UPDATE_ITEM_LOAD_PROGRESS:Ft,DID_THROW_ITEM_LOAD_ERROR:jt,DID_THROW_ITEM_INVALID:jt,DID_THROW_ITEM_PROCESSING_ERROR:jt,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:jt,DID_THROW_ITEM_REMOVE_ERROR:jt}),didCreateView:function(e){be("CREATE_VIEW",Object.assign({},e,{view:e}))},create:function(e){var t=e.root,n=bt("span");n.className="filepond--file-status-main",t.appendChild(n),t.ref.main=n;var r=bt("span");r.className="filepond--file-status-sub",t.appendChild(r),t.ref.sub=r,Ft({root:t,action:{progress:null}})},mixins:{styles:["translateX","translateY","opacity"],animations:{opacity:{type:"tween",duration:250},translateX:"spring",translateY:"spring"}}}),Bt={AbortItemLoad:{label:"GET_LABEL_BUTTON_ABORT_ITEM_LOAD",action:"ABORT_ITEM_LOAD",className:"filepond--action-abort-item-load",align:"LOAD_INDICATOR_POSITION"},RetryItemLoad:{label:"GET_LABEL_BUTTON_RETRY_ITEM_LOAD",action:"RETRY_ITEM_LOAD",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-load",align:"BUTTON_PROCESS_ITEM_POSITION"},RemoveItem:{label:"GET_LABEL_BUTTON_REMOVE_ITEM",action:"REQUEST_REMOVE_ITEM",icon:"GET_ICON_REMOVE",className:"filepond--action-remove-item",align:"BUTTON_REMOVE_ITEM_POSITION"},ProcessItem:{label:"GET_LABEL_BUTTON_PROCESS_ITEM",action:"REQUEST_ITEM_PROCESSING",icon:"GET_ICON_PROCESS",className:"filepond--action-process-item",align:"BUTTON_PROCESS_ITEM_POSITION"},AbortItemProcessing:{label:"GET_LABEL_BUTTON_ABORT_ITEM_PROCESSING",action:"ABORT_ITEM_PROCESSING",className:"filepond--action-abort-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RetryItemProcessing:{label:"GET_LABEL_BUTTON_RETRY_ITEM_PROCESSING",action:"RETRY_ITEM_PROCESSING",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RevertItemProcessing:{label:"GET_LABEL_BUTTON_UNDO_ITEM_PROCESSING",action:"REQUEST_REVERT_ITEM_PROCESSING",icon:"GET_ICON_UNDO",className:"filepond--action-revert-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"}},qt=[];r(Bt,(function(e){qt.push(e)}));var Ut,Ht=function(e){var t=e.ref.buttonRemoveItem.rect.element;return t.hidden?null:t.width+t.left},zt=function(e){return e.ref.buttonAbortItemLoad.rect.element.width},Wt=function(e){return Math.floor(e.ref.buttonRemoveItem.rect.element.height/4)},Yt=function(e){return Math.floor(e.ref.buttonRemoveItem.rect.element.left/2)},$t=function(e){return e.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION")},Qt={buttonAbortItemLoad:{opacity:0},buttonRetryItemLoad:{opacity:0},buttonRemoveItem:{opacity:0},buttonProcessItem:{opacity:0},buttonAbortItemProcessing:{opacity:0},buttonRetryItemProcessing:{opacity:0},buttonRevertItemProcessing:{opacity:0},loadProgressIndicator:{opacity:0,align:function(e){return e.query("GET_STYLE_LOAD_INDICATOR_POSITION")}},processProgressIndicator:{opacity:0,align:function(e){return e.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}},processingCompleteIndicator:{opacity:0,scaleX:.75,scaleY:.75},info:{translateX:0,translateY:0,opacity:0},status:{translateX:0,translateY:0,opacity:0}},Zt={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Ht},status:{translateX:Ht}},Xt={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},Kt={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:Ht},status:{translateX:Ht,opacity:1}},DID_START_ITEM_LOAD:{buttonAbortItemLoad:{opacity:1},loadProgressIndicator:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_LOAD_ERROR:{buttonRetryItemLoad:{opacity:1},buttonRemoveItem:{opacity:1},info:{translateX:Ht},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:$t},info:{translateX:Ht},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:$t},buttonRemoveItem:{opacity:1},info:{translateX:Ht},status:{opacity:1,translateX:Ht}},DID_LOAD_ITEM:Zt,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:Ht},status:{translateX:Ht}},DID_START_ITEM_PROCESSING:Xt,DID_REQUEST_ITEM_PROCESSING:Xt,DID_UPDATE_ITEM_PROCESS_PROGRESS:Xt,DID_COMPLETE_ITEM_PROCESSING:{buttonRevertItemProcessing:{opacity:1},info:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_PROCESSING_ERROR:{buttonRemoveItem:{opacity:1},buttonRetryItemProcessing:{opacity:1},status:{opacity:1},info:{translateX:Ht}},DID_THROW_ITEM_PROCESSING_REVERT_ERROR:{buttonRevertItemProcessing:{opacity:1},status:{opacity:1},info:{opacity:1}},DID_ABORT_ITEM_PROCESSING:{buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Ht},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:Zt},Jt=A({create:function(e){var t=e.root;t.element.innerHTML=t.query("GET_ICON_DONE")},name:"processing-complete-indicator",ignoreRect:!0,mixins:{styles:["scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",opacity:{type:"tween",duration:250}}}}),en=C({DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING:function(e){e.root.ref.buttonAbortItemProcessing.label=e.action.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_LOAD:function(e){e.root.ref.buttonAbortItemLoad.label=e.action.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_REMOVAL:function(e){e.root.ref.buttonAbortItemRemoval.label=e.action.value},DID_REQUEST_ITEM_PROCESSING:function(e){var t=e.root;t.ref.processProgressIndicator.spin=!0,t.ref.processProgressIndicator.progress=0},DID_START_ITEM_LOAD:function(e){var t=e.root;t.ref.loadProgressIndicator.spin=!0,t.ref.loadProgressIndicator.progress=0},DID_START_ITEM_REMOVE:function(e){var t=e.root;t.ref.processProgressIndicator.spin=!0,t.ref.processProgressIndicator.progress=0},DID_UPDATE_ITEM_LOAD_PROGRESS:function(e){var t=e.root,n=e.action;t.ref.loadProgressIndicator.spin=!1,t.ref.loadProgressIndicator.progress=n.progress},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(e){var t=e.root,n=e.action;t.ref.processProgressIndicator.spin=!1,t.ref.processProgressIndicator.progress=n.progress}}),tn=A({create:function(e){var t,n=e.root,i=e.props.id,s=n.query("GET_ALLOW_REVERT"),o=n.query("GET_ALLOW_REMOVE"),a=n.query("GET_ALLOW_PROCESS"),l=n.query("GET_INSTANT_UPLOAD"),u=n.query("IS_ASYNC"),c=n.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN");u?a&&!s?t=function(e){return!/RevertItemProcessing/.test(e)}:!a&&s?t=function(e){return!/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test(e)}:a||s||(t=function(e){return!/Process/.test(e)}):t=function(e){return!/Process/.test(e)};var h=t?qt.filter(t):qt.concat();if(l&&s&&(Bt.RevertItemProcessing.label="GET_LABEL_BUTTON_REMOVE_ITEM",Bt.RevertItemProcessing.icon="GET_ICON_REMOVE"),u&&!s){var d=Kt.DID_COMPLETE_ITEM_PROCESSING;d.info.translateX=Yt,d.info.translateY=Wt,d.status.translateY=Wt,d.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}if(u&&!a&&(["DID_START_ITEM_PROCESSING","DID_REQUEST_ITEM_PROCESSING","DID_UPDATE_ITEM_PROCESS_PROGRESS","DID_THROW_ITEM_PROCESSING_ERROR"].forEach((function(e){Kt[e].status.translateY=Wt})),Kt.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX=zt),c&&s){Bt.RevertItemProcessing.align="BUTTON_REMOVE_ITEM_POSITION";var f=Kt.DID_COMPLETE_ITEM_PROCESSING;f.info.translateX=Ht,f.status.translateY=Wt,f.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}o||(Bt.RemoveItem.disabled=!0),r(Bt,(function(e,t){var r=n.createChildView(Rt,{label:n.query(t.label),icon:n.query(t.icon),opacity:0});h.includes(e)&&n.appendChildView(r),t.disabled&&(r.element.setAttribute("disabled","disabled"),r.element.setAttribute("hidden","hidden")),r.element.dataset.align=n.query("GET_STYLE_"+t.align),r.element.classList.add(t.className),r.on("click",(function(e){e.stopPropagation(),t.disabled||n.dispatch(t.action,{query:i})})),n.ref["button"+e]=r})),n.ref.processingCompleteIndicator=n.appendChildView(n.createChildView(Jt)),n.ref.processingCompleteIndicator.element.dataset.align=n.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION"),n.ref.info=n.appendChildView(n.createChildView(xt,{id:i})),n.ref.status=n.appendChildView(n.createChildView(Vt,{id:i}));var p=n.appendChildView(n.createChildView(Ot,{opacity:0,align:n.query("GET_STYLE_LOAD_INDICATOR_POSITION")}));p.element.classList.add("filepond--load-indicator"),n.ref.loadProgressIndicator=p;var m=n.appendChildView(n.createChildView(Ot,{opacity:0,align:n.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}));m.element.classList.add("filepond--process-indicator"),n.ref.processProgressIndicator=m,n.ref.activeStyles=[]},write:function(e){var t=e.root,n=e.actions;en({root:t,actions:n,props:e.props});var i=n.concat().filter((function(e){return/^DID_/.test(e.type)})).reverse().find((function(e){return Kt[e.type]}));if(i){t.ref.activeStyles=[];var s=Kt[i.type];r(Qt,(function(e,n){var i=t.ref[e];r(n,(function(n,r){t.ref.activeStyles.push({control:i,key:n,value:s[e]&&void 0!==s[e][n]?s[e][n]:r})}))}))}t.ref.activeStyles.forEach((function(e){var n=e.value;e.control[e.key]="function"==typeof n?n(t):n}))},didCreateView:function(e){be("CREATE_VIEW",Object.assign({},e,{view:e}))},name:"file"}),nn=A({create:function(e){var t=e.root,n=e.props;t.ref.fileName=bt("legend"),t.appendChild(t.ref.fileName),t.ref.file=t.appendChildView(t.createChildView(tn,{id:n.id})),t.ref.data=!1},ignoreRect:!0,write:C({DID_LOAD_ITEM:function(e){var t=e.root;wt(t.ref.fileName,t.query("GET_ITEM_NAME",e.props.id))}}),didCreateView:function(e){be("CREATE_VIEW",Object.assign({},e,{view:e}))},tag:"fieldset",name:"file-wrapper"}),rn={type:"spring",damping:.6,mass:7},sn=A({name:"panel",write:function(e){var t=e.root,n=e.props;if(null!==t.ref.scalable&&n.scalable===t.ref.scalable||(t.ref.scalable=!F(n.scalable)||n.scalable,t.element.dataset.scalable=t.ref.scalable),n.height){var r=t.ref.top.rect.element,i=t.ref.bottom.rect.element,s=Math.max(r.height+i.height,n.height);t.ref.center.translateY=r.height,t.ref.center.scaleY=(s-r.height-i.height)/100,t.ref.bottom.translateY=s-i.height}},create:function(e){var t=e.root,n=e.props;[{name:"top"},{name:"center",props:{translateY:null,scaleY:null},mixins:{animations:{scaleY:rn},styles:["translateY","scaleY"]}},{name:"bottom",props:{translateY:null},mixins:{animations:{translateY:rn},styles:["translateY"]}}].forEach((function(e){!function(e,t,n){var r=A({name:"panel-"+t.name+" filepond--"+n,mixins:t.mixins,ignoreRectUpdate:!0}),i=e.createChildView(r,t.props);e.ref[t.name]=e.appendChildView(i)}(t,e,n.name)})),t.element.classList.add("filepond--"+n.name),t.ref.scalable=null},ignoreRect:!0,mixins:{apis:["height","scalable"]}}),on={type:"spring",stiffness:.75,damping:.45,mass:10},an="spring",ln={DID_START_ITEM_LOAD:"busy",DID_UPDATE_ITEM_LOAD_PROGRESS:"loading",DID_THROW_ITEM_INVALID:"load-invalid",DID_THROW_ITEM_LOAD_ERROR:"load-error",DID_LOAD_ITEM:"idle",DID_THROW_ITEM_REMOVE_ERROR:"remove-error",DID_START_ITEM_REMOVE:"busy",DID_START_ITEM_PROCESSING:"busy processing",DID_REQUEST_ITEM_PROCESSING:"busy processing",DID_UPDATE_ITEM_PROCESS_PROGRESS:"processing",DID_COMPLETE_ITEM_PROCESSING:"processing-complete",DID_THROW_ITEM_PROCESSING_ERROR:"processing-error",DID_THROW_ITEM_PROCESSING_REVERT_ERROR:"processing-revert-error",DID_ABORT_ITEM_PROCESSING:"cancelled",DID_REVERT_ITEM_PROCESSING:"idle"},un=C({DID_UPDATE_PANEL_HEIGHT:function(e){e.root.height=e.action.height}}),cn=C({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 s=n.concat().filter((function(e){return/^DID_/.test(e.type)})).reverse().find((function(e){return ln[e.type]}));s&&s.type!==r.currentState&&(r.currentState=s.type,t.element.dataset.filepondItemState=ln[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):(un({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})),hn=A({create:function(e){var t=e.root,n=e.props;t.ref.handleClick=function(e){return t.dispatch("DID_ACTIVATE_ITEM",{id:n.id})},t.element.id="filepond--item-"+n.id,t.element.addEventListener("click",t.ref.handleClick),t.ref.container=t.appendChildView(t.createChildView(nn,{id:n.id})),t.ref.panel=t.appendChildView(t.createChildView(sn,{name:"item-panel"})),t.ref.panel.height=null,n.markedForRemoval=!1,t.query("GET_ALLOW_REORDER")&&(t.element.dataset.dragState="idle",t.element.addEventListener("pointerdown",(function(e){if(e.isPrimary){var r=!1,i={x:e.pageX,y:e.pageY};n.dragOrigin={x:t.translateX,y:t.translateY},n.dragCenter={x:e.offsetX,y:e.offsetY};var s=(a=t.query("GET_ACTIVE_ITEMS"),l=a.map((function(e){return e.id})),u=void 0,{setIndex:function(e){u=e},getIndex:function(){return u},getItemIndex:function(e){return l.indexOf(e.id)}});t.dispatch("DID_GRAB_ITEM",{id:n.id,dragState:s});var o=function(e){e.isPrimary&&(e.stopPropagation(),e.preventDefault(),n.dragOffset={x:e.pageX-i.x,y:e.pageY-i.y},n.dragOffset.x*n.dragOffset.x+n.dragOffset.y*n.dragOffset.y>16&&!r&&(r=!0,t.element.removeEventListener("click",t.ref.handleClick)),t.dispatch("DID_DRAG_ITEM",{id:n.id,dragState:s}))};document.addEventListener("pointermove",o),document.addEventListener("pointerup",(function e(a){a.isPrimary&&(document.removeEventListener("pointermove",o),document.removeEventListener("pointerup",e),n.dragOffset={x:a.pageX-i.x,y:a.pageY-i.y},t.dispatch("DID_DROP_ITEM",{id:n.id,dragState:s}),r&&setTimeout((function(){return t.element.addEventListener("click",t.ref.handleClick)}),0))}))}var a,l,u})))},write:cn,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:an,scaleY:an,translateX:on,translateY:on,opacity:{type:"tween",duration:150}}}}),dn=function(e,t,n){if(n){var r=t.length,i=null;if(0===r||n.top<t[0].rect.element.top)return-1;var s=t[0].rect.element,o=s.width+(s.marginLeft+s.marginRight),a=Math.round(e.rect.element.width/o);if(1===a){for(var l=0;l<r;l++){var u=t[l];if(n.top<u.rect.outer.top+.5*u.rect.element.height)return l}return r}for(var c=s.height+(s.marginTop+s.marginBottom),h=0;h<r;h++){var d=h%a,f=Math.floor(h/a)*c;if(n.top<f+c+s.marginBottom&&n.top>f-s.marginTop){if(n.left<d*o+o)return h;i=h!==r-1?h:null}}return null!==i?i:r}},fn={height:0,width:0,get getHeight(){return this.height},set setHeight(e){0!==this.height&&0!==e||(this.height=e)},get getWidth(){return this.width},set setWidth(e){0!==this.width&&0!==e||(this.width=e)},setDimensions:function(e,t){0!==this.height&&0!==e||(this.height=e),0!==this.width&&0!==t||(this.width=t)}},pn=function(e,t,n){var r=arguments.length>3&&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&&mn(e,t,n,r,i),e.scaleX=1,e.scaleY=1,e.opacity=1))},mn=function(e,t,n,r,i){5===e.interactionMethod?(e.translateX=null,e.translateX=t,e.translateY=null,e.translateY=n):2===e.interactionMethod?(e.translateX=null,e.translateX=t-20*r,e.translateY=null,e.translateY=n-10*i,e.scaleX=.8,e.scaleY=.8):3===e.interactionMethod?(e.translateY=null,e.translateY=n-30):1===e.interactionMethod&&(e.translateX=null,e.translateX=t-30,e.translateY=null)},_n=function(e){return e.rect.element.height+.5*e.rect.element.marginBottom+.5*e.rect.element.marginTop},yn=C({DID_ADD_ITEM:function(e){var t=e.root,n=e.action,r=n.id,i=n.index,s=n.interactionMethod;t.ref.addIndex=i;var o=Date.now(),a=o,l=1;if(5!==s){l=0;var u=t.query("GET_ITEM_INSERT_INTERVAL"),c=o-t.ref.lastItemSpanwDate;a=c<u?o+(u-c):o}t.ref.lastItemSpanwDate=a,t.appendChildView(t.createChildView(hn,{spawnDate:a,id:r,opacity:l,interactionMethod:s}),i)},DID_REMOVE_ITEM:function(e){var t=e.action.id,n=e.root.childViews.find((function(e){return e.id===t}));n&&(n.scaleX=.9,n.scaleY=.9,n.opacity=0,n.markedForRemoval=!0)},DID_DRAG_ITEM:function(e){var t,n=e.root,r=e.action,i=r.id,s=r.dragState,o=n.query("GET_ITEM",{id:i}),a=n.childViews.find((function(e){return e.id===i})),l=n.childViews.length,u=s.getItemIndex(o);if(a){var c={x:a.dragOrigin.x+a.dragOffset.x+a.dragCenter.x,y:a.dragOrigin.y+a.dragOffset.y+a.dragCenter.y},h=_n(a),d=(t=a).rect.element.width+.5*t.rect.element.marginLeft+.5*t.rect.element.marginRight,f=Math.floor(n.rect.outer.width/d);f>l&&(f=l);var p=Math.floor(l/f+1);fn.setHeight=h*p,fn.setWidth=d*f;var m={y:Math.floor(c.y/h),x:Math.floor(c.x/d),getGridIndex:function(){return c.y>fn.getHeight||c.y<0||c.x>fn.getWidth||c.x<0?u:this.y*f+this.x},getColIndex:function(){for(var e=n.query("GET_ACTIVE_ITEMS"),t=n.childViews.filter((function(e){return e.rect.element.height})),r=e.map((function(e){return t.find((function(t){return t.id===e.id}))})),i=r.findIndex((function(e){return e===a})),s=_n(a),o=r.length,l=o,u=0,h=0,d=0,f=0;f<o;f++)if(u=_n(r[f]),c.y<(h=(d=h)+u)){if(i>f){if(c.y<d+s){l=f;break}continue}l=f;break}return l}},_=f>1?m.getGridIndex():m.getColIndex();n.dispatch("MOVE_ITEM",{query:a,index:_});var y=s.getIndex();if(void 0===y||y!==_){if(s.setIndex(_),void 0===y)return;n.dispatch("DID_REORDER_ITEMS",{items:n.query("GET_ACTIVE_ITEMS"),origin:u,target:_})}}}}),gn=A({create:function(e){var t=e.root;s(t.element,"role","list"),t.ref.lastItemSpanwDate=Date.now()},write:function(e){var t=e.root,n=e.props,r=e.shouldOptimize;yn({root:t,props:n,actions:e.actions});var i=n.dragCoordinates,s=t.rect.element.width,o=t.childViews.filter((function(e){return e.rect.element.height})),a=t.query("GET_ACTIVE_ITEMS").map((function(e){return o.find((function(t){return t.id===e.id}))})).filter((function(e){return e})),l=i?dn(t,a,i):null,u=t.ref.addIndex||null;t.ref.addIndex=null;var c=0,h=0,d=0;if(0!==a.length){var f=a[0].rect.element,p=f.marginTop+f.marginBottom,m=f.width+(f.marginLeft+f.marginRight),_=f.height+p,y=Math.round(s/m);if(1===y){var g=0,E=0;a.forEach((function(e,t){if(l){var n=t-l;E=-2===n?.25*-p:-1===n?.75*-p:0===n?.75*p:1===n?.25*p:0}r&&(e.translateX=null,e.translateY=null),e.markedForRemoval||pn(e,0,g+E),g+=(e.rect.element.height+p)*(e.markedForRemoval?e.opacity:1)}))}else{var v=0,T=0;a.forEach((function(e,t){t===l&&(c=1),t===u&&(d+=1),e.markedForRemoval&&e.opacity<.5&&(h-=1);var n=t+d+c+h,i=n%y,s=Math.floor(n/y),o=i*m,a=s*_,f=Math.sign(o-v),p=Math.sign(a-T);v=o,T=a,e.markedForRemoval||(r&&(e.translateX=null,e.translateY=null),pn(e,o,a,f,p))}))}}},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:function(e,t){return t.filter((function(t){return!t.data||!t.data.id||e.id===t.data.id}))},mixins:{apis:["dragCoordinates"]}}),En=C({DID_DRAG: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)})},DID_END_DRAG:function(e){e.props.dragCoordinates=null}}),vn=A({create:function(e){var t=e.root,n=e.props;t.ref.list=t.appendChildView(t.createChildView(gn)),n.dragCoordinates=null,n.overflowing=!1},write:function(e){var t=e.root,n=e.props;if(En({root:t,props:n,actions:e.actions}),t.ref.list.dragCoordinates=n.dragCoordinates,n.overflowing&&!n.overflow&&(n.overflowing=!1,t.element.dataset.state="",t.height=null),n.overflow){var r=Math.round(n.overflow);r!==t.height&&(n.overflowing=!0,t.element.dataset.state="overflow",t.height=r)}},name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),Tn=function(e,t,n){n?s(e,t,arguments.length>3&&void 0!==arguments[3]?arguments[3]:""):e.removeAttribute(t)},In=function(e){var t=e.root,n=e.action;t.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")&&Tn(t.element,"accept",!!n.value,n.value?n.value.join(","):"")},bn=function(e){Tn(e.root.element,"multiple",e.action.value)},wn=function(e){Tn(e.root.element,"webkitdirectory",e.action.value)},Sn=function(e){var t=e.root,n=t.query("GET_DISABLED"),r=t.query("GET_ALLOW_BROWSE");Tn(t.element,"disabled",n||!r)},On=function(e){var t=e.root;e.action.value?0===t.query("GET_TOTAL_ITEMS")&&Tn(t.element,"required",!0):Tn(t.element,"required",!1)},Rn=function(e){var t=e.action;Tn(e.root.element,"capture",!!t.value,!0===t.value?"":t.value)},Dn=function(e){var t=e.root,n=t.element;t.query("GET_TOTAL_ITEMS")>0?(Tn(n,"required",!1),Tn(n,"name",!1)):(Tn(n,"name",!0,t.query("GET_NAME")),t.query("GET_CHECK_VALIDITY")&&n.setCustomValidity(""),t.query("GET_REQUIRED")&&Tn(n,"required",!0))},An=A({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:function(e){var t=e.root,n=e.props;t.element.id="filepond--browser-"+n.id,s(t.element,"name",t.query("GET_NAME")),s(t.element,"aria-controls","filepond--assistant-"+n.id),s(t.element,"aria-labelledby","filepond--drop-label-"+n.id),In({root:t,action:{value:t.query("GET_ACCEPTED_FILE_TYPES")}}),bn({root:t,action:{value:t.query("GET_ALLOW_MULTIPLE")}}),wn({root:t,action:{value:t.query("GET_ALLOW_DIRECTORIES_ONLY")}}),Sn({root:t}),On({root:t,action:{value:t.query("GET_REQUIRED")}}),Rn({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),function(e){if(e&&""!==e.value){try{e.value=""}catch(i){}if(e.value){var t=bt("form"),n=e.parentNode,r=e.nextSibling;t.appendChild(e),t.reset(),r?n.insertBefore(e,r):n.appendChild(e)}}}(t.element)}),250)}},t.element.addEventListener("change",t.ref.handleChange)},destroy:function(e){var t=e.root;t.element.removeEventListener("change",t.ref.handleChange)},write:C({DID_LOAD_ITEM:Dn,DID_REMOVE_ITEM:Dn,DID_THROW_ITEM_INVALID:function(e){var t=e.root;t.query("GET_CHECK_VALIDITY")&&t.element.setCustomValidity(t.query("GET_LABEL_INVALID_FIELD"))},DID_SET_DISABLED:Sn,DID_SET_ALLOW_BROWSE:Sn,DID_SET_ALLOW_DIRECTORIES_ONLY:wn,DID_SET_ALLOW_MULTIPLE:bn,DID_SET_ACCEPTED_FILE_TYPES:In,DID_SET_CAPTURE_METHOD:Rn,DID_SET_REQUIRED:On})}),Cn=function(e,t){e.innerHTML=t;var n=e.querySelector(".filepond--label-action");return n&&s(n,"tabindex","0"),t},Pn=A({name:"drop-label",ignoreRect:!0,create:function(e){var t=e.root,n=e.props,r=bt("label");s(r,"for","filepond--browser-"+n.id),s(r,"id","filepond--drop-label-"+n.id),s(r,"aria-hidden","true"),t.ref.handleKeyDown=function(e){(13===e.keyCode||32===e.keyCode)&&(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),Cn(r,n.caption),t.appendChild(r),t.ref.label=r},destroy:function(e){var t=e.root;t.ref.label.addEventListener("keydown",t.ref.handleKeyDown),t.element.removeEventListener("click",t.ref.handleClick)},write:C({DID_SET_LABEL_IDLE:function(e){Cn(e.root.ref.label,e.action.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),Nn=A({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}}}}),Mn=C({DID_DRAG: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):function(e){var t=e.root;t.ref.blob=t.appendChildView(t.createChildView(Nn,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:.5*t.rect.element.width,translateY:.5*t.rect.element.height}))}({root:t})},DID_DROP: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)},DID_END_DRAG:function(e){var t=e.root;t.ref.blob&&(t.ref.blob.opacity=0)}}),Ln=A({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:function(e){var t=e.root,n=e.actions;Mn({root:t,props:e.props,actions:n});var r=t.ref.blob;0===n.length&&r&&0===r.opacity&&(t.removeChildView(r),t.ref.blob=null)}}),xn=function(e,t){return e.ref.fields[t]},kn=function(e){e.query("GET_ACTIVE_ITEMS").forEach((function(t){e.ref.fields[t.id]&&e.element.appendChild(e.ref.fields[t.id])}))},Fn=function(e){return kn(e.root)},Gn=C({DID_SET_DISABLED:function(e){var t=e.root;t.element.disabled=t.query("GET_DISABLED")},DID_ADD_ITEM:function(e){var t=e.root,n=e.action,r=bt("input");r.type="hidden",r.name=t.query("GET_NAME"),r.disabled=t.query("GET_DISABLED"),t.ref.fields[n.id]=r,kn(t)},DID_LOAD_ITEM:function(e){var t=e.action,n=xn(e.root,t.id);n&&null!==t.serverFileReference&&(n.value=t.serverFileReference)},DID_REMOVE_ITEM:function(e){var t=e.root,n=e.action,r=xn(t,n.id);r&&(r.parentNode.removeChild(r),delete t.ref.fields[n.id])},DID_DEFINE_VALUE:function(e){var t=e.root,n=e.action,r=xn(t,n.id);r&&(null===n.value?r.removeAttribute("value"):r.value=n.value,kn(t))},DID_REORDER_ITEMS:Fn,DID_SORT_ITEMS:Fn}),jn=A({tag:"fieldset",name:"data",create:function(e){return e.root.ref.fields={}},write:Gn,ignoreRect:!0}),Vn=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],Bn=["css","csv","html","txt"],qn={zip:"zip|compressed",epub:"application/epub+zip"},Un=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e=e.toLowerCase(),Vn.includes(e)?"image/"+("jpg"===e?"jpeg":"svg"===e?"svg+xml":e):Bn.includes(e)?"text/"+e:qn[e]||""},Hn=function(e){return new Promise((function(t,n){var r=er(e);if(r.length&&!zn(e))return t(r);Wn(e).then(t)}))},zn=function(e){return!!e.files&&e.files.length>0},Wn=function(e){return new Promise((function(t,n){var r=(e.items?Array.from(e.items):[]).filter((function(e){return Yn(e)})).map((function(e){return $n(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):[])}))},Yn=function(e){if(Kn(e)){var t=Jn(e);if(t)return t.isFile||t.isDirectory}return"file"===e.kind},$n=function(e){return new Promise((function(t,n){Xn(e)?Qn(Jn(e)).then(t).catch(n):t([e.getAsFile()])}))},Qn=function(e){return new Promise((function(t,n){var r=[],i=0,s=0,o=function(){0===s&&0===i&&t(r)};!function e(t){i++;var a=t.createReader();!function t(){a.readEntries((function(n){if(0===n.length)return i--,void o();n.forEach((function(t){t.isDirectory?e(t):(s++,t.file((function(e){var n=Zn(e);t.fullPath&&(n._relativePath=t.fullPath),r.push(n),s--,o()})))})),t()}),n)}()}(e)}))},Zn=function(e){if(e.type.length)return e;var t=e.lastModifiedDate,n=e.name;return(e=e.slice(0,e.size,Un(Be(e.name)))).name=n,e.lastModifiedDate=t,e},Xn=function(e){return Kn(e)&&(Jn(e)||{}).isDirectory},Kn=function(e){return"webkitGetAsEntry"in e},Jn=function(e){return e.webkitGetAsEntry()},er=function(e){var t=[];try{if((t=nr(e)).length)return t;t=tr(e)}catch(n){}return t},tr=function(e){var t=e.getData("url");return"string"==typeof t&&t.length?[t]:[]},nr=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[]},rr=[],ir=function(e){return{pageLeft:e.pageX,pageTop:e.pageY,scopeLeft:e.offsetX||e.layerX,scopeTop:e.offsetY||e.layerY}},sr=function(e){var t=[],n={dragenter:ur,dragover:cr,dragleave:dr,drop:hr},i={};r(n,(function(n,r){i[n]=r(e,t),e.addEventListener(n,i[n],!1)}));var s={element:e,addListener:function(o){return t.push(o),function(){t.splice(t.indexOf(o),1),0===t.length&&(rr.splice(rr.indexOf(s),1),r(n,(function(t){e.removeEventListener(t,i[t],!1)})))}}};return s},or=function(e,t){var n,r=function(e,t){return"elementFromPoint"in e||(e=document),e.elementFromPoint(t.x,t.y)}("getRootNode"in(n=t)?n.getRootNode():document,{x:e.pageX-window.pageXOffset,y:e.pageY-window.pageYOffset});return r===t||t.contains(r)},ar=null,lr=function(e,t){try{e.dropEffect=t}catch(n){}},ur=function(e,t){return function(e){e.preventDefault(),ar=e.target,t.forEach((function(t){var n=t.onenter;or(e,t.element)&&(t.state="enter",n(ir(e)))}))}},cr=function(e,t){return function(e){e.preventDefault();var n=e.dataTransfer;Hn(n).then((function(r){var i=!1;t.some((function(t){var s=t.filterElement,o=t.element,a=t.onenter,l=t.onexit,u=t.ondrag,c=t.allowdrop;lr(n,"copy");var h=c(r);if(h)if(or(e,o)){if(i=!0,null===t.state)return t.state="enter",void a(ir(e));if(t.state="over",s&&!h)return void lr(n,"none");u(ir(e))}else s&&!i&&lr(n,"none"),t.state&&(t.state=null,l(ir(e)));else lr(n,"none")}))}))}},hr=function(e,t){return function(e){e.preventDefault(),Hn(e.dataTransfer).then((function(n){t.forEach((function(t){var r=t.filterElement,i=t.element,s=t.ondrop,o=t.onexit,a=t.allowdrop;if(t.state=null,!r||or(e,i))return a(n)?void s(ir(e),n):o(ir(e))}))}))}},dr=function(e,t){return function(e){ar===e.target&&t.forEach((function(t){var n=t.onexit;t.state=null,n(ir(e))}))}},fr=function(e,t,n){e.classList.add("filepond--hopper");var r=n.filterItems,i=void 0===r?function(e){return e}:r,s=function(e,t,n){var r=function(e){var t=rr.find((function(t){return t.element===e}));if(t)return t;var n=sr(e);return rr.push(n),n}(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}(e,n.catchesDropsOnPage?document.documentElement:e,n.requiresDropOnElement),o="",a="";s.allowdrop=function(e){return t(i(e))},s.ondrop=function(e,n){var r=i(n);t(r)?(a="drag-drop",l.onload(r,e)):l.ondragend(e)},s.ondrag=function(e){l.ondrag(e)},s.onenter=function(e){a="drag-over",l.ondragstart(e)},s.onexit=function(e){a="drag-exit",l.ondragend(e)};var l={updateHopperState:function(){o!==a&&(e.dataset.hopperState=a,o=a)},onload:function(){},ondragstart:function(){},ondrag:function(){},ondragend:function(){},destroy:function(){s.destroy()}};return l},pr=!1,mr=[],_r=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}Hn(e.clipboardData).then((function(e){e.length&&mr.forEach((function(t){return t(e)}))}))},yr=null,gr=null,Er=[],vr=function(e,t){e.element.textContent=t},Tr=function(e,t,n){var r=e.query("GET_TOTAL_ITEMS");vr(e,n+" "+t+", "+r+" "+e.query(1===r?"GET_LABEL_FILE_COUNT_SINGULAR":"GET_LABEL_FILE_COUNT_PLURAL")),clearTimeout(gr),gr=setTimeout((function(){!function(e){e.element.textContent=""}(e)}),1500)},Ir=function(e){return e.element.parentNode.contains(document.activeElement)},br=function(e){var t=e.root,n=t.query("GET_ITEM",e.action.id).filename,r=t.query("GET_LABEL_FILE_PROCESSING_ABORTED");vr(t,n+" "+r)},wr=function(e){var t=e.root,n=e.action,r=t.query("GET_ITEM",n.id);vr(t,n.status.main+" "+r.filename+" "+n.status.sub)},Sr=A({create:function(e){var t=e.root;t.element.id="filepond--assistant-"+e.props.id,s(t.element,"role","status"),s(t.element,"aria-live","polite"),s(t.element,"aria-relevant","additions")},ignoreRect:!0,ignoreRectUpdate:!0,write:C({DID_LOAD_ITEM:function(e){var t=e.root,n=e.action;if(Ir(t)){t.element.textContent="";var r=t.query("GET_ITEM",n.id);Er.push(r.filename),clearTimeout(yr),yr=setTimeout((function(){Tr(t,Er.join(", "),t.query("GET_LABEL_FILE_ADDED")),Er.length=0}),750)}},DID_REMOVE_ITEM:function(e){var t=e.root,n=e.action;Ir(t)&&Tr(t,n.item.filename,t.query("GET_LABEL_FILE_REMOVED"))},DID_COMPLETE_ITEM_PROCESSING:function(e){var t=e.root,n=t.query("GET_ITEM",e.action.id).filename,r=t.query("GET_LABEL_FILE_PROCESSING_COMPLETE");vr(t,n+" "+r)},DID_ABORT_ITEM_PROCESSING:br,DID_REVERT_ITEM_PROCESSING:br,DID_THROW_ITEM_REMOVE_ERROR:wr,DID_THROW_ITEM_LOAD_ERROR:wr,DID_THROW_ITEM_INVALID:wr,DID_THROW_ITEM_PROCESSING_ERROR:wr}),tag:"span",name:"assistant"}),Or=function(e){return e.replace(new RegExp((arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-")+".","g"),(function(e){return e.charAt(1).toUpperCase()}))},Rr=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 s=arguments.length,o=new Array(s),a=0;a<s;a++)o[a]=arguments[a];clearTimeout(i);var l=Date.now()-r,u=function(){r=Date.now(),e.apply(void 0,o)};l<t?n||(i=setTimeout(u,t-l)):u()}},Dr=function(e){return e.preventDefault()},Ar=function(e,t){var n=e.query("GET_ALLOW_REPLACE"),r=e.query("GET_ALLOW_MULTIPLE"),i=e.query("GET_TOTAL_ITEMS"),s=e.query("GET_MAX_FILES"),o=t.length;return!r&&o>1||!!(U(s=r||n?s:1)&&i+o>s)&&(e.dispatch("DID_THROW_MAX_FILES",{source:t,error:tt("warning",0,"Max files")}),!0)},Cr=function(e,t,n){var r=e.childViews[0];return dn(r,t,{left:n.scopeLeft-r.rect.element.left,top:n.scopeTop-(e.rect.outer.top+e.rect.element.marginTop+e.rect.element.scrollTop)})},Pr=function(e){var t=e.query("GET_ALLOW_DROP"),n=e.query("GET_DISABLED"),r=t&&!n;if(r&&!e.ref.hopper){var i=fr(e.element,(function(t){if(Ar(e,t))return!1;var n=e.query("GET_BEFORE_DROP_FILE")||function(){return!0};return!e.query("GET_DROP_VALIDATION")||t.every((function(t){return be("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!dt(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}));e.dispatch("ADD_ITEMS",{items:t,index:Cr(e.ref.list,i,n),interactionMethod:2}),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=Rr((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(Ln))}else!r&&e.ref.hopper&&(e.ref.hopper.destroy(),e.ref.hopper=null,e.removeChildView(e.ref.drip))},Nr=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(An,Object.assign({},t,{onload:function(t){if(Ar(e,t))return!1;e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:3})}})),0):!i&&e.ref.browser&&(e.removeChildView(e.ref.browser),e.ref.browser=null)},Mr=function(e){var t,n,r=e.query("GET_ALLOW_PASTE"),i=e.query("GET_DISABLED"),s=r&&!i;s&&!e.ref.paster?(e.ref.paster=(t=function(e){n.onload(e)},n={destroy:function(){ce(mr,mr.indexOf(t)),0===mr.length&&(document.removeEventListener("paste",_r),pr=!1)},onload:function(){}},function(e){mr.includes(e)||(mr.push(e),pr||(pr=!0,document.addEventListener("paste",_r)))}(t),n),e.ref.paster.onload=function(t){e.dispatch("ADD_ITEMS",{items:t,index:-1,interactionMethod:4})}):!s&&e.ref.paster&&(e.ref.paster.destroy(),e.ref.paster=null)},Lr=C({DID_SET_ALLOW_BROWSE:function(e){Nr(e.root,e.props)},DID_SET_ALLOW_DROP:function(e){Pr(e.root)},DID_SET_ALLOW_PASTE:function(e){Mr(e.root)},DID_SET_DISABLED:function(e){var t=e.root,n=e.props;Pr(t),Mr(t),Nr(t,n),t.query("GET_DISABLED")?t.element.dataset.disabled="disabled":t.element.removeAttribute("data-disabled")}}),xr=A({name:"root",read:function(e){var t=e.root;t.ref.measure&&(t.ref.measureHeight=t.ref.measure.offsetHeight)},create:function(e){var t=e.root,n=e.props,r=t.query("GET_ID");r&&(t.element.id=r);var i=t.query("GET_CLASS_NAME");i&&i.split(" ").filter((function(e){return e.length})).forEach((function(e){t.element.classList.add(e)})),t.ref.label=t.appendChildView(t.createChildView(Pn,Object.assign({},n,{translateY:null,caption:t.query("GET_LABEL_IDLE")}))),t.ref.list=t.appendChildView(t.createChildView(vn,{translateY:null})),t.ref.panel=t.appendChildView(t.createChildView(sn,{name:"panel-root"})),t.ref.assistant=t.appendChildView(t.createChildView(Sr,Object.assign({},n))),t.ref.data=t.appendChildView(t.createChildView(jn,Object.assign({},n))),t.ref.measure=bt("div"),t.ref.measure.style.height="100%",t.element.appendChild(t.ref.measure),t.ref.bounds=null,t.query("GET_STYLES").filter((function(e){return!L(e.value)})).map((function(e){t.element.dataset[e.name]=e.value})),t.ref.widthPrevious=null,t.ref.widthUpdated=Rr((function(){t.ref.updateHistory=[],t.dispatch("DID_RESIZE_ROOT")}),250),t.ref.previousAspectRatio=null,t.ref.updateHistory=[];var s=window.matchMedia("(pointer: fine) and (hover: hover)").matches,o="PointerEvent"in window;t.query("GET_ALLOW_REORDER")&&o&&!s&&(t.element.addEventListener("touchmove",Dr,{passive:!1}),t.element.addEventListener("gesturestart",Dr))},write:function(e){var t=e.root,n=e.actions;if(Lr({root:t,props:e.props,actions:n}),n.filter((function(e){return/^DID_SET_STYLE_/.test(e.type)})).filter((function(e){return!L(e.data.value)})).map((function(e){var n=e.data,r=Or(e.type.substr(8).toLowerCase(),"_");t.element.dataset[r]=n.value,t.invalidateLayout()})),!t.rect.element.hidden){t.rect.element.width!==t.ref.widthPrevious&&(t.ref.widthPrevious=t.rect.element.width,t.ref.widthUpdated());var r=t.ref.bounds;r||(r=t.ref.bounds=function(e){var t=e.ref.measureHeight||null;return{cappedHeight:parseInt(e.style.maxHeight,10)||null,fixedHeight:0===t?null:t}}(t),t.element.removeChild(t.ref.measure),t.ref.measure=null);var i=t.ref,s=i.hopper,o=i.label,a=i.list,l=i.panel;s&&s.updateHopperState();var u=t.query("GET_PANEL_ASPECT_RATIO"),c=t.query("GET_ALLOW_MULTIPLE"),h=t.query("GET_TOTAL_ITEMS"),d=h===(c?t.query("GET_MAX_FILES")||1e6:1),f=n.find((function(e){return"DID_ADD_ITEM"===e.type}));if(d&&f){var p=f.data.interactionMethod;o.opacity=0,c?o.translateY=-40:1===p?o.translateX=40:o.translateY=3===p?40:30}else d||(o.opacity=1,o.translateX=0,o.translateY=0);var m=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}}(t),_=function(e){var t=0,n=0,r=e.ref.list,i=r.childViews[0],s=i.childViews.filter((function(e){return e.rect.element.height})),o=e.query("GET_ACTIVE_ITEMS").map((function(e){return s.find((function(t){return t.id===e.id}))})).filter((function(e){return e}));if(0===o.length)return{visual:t,bounds:n};var a=i.rect.element.width,l=dn(i,o,r.dragCoordinates),u=o[0].rect.element,c=u.marginTop+u.marginBottom,h=u.width+(u.marginLeft+u.marginRight),d=u.height+c,f=void 0!==l&&l>=0?1:0,p=o.find((function(e){return e.markedForRemoval&&e.opacity<.45}))?-1:0,m=o.length+f+p,_=Math.round(a/h);return 1===_?o.forEach((function(e){var r=e.rect.element.height+c;n+=r,t+=r*e.opacity})):(n=Math.ceil(m/_)*d,t=n),{visual:t,bounds:n}}(t),y=o.rect.element.height,g=!c||d?0:y,E=d?a.rect.element.marginTop:0,v=0===h?0:a.rect.element.marginBottom,T=g+E+_.visual+v,I=g+E+_.bounds+v;if(a.translateY=Math.max(0,g-a.rect.element.marginTop)-m.top,u){var b=t.rect.element.width,w=b*u;u!==t.ref.previousAspectRatio&&(t.ref.previousAspectRatio=u,t.ref.updateHistory=[]);var S=t.ref.updateHistory;if(S.push(b),S.length>4)for(var O=S.length,R=O-10,D=0,A=O;A>=R;A--)if(S[A]===S[A-2]&&D++,D>=2)return;l.scalable=!1,l.height=w;var C=w-g-(v-m.bottom)-(d?E:0);a.overflow=_.visual>C?C:null,t.height=w}else if(r.fixedHeight){l.scalable=!1;var P=r.fixedHeight-g-(v-m.bottom)-(d?E:0);a.overflow=_.visual>P?P:null}else if(r.cappedHeight){var N=T>=r.cappedHeight,M=Math.min(r.cappedHeight,T);l.scalable=!0,l.height=N?M:M-m.top-m.bottom;var x=M-g-(v-m.bottom)-(d?E:0);a.overflow=T>r.cappedHeight&&_.visual>x?x:null,t.height=Math.min(r.cappedHeight,I-m.top-m.bottom)}else{var k=h>0?m.top+m.bottom:0;l.scalable=!0,l.height=Math.max(y,T-k),t.height=Math.max(y,I-k)}}},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",Dr),t.element.removeEventListener("gesturestart",Dr)},mixins:{styles:["height"]}}),kr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=null,r=Se(),s=n(K(r),[Fe,ne(r)],[It,te(r)]);s.dispatch("SET_OPTIONS",{options:e});var o=function(){document.hidden||s.dispatch("KICK")};document.addEventListener("visibilitychange",o);var a=null,l=!1,u=!1,c=null,h=null,d=function(){l||(l=!0),clearTimeout(a),a=setTimeout((function(){l=!1,c=null,h=null,u&&(u=!1,s.dispatch("DID_STOP_RESIZE"))}),500)};window.addEventListener("resize",d);var f=xr(s,{id:re()}),p=!1,m=!1,_={_read:function(){l&&(h=window.innerWidth,c||(c=h),u||h===c||(s.dispatch("DID_START_RESIZE"),u=!0)),m&&p&&(p=null===f.element.offsetParent),p||(f._read(),m=f.rect.element.hidden)},_write:function(e){var t=s.processActionQueue().filter((function(e){return!/^SET_/.test(e.type)}));p&&!t.length||(T(t),p=f._write(e,t,u),me(s.query("GET_ITEMS")),p&&s.processDispatchQueue())}},y=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:s.query("GET_ITEM",t.id);n.file=r?pe(r):null}return t.items&&(n.items=t.items.map(pe)),/progress/.test(e)&&(n.progress=t.progress),t.hasOwnProperty("origin")&&t.hasOwnProperty("target")&&(n.origin=t.origin,n.target=t.target),n}},g={DID_DESTROY:y("destroy"),DID_INIT:y("init"),DID_THROW_MAX_FILES:y("warning"),DID_INIT_ITEM:y("initfile"),DID_START_ITEM_LOAD:y("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:y("addfileprogress"),DID_LOAD_ITEM:y("addfile"),DID_THROW_ITEM_INVALID:[y("error"),y("addfile")],DID_THROW_ITEM_LOAD_ERROR:[y("error"),y("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[y("error"),y("removefile")],DID_PREPARE_OUTPUT:y("preparefile"),DID_START_ITEM_PROCESSING:y("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:y("processfileprogress"),DID_ABORT_ITEM_PROCESSING:y("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:y("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:y("processfiles"),DID_REVERT_ITEM_PROCESSING:y("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[y("error"),y("processfile")],DID_REMOVE_ITEM:y("removefile"),DID_UPDATE_ITEMS:y("updatefiles"),DID_ACTIVATE_ITEM:y("activatefile"),DID_REORDER_ITEMS:y("reorderfiles")},v=function(e){var t=Object.assign({pond:F},e);delete t.type,f.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])})),F.fire.apply(F,[e.type].concat(n));var i=s.query("GET_ON"+e.type.toUpperCase());i&&i.apply(void 0,n)},T=function(e){e.length&&e.filter((function(e){return g[e.type]})).forEach((function(e){var t=g[e.type];(Array.isArray(t)?t:[t]).forEach((function(t){"DID_INIT_ITEM"===e.type?v(t(e.data)):setTimeout((function(){v(t(e.data))}),0)}))}))},I=function(e){return s.dispatch("SET_OPTIONS",{options:e})},b=function(e){return s.query("GET_ACTIVE_ITEM",e)},w=function(e){return new Promise((function(t,n){s.dispatch("REQUEST_ITEM_PREPARE",{query:e,success:function(e){t(e)},failure:function(e){n(e)}})}))},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(n,r){D([{source:e,options:t}],{index:t.index}).then((function(e){return n(e&&e[0])})).catch(r)}))},O=function(e){return e.file&&e.id},R=function(e,t){return"object"!=typeof e||O(e)||t||(t=e,e=void 0),s.dispatch("REMOVE_ITEM",Object.assign({},t,{query:e})),null===s.query("GET_ACTIVE_ITEM",e)},D=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return new Promise((function(e,n){var r=[],i={};if(M(t[0]))r.push.apply(r,t[0]),Object.assign(i,t[1]||{});else{var o=t[t.length-1];"object"!=typeof o||o instanceof Blob||Object.assign(i,t.pop()),r.push.apply(r,t)}s.dispatch("ADD_ITEMS",{items:r,index:i.index,interactionMethod:1,success:e,failure:n})}))},A=function(){return s.query("GET_ACTIVE_ITEMS")},C=function(e){return new Promise((function(t,n){s.dispatch("REQUEST_ITEM_PROCESSING",{query:e,success:function(e){t(e)},failure:function(e){n(e)}})}))},L=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Array.isArray(t[0])?t[0]:t,i=r.length?r:A();return Promise.all(i.map(w))},x=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=Array.isArray(t[0])?t[0]:t;if(!r.length){var i=A().filter((function(e){return!(e.status===_e.IDLE&&e.origin===ye.LOCAL)&&e.status!==_e.PROCESSING&&e.status!==_e.PROCESSING_COMPLETE&&e.status!==_e.PROCESSING_REVERT_ERROR}));return Promise.all(i.map(C))}return Promise.all(r.map(C))},k=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=Array.isArray(t[0])?t[0]:t;"object"==typeof i[i.length-1]?r=i.pop():Array.isArray(t[0])&&(r=t[1]);var s=A();return i.length?i.map((function(e){return E(e)?s[e]?s[e].id:null:e})).filter((function(e){return e})).map((function(e){return R(e,r)})):Promise.all(s.map((function(e){return R(e,r)})))},F=Object.assign({},he(),{},_,{},ee(s,r),{setOptions:I,addFile:S,addFiles:D,getFile:b,processFile:C,prepareFile:w,removeFile:R,moveFile:function(e,t){return s.dispatch("MOVE_ITEM",{query:e,index:t})},getFiles:A,processFiles:x,removeFiles:k,prepareFiles:L,sort:function(e){return s.dispatch("SORT",{compare:e})},browse:function(){var e=f.element.querySelector("input[type=file]");e&&e.click()},destroy:function(){F.fire("destroy",f.element),s.dispatch("ABORT_ALL"),f._destroy(),window.removeEventListener("resize",d),document.removeEventListener("visibilitychange",o),s.dispatch("DID_DESTROY")},insertBefore:function(e){return P(f.element,e)},insertAfter:function(e){return N(f.element,e)},appendTo:function(e){return e.appendChild(f.element)},replaceElement:function(e){P(f.element,e),e.parentNode.removeChild(e),t=e},restoreElement:function(){t&&(N(t,f.element),f.element.parentNode.removeChild(f.element),t=null)},isAttachedTo:function(e){return f.element===e||t===e},element:{get:function(){return f.element}},status:{get:function(){return s.query("GET_STATUS")}}});return s.dispatch("DID_INIT"),i(F)},Fr=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return r(Se(),(function(e,n){t[e]=n[0]})),kr(Object.assign({},t,{},e))},Gr=function(e){return Or(e.replace(/^data-/,""))},jr=function e(t,n){r(n,(function(n,i){r(t,(function(e,r){var s,o=new RegExp(n);if(o.test(e)&&(delete t[e],!1!==i))if(j(i))t[i]=r;else{var a=i.group;Y(i)&&!t[a]&&(t[a]={}),t[a][(s=e.replace(o,""),s.charAt(0).toLowerCase()+s.slice(1))]=r}})),i.mapping&&e(t[i.group],i.mapping)}))},Vr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];r(e.attributes,(function(t){n.push(e.attributes[t])}));var i=n.filter((function(e){return e.name})).reduce((function(t,n){var r=s(e,n.name);return t[Gr(n.name)]=r===n.name||r,t}),{});return jr(i,t),i},Br=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};be("SET_ATTRIBUTE_TO_OPTION_MAP",n);var r=Object.assign({},t),i=Vr("FIELDSET"===e.nodeName?e.querySelector("input[type=file]"):e,n);Object.keys(i).forEach((function(e){Y(i[e])?(Y(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 s=Fr(r);return e.files&&Array.from(e.files).forEach((function(e){s.addFile(e)})),s.replaceElement(e),s},qr=function(){return t(arguments.length<=0?void 0:arguments[0])?Br.apply(void 0,arguments):Fr.apply(void 0,arguments)},Ur=["fire","_read","_write"],Hr=function(e){var t={};return de(e,t,Ur),t},zr=function(e,t){return e.replace(/(?:{([a-zA-Z]+)})/g,(function(e,n){return t[n]}))},Wr=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=re();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)}}},Yr=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}))},$r=function(e,t){var n=e.slice(0,e.size,e.type);return n.lastModifiedDate=e.lastModifiedDate,n.name=t,n},Qr=function(e){return $r(e,e.name)},Zr=[],Xr=function(e){if(!Zr.includes(e)){Zr.push(e);var t=e({addFilter:we,utils:{Type:ve,forin:r,isString:j,isFile:dt,toNaturalFileSize:Dt,replaceInString:zr,getExtensionFromFilename:Be,getFilenameWithoutExtension:ct,guesstimateMimeType:Un,getFileFromBlob:ze,getFilenameFromURL:Ve,createRoute:C,createWorker:Wr,createView:A,createItemAPI:pe,loadImage:Yr,copyFile:Qr,renameFile:$r,createBlob:We,applyFilterChain:Ie,text:wt,getNumericAspectRatioFromString:De},views:{fileActionButton:Rt}});Object.assign(Oe,t.options)}},Kr=(Ut=p()&&!("[object OperaMini]"===Object.prototype.toString.call(window.operamini))&&"visibilityState"in document&&"Promise"in window&&"slice"in Blob.prototype&&"URL"in window&&"createObjectURL"in window.URL&&"performance"in window&&("supports"in(window.CSS||{})||/MSIE|Trident/.test(window.navigator.userAgent)),function(){return Ut}),Jr={apps:[]},ei=function(){};if(e.Status={},e.FileStatus={},e.FileOrigin={},e.OptionTypes={},e.create=ei,e.destroy=ei,e.parse=ei,e.find=ei,e.registerPlugin=ei,e.getOptions=ei,e.setOptions=ei,Kr()){!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],s=1e3/n,o=null,a=null,l=null,u=null,c=function(){document.hidden?(l=function(){return window.setTimeout((function(){return h(performance.now())}),s)},u=function(){return window.clearTimeout(a)}):(l=function(){return window.requestAnimationFrame(h)},u=function(){return window.cancelAnimationFrame(a)})};document.addEventListener("visibilitychange",(function(){u&&u(),c(),h(performance.now())}));var h=function e(t){a=l(e),o||(o=t);var n=t-o;n<=s||(o=t-n%s,i.readers.forEach((function(e){return e()})),i.writers.forEach((function(e){return e(t)})))};c(),h(performance.now())}((function(){Jr.apps.forEach((function(e){return e._read()}))}),(function(e){Jr.apps.forEach((function(t){return t._write(e)}))}));var ti=function t(){document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:Kr,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 ti()}),0):document.addEventListener("DOMContentLoaded",ti);var ni=function(){return r(Se(),(function(t,n){e.OptionTypes[t]=n[1]}))};e.Status=Object.assign({},Ce),e.FileOrigin=Object.assign({},ye),e.FileStatus=Object.assign({},_e),e.OptionTypes={},ni(),e.create=function(){var t=qr.apply(void 0,arguments);return t.on("destroy",e.destroy),Jr.apps.push(t),Hr(t)},e.destroy=function(e){var t=Jr.apps.findIndex((function(t){return t.isAttachedTo(e)}));return t>=0&&(Jr.apps.splice(t,1)[0].restoreElement(),!0)},e.parse=function(t){return Array.from(t.querySelectorAll(".filepond")).filter((function(e){return!Jr.apps.find((function(t){return t.isAttachedTo(e)}))})).map((function(t){return e.create(t)}))},e.find=function(e){var t=Jr.apps.find((function(t){return t.isAttachedTo(e)}));return t?Hr(t):null},e.registerPlugin=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.forEach(Xr),ni()},e.getOptions=function(){var e={};return r(Se(),(function(t,n){e[t]=n[0]})),e},e.setOptions=function(t){return Y(t)&&(Jr.apps.forEach((function(e){e.setOptions(t)})),function(e){r(e,(function(e,t){Oe[e]&&(Oe[e][0]=Z(t,Oe[e][0],Oe[e][1]))}))}(t)),e.getOptions()}}e.supported=Kr,Object.defineProperty(e,"__esModule",{value:!0})}(t)},eFs7:function(e,t,n){e.exports=function(){"use strict";var e=function(e){var t=e.addFilter,n=e.utils,r=n.Type,i=n.replaceInString,s=n.toNaturalFileSize;return t("ALLOW_HOPPER_ITEM",(function(e,t){var n=t.query;if(!n("GET_ALLOW_FILE_SIZE_VALIDATION"))return!0;var r=n("GET_MAX_FILE_SIZE");if(null!==r&&e.size>=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 a=n("GET_MAX_FILE_SIZE");if(null!==a&&e.size>=a)r({status:{main:n("GET_LABEL_MAX_FILE_SIZE_EXCEEDED"),sub:i(n("GET_LABEL_MAX_FILE_SIZE"),{filesize:s(a)})}});else{var l=n("GET_MIN_FILE_SIZE");if(null!==l&&e.size<=l)r({status:{main:n("GET_LABEL_MIN_FILE_SIZE_EXCEEDED"),sub:i(n("GET_LABEL_MIN_FILE_SIZE"),{filesize:s(l)})}});else{var u=n("GET_MAX_TOTAL_FILE_SIZE");if(null!==u&&n("GET_ACTIVE_ITEMS").reduce((function(e,t){return e+t.fileSize}),0)>u)return void r({status:{main:n("GET_LABEL_MAX_TOTAL_FILE_SIZE_EXCEEDED"),sub:i(n("GET_LABEL_MAX_TOTAL_FILE_SIZE"),{filesize:s(u)})}});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}()},ttM9:function(e,t,n){e.exports=function(){"use strict";const e=e=>{const{addFilter:t,utils:n}=e,{Type:r,createRoute:i}=n;return t("CREATE_VIEW",e=>{const{is:t,view:n,query:r}=e;t("file")&&n.registerWriter(i({DID_LOAD_ITEM:({root:e,props:t})=>{const{id:n}=t,i=r("GET_ITEM",n);if(!i||i.archived)return;const s=e.query("GET_LABEL_BUTTON_DOWNLOAD_ITEM"),o=e.query("GET_ALLOW_DOWNLOAD_BY_URL");((e,t,n,r)=>{const i=t.querySelector(".filepond--file-info-main"),s=(e=>{let t=document.createElement("span");return t.className="filepond--download-icon",t.title=e,t})(n);i.prepend(s),s.addEventListener("click",()=>((e,t)=>{if(t&&e.getMetadata("url"))location.href=e.getMetadata("url");else{const t=document.createElement("a"),n=window.URL.createObjectURL(e.file);document.body.appendChild(t),t.style.display="none",t.href=n,t.download=e.file.name,t.click(),window.URL.revokeObjectURL(n),t.remove()}})(e,r))})(i,e.element,s,o)}},({props:e})=>{const{id:t}=e;r("GET_ITEM",t)}))}),{options:{labelButtonDownloadItem:["Download file",r.STRING],allowDownloadByUrl:[!1,r.BOOLEAN]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:e})),e}()},zUnb:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.r(t);let i=!1;const s={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=e},get useDeprecatedSynchronousErrorHandling(){return i}};function o(e){setTimeout(()=>{throw e},0)}const a={closed:!0,next(e){},error(e){if(s.useDeprecatedSynchronousErrorHandling)throw e;o(e)},complete(){}},l=(()=>Array.isArray||(e=>e&&"number"==typeof e.length))();function u(e){return null!==e&&"object"==typeof e}const c=(()=>{function e(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e})();let h=(()=>{class e{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let t;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:i,_unsubscribe:s,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(let e=0;e<n.length;++e)n[e].remove(this);if(r(s)){i&&(this._unsubscribe=void 0);try{s.call(this)}catch(a){t=a instanceof c?d(a.errors):[a]}}if(l(o)){let e=-1,n=o.length;for(;++e<n;){const n=o[e];if(u(n))try{n.unsubscribe()}catch(a){t=t||[],a instanceof c?t=t.concat(d(a.errors)):t.push(a)}}}if(t)throw new c(t)}add(t){let n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){const t=n;n=new e,n._subscriptions=[t]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof e){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n}remove(e){const t=this._subscriptions;if(t){const n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}return e.EMPTY=function(e){return e.closed=!0,e}(new e),e})();function d(e){return e.reduce((e,t)=>e.concat(t instanceof c?t.errors:t),[])}const f=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class p extends h{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!e){this.destination=a;break}if("object"==typeof e){e instanceof p?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,e,t,n)}}[f](){return this}static create(e,t,n){const r=new p(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class m extends p{constructor(e,t,n,i){let s;super(),this._parentSubscriber=e;let o=this;r(t)?s=t:t&&(s=t.next,n=t.error,i=t.complete,t!==a&&(o=Object.create(t),r(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=n,this._complete=i}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;s.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=s;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):o(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;o(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);s.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),s.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(e,t,n){if(!s.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return s.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(o(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const _=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(e){return e}let g=(()=>{class e{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(t){const n=new e;return n.source=this,n.operator=t,n}subscribe(e,t,n){const{operator:r}=this,i=function(e,t,n){if(e){if(e instanceof p)return e;if(e[f])return e[f]()}return e||t||n?new p(e,t,n):new p(a)}(e,t,n);if(i.add(r?r.call(i,this.source):this.source||s.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),s.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(e){try{return this._subscribe(e)}catch(t){s.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof p?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=E(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(i){n(i),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[_](){return this}pipe(...e){return 0===e.length?this:(0===(t=e).length?y:1===t.length?t[0]:function(e){return t.reduce((e,t)=>t(e),e)})(this);var t}toPromise(e){return new(e=E(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}return e.create=t=>new e(t),e})();function E(e){if(e||(e=s.Promise||Promise),!e)throw new Error("no Promise impl found");return e}const v=(()=>{function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e})();class T extends h{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class I extends p{constructor(e){super(e),this.destination=e}}let b=(()=>{class e extends g{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[f](){return new I(this)}lift(e){const t=new w(this,this);return t.operator=e,t}next(e){if(this.closed)throw new v;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let i=0;i<n;i++)r[i].next(e)}}error(e){if(this.closed)throw new v;this.hasError=!0,this.thrownError=e,this.isStopped=!0;const{observers:t}=this,n=t.length,r=t.slice();for(let i=0;i<n;i++)r[i].error(e);this.observers.length=0}complete(){if(this.closed)throw new v;this.isStopped=!0;const{observers:e}=this,t=e.length,n=e.slice();for(let r=0;r<t;r++)n[r].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(e){if(this.closed)throw new v;return super._trySubscribe(e)}_subscribe(e){if(this.closed)throw new v;return this.hasError?(e.error(this.thrownError),h.EMPTY):this.isStopped?(e.complete(),h.EMPTY):(this.observers.push(e),new T(this,e))}asObservable(){const e=new g;return e.source=this,e}}return e.create=(e,t)=>new w(e,t),e})();class w extends b{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):h.EMPTY}}function S(e){return e&&"function"==typeof e.schedule}function O(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new R(e,t))}}class R{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new D(e,this.project,this.thisArg))}}class D extends p{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}const A=e=>t=>{for(let n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()};function C(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const P=C(),N=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function M(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const L=e=>{if(e&&"function"==typeof e[_])return r=e,e=>{const t=r[_]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(N(e))return A(e);if(M(e))return n=e,e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,o),e);if(e&&"function"==typeof e[P])return t=e,e=>{const n=t[P]();for(;;){let t;try{t=n.next()}catch(r){return e.error(r),e}if(t.done){e.complete();break}if(e.next(t.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e};{const t=u(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var t,n,r};function x(e,t){return new g(n=>{const r=new h;let i=0;return r.add(t.schedule((function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r})}function k(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[_]}(e))return function(e,t){return new g(n=>{const r=new h;return r.add(t.schedule(()=>{const i=e[_]();r.add(i.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r})}(e,t);if(M(e))return function(e,t){return new g(n=>{const r=new h;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r})}(e,t);if(N(e))return x(e,t);if(function(e){return e&&"function"==typeof e[P]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new g(n=>{const r=new h;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(()=>{i=e[P](),r.add(t.schedule((function(){if(n.closed)return;let e,t;try{const n=i.next();e=n.value,t=n.done}catch(r){return void n.error(r)}t?n.complete():(n.next(e),this.schedule())})))})),r})}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof g?e:new g(L(e))}class F extends p{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class G extends p{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function j(e,t){if(!t.closed)return e instanceof g?e.subscribe(t):L(e)(t)}class V{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new B(e,this.project,this.concurrent))}}class B extends G{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new F(this),n=this.destination;n.add(t);const r=j(e,t);r!==t&&n.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function q(e,t){return t?x(e,t):new g(A(e))}function U(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return S(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof g?e[0]:function(e=Number.POSITIVE_INFINITY){return function e(t,n,r=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(e((e,r)=>k(t(e,r)).pipe(O((t,i)=>n(e,t,r,i))),r)):("number"==typeof n&&(r=n),e=>e.lift(new V(t,r)))}(y,e)}(t)(q(e,n))}function H(){return function(e){return e.lift(new z(e))}}class z{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new W(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class W extends p{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}class Y extends g{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new h,e.add(this.source.subscribe(new Q(this.getSubject(),this))),e.closed&&(this._connection=null,e=h.EMPTY)),e}refCount(){return H()(this)}}const $=(()=>{const e=Y.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:e._subscribe},_isComplete:{value:e._isComplete,writable:!0},getSubject:{value:e.getSubject},connect:{value:e.connect},refCount:{value:e.refCount}}})();class Q extends I{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}function Z(){return new b}function X(e){return{toString:e}.toString()}const K="__parameters__";function J(e,t,n){return X(()=>{const r=function(e){return function(...t){if(e){const n=e(...t);for(const e in n)this[e]=n[e]}}}(t);function i(...e){if(this instanceof i)return r.apply(this,e),this;const t=new i(...e);return n.annotation=t,n;function n(e,n,r){const i=e.hasOwnProperty(K)?e[K]:Object.defineProperty(e,K,{value:[]})[K];for(;i.length<=r;)i.push(null);return(i[r]=i[r]||[]).push(t),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i})}const ee=J("Inject",e=>({token:e})),te=J("Optional"),ne=J("Self"),re=J("SkipSelf");var ie=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function se(e){for(let t in e)if(e[t]===se)return t;throw Error("Could not find renamed property on target object.")}function oe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ae(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function le(e){return ue(e,e[he])||ue(e,e[pe])}function ue(e,t){return t&&t.token===e?t:null}function ce(e){return e&&(e.hasOwnProperty(de)||e.hasOwnProperty(me))?e[de]:null}const he=se({"\u0275prov":se}),de=se({"\u0275inj":se}),fe=se({"\u0275provFallback":se}),pe=se({ngInjectableDef:se}),me=se({ngInjectorDef:se});function _e(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(_e).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function ye(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const ge=se({__forward_ref__:se});function Ee(e){return e.__forward_ref__=Ee,e.toString=function(){return _e(this())},e}function ve(e){return"function"==typeof(t=e)&&t.hasOwnProperty(ge)&&t.__forward_ref__===Ee?e():e;var t}const Te="undefined"!=typeof globalThis&&globalThis,Ie="undefined"!=typeof window&&window,be="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,we="undefined"!=typeof global&&global,Se=Te||we||Ie||be,Oe=se({"\u0275cmp":se}),Re=se({"\u0275dir":se}),De=se({"\u0275pipe":se}),Ae=se({"\u0275mod":se}),Ce=se({"\u0275loc":se}),Pe=se({"\u0275fac":se}),Ne=se({__NG_ELEMENT_ID__:se});class Me{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=oe({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return"InjectionToken "+this._desc}}const Le=new Me("INJECTOR",-1),xe={},ke=/\n/gm,Fe="__source",Ge=se({provide:String,useValue:se});let je,Ve=void 0;function Be(e){const t=Ve;return Ve=e,t}function qe(e){const t=je;return je=e,t}function Ue(e,t=ie.Default){if(void 0===Ve)throw new Error("inject() must be called from an injection context");return null===Ve?ze(e,void 0,t):Ve.get(e,t&ie.Optional?null:void 0,t)}function He(e,t=ie.Default){return(je||Ue)(ve(e),t)}function ze(e,t,n){const r=le(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&ie.Optional)return null;if(void 0!==t)return t;throw new Error(`Injector: NOT_FOUND [${_e(e)}]`)}function We(e){const t=[];for(let n=0;n<e.length;n++){const r=ve(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let e=void 0,n=ie.Default;for(let t=0;t<r.length;t++){const i=r[t];i instanceof te||"Optional"===i.ngMetadataName||i===te?n|=ie.Optional:i instanceof re||"SkipSelf"===i.ngMetadataName||i===re?n|=ie.SkipSelf:i instanceof ne||"Self"===i.ngMetadataName||i===ne?n|=ie.Self:e=i instanceof ee||i===ee?i.token:i}t.push(He(e,n))}else t.push(He(r))}return t}class Ye{get(e,t=xe){if(t===xe){const t=new Error(`NullInjectorError: No provider for ${_e(e)}!`);throw t.name="NullInjectorError",t}return t}}class $e{}function Qe(e,t){e.forEach(e=>Array.isArray(e)?Qe(e,t):t(e))}function Ze(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Xe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}var Ke=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),Je=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({});const et={},tt=[];let nt=0;function rt(e){return X(()=>{const t={},n={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===Ke.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||tt,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Je.Emulated,id:"c",styles:e.styles||tt,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,s=e.pipes;return n.id+=nt++,n.inputs=lt(e.inputs,t),n.outputs=lt(e.outputs),i&&i.forEach(e=>e(n)),n.directiveDefs=r?()=>("function"==typeof r?r():r).map(it):null,n.pipeDefs=s?()=>("function"==typeof s?s():s).map(st):null,n})}function it(e){return ut(e)||function(e){return e[Re]||null}(e)}function st(e){return function(e){return e[De]||null}(e)}const ot={};function at(e){const t={type:e.type,bootstrap:e.bootstrap||tt,declarations:e.declarations||tt,imports:e.imports||tt,exports:e.exports||tt,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&X(()=>{ot[e.id]=e.type}),t}function lt(e,t){if(null==e)return et;const n={};for(const r in e)if(e.hasOwnProperty(r)){let i=e[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),n[i]=r,t&&(t[i]=s)}return n}function ut(e){return e[Oe]||null}function ct(e,t){return e.hasOwnProperty(Pe)?e[Pe]:null}function ht(e,t){const n=e[Ae]||null;if(!n&&!0===t)throw new Error(`Type ${_e(e)} does not have '\u0275mod' property.`);return n}const dt=20,ft=10;function pt(e){return Array.isArray(e)&&"object"==typeof e[1]}function mt(e){return Array.isArray(e)&&!0===e[1]}function _t(e){return 0!=(8&e.flags)}function yt(e){return 2==(2&e.flags)}function gt(e){return 1==(1&e.flags)}function Et(e){return null!==e.template}function vt(e){return 0!=(512&e[2])}class Tt{constructor(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}isFirstChange(){return this.firstChange}}function It(){return bt}function bt(e){return e.type.prototype.ngOnChanges&&(e.setInput=St),wt}function wt(){const e=Ot(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===et)e.previous=t;else for(let e in t)n[e]=t[e];e.current=null,this.ngOnChanges(t)}}function St(e,t,n,r){const i=Ot(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:et,current:null}),s=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[n],l=o[a];s[a]=new Tt(l&&l.currentValue,t,o===et),e[r]=t}function Ot(e){return e.__ngSimpleChanges__||null}It.ngInherit=!0;let Rt=void 0;function Dt(e){return!!e.listen}const At={createRenderer:(e,t)=>void 0!==Rt?Rt:"undefined"!=typeof document?document:void 0};function Ct(e){for(;Array.isArray(e);)e=e[0];return e}function Pt(e,t){return Ct(t[e.index])}function Nt(e,t){return e.data[t+dt]}function Mt(e,t){const n=t[e];return pt(n)?n:n[0]}function Lt(e){const t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function xt(e){return 4==(4&e[2])}function kt(e){return 128==(128&e[2])}function Ft(e,t){return null===e||null==t?null:e[t]}function Gt(e){e[18]=0}function jt(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const Vt={lFrame:nn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Bt(){return Vt.bindingsEnabled}function qt(){return Vt.lFrame.lView}function Ut(){return Vt.lFrame.tView}function Ht(){return Vt.lFrame.previousOrParentTNode}function zt(e,t){Vt.lFrame.previousOrParentTNode=e,Vt.lFrame.isParent=t}function Wt(){return Vt.lFrame.isParent}function Yt(){return Vt.checkNoChangesMode}function $t(e){Vt.checkNoChangesMode=e}function Qt(e,t){const n=Vt.lFrame;n.bindingIndex=n.bindingRootIndex=e,Zt(t)}function Zt(e){Vt.lFrame.currentDirectiveIndex=e}function Xt(){return Vt.lFrame.currentQueryIndex}function Kt(e){Vt.lFrame.currentQueryIndex=e}function Jt(e,t){const n=tn();Vt.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function en(e,t){const n=tn(),r=e[1];Vt.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex}function tn(){const e=Vt.lFrame,t=null===e?null:e.child;return null===t?nn(e):t}function nn(e){const t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function rn(){const e=Vt.lFrame;return Vt.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}const sn=rn;function on(){const e=rn();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function an(e){Vt.lFrame.selectedIndex=e}function ln(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const t=e.data[n].type.prototype,{ngAfterContentInit:r,ngAfterContentChecked:i,ngAfterViewInit:s,ngAfterViewChecked:o,ngOnDestroy:a}=t;r&&(e.contentHooks||(e.contentHooks=[])).push(-n,r),i&&((e.contentHooks||(e.contentHooks=[])).push(n,i),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,i)),s&&(e.viewHooks||(e.viewHooks=[])).push(-n,s),o&&((e.viewHooks||(e.viewHooks=[])).push(n,o),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,o)),null!=a&&(e.destroyHooks||(e.destroyHooks=[])).push(n,a)}}function un(e,t,n){dn(e,t,3,n)}function cn(e,t,n,r){(3&e[2])===n&&dn(e,t,n,r)}function hn(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function dn(e,t,n,r){const i=null!=r?r:-1;let s=0;for(let o=void 0!==r?65535&e[18]:0;o<t.length;o++)if("number"==typeof t[o+1]){if(s=t[o],null!=r&&s>=r)break}else t[o]<0&&(e[18]+=65536),(s<i||-1==i)&&(fn(e,n,t,o),e[18]=(4294901760&e[18])+o+2),o++}function fn(e,t,n,r){const i=n[r]<0,s=n[r+1],o=e[i?-n[r]:n[r]];i?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,s.call(o)):s.call(o)}class pn{constructor(e,t,n){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=n}}function mn(e,t,n){const r=Dt(e);let i=0;for(;i<n.length;){const s=n[i];if("number"==typeof s){if(0!==s)break;i++;const o=n[i++],a=n[i++],l=n[i++];r?e.setAttribute(t,a,l,o):t.setAttributeNS(o,a,l)}else{const o=s,a=n[++i];_n(o)?r&&e.setProperty(t,o,a):r?e.setAttribute(t,o,a):t.setAttribute(o,a),i++}}return i}function _n(e){return 64===e.charCodeAt(0)}function yn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const i=t[r];"number"==typeof i?n=i:0===n||gn(e,n,i,null,-1===n||2===n?t[++r]:null)}}return e}function gn(e,t,n,r,i){let s=0,o=e.length;if(-1===t)o=-1;else for(;s<e.length;){const n=e[s++];if("number"==typeof n){if(n===t){o=-1;break}if(n>t){o=s-1;break}}}for(;s<e.length;){const t=e[s];if("number"==typeof t)break;if(t===n){if(null===r)return void(null!==i&&(e[s+1]=i));if(r===e[s+1])return void(e[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==o&&(e.splice(o,0,t),s=o+1),e.splice(s++,0,n),null!==r&&e.splice(s++,0,r),null!==i&&e.splice(s++,0,i)}function En(e){return-1!==e}function vn(e){return 32767&e}function Tn(e){return e>>16}function In(e,t){let n=Tn(e),r=t;for(;n>0;)r=r[15],n--;return r}function bn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():function(e){return"string"==typeof e?e:null==e?"":""+e}(e)}const wn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Se))();function Sn(e){return e instanceof Function?e():e}let On=!0;function Rn(e){const t=On;return On=e,t}let Dn=0;function An(e,t){const n=Pn(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Cn(r.data,e),Cn(t,null),Cn(r.blueprint,null));const i=Nn(e,t),s=e.injectorIndex;if(En(i)){const e=vn(i),n=In(i,t),r=n[1].data;for(let i=0;i<8;i++)t[s+i]=n[e+i]|r[e+i]}return t[s+8]=i,s}function Cn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Pn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function Nn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=t[6],r=1;for(;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function Mn(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ne)&&(r=n[Ne]),null==r&&(r=n[Ne]=Dn++);const i=255&r,s=1<<i,o=64&i,a=32&i,l=t.data;128&i?o?a?l[e+7]|=s:l[e+6]|=s:a?l[e+5]|=s:l[e+4]|=s:o?a?l[e+3]|=s:l[e+2]|=s:a?l[e+1]|=s:l[e]|=s}(e,t,n)}function Ln(e,t,n,r=ie.Default,i){if(null!==e){const i=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Ne)?e[Ne]:void 0;return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof i){Jt(t,e);try{const e=i();if(null!=e||r&ie.Optional)return e;throw new Error(`No provider for ${bn(n)}!`)}finally{sn()}}else if("number"==typeof i){if(-1===i)return new Bn(e,t);let s=null,o=Pn(e,t),a=-1,l=r&ie.Host?t[16][6]:null;for((-1===o||r&ie.SkipSelf)&&(a=-1===o?Nn(e,t):t[o+8],Vn(r,!1)?(s=t[1],o=vn(a),t=In(a,t)):o=-1);-1!==o;){a=t[o+8];const e=t[1];if(jn(i,o,e.data)){const e=kn(o,t,n,s,r,l);if(e!==xn)return e}Vn(r,t[1].data[o+8]===l)&&jn(i,o,t)?(s=e,o=vn(a),t=In(a,t)):o=-1}}}if(r&ie.Optional&&void 0===i&&(i=null),0==(r&(ie.Self|ie.Host))){const e=t[9],s=qe(void 0);try{return e?e.get(n,i,r&ie.Optional):ze(n,i,r&ie.Optional)}finally{qe(s)}}if(r&ie.Optional)return i;throw new Error(`NodeInjector: NOT_FOUND [${bn(n)}]`)}const xn={};function kn(e,t,n,r,i,s){const o=t[1],a=o.data[e+8],l=Fn(a,o,n,null==r?yt(a)&&On:r!=o&&3===a.type,i&ie.Host&&s===a);return null!==l?Gn(t,o,l,a):xn}function Fn(e,t,n,r,i){const s=e.providerIndexes,o=t.data,a=1048575&s,l=e.directiveStart,u=s>>20,c=i?a+u:e.directiveEnd;for(let h=r?a:a+u;h<c;h++){const e=o[h];if(h<l&&n===e||h>=l&&e.type===n)return h}if(i){const e=o[l];if(e&&Et(e)&&e.type===n)return l}return null}function Gn(e,t,n,r){let i=e[n];const s=t.data;if(i instanceof pn){const o=i;if(o.resolving)throw new Error("Circular dep for "+bn(s[n]));const a=Rn(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=qe(o.injectImpl)),Jt(e,r);try{i=e[n]=o.factory(void 0,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=t.type.prototype;if(r){const r=bt(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,i),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s))}(n,s[n],t)}finally{o.injectImpl&&qe(l),Rn(a),o.resolving=!1,sn()}}return i}function jn(e,t,n){const r=64&e,i=32&e;let s;return s=128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t],!!(s&1<<e)}function Vn(e,t){return!(e&ie.Self||e&ie.Host&&t)}class Bn{constructor(e,t){this._tNode=e,this._lView=t}get(e,t){return Ln(this._tNode,this._lView,e,void 0,t)}}function qn(e){return e.ngDebugContext}function Un(e){return e.ngOriginalError}function Hn(e,...t){e.error(...t)}class zn{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||Hn}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}_findContext(e){return e?qn(e)?qn(e):this._findContext(Un(e)):null}_findOriginalError(e){let t=Un(e);for(;t&&Un(t);)t=Un(t);return t}}let Wn=!0,Yn=!1;function $n(){return Yn=!0,Wn}function Qn(e,t){e.__ngContext__=t}function Zn(e){throw new Error("Multiple components match node with tagname "+e.tagName)}function Xn(){throw new Error("Cannot mix multi providers and regular providers")}function Kn(e,t,n){let r=e.length;for(;;){const i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){const n=t.length;if(i+n===r||e.charCodeAt(i+n)<=32)return i}n=i+1}}const Jn="ng-template";function er(e,t,n){let r=0;for(;r<e.length;){let i=e[r++];if(n&&"class"===i){if(i=e[r],-1!==Kn(i.toLowerCase(),t,0))return!0}else if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}}return!1}function tr(e){return 0===e.type&&e.tagName!==Jn}function nr(e,t,n){return t===(0!==e.type||n?e.tagName:Jn)}function rr(e,t,n){let r=4;const i=e.attrs||[],s=function(e){for(let n=0;n<e.length;n++)if(3===(t=e[n])||4===t||6===t)return n;var t;return e.length}(i);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&r){if(r=2|1&r,""!==l&&!nr(e,l,n)||""===l&&1===t.length){if(ir(r))return!1;o=!0}}else{const u=8&r?l:t[++a];if(8&r&&null!==e.attrs){if(!er(e.attrs,u,n)){if(ir(r))return!1;o=!0}continue}const c=sr(8&r?"class":l,i,tr(e),n);if(-1===c){if(ir(r))return!1;o=!0;continue}if(""!==u){let e;e=c>s?"":i[c+1].toLowerCase();const t=8&r?e:null;if(t&&-1!==Kn(t,u,0)||2&r&&u!==e){if(ir(r))return!1;o=!0}}}}else{if(!o&&!ir(r)&&!ir(l))return!1;if(o&&ir(l))continue;o=!1,r=l|1&r}}return ir(r)||o}function ir(e){return 0==(1&e)}function sr(e,t,n,r){if(null===t)return-1;let i=0;if(r||!n){let n=!1;for(;i<t.length;){const r=t[i];if(r===e)return i;if(3===r||6===r)n=!0;else{if(1===r||2===r){let e=t[++i];for(;"string"==typeof e;)e=t[++i];continue}if(4===r)break;if(0===r){i+=4;continue}}i+=n?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function or(e,t,n=!1){for(let r=0;r<t.length;r++)if(rr(e,t[r],n))return!0;return!1}function ar(e,t){return e?":not("+t.trim()+")":t}function lr(e){let t=e[0],n=1,r=2,i="",s=!1;for(;n<e.length;){let o=e[n];if("string"==typeof o)if(2&r){const t=e[++n];i+="["+o+(t.length>0?'="'+t+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""===i||ir(o)||(t+=ar(s,i),i=""),r=o,s=s||!ir(r);n++}return""!==i&&(t+=ar(s,i)),t}const ur={};function cr(e){const t=e[3];return mt(t)?t[3]:t}function hr(e){return fr(e[13])}function dr(e){return fr(e[4])}function fr(e){for(;null!==e&&!mt(e);)e=e[4];return e}function pr(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],s=n[r+1];if(-1!==s){const n=e.data[s];Kt(i),n.contentQueries(2,t[s],s)}}}function mr(e,t,n){return Dt(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function _r(e,t,n,r,i,s,o,a,l,u){const c=t.blueprint.slice();return c[0]=i,c[2]=140|r,Gt(c),c[3]=c[15]=e,c[8]=n,c[10]=o||e&&e[10],c[11]=a||e&&e[11],c[12]=l||e&&e[12]||null,c[9]=u||e&&e[9]||null,c[6]=s,c[16]=2==t.type?e[16]:c,c}function yr(e,t,n,r,i,s){const o=n+dt,a=e.data[o]||function(e,t,n,r,i,s){const o=Ht(),a=Wt(),l=a?o:o&&o.parent,u=e.data[n]=Sr(0,l&&l!==t?l:null,r,n,i,s);return null===e.firstChild&&(e.firstChild=u),o&&(!a||null!=o.child||null===u.parent&&2!==o.type?a||(o.next=u):o.child=u),u}(e,t,o,r,i,s);return zt(a,!0),a}function gr(e,t,n){en(t,t[6]);try{const r=e.viewQuery;null!==r&&Hr(1,r,n);const i=e.template;null!==i&&Tr(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&pr(e,t),e.staticViewQueries&&Hr(2,e.viewQuery,n);const s=e.components;null!==s&&function(e,t){for(let n=0;n<t.length;n++)jr(e,t[n])}(t,s)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),r}finally{t[2]&=-5,on()}}function Er(e,t,n,r){const i=t[2];if(256==(256&i))return;en(t,t[6]);const s=Yt();try{Gt(t),Vt.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&Tr(e,t,n,2,r);const o=3==(3&i);if(!s)if(o){const n=e.preOrderCheckHooks;null!==n&&un(t,n,null)}else{const n=e.preOrderHooks;null!==n&&cn(t,n,0,null),hn(t,0)}if(function(e){for(let t=hr(e);null!==t;t=dr(t)){if(!t[2])continue;const e=t[9];for(let t=0;t<e.length;t++){const n=e[t],r=n[3];0==(1024&n[2])&&jt(r,1),n[2]|=1024}}}(t),function(e){for(let t=hr(e);null!==t;t=dr(t))for(let e=ft;e<t.length;e++){const n=t[e],r=n[1];kt(n)&&Er(r,n,r.template,n[8])}}(t),null!==e.contentQueries&&pr(e,t),!s)if(o){const n=e.contentCheckHooks;null!==n&&un(t,n)}else{const n=e.contentHooks;null!==n&&cn(t,n,1),hn(t,1)}!function(e,t){try{const n=e.expandoInstructions;if(null!==n){let r=e.expandoStartIndex,i=-1,s=-1;for(let e=0;e<n.length;e++){const o=n[e];"number"==typeof o?o<=0?(s=0-o,an(s),r+=9+n[++e],i=r):r+=o:(null!==o&&(Qt(r,i),o(2,t[i])),i++)}}}finally{an(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)Gr(e,t[n])}(t,a);const l=e.viewQuery;if(null!==l&&Hr(2,l,r),!s)if(o){const n=e.viewCheckHooks;null!==n&&un(t,n)}else{const n=e.viewHooks;null!==n&&cn(t,n,2),hn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),s||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,jt(t[3],-1))}finally{on()}}function vr(e,t,n,r){const i=t[10],s=!Yt(),o=xt(t);try{s&&!o&&i.begin&&i.begin(),o&&gr(e,t,r),Er(e,t,n,r)}finally{s&&!o&&i.end&&i.end()}}function Tr(e,t,n,r,i){const s=Vt.lFrame.selectedIndex;try{an(-1),2&r&&t.length>dt&&function(e,t,n,r){if(!r)if(3==(3&t[2])){const n=e.preOrderCheckHooks;null!==n&&un(t,n,0)}else{const n=e.preOrderHooks;null!==n&&cn(t,n,0,0)}an(0)}(e,t,0,Yt()),n(r,i)}finally{an(s)}}function Ir(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=br(1,-1,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function br(e,t,n,r,i,s,o,a,l,u){const c=dt+r,h=c+i,d=function(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:ur);return n}(c,h),f="function"==typeof u?u():u;return d[1]={type:e,id:t,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:h,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function wr(e,t,n,r){const i=Wr(t);i.push(n),e.firstCreatePass&&function(e){return e.cleanup||(e.cleanup=[])}(e).push(r,i.length-1)}function Sr(e,t,n,r,i,s){return{type:n,index:r,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:i,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Or(e,t,n){for(let r in e)if(e.hasOwnProperty(r)){const i=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,i):n[r]=[t,i]}return n}function Rr(e,t){const n=e.expandoInstructions;n.push(t.hostBindings),0!==t.hostVars&&n.push(t.hostVars)}function Dr(e,t,n){for(let r=0;r<n;r++)t.push(ur),e.blueprint.push(ur),e.data.push(null)}function Ar(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Cr(e,t,n){const r=dt-t.index,i=e.data.length-(1048575&t.providerIndexes);(e.expandoInstructions||(e.expandoInstructions=[])).push(r,i,n)}function Pr(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Nr(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Et(t)&&(n[""]=e)}}function Mr(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Lr(e,t,n){e.data.push(n);const r=n.factory||(n.factory=ct(n.type)),i=new pn(r,Et(n),null);e.blueprint.push(i),t.push(i)}function xr(e,t,n){const r=Pt(t,e),i=Ir(n),s=e[10],o=Vr(e,_r(e,i,null,n.onPush?64:16,r,t,s,s.createRenderer(r,n)));e[t.index]=o}function kr(e,t,n,r,i,s){const o=s[t];if(null!==o){const e=r.setInput;for(let t=0;t<o.length;){const i=o[t++],s=o[t++],a=o[t++];null!==e?r.setInput(n,a,i,s):n[s]=a}}}function Fr(e,t){let n=null,r=0;for(;r<t.length;){const i=t[r];if(0!==i)if(5!==i){if("number"==typeof i)break;e.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,e[i],t[r+1])),r+=2}else r+=2;else r+=4}return n}function Gr(e,t){const n=Mt(t,e);if(kt(n)){const e=n[1];80&n[2]?Er(e,n,e.template,n[8]):n[5]>0&&function e(t){for(let r=hr(t);null!==r;r=dr(r))for(let t=ft;t<r.length;t++){const n=r[t];if(1024&n[2]){const e=n[1];Er(e,n,e.template,n[8])}else n[5]>0&&e(n)}const n=t[1].components;if(null!==n)for(let r=0;r<n.length;r++){const i=Mt(n[r],t);kt(i)&&i[5]>0&&e(i)}}(n)}}function jr(e,t){const n=Mt(t,e),r=n[1];!function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n),gr(r,n,n[8])}function Vr(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function Br(e){for(;e;){e[2]|=64;const t=cr(e);if(vt(e)&&!t)return e;e=t}return null}function qr(e,t,n){const r=t[10];r.begin&&r.begin();try{Er(e,t,e.template,n)}catch(i){throw Yr(t,i),i}finally{r.end&&r.end()}}function Ur(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=Lt(n),i=r[1];vr(i,r,i.template,n)}}(e[8])}function Hr(e,t,n){Kt(0),t(e,n)}const zr=(()=>Promise.resolve(null))();function Wr(e){return e[7]||(e[7]=[])}function Yr(e,t){const n=e[9],r=n?n.get(zn,null):null;r&&r.handleError(t)}function $r(e,t,n,r,i){for(let s=0;s<n.length;){const o=n[s++],a=n[s++],l=t[o],u=e.data[o];null!==u.setInput?u.setInput(l,i,r,a):l[a]=i}}function Qr(e,t){const n=t[3];return-1===e.index?mt(n)?n:null:n}function Zr(e,t){const n=Qr(e,t);return n?ai(t[11],n[7]):null}function Xr(e,t,n,r,i){if(null!=r){let s,o=!1;mt(r)?s=r:pt(r)&&(o=!0,r=r[0]);const a=Ct(r);0===e&&null!==n?null==i?si(t,n,a):ii(t,n,a,i||null):1===e&&null!==n?ii(t,n,a,i||null):2===e?function(e,t,n){const r=ai(e,t);r&&function(e,t,n,r){Dt(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,a,o):3===e&&t.destroyNode(a),null!=s&&function(e,t,n,r,i){const s=n[7];s!==Ct(n)&&Xr(t,e,r,s,i);for(let o=ft;o<n.length;o++){const i=n[o];hi(i[1],i,e,t,r,s)}}(t,e,s,n,i)}}function Kr(e,t,n,r){const i=Zr(e.node,t);i&&hi(e,t,t[11],n?1:2,i,r)}function Jr(e,t){const n=e[9],r=n.indexOf(t);1024&t[2]&&jt(t[3],-1),n.splice(r,1)}function ei(e,t){if(e.length<=ft)return;const n=ft+t,r=e[n];if(r){const i=r[17];null!==i&&i!==e&&Jr(i,r),t>0&&(e[n-1][4]=r[4]);const s=Xe(e,ft+t);Kr(r[1],r,!1,null);const o=s[19];null!==o&&o.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function ti(e,t){if(!(256&t[2])){const n=t[11];Dt(n)&&n.destroyNode&&hi(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return ri(e[1],e);for(;t;){let n=null;if(pt(t))n=t[13];else{const e=t[10];e&&(n=e)}if(!n){for(;t&&!t[4]&&t!==e;)pt(t)&&ri(t[1],t),t=ni(t,e);null===t&&(t=e),pt(t)&&ri(t[1],t),n=t&&t[4]}t=n}}(t)}}function ni(e,t){let n;return pt(e)&&(n=e[6])&&2===n.type?Qr(n,e):e[3]===t?null:e[3]}function ri(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const e=t[n[r]];if(!(e instanceof pn)){const t=n[r+1];if(Array.isArray(t))for(let n=0;n<t.length;n+=2)t[n+1].call(e[t[n]]);else t.call(e)}}}(e,t),function(e,t){const n=e.cleanup;if(null!==n){const e=t[7];for(let r=0;r<n.length-1;r+=2)if("string"==typeof n[r]){const i=n[r+1],s="function"==typeof i?i(t):Ct(t[i]),o=e[n[r+2]],a=n[r+3];"boolean"==typeof a?s.removeEventListener(n[r],o,a):a>=0?e[a]():e[-a].unsubscribe(),r+=2}else n[r].call(e[n[r+1]]);t[7]=null}}(e,t);const n=t[6];n&&3===n.type&&Dt(t[11])&&t[11].destroy();const r=t[17];if(null!==r&&mt(t[3])){r!==t[3]&&Jr(r,t);const n=t[19];null!==n&&n.detachView(e)}}}function ii(e,t,n,r){Dt(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function si(e,t,n){Dt(e)?e.appendChild(t,n):t.appendChild(n)}function oi(e,t,n,r){null!==r?ii(e,t,n,r):si(e,t,n)}function ai(e,t){return Dt(e)?e.parentNode(t):t.parentNode}function li(e,t,n,r){const i=function(e,t,n){let r=t.parent;for(;null!=r&&(4===r.type||5===r.type);)r=(t=r).parent;if(null==r){const e=n[6];return 2===e.type?Zr(e,n):n[0]}if(t&&5===t.type&&4&t.flags)return Pt(t,n).parentNode;if(2&r.flags){const t=e.data,n=t[t[r.index].directiveStart].encapsulation;if(n!==Je.ShadowDom&&n!==Je.Native)return null}return Pt(r,n)}(e,r,t);if(null!=i){const e=t[11],s=function(e,t){if(2===e.type){const n=Qr(e,t);return null===n?null:ui(n.indexOf(t,ft)-ft,n)}return 4===e.type||5===e.type?Pt(e,t):null}(r.parent||t[6],t);if(Array.isArray(n))for(let t=0;t<n.length;t++)oi(e,i,n[t],s);else oi(e,i,n,s)}}function ui(e,t){const n=ft+e+1;if(n<t.length){const e=t[n],r=e[1].firstChild;if(null!==r)return function e(t,n){if(null!==n){const r=n.type;if(3===r)return Pt(n,t);if(0===r)return ui(-1,t[n.index]);if(4===r||5===r){const r=n.child;if(null!==r)return e(t,r);{const e=t[n.index];return mt(e)?ui(-1,e):Ct(e)}}{const r=t[16],i=r[6],s=cr(r),o=i.projection[n.projection];return null!=o?e(s,o):e(t,n.next)}}return null}(e,r)}return t[7]}function ci(e,t,n,r,i,s,o){for(;null!=n;){const a=r[n.index],l=n.type;o&&0===t&&(a&&Qn(Ct(a),r),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(ci(e,t,n.child,r,i,s,!1),Xr(t,e,i,a,s)):1===l?di(e,t,r,n,i,s):Xr(t,e,i,a,s)),n=o?n.projectionNext:n.next}}function hi(e,t,n,r,i,s){ci(n,r,e.node.child,t,i,s,!1)}function di(e,t,n,r,i,s){const o=n[16],a=o[6].projection[r.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)Xr(t,e,i,a[l],s);else ci(e,t,a,o[3],i,s,!0)}function fi(e,t,n){Dt(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function pi(e,t,n){Dt(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}class mi{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const e=this._lView;return null==e[0]?function e(t,n,r,i,s=!1){for(;null!==r;){const o=n[r.index];if(null!==o&&i.push(Ct(o)),mt(o))for(let t=ft;t<o.length;t++){const n=o[t],r=n[1].firstChild;null!==r&&e(n[1],n,r,i)}const a=r.type;if(4===a||5===a)e(t,n,r.child,i);else if(1===a){const t=n[16],s=t[6].projection[r.projection];if(Array.isArray(s))i.push(...s);else{const n=cr(t);e(n[1],n,s,i,!0)}}r=s?r.projectionNext:r.next}return i}(e[1],e,e[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}ti(this._lView[1],this._lView)}onDestroy(e){wr(this._lView[1],this._lView,null,e)}markForCheck(){Br(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){qr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){$t(!0);try{qr(e,t,n)}finally{$t(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}detachFromAppRef(){var e;this._appRef=null,hi(this._lView[1],e=this._lView,e[11],2,null,null)}attachToAppRef(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class _i extends mi{constructor(e){super(e),this._view=e}detectChanges(){Ur(this._view)}checkNoChanges(){!function(e){$t(!0);try{Ur(e)}finally{$t(!1)}}(this._view)}get context(){return null}}let yi,gi,Ei;function vi(e,t,n){return yi||(yi=class extends e{}),new yi(Pt(t,n))}function Ti(e,t,n,r){return gi||(gi=class extends e{constructor(e,t,n){super(),this._declarationView=e,this._declarationTContainer=t,this.elementRef=n}createEmbeddedView(e){const t=this._declarationTContainer.tViews,n=_r(this._declarationView,t,e,16,null,t.node);n[17]=this._declarationView[this._declarationTContainer.index];const r=this._declarationView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),gr(t,n,e),new mi(n)}}),0===n.type?new gi(r,n,vi(t,n,r)):null}function Ii(e,t,n,r){let i;Ei||(Ei=class extends e{constructor(e,t,n){super(),this._lContainer=e,this._hostTNode=t,this._hostView=n}get element(){return vi(t,this._hostTNode,this._hostView)}get injector(){return new Bn(this._hostTNode,this._hostView)}get parentInjector(){const e=Nn(this._hostTNode,this._hostView),t=In(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){const e=n.parent.injectorIndex;let t=n.parent;for(;null!=t.parent&&e==t.parent.injectorIndex;)t=t.parent;return t}let r=Tn(e),i=t,s=t[6];for(;r>1;)i=i[15],s=i[6],r--;return s}(e,this._hostView,this._hostTNode);return En(e)&&null!=n?new Bn(n,t):new Bn(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}get length(){return this._lContainer.length-ft}createEmbeddedView(e,t,n){const r=e.createEmbeddedView(t||{});return this.insert(r,n),r}createComponent(e,t,n,r,i){const s=n||this.parentInjector;if(!i&&null==e.ngModule&&s){const e=s.get($e,null);e&&(i=e)}const o=e.create(s,r,void 0,i);return this.insert(o.hostView,t),o}insert(e,t){const n=e._lView,r=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),mt(n[3])){const t=this.indexOf(e);if(-1!==t)this.detach(t);else{const t=n[3],r=new Ei(t,t[6],t[3]);r.detach(r.indexOf(e))}}const i=this._adjustIndex(t);return function(e,t,n,r){const i=ft+r,s=n.length;r>0&&(n[i-1][4]=t),r<s-ft?(t[4]=n[i],Ze(n,ft+r,t)):(n.push(t),t[4]=null),t[3]=n;const o=t[17];null!==o&&n!==o&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=128}(r,n,this._lContainer,i),Kr(r,n,!0,ui(i,this._lContainer)),e.attachToViewContainerRef(this),Ze(this._lContainer[8],i,e),e}move(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,t)}indexOf(e){const t=this._lContainer[8];return null!==t?t.indexOf(e):-1}remove(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1),n=ei(this._lContainer,t);n&&(Xe(this._lContainer[8],t),ti(n[1],n))}detach(e){this.allocateContainerIfNeeded();const t=this._adjustIndex(e,-1),n=ei(this._lContainer,t);return n&&null!=Xe(this._lContainer[8],t)?new mi(n):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const s=r[n.index];if(mt(s))i=s;else{let e;if(4===n.type)e=Ct(s);else if(e=r[11].createComment(""),vt(r)){const t=r[11],i=Pt(n,r);ii(t,ai(t,i),e,function(e,t){return Dt(e)?e.nextSibling(t):t.nextSibling}(t,i))}else li(r[1],r,e,n);r[n.index]=i=new Array(s,!0,!1,r,null,0,n,e,null,null),Vr(r,i)}return new Ei(i,n,r)}const bi=new Me("Set Injector scope."),wi={},Si={},Oi=[];let Ri=void 0;function Di(){return void 0===Ri&&(Ri=new Ye),Ri}function Ai(e,t=null,n=null,r){return new Ci(e,n,t||Di(),r)}class Ci{constructor(e,t,n,r=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];t&&Qe(t,n=>this.processProvider(n,e,t)),Qe([e],e=>this.processInjectorType(e,[],i)),this.records.set(Le,Ni(void 0,this));const s=this.records.get(bi);this.scope=null!=s?s.value:null,this.source=r||("object"==typeof e?null:_e(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=xe,n=ie.Default){this.assertNotDestroyed();const r=Be(this);try{if(!(n&ie.SkipSelf)){let t=this.records.get(e);if(void 0===t){const n=("function"==typeof(i=e)||"object"==typeof i&&i instanceof Me)&&le(e);t=n&&this.injectableDefInScope(n)?Ni(Pi(e),wi):null,this.records.set(e,t)}if(null!=t)return this.hydrate(e,t)}return(n&ie.Self?Di():this.parent).get(e,t=n&ie.Optional&&t===xe?null:t)}catch(s){if("NullInjectorError"===s.name){if((s.ngTempTokenPath=s.ngTempTokenPath||[]).unshift(_e(e)),r)throw s;return function(e,t,n,r){const i=e.ngTempTokenPath;throw t[Fe]&&i.unshift(t[Fe]),e.message=function(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let i=_e(t);if(Array.isArray(t))i=t.map(_e).join(" -> ");else if("object"==typeof t){let e=[];for(let n in t)if(t.hasOwnProperty(n)){let r=t[n];e.push(n+":"+("string"==typeof r?JSON.stringify(r):_e(r)))}i=`{${e.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${e.replace(ke,"\n ")}`}("\n"+e.message,i,n,r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(s,e,"R3InjectorError",this.source)}throw s}finally{Be(r)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((t,n)=>e.push(_e(n))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,t,n){if(!(e=ve(e)))return!1;let r=ce(e);const i=null==r&&e.ngModule||void 0,s=void 0===i?e:i,o=-1!==n.indexOf(s);if(void 0!==i&&(r=ce(i)),null==r)return!1;if(null!=r.imports&&!o){let e;n.push(s);try{Qe(r.imports,r=>{this.processInjectorType(r,t,n)&&(void 0===e&&(e=[]),e.push(r))})}finally{}if(void 0!==e)for(let t=0;t<e.length;t++){const{ngModule:n,providers:r}=e[t];Qe(r,e=>this.processProvider(e,n,r||Oi))}}this.injectorDefTypes.add(s),this.records.set(s,Ni(r.factory,wi));const a=r.providers;if(null!=a&&!o){const t=e;Qe(a,e=>this.processProvider(e,t,a))}return void 0!==i&&void 0!==e.providers}processProvider(e,t,n){let r=Li(e=ve(e))?e:ve(e&&e.provide);const i=function(e,t,n){return Mi(e)?Ni(void 0,e.useValue):Ni(function(e,t,n){let r=void 0;if(Li(e)){const t=ve(e);return ct(t)||Pi(t)}if(Mi(e))r=()=>ve(e.useValue);else if((i=e)&&i.useFactory)r=()=>e.useFactory(...We(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>He(ve(e.useExisting));else{const i=ve(e&&(e.useClass||e.provide));if(i||function(e,t,n){let r="";throw e&&t&&(r=` - only instances of Provider and Type are allowed, got: [${t.map(e=>e==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${_e(e)}'`+r)}(t,n,e),!function(e){return!!e.deps}(e))return ct(i)||Pi(i);r=()=>new i(...We(e.deps))}var i;return r}(e,t,n),wi)}(e,t,n);if(Li(e)||!0!==e.multi){const e=this.records.get(r);e&&void 0!==e.multi&&Xn()}else{let t=this.records.get(r);t?void 0===t.multi&&Xn():(t=Ni(void 0,wi,!0),t.factory=()=>We(t.multi),this.records.set(r,t)),r=e,t.multi.push(e)}this.records.set(r,i)}hydrate(e,t){var n;return t.value===Si?function(e){throw new Error("Cannot instantiate cyclic dependency! "+e)}(_e(e)):t.value===wi&&(t.value=Si,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}}function Pi(e){const t=le(e),n=null!==t?t.factory:ct(e);if(null!==n)return n;const r=ce(e);if(null!==r)return r.factory;if(e instanceof Me)throw new Error(`Token ${_e(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const n=function(e,t){const n=[];for(let r=0;r<e;r++)n.push("?");return n}(t);throw new Error(`Can't resolve all parameters for ${_e(e)}: (${n.join(", ")}).`)}const n=function(e){const t=e&&(e[he]||e[pe]||e[fe]&&e[fe]());if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function Ni(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Mi(e){return null!==e&&"object"==typeof e&&Ge in e}function Li(e){return"function"==typeof e}const xi=function(e,t,n){return function(e,t=null,n=null,r){const i=Ai(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)};let ki=(()=>{class e{static create(e,t){return Array.isArray(e)?xi(e,t,""):xi(e.providers,e.parent,e.name||"")}}return e.THROW_IF_NOT_FOUND=xe,e.NULL=new Ye,e.\u0275prov=oe({token:e,providedIn:"any",factory:()=>He(Le)}),e.__NG_ELEMENT_ID__=-1,e})();function Fi(e,t,n){let r=n?e.styles:null,i=n?e.classes:null,s=0;if(null!==t)for(let o=0;o<t.length;o++){const e=t[o];"number"==typeof e?s=e:1==s?i=ye(i,e):2==s&&(r=ye(r,e+": "+t[++o]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}let Gi=null;function ji(){if(!Gi){const e=Se.Symbol;if(e&&e.iterator)Gi=e.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const n=e[t];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(Gi=n)}}}return Gi}function Vi(e){return!!Bi(e)&&(Array.isArray(e)||!(e instanceof Map)&&ji()in e)}function Bi(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function qi(e,t=ie.Default){const n=qt();return null==n?He(e,t):Ln(Ht(),n,ve(e),t)}function Ui(e,t,n){const r=qt();return function(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}(r,Vt.lFrame.bindingIndex++,t)&&function(e,t,n,r,i,s,o,a){const l=Pt(t,n);let u,c=t.inputs;var h;null!=c&&(u=c[r])?($r(e,n,u,r,i),yt(t)&&function(e,t){const n=Mt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3===t.type&&(r="class"===(h=r)?"className":"for"===h?"htmlFor":"formaction"===h?"formAction":"innerHtml"===h?"innerHTML":"readonly"===h?"readOnly":"tabindex"===h?"tabIndex":h,i=null!=o?o(i,t.tagName||"",r):i,Dt(s)?s.setProperty(l,r,i):_n(r)||(l.setProperty?l.setProperty(r,i):l[r]=i))}(Ut(),function(){const e=Vt.lFrame;return Nt(e.tView,e.selectedIndex)}(),r,e,t,r[11],n),Ui}function Hi(e,t,n,r,i){const s=i?"class":"style";$r(e,n,t.inputs[s],s,r)}function zi(e,t,n,r){const i=qt(),s=Ut(),o=dt+e,a=i[11],l=i[o]=mr(t,a,Vt.lFrame.currentNamespace),u=s.firstCreatePass?function(e,t,n,r,i,s,o){const a=t.consts,l=Ft(a,s),u=yr(t,n[6],e,3,i,l);return function(e,t,n,r){let i=!1;if(Bt()){const s=function(e,t,n){const r=e.directiveRegistry;let i=null;if(r)for(let s=0;s<r.length;s++){const o=r[s];or(n,o.selectors,!1)&&(i||(i=[]),Mn(An(n,t),e,o.type),Et(o)?(2&n.flags&&Zn(n),Pr(e,n),i.unshift(o)):i.push(o))}return i}(e,t,n),o=null===r?null:{"":-1};if(null!==s){let r=0;i=!0,Mr(n,e.data.length,s.length);for(let e=0;e<s.length;e++){const t=s[e];t.providersResolver&&t.providersResolver(t)}Cr(e,n,s.length);let a=!1,l=!1;for(let i=0;i<s.length;i++){const u=s[i];n.mergedAttrs=yn(n.mergedAttrs,u.hostAttrs),Lr(e,t,u),Nr(e.data.length-1,u,o),null!==u.contentQueries&&(n.flags|=8),null===u.hostBindings&&null===u.hostAttrs&&0===u.hostVars||(n.flags|=128);const c=u.type.prototype;!a&&(c.ngOnChanges||c.ngOnInit||c.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index-dt),a=!0),l||!c.ngOnChanges&&!c.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index-dt),l=!0),Rr(e,u),r+=u.hostVars}!function(e,t){const n=t.directiveEnd,r=e.data,i=t.attrs,s=[];let o=null,a=null;for(let l=t.directiveStart;l<n;l++){const e=r[l],n=e.inputs,u=null===i||tr(t)?null:Fr(n,i);s.push(u),o=Or(n,l,o),a=Or(e.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(t.flags|=16),o.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=s,t.inputs=o,t.outputs=a}(e,n),Dr(e,t,r)}o&&function(e,t,n){if(t){const r=e.localNames=[];for(let e=0;e<t.length;e+=2){const i=n[t[e+1]];if(null==i)throw new Error(`Export of name '${t[e+1]}' not found!`);r.push(t[e],i)}}}(n,r,o)}n.mergedAttrs=yn(n.mergedAttrs,n.attrs)}(t,n,u,Ft(a,o)),null!==u.attrs&&Fi(u,u.attrs,!1),null!==u.mergedAttrs&&Fi(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(e,s,i,0,t,n,r):s.data[o];zt(u,!0);const c=u.mergedAttrs;null!==c&&mn(a,l,c);const h=u.classes;null!==h&&pi(a,l,h);const d=u.styles;null!==d&&fi(a,l,d),li(s,i,l,u),0===Vt.lFrame.elementDepthCount&&Qn(l,i),Vt.lFrame.elementDepthCount++,gt(u)&&(function(e,t,n){Bt()&&(function(e,t,n,r){const i=n.directiveStart,s=n.directiveEnd;e.firstCreatePass||An(n,t),Qn(r,t);const o=n.initialInputs;for(let a=i;a<s;a++){const r=e.data[a],s=Et(r);s&&xr(t,n,r);const l=Gn(t,e,a,n);Qn(l,t),null!==o&&kr(0,a-i,l,r,0,o),s&&(Mt(n.index,t)[8]=l)}}(e,t,n,Pt(n,t)),128==(128&n.flags)&&function(e,t,n){const r=n.directiveStart,i=n.directiveEnd,s=e.expandoInstructions,o=e.firstCreatePass,a=n.index-dt,l=Vt.lFrame.currentDirectiveIndex;try{an(a);for(let n=r;n<i;n++){const r=e.data[n],i=t[n];Zt(n),null!==r.hostBindings||0!==r.hostVars||null!==r.hostAttrs?Ar(r,i):o&&s.push(null)}}finally{an(-1),Zt(l)}}(e,t,n))}(s,i,u),function(e,t,n){if(_t(t)){const r=t.directiveEnd;for(let i=t.directiveStart;i<r;i++){const t=e.data[i];t.contentQueries&&t.contentQueries(1,n[i],i)}}}(s,u,i)),null!==r&&function(e,t,n=Pt){const r=t.localNames;if(null!==r){let i=t.index+1;for(let s=0;s<r.length;s+=2){const o=r[s+1],a=-1===o?n(t,e):e[o];e[i++]=a}}}(i,u)}function Wi(){let e=Ht();Wt()?Vt.lFrame.isParent=!1:(e=e.parent,zt(e,!1));const t=e;Vt.lFrame.elementDepthCount--;const n=Ut();n.firstCreatePass&&(ln(n,e),_t(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Hi(n,t,qt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Hi(n,t,qt(),t.stylesWithoutHost,!1)}function Yi(e){return!!e&&"function"==typeof e.then}function $i(e,t,n=!1,r){const i=qt(),s=Ut(),o=Ht();return function(e,t,n,r,i,s,o=!1,a){const l=gt(r),u=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),c=Wr(t);let h=!0;if(3===r.type){const d=Pt(r,t),f=a?a(d):et,p=f.target||d,m=c.length,_=a?e=>a(Ct(e[r.index])).target:r.index;if(Dt(n)){let o=null;if(!a&&l&&(o=function(e,t,n,r){const i=e.cleanup;if(null!=i)for(let s=0;s<i.length-1;s+=2){const e=i[s];if(e===n&&i[s+1]===r){const e=t[7],n=i[s+2];return e.length>n?e[n]:null}"string"==typeof e&&(s+=2)}return null}(e,t,i,r.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=s,o.__ngLastListenerFn__=s,h=!1;else{s=Zi(r,t,s,!1);const e=n.listen(f.name||p,i,s);c.push(s,e),u&&u.push(i,_,m,m+1)}}else s=Zi(r,t,s,!0),p.addEventListener(i,s,o),c.push(s),u&&u.push(i,_,m,o)}const d=r.outputs;let f;if(h&&null!==d&&(f=d[i])){const e=f.length;if(e)for(let n=0;n<e;n+=2){const e=t[f[n]][f[n+1]].subscribe(s),o=c.length;c.push(s,e),u&&u.push(i,r.index,o,-(o+1))}}}(s,i,i[11],o,e,t,n,r),$i}function Qi(e,t,n){try{return!1!==t(n)}catch(r){return Yr(e,r),!1}}function Zi(e,t,n,r){return function i(s){if(s===Function)return n;const o=2&e.flags?Mt(e.index,t):t;0==(32&t[2])&&Br(o);let a=Qi(t,n,s),l=i.__ngNextListenerFn__;for(;l;)a=Qi(t,l,s)&&a,l=l.__ngNextListenerFn__;return r&&!1===a&&(s.preventDefault(),s.returnValue=!1),a}}function Xi(e,t){const n=Lt(e)[1],r=n.data.length-1;ln(n,{directiveStart:r,directiveEnd:r+1})}class Ki{}class Ji{resolveComponentFactory(e){throw function(e){const t=Error(`No component factory found for ${_e(e)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=e,t}(e)}}let es=(()=>{class e{}return e.NULL=new Ji,e})(),ts=(()=>{class e{constructor(e){this.nativeElement=e}}return e.__NG_ELEMENT_ID__=()=>ns(e),e})();const ns=function(e){return vi(e,Ht(),qt())};class rs{}var is=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({});let ss=(()=>{class e{}return e.\u0275prov=oe({token:e,providedIn:"root",factory:()=>null}),e})();class os{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const as=new os("10.1.0");class ls{constructor(){}supports(e){return Vi(e)}create(e){return new cs(e)}}const us=(e,t)=>t;class cs{constructor(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||us}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,n=this._removalsHead,r=0,i=null;for(;t||n;){const s=!n||t&&t.currentIndex<ps(n,r,i)?t:n,o=ps(s,r,i),a=s.currentIndex;if(s===n)r--,n=n._nextRemoved;else if(t=t._next,null==s.previousIndex)r++;else{i||(i=[]);const e=o-r,t=a-r;if(e!=t){for(let n=0;n<e;n++){const r=n<i.length?i[n]:i[n]=0,s=r+n;t<=s&&s<e&&(i[n]=r+1)}i[s.previousIndex]=t-e}}o!==a&&e(s,o,a)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!Vi(e))throw new Error(`Error trying to diff '${_e(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t,n,r,i=this._itHead,s=!1;if(Array.isArray(e)){this.length=e.length;for(let t=0;t<this.length;t++)n=e[t],r=this._trackByFn(t,n),null!==i&&Object.is(i.trackById,r)?(s&&(i=this._verifyReinsertion(i,n,r,t)),Object.is(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,r,t),s=!0),i=i._next}else t=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[ji()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(e,e=>{r=this._trackByFn(t,e),null!==i&&Object.is(i.trackById,r)?(s&&(i=this._verifyReinsertion(i,e,r,t)),Object.is(i.item,e)||this._addIdentityChange(i,e)):(i=this._mismatch(i,e,r,t),s=!0),i=i._next,t++}),this.length=t;return this._truncate(i),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,n,r){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):e=this._addAfter(new hs(t,n),i,r),e}_verifyReinsertion(e,t,n,r){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}_moveAfter(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}_addAfter(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,n){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new fs),this._linkedRecords.put(e),e.currentIndex=n,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new fs),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class hs{constructor(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class ds{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}remove(e){const t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}class fs{constructor(){this.map=new Map}put(e){const t=e.trackById;let n=this.map.get(t);n||(n=new ds,this.map.set(t,n)),n.add(e)}get(e,t){const n=this.map.get(e);return n?n.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ps(e,t,n){const r=e.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+t+i}class ms{constructor(){}supports(e){return e instanceof Map||Bi(e)}create(){return new _s}}class _s{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||Bi(e)))throw new Error(`Error trying to diff '${_e(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(e,n)=>{if(t&&t.key===n)this._maybeAddToChanges(t,e),this._appendAfter=t,t=t._next;else{const r=this._getOrCreateRecordForKey(n,e);t=this._insertBeforeOrAppend(t,r)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let e=t;null!==e;e=e._nextRemoved)e===this._mapHead&&(this._mapHead=null),this._records.delete(e.key),e._nextRemoved=e._next,e.previousValue=e.currentValue,e.currentValue=null,e._prev=null,e._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const n=this._records.get(e);this._maybeAddToChanges(n,t);const r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}const n=new ys(e);return this._records.set(e,n),n.currentValue=t,this._addToAdditions(n),n}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(n=>t(e[n],n))}}class ys{constructor(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let gs=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(null!=n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new re,new te]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(null!=t)return t;throw new Error(`Cannot find a differ supporting object '${e}' of type '${n=e,n.name||typeof n}'`);var n}}return e.\u0275prov=oe({token:e,providedIn:"root",factory:()=>new e([new ls])}),e})(),Es=(()=>{class e{constructor(e){this.factories=e}static create(t,n){if(n){const e=n.factories.slice();t=t.concat(e)}return new e(t)}static extend(t){return{provide:e,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new re,new te]]}}find(e){const t=this.factories.find(t=>t.supports(e));if(t)return t;throw new Error(`Cannot find a differ supporting object '${e}'`)}}return e.\u0275prov=oe({token:e,providedIn:"root",factory:()=>new e([new ms])}),e})();const vs=[new ms],Ts=new gs([new ls]),Is=new Es(vs);let bs=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>ws(e,ts),e})();const ws=function(e,t){return Ti(e,t,Ht(),qt())};let Ss=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>Os(e,ts),e})();const Os=function(e,t){return Ii(e,t,Ht(),qt())},Rs={};class Ds extends es{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=ut(e);return new Ps(t,this.ngModule)}}function As(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const Cs=new Me("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>wn});class Ps extends Ki{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=e.selectors.map(lr).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return As(this.componentDef.inputs)}get outputs(){return As(this.componentDef.outputs)}create(e,t,n,r){const i=(r=r||this.ngModule)?function(e,t){return{get:(n,r,i)=>{const s=e.get(n,Rs,i);return s!==Rs||r===Rs?s:t.get(n,r,i)}}}(e,r.injector):e,s=i.get(rs,At),o=i.get(ss,null),a=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",u=n?function(e,t,n){if(Dt(e))return e.selectRootElement(t,n===Je.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(a,n,this.componentDef.encapsulation):mr(l,s.createRenderer(null,this.componentDef),function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(l)),c=this.componentDef.onPush?576:528,h={components:[],scheduler:wn,clean:zr,playerHandler:null,flags:0},d=br(0,-1,null,1,0,null,null,null,null,null),f=_r(null,d,h,c,null,null,s,a,o,i);let p,m;en(f,null);try{const e=function(e,t,n,r,i,s){const o=n[1];n[20]=e;const a=yr(o,null,0,3,null,null),l=a.mergedAttrs=t.hostAttrs;null!==l&&(Fi(a,l,!0),null!==e&&(mn(i,e,l),null!==a.classes&&pi(i,e,a.classes),null!==a.styles&&fi(i,e,a.styles)));const u=r.createRenderer(e,t),c=_r(n,Ir(t),null,t.onPush?64:16,n[20],a,r,u,void 0);return o.firstCreatePass&&(Mn(An(a,n),o,t.type),Pr(o,a),Mr(a,n.length,1)),Vr(n,c),n[20]=c}(u,this.componentDef,f,s,a);if(u)if(n)mn(a,u,["ng-version",as.full]);else{const{attrs:e,classes:t}=function(e){const t=[],n=[];let r=1,i=2;for(;r<e.length;){let s=e[r];if("string"==typeof s)2===i?""!==s&&t.push(s,e[++r]):8===i&&n.push(s);else{if(!ir(i))break;i=s}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);e&&mn(a,u,e),t&&t.length>0&&pi(a,u,t.join(" "))}if(m=Nt(d,0),void 0!==t){const e=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const r=t[n];e.push(null!=r?Array.from(r):null)}}p=function(e,t,n,r,i){const s=n[1],o=function(e,t,n){const r=Ht();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Cr(e,r,1),Lr(e,t,n));const i=Gn(t,e,t.length-1,r);Qn(i,t);const s=Pt(r,t);return s&&Qn(s,t),i}(s,n,t);r.components.push(o),e[8]=o,i&&i.forEach(e=>e(o,t)),t.contentQueries&&t.contentQueries(1,o,n.length-1);const a=Ht();if(s.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){an(a.index-dt);const e=n[1];Rr(e,t),Dr(e,n,t.hostVars),Ar(t,o)}return o}(e,this.componentDef,f,h,[Xi]),gr(d,f,null)}finally{on()}const _=new Ns(this.componentType,p,vi(ts,m,f),f,m);return d.node.child=m,_}}class Ns extends class{}{constructor(e,t,n,r,i){super(),this.location=n,this._rootLView=r,this._tNode=i,this.destroyCbs=[],this.instance=t,this.hostView=this.changeDetectorRef=new _i(r),function(e,t,n,r){let i=e.node;null==i&&(e.node=i=Sr(0,null,2,-1,null,null)),r[6]=i}(r[1],0,0,r),this.componentType=e}get injector(){return new Bn(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(e=>e()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(e){this.destroyCbs&&this.destroyCbs.push(e)}}const Ms=void 0;var Ls=["en",[["a","p"],["AM","PM"],Ms],[["AM","PM"],Ms,Ms],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Ms,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Ms,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Ms,"{1} 'at' {0}",Ms],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let xs={};function ks(e){return e in xs||(xs[e]=Se.ng&&Se.ng.common&&Se.ng.common.locales&&Se.ng.common.locales[e]),xs[e]}var Fs=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});const Gs="en-US";let js=Gs;function Vs(e){var t,n;n="Expected localeId to be defined",null==(t=e)&&function(e,t,n,r){throw new Error("ASSERTION ERROR: "+e+` [Expected=> null != ${t} <=Actual]`)}(n,t),"string"==typeof e&&(js=e.toLowerCase().replace(/_/g,"-"))}const Bs=new Map;class qs extends $e{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Ds(this);const n=ht(e),r=e[Ce]||null;r&&Vs(r),this._bootstrapComponents=Sn(n.bootstrap),this._r3Injector=Ai(e,t,[{provide:$e,useValue:this},{provide:es,useValue:this.componentFactoryResolver}],_e(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=ki.THROW_IF_NOT_FOUND,n=ie.Default){return e===ki||e===$e||e===Le?this:this._r3Injector.get(e,t,n)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Us extends class{}{constructor(e){super(),this.moduleType=e,null!==ht(e)&&function e(t){if(null!==t.\u0275mod.id){const e=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${_e(t)} vs ${_e(t.name)}`)})(e,Bs.get(e),t),Bs.set(e,t)}let n=t.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(t=>e(t))}(e)}create(e){return new qs(this.moduleType,e)}}const Hs=class extends b{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,n){let r,i=e=>null,s=()=>null;e&&"object"==typeof e?(r=this.__isAsync?t=>{setTimeout(()=>e.next(t))}:t=>{e.next(t)},e.error&&(i=this.__isAsync?t=>{setTimeout(()=>e.error(t))}:t=>{e.error(t)}),e.complete&&(s=this.__isAsync?()=>{setTimeout(()=>e.complete())}:()=>{e.complete()})):(r=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)},t&&(i=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)}),n&&(s=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(r,i,s);return e instanceof h&&e.add(o),o}};function zs(){return this._results[ji()]()}class Ws{constructor(){this.dirty=!0,this._results=[],this.changes=new Hs,this.length=0;const e=ji(),t=Ws.prototype;t[e]||(t[e]=zs)}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e){this._results=function e(t,n){void 0===n&&(n=t);for(let r=0;r<t.length;r++){let i=t[r];Array.isArray(i)?(n===t&&(n=t.slice(0,r)),e(i,n)):n!==t&&n.push(i)}return n}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class Ys{constructor(e){this.queryList=e,this.matches=null}clone(){return new Ys(this.queryList)}setDirty(){this.queryList.setDirty()}}class $s{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const n=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let e=0;e<n;e++){const n=t.getByIndex(e);r.push(this.queries[n.indexInDeclarationView].clone())}return new $s(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==to(e,t).matches&&this.queries[t].setDirty()}}class Qs{constructor(e,t,n,r=null){this.predicate=e,this.descendants=t,this.isStatic=n,this.read=r}}class Zs{constructor(e=[]){this.queries=e}elementStart(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let n=0;n<this.length;n++){const r=null!==t?t.length:0,i=this.getByIndex(n).embeddedTView(e,r);i&&(i.indexInDeclarationView=n,null!==t?t.push(i):t=[i])}return null!==t?new Zs(t):null}template(e,t){for(let n=0;n<this.queries.length;n++)this.queries[n].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Xs{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new Xs(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&!1===this.metadata.descendants){const t=this._declarationNodeIndex;let n=e.parent;for(;null!==n&&4===n.type&&n.index!==t;)n=n.parent;return t===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const n=this.metadata.predicate;if(Array.isArray(n))for(let r=0;r<n.length;r++){const i=n[r];this.matchTNodeWithReadOption(e,t,Ks(t,i)),this.matchTNodeWithReadOption(e,t,Fn(t,e,i,!1,!1))}else n===bs?0===t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Fn(t,e,n,!1,!1))}matchTNodeWithReadOption(e,t,n){if(null!==n){const r=this.metadata.read;if(null!==r)if(r===ts||r===Ss||r===bs&&0===t.type)this.addMatch(t.index,-2);else{const n=Fn(t,e,r,!1,!1);null!==n&&this.addMatch(t.index,n)}else this.addMatch(t.index,n)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function Ks(e,t){const n=e.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===t)return n[r+1];return null}function Js(e,t,n,r){return-1===n?function(e,t){return 3===e.type||4===e.type?vi(ts,e,t):0===e.type?Ti(bs,ts,e,t):null}(t,e):-2===n?function(e,t,n){return n===ts?vi(ts,t,e):n===bs?Ti(bs,ts,t,e):n===Ss?Ii(Ss,ts,t,e):void 0}(e,t,r):Gn(e,e[1],n,t)}function eo(e,t,n,r){const i=t[19].queries[r];if(null===i.matches){const r=e.data,s=n.matches,o=[];for(let e=0;e<s.length;e+=2){const i=s[e];o.push(i<0?null:Js(t,r[i],s[e+1],n.metadata.read))}i.matches=o}return i.matches}function to(e,t){return e.queries.getByIndex(t)}const no=new Me("Application Initializer");let ro=(()=>{class e{constructor(e){this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}runInitializers(){if(this.initialized)return;const e=[],t=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const t=this.appInits[n]();Yi(t)&&e.push(t)}Promise.all(e).then(()=>{t()}).catch(e=>{this.reject(e)}),0===e.length&&t(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)(He(no,8))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e})();const io=new Me("AppId"),so={provide:io,useFactory:function(){return`${oo()}${oo()}${oo()}`},deps:[]};function oo(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ao=new Me("Platform Initializer"),lo=new Me("Platform ID"),uo=new Me("appBootstrapListener");let co=(()=>{class e{log(e){console.log(e)}warn(e){console.warn(e)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e})();const ho=new Me("LocaleId"),fo=new Me("DefaultCurrencyCode");class po{constructor(e,t){this.ngModuleFactory=e,this.componentFactories=t}}const mo=function(e){return new Us(e)},_o=mo,yo=function(e){return Promise.resolve(mo(e))},go=function(e){const t=mo(e),n=Sn(ht(e).declarations).reduce((e,t)=>{const n=ut(t);return n&&e.push(new Ps(n)),e},[]);return new po(t,n)},Eo=go,vo=function(e){return Promise.resolve(go(e))};let To=(()=>{class e{constructor(){this.compileModuleSync=_o,this.compileModuleAsync=yo,this.compileModuleAndAllComponentsSync=Eo,this.compileModuleAndAllComponentsAsync=vo}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e})();const Io=(()=>Promise.resolve(0))();function bo(e){"undefined"==typeof Zone?Io.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class wo{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Hs(!1),this.onMicrotaskEmpty=new Hs(!1),this.onStable=new Hs(!1),this.onError=new Hs(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=t,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let e=Se.requestAnimationFrame,t=Se.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=!!e.shouldCoalesceEventChangeDetection&&e.nativeRequestAnimationFrame&&(()=>{!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Se,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Do(e),Ro(e)},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Do(e))}(e)});e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:t},onInvokeTask:(n,r,i,s,o,a)=>{try{return Ao(e),n.invokeTask(i,s,o,a)}finally{t&&"eventTask"===s.type&&t(),Co(e)}},onInvoke:(t,n,r,i,s,o,a)=>{try{return Ao(e),t.invoke(r,i,s,o,a)}finally{Co(e)}},onHasTask:(t,n,r,i)=>{t.hasTask(r,i),n===r&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Do(e),Ro(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,n,r,i)=>(t.handleError(r,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!wo.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(wo.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,n){return this._inner.run(e,t,n)}runTask(e,t,n,r){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+r,e,Oo,So,So);try{return i.runTask(s,t,n)}finally{i.cancelTask(s)}}runGuarded(e,t,n){return this._inner.runGuarded(e,t,n)}runOutsideAngular(e){return this._outer.run(e)}}function So(){}const Oo={};function Ro(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Do(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function Ao(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Co(e){e._nesting--,Ro(e)}class Po{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Hs,this.onMicrotaskEmpty=new Hs,this.onStable=new Hs,this.onError=new Hs}run(e,t,n){return e.apply(t,n)}runGuarded(e,t,n){return e.apply(t,n)}runOutsideAngular(e){return e()}runTask(e,t,n,r){return e.apply(t,n)}}let No=(()=>{class e{constructor(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{wo.assertNotInAngularZone(),bo(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())bo(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(t=>!t.updateCb||!t.updateCb(e)||(clearTimeout(t.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,t,n){let r=-1;t&&t>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(e=>e.timeoutId!==r),e(this._didWork,this.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:n})}whenStable(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(e,t,n){return[]}}return e.\u0275fac=function(t){return new(t||e)(He(wo))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e})(),Mo=(()=>{class e{constructor(){this._applications=new Map,ko.addToWindow(this)}registerApplication(e,t){this._applications.set(e,t)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,t=!0){return ko.findTestabilityInTree(this,e,t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e})();class Lo{addToWindow(e){}findTestabilityInTree(e,t,n){return null}}let xo,ko=new Lo;const Fo=new Me("AllowMultipleToken");function Go(e,t,n=[]){const r="Platform: "+t,i=new Me(r);return(t=[])=>{let s=jo();if(!s||s.injector.get(Fo,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{const e=n.concat(t).concat({provide:i,useValue:!0},{provide:bi,useValue:"platform"});!function(e){if(xo&&!xo.destroyed&&!xo.injector.get(Fo,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");xo=e.get(Vo);const t=e.get(ao,null);t&&t.forEach(e=>e())}(ki.create({providers:e,name:r}))}return function(e){const t=jo();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function jo(){return xo&&!xo.destroyed?xo:null}let Vo=(()=>{class e{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,t){const n=function(e,t){let n;return n="noop"===e?new Po:("zone.js"===e?void 0:e)||new wo({enableLongStackTrace:$n(),shouldCoalesceEventChangeDetection:t}),n}(t?t.ngZone:void 0,t&&t.ngZoneEventCoalescing||!1),r=[{provide:wo,useValue:n}];return n.run(()=>{const t=ki.create({providers:r,parent:this.injector,name:e.moduleType.name}),i=e.create(t),s=i.injector.get(zn,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>Uo(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:e=>{s.handleError(e)}})),function(e,t,n){try{const r=n();return Yi(r)?r.catch(n=>{throw t.runOutsideAngular(()=>e.handleError(n)),n}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,n,()=>{const e=i.injector.get(ro);return e.runInitializers(),e.donePromise.then(()=>(Vs(i.injector.get(ho,Gs)||Gs),this._moduleDoBootstrap(i),i))})})}bootstrapModule(e,t=[]){const n=Bo({},t);return function(e,t,n){const r=new Us(n);return Promise.resolve(r)}(0,0,e).then(e=>this.bootstrapModuleFactory(e,n))}_moduleDoBootstrap(e){const t=e.injector.get(qo);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(e=>t.bootstrap(e));else{if(!e.instance.ngDoBootstrap)throw new Error(`The module ${_e(e.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);e.instance.ngDoBootstrap(t)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(e=>e.destroy()),this._destroyListeners.forEach(e=>e()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(He(ki))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e})();function Bo(e,t){return Array.isArray(t)?t.reduce(Bo,e):Object.assign(Object.assign({},e),t)}let qo=(()=>{class e{constructor(e,t,n,r,i,s){this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=$n(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new g(e=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{e.next(this._stable),e.complete()})}),a=new g(e=>{let t;this._zone.runOutsideAngular(()=>{t=this._zone.onStable.subscribe(()=>{wo.assertNotInAngularZone(),bo(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,e.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{wo.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{e.next(!1)}))});return()=>{t.unsubscribe(),n.unsubscribe()}});this.isStable=U(o,a.pipe(e=>{return H()((t=Z,function(e){let n;n="function"==typeof t?t:function(){return t};const r=Object.create(e,$);return r.source=e,r.subjectFactory=n,r})(e));var t}))}bootstrap(e,t){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=e instanceof Ki?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);const r=n.isBoundToModule?void 0:this._injector.get($e),i=n.create(ki.NULL,[],t||n.selector,r);i.onDestroy(()=>{this._unloadComponent(i)});const s=i.injector.get(No,null);return s&&i.injector.get(Mo).registerApplication(i.location.nativeElement,s),this._loadComponent(i),$n()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let e of this._views)e.detectChanges();if(this._enforceNoNewChanges)for(let e of this._views)e.checkNoChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const t=e;this._views.push(t),t.attachToAppRef(this)}detachView(e){const t=e;Uo(this._views,t),t.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(uo,[]).concat(this._bootstrapListeners).forEach(t=>t(e))}_unloadComponent(e){this.detachView(e.hostView),Uo(this.components,e)}ngOnDestroy(){this._views.slice().forEach(e=>e.destroy())}get viewCount(){return this._views.length}}return e.\u0275fac=function(t){return new(t||e)(He(wo),He(co),He(ki),He(zn),He(es),He(ro))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e})();function Uo(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ho=Go(null,"core",[{provide:lo,useValue:"unknown"},{provide:Vo,deps:[ki]},{provide:Mo,deps:[]},{provide:co,deps:[]}]),zo=[{provide:qo,useClass:qo,deps:[wo,co,ki,zn,es,ro]},{provide:Cs,deps:[wo],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(e){t.push(e)}}},{provide:ro,useClass:ro,deps:[[new te,no]]},{provide:To,useClass:To,deps:[]},so,{provide:gs,useFactory:function(){return Ts},deps:[]},{provide:Es,useFactory:function(){return Is},deps:[]},{provide:ho,useFactory:function(e){return Vs(e=e||"undefined"!=typeof $localize&&$localize.locale||Gs),e},deps:[[new ee(ho),new te,new re]]},{provide:fo,useValue:"USD"}];let Wo=(()=>{class e{constructor(e){}}return e.\u0275mod=at({type:e}),e.\u0275inj=ae({factory:function(t){return new(t||e)(He(qo))},providers:zo}),e})();class Yo extends h{constructor(e,t){super()}schedule(e,t=0){return this}}class $o extends Yo{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,r=void 0;try{this.work(e)}catch(i){n=!0,r=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}class Qo extends $o{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}}let Zo=(()=>{class e{constructor(t,n=e.now){this.SchedulerAction=t,this.now=n}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}return e.now=()=>Date.now(),e})();class Xo extends Zo{constructor(e,t=Zo.now){super(e,()=>Xo.delegate&&Xo.delegate!==this?Xo.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return Xo.delegate&&Xo.delegate!==this?Xo.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}class Ko extends Xo{}const Jo=new Ko(Qo),ea=new g(e=>e.complete());let ta=(()=>{class e{constructor(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}}accept(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)}toObservable(){switch(this.kind){case"N":return function(...e){let t=e[e.length-1];return S(t)?(e.pop(),x(e,t)):q(e)}(this.value);case"E":return e=this.error,new g(t=>t.error(e));case"C":return ea}var e;throw new Error("unexpected notification kind value")}static createNext(t){return void 0!==t?new e("N",t):e.undefinedValueNotification}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}}return e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e})();class na extends p{constructor(e,t,n=0){super(e),this.scheduler=t,this.delay=n}static dispatch(e){const{notification:t,destination:n}=e;t.observe(n),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(na.dispatch,this.delay,new ra(e,this.destination)))}_next(e){this.scheduleMessage(ta.createNext(e))}_error(e){this.scheduleMessage(ta.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(ta.createComplete()),this.unsubscribe()}}class ra{constructor(e,t){this.notification=e,this.destination=t}}class ia extends b{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new sa(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,n=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,i=n.length;let s;if(this.closed)throw new v;if(this.isStopped||this.hasError?s=h.EMPTY:(this.observers.push(e),s=new T(this,e)),r&&e.add(e=new na(e,r)),t)for(let o=0;o<i&&!e.closed;o++)e.next(n[o]);else for(let o=0;o<i&&!e.closed;o++)e.next(n[o].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),s}_getNow(){return(this.scheduler||Jo).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,i=r.length;let s=0;for(;s<i&&!(e-r[s].time<n);)s++;return i>t&&(s=Math.max(s,i-t)),s>0&&r.splice(0,s),r}}class sa{constructor(e,t){this.time=e,this.value=t}}class oa{constructor(e){this.project=e}call(e,t){return t.subscribe(new aa(e,this.project))}}class aa extends G{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const n=new F(this),r=this.destination;r.add(n),this.innerSubscription=j(e,n),this.innerSubscription!==n&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;e&&!e.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const la=(()=>{const e=Element.prototype;return e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector})(),ua={schedule(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)},scheduleBeforeRender(e){if("undefined"==typeof window)return ua.schedule(e,0);if(void 0===window.requestAnimationFrame)return ua.schedule(e,16);const t=window.requestAnimationFrame(e);return()=>window.cancelAnimationFrame(t)}};function ca(e,t,n){let r=n;return function(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&t.some((t,n)=>!("*"===t||!function(e,t){return la.call(e,t)}(e,t)||(r=n,0))),r}class ha{constructor(e,t){this.componentFactory=t.get(es).resolveComponentFactory(e)}create(e){return new da(this.componentFactory,e)}}class da{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new ia(1),this.events=this.eventEmitters.pipe(function e(t,n){return"function"==typeof n?r=>r.pipe(e((e,r)=>k(t(e,r)).pipe(O((t,i)=>n(e,t,r,i))))):e=>e.lift(new oa(t))}(e=>U(...e))),this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set,this.ngZone=this.injector.get(wo),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=ua.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{var n,r;null!==this.componentRef?((n=t)!==(r=this.getInputValue(e))&&(n==n||r==r)||void 0===t&&this.unchangedInputs.has(e))&&(this.recordInputChange(e,t),this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=ki.create({providers:[],parent:this.injector}),n=function(e,t){const n=e.childNodes,r=t.map(()=>[]);let i=-1;t.some((e,t)=>"*"===e&&(i=t,!0));for(let s=0,o=n.length;s<o;++s){const e=n[s],o=ca(e,t,i);-1!==o&&r[o].push(e)}return r}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,n,e),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(qo).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.implementsOnChanges&&this.unchangedInputs.add(e),this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:t,templateName:n})=>e.instance[t].pipe(O(e=>({name:n,value:e}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=ua.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(null!==this.componentRef&&!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[e];if(n)return void(n.currentValue=t);const r=this.unchangedInputs.has(e);this.unchangedInputs.delete(e);const i=r?void 0:this.getInputValue(e);this.inputChanges[e]=new Tt(i,t,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class fa extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function pa(e,t){e.forEach(({propName:e})=>{Object.defineProperty(t,e,{get(){return this.ngElementStrategy.getInputValue(e)},set(t){this.ngElementStrategy.setInputValue(e,t)},configurable:!0,enumerable:!0})})}let ma=null;function _a(){return ma}const ya=new Me("DocumentToken");var ga=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({});class Ea{}let va=(()=>{class e extends Ea{constructor(e){super(),this.locale=e}getPluralCategory(e,t){switch(function(e){return function(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=ks(t);if(n)return n;const r=t.split("-")[0];if(n=ks(r),n)return n;if("en"===r)return Ls;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[Fs.PluralCase]}(t||this.locale)(e)){case ga.Zero:return"zero";case ga.One:return"one";case ga.Two:return"two";case ga.Few:return"few";case ga.Many:return"many";default:return"other"}}}return e.\u0275fac=function(t){return new(t||e)(He(ho))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e})(),Ta=(()=>{class e{}return e.\u0275mod=at({type:e}),e.\u0275inj=ae({factory:function(t){return new(t||e)},providers:[{provide:Ea,useClass:va}]}),e})();class Ia extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var e;e=new Ia,ma||(ma=e)}getProperty(e,t){return e[t]}log(e){window.console&&window.console.log&&window.console.log(e)}logGroup(e){window.console&&window.console.group&&window.console.group(e)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(e,t,n){return e.addEventListener(t,n,!1),()=>{e.removeEventListener(t,n,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){return e.parentNode&&e.parentNode.removeChild(e),e}getValue(e){return e.value}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(e){const t=wa||(wa=document.querySelector("base"),wa)?wa.getAttribute("href"):null;return null==t?null:(n=t,ba||(ba=document.createElement("a")),ba.setAttribute("href",n),"/"===ba.pathname.charAt(0)?ba.pathname:"/"+ba.pathname);var n}resetBaseElement(){wa=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(e){return function(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const e=n.indexOf("="),[r,i]=-1==e?[n,""]:[n.slice(0,e),n.slice(e+1)];if(r.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,e)}}let ba,wa=null;const Sa=new Me("TRANSITION_ID"),Oa=[{provide:no,useFactory:function(e,t,n){return()=>{n.get(ro).donePromise.then(()=>{const n=_a();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter(t=>t.getAttribute("ng-transition")===e).forEach(e=>n.remove(e))})}},deps:[Sa,ya,ki],multi:!0}];class Ra{static init(){var e;e=new Ra,ko=e}addToWindow(e){Se.getAngularTestability=(t,n=!0)=>{const r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Se.getAllAngularTestabilities=()=>e.getAllTestabilities(),Se.getAllAngularRootElements=()=>e.getAllRootElements(),Se.frameworkStabilizers||(Se.frameworkStabilizers=[]),Se.frameworkStabilizers.push(e=>{const t=Se.getAllAngularTestabilities();let n=t.length,r=!1;const i=function(t){r=r||t,n--,0==n&&e(r)};t.forEach((function(e){e.whenStable(i)}))})}findTestabilityInTree(e,t,n){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:n?_a().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}const Da=new Me("EventManagerPlugins");let Aa=(()=>{class e{constructor(e,t){this._zone=t,this._eventNameToPlugin=new Map,e.forEach(e=>e.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}addGlobalEventListener(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}getZone(){return this._zone}_findPluginFor(e){const t=this._eventNameToPlugin.get(e);if(t)return t;const n=this._plugins;for(let r=0;r<n.length;r++){const t=n[r];if(t.supports(e))return this._eventNameToPlugin.set(e,t),t}throw new Error("No event manager plugin found for event "+e)}}return e.\u0275fac=function(t){return new(t||e)(He(Da),He(wo))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e})();class Ca{constructor(e){this._doc=e}addGlobalEventListener(e,t,n){const r=_a().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,n)}}let Pa=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(e){const t=new Set;e.forEach(e=>{this._stylesSet.has(e)||(this._stylesSet.add(e),t.add(e))}),this.onStylesAdded(t)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e})(),Na=(()=>{class e extends Pa{constructor(e){super(),this._doc=e,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(e.head)}_addStylesToHost(e,t){e.forEach(e=>{const n=this._doc.createElement("style");n.textContent=e,this._styleNodes.add(t.appendChild(n))})}addHost(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}removeHost(e){this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach(t=>this._addStylesToHost(e,t))}ngOnDestroy(){this._styleNodes.forEach(e=>_a().remove(e))}}return e.\u0275fac=function(t){return new(t||e)(He(ya))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e})();const Ma={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},La=/%COMP%/g;function xa(e,t,n){for(let r=0;r<t.length;r++){let i=t[r];Array.isArray(i)?xa(e,i,n):(i=i.replace(La,e),n.push(i))}return n}function ka(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let Fa=(()=>{class e{constructor(e,t,n){this.eventManager=e,this.sharedStylesHost=t,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Ga(e)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Je.Emulated:{let n=this.rendererByCompId.get(t.id);return n||(n=new ja(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n}case Je.Native:case Je.ShadowDom:return new Va(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){const e=xa(t.id,t.styles,[]);this.sharedStylesHost.addStyles(e),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(t){return new(t||e)(He(Aa),He(Na),He(io))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e})();class Ga{constructor(e){this.eventManager=e,this.data=Object.create(null)}destroy(){}createElement(e,t){return t?document.createElementNS(Ma[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,n){e&&e.insertBefore(t,n)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error(`The selector "${e}" did not match any elements`);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,r){if(r){t=r+":"+t;const i=Ma[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){const r=Ma[n];r?e.removeAttributeNS(r,t):e.removeAttribute(`${n}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,n,r){r&is.DashCase?e.style.setProperty(t,n,r&is.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&is.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e[t]=n}setValue(e,t){e.nodeValue=t}listen(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,ka(n)):this.eventManager.addEventListener(e,t,ka(n))}}class ja extends Ga{constructor(e,t,n,r){super(e),this.component=n;const i=xa(r+"-"+n.id,n.styles,[]);t.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(La,r+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(La,r+"-"+n.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}}class Va extends Ga{constructor(e,t,n,r){super(e),this.sharedStylesHost=t,this.hostEl=n,this.component=r,this.shadowRoot=r.encapsulation===Je.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const i=xa(r.id,r.styles,[]);for(let s=0;s<i.length;s++){const e=document.createElement("style");e.textContent=i[s],this.shadowRoot.appendChild(e)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,n){return super.insertBefore(this.nodeOrShadowRoot(e),t,n)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let Ba=(()=>{class e extends Ca{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,n){return e.addEventListener(t,n,!1),()=>this.removeEventListener(e,t,n)}removeEventListener(e,t,n){return e.removeEventListener(t,n)}}return e.\u0275fac=function(t){return new(t||e)(He(ya))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e})();const qa=["alt","control","meta","shift"],Ua={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ha={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},za={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let Wa=(()=>{class e extends Ca{constructor(e){super(e)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,n,r){const i=e.parseEventName(n),s=e.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>_a().onAndCancel(t,i.domEventName,s))}static parseEventName(t){const n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;const i=e._normalizeKey(n.pop());let s="";if(qa.forEach(e=>{const t=n.indexOf(e);t>-1&&(n.splice(t,1),s+=e+".")}),s+=i,0!=n.length||0===i.length)return null;const o={};return o.domEventName=r,o.fullKey=s,o}static getEventFullKey(e){let t="",n=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Ha.hasOwnProperty(t)&&(t=Ha[t]))}return Ua[t]||t}(e);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),qa.forEach(r=>{r!=n&&(0,za[r])(e)&&(t+=r+".")}),t+=n,t}static eventCallback(t,n,r){return i=>{e.getEventFullKey(i)===t&&r.runGuarded(()=>n(i))}}static _normalizeKey(e){switch(e){case"esc":return"escape";default:return e}}}return e.\u0275fac=function(t){return new(t||e)(He(ya))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e})();const Ya=Go(Ho,"browser",[{provide:lo,useValue:"browser"},{provide:ao,useValue:function(){Ia.makeCurrent(),Ra.init()},multi:!0},{provide:ya,useFactory:function(){return function(e){Rt=e}(document),document},deps:[]}]),$a=[[],{provide:bi,useValue:"root"},{provide:zn,useFactory:function(){return new zn},deps:[]},{provide:Da,useClass:Ba,multi:!0,deps:[ya,wo,lo]},{provide:Da,useClass:Wa,multi:!0,deps:[ya]},[],{provide:Fa,useClass:Fa,deps:[Aa,Na,io]},{provide:rs,useExisting:Fa},{provide:Pa,useExisting:Na},{provide:Na,useClass:Na,deps:[ya]},{provide:No,useClass:No,deps:[wo]},{provide:Aa,useClass:Aa,deps:[Da,wo]},[]];let Qa=(()=>{class e{constructor(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(t){return{ngModule:e,providers:[{provide:io,useValue:t.appId},{provide:Sa,useExisting:io},Oa]}}}return e.\u0275mod=at({type:e}),e.\u0275inj=ae({factory:function(t){return new(t||e)(He(e,12))},providers:$a,imports:[Ta,Wo]}),e})();"undefined"!=typeof window&&window;class Za{}const Xa="*";function Ka(e,t=null){return{type:2,steps:e,options:t}}function Ja(e){return{type:6,styles:e,offset:null}}function el(e){Promise.resolve(null).then(e)}class tl{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){el(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){}setPosition(e){}getPosition(){return 0}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class nl{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,n=0,r=0;const i=this.players.length;0==i?el(()=>this._onFinish()):this.players.forEach(e=>{e.onDone(()=>{++t==i&&this._onFinish()}),e.onDestroy(()=>{++n==i&&this._onDestroy()}),e.onStart(()=>{++r==i&&this._onStart()})}),this.totalTime=this.players.reduce((e,t)=>Math.max(e,t.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(e=>{const n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})}getPosition(){let e=0;return this.players.forEach(t=>{const n=t.getPosition();e=Math.min(n,e)}),e}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}function rl(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function il(e){switch(e.length){case 0:return new tl;case 1:return e[0];default:return new nl(e)}}function sl(e,t,n,r,i={},s={}){const o=[],a=[];let l=-1,u=null;if(r.forEach(e=>{const n=e.offset,r=n==l,c=r&&u||{};Object.keys(e).forEach(n=>{let r=n,a=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,o),a){case"!":a=i[n];break;case Xa:a=s[n];break;default:a=t.normalizeStyleValue(n,r,a,o)}c[r]=a}),r||a.push(c),u=c,l=n}),o.length){const e="\n - ";throw new Error(`Unable to animate due to the following errors:${e}${o.join(e)}`)}return a}function ol(e,t,n,r){switch(t){case"start":e.onStart(()=>r(n&&al(n,"start",e)));break;case"done":e.onDone(()=>r(n&&al(n,"done",e)));break;case"destroy":e.onDestroy(()=>r(n&&al(n,"destroy",e)))}}function al(e,t,n){const r=n.totalTime,i=ll(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,null==r?e.totalTime:r,!!n.disabled),s=e._data;return null!=s&&(i._data=s),i}function ll(e,t,n,r,i="",s=0,o){return{element:e,triggerName:t,fromState:n,toState:r,phaseName:i,totalTime:s,disabled:!!o}}function ul(e,t,n){let r;return e instanceof Map?(r=e.get(t),r||e.set(t,r=n)):(r=e[t],r||(r=e[t]=n)),r}function cl(e){const t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}let hl=(e,t)=>!1,dl=(e,t)=>!1,fl=(e,t,n)=>[];const pl=rl();(pl||"undefined"!=typeof Element)&&(hl=(e,t)=>e.contains(t),dl=(()=>{if(pl||Element.prototype.matches)return(e,t)=>e.matches(t);{const e=Element.prototype,t=e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;return t?(e,n)=>t.apply(e,[n]):dl}})(),fl=(e,t,n)=>{let r=[];if(n)r.push(...e.querySelectorAll(t));else{const n=e.querySelector(t);n&&r.push(n)}return r});let ml=null,_l=!1;function yl(e){ml||(ml=("undefined"!=typeof document?document.body:null)||{},_l=!!ml.style&&"WebkitAppearance"in ml.style);let t=!0;return ml.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&(t=e in ml.style,!t&&_l)&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in ml.style),t}const gl=dl,El=hl,vl=fl;function Tl(e){const t={};return Object.keys(e).forEach(n=>{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");t[r]=e[n]}),t}let Il=(()=>{class e{validateStyleProperty(e){return yl(e)}matchesElement(e,t){return gl(e,t)}containsElement(e,t){return El(e,t)}query(e,t,n){return vl(e,t,n)}computeStyle(e,t,n){return n||""}animate(e,t,n,r,i,s=[],o){return new tl(n,r)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e})(),bl=(()=>{class e{}return e.NOOP=new Il,e})();const wl="ng-enter",Sl="ng-leave",Ol="ng-trigger",Rl=".ng-trigger",Dl="ng-animating",Al=".ng-animating";function Cl(e){if("number"==typeof e)return e;const t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Pl(parseFloat(t[1]),t[2])}function Pl(e,t){switch(t){case"s":return 1e3*e;default:return e}}function Nl(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){let r,i=0,s="";if("string"==typeof e){const n=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return t.push(`The provided timing value "${e}" is invalid.`),{duration:0,delay:0,easing:""};r=Pl(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(i=Pl(parseFloat(o),n[4]));const a=n[5];a&&(s=a)}else r=e;if(!n){let n=!1,s=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),n=!0),i<0&&(t.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&t.splice(s,0,`The provided timing value "${e}" is invalid.`)}return{duration:r,delay:i,easing:s}}(e,t,n)}function Ml(e,t={}){return Object.keys(e).forEach(n=>{t[n]=e[n]}),t}function Ll(e,t,n={}){if(t)for(let r in e)n[r]=e[r];else Ml(e,n);return n}function xl(e,t,n){return n?t+":"+n+";":""}function kl(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style.item(n);t+=xl(0,r,e.style.getPropertyValue(r))}for(const n in e.style)e.style.hasOwnProperty(n)&&!n.startsWith("_")&&(t+=xl(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),e.style[n]));e.setAttribute("style",t)}function Fl(e,t,n){e.style&&(Object.keys(t).forEach(r=>{const i=zl(r);n&&!n.hasOwnProperty(r)&&(n[r]=e.style[i]),e.style[i]=t[r]}),rl()&&kl(e))}function Gl(e,t){e.style&&(Object.keys(t).forEach(t=>{const n=zl(t);e.style[n]=""}),rl()&&kl(e))}function jl(e){return Array.isArray(e)?1==e.length?e[0]:Ka(e):e}const Vl=new RegExp("{{\\s*(.+?)\\s*}}","g");function Bl(e){let t=[];if("string"==typeof e){let n;for(;n=Vl.exec(e);)t.push(n[1]);Vl.lastIndex=0}return t}function ql(e,t,n){const r=e.toString(),i=r.replace(Vl,(e,r)=>{let i=t[r];return t.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),i=""),i.toString()});return i==r?e:i}function Ul(e){const t=[];let n=e.next();for(;!n.done;)t.push(n.value),n=e.next();return t}const Hl=/-+([a-z0-9])/g;function zl(e){return e.replace(Hl,(...e)=>e[1].toUpperCase())}function Wl(e,t){return 0===e||0===t}function Yl(e,t,n){const r=Object.keys(n);if(r.length&&t.length){let s=t[0],o=[];if(r.forEach(e=>{s.hasOwnProperty(e)||o.push(e),s[e]=n[e]}),o.length)for(var i=1;i<t.length;i++){let n=t[i];o.forEach((function(t){n[t]=Ql(e,t)}))}}return t}function $l(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}function Ql(e,t){return window.getComputedStyle(e)[t]}const Zl="*";function Xl(e,t){const n=[];return"string"==typeof e?e.split(/\s*,\s*/).forEach(e=>function(e,t,n){if(":"==e[0]){const r=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t)<parseFloat(e);default:return t.push(`The transition alias value "${e}" is not supported`),"* => *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}const r=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${e}" is not supported`),t;const i=r[1],s=r[2],o=r[3];t.push(eu(i,o)),"<"!=s[0]||i==Zl&&o==Zl||t.push(eu(o,i))}(e,n,t)):n.push(e),n}const Kl=new Set(["true","1"]),Jl=new Set(["false","0"]);function eu(e,t){const n=Kl.has(e)||Jl.has(e),r=Kl.has(t)||Jl.has(t);return(i,s)=>{let o=e==Zl||e==i,a=t==Zl||t==s;return!o&&n&&"boolean"==typeof i&&(o=i?Kl.has(e):Jl.has(e)),!a&&r&&"boolean"==typeof s&&(a=s?Kl.has(t):Jl.has(t)),o&&a}}const tu=new RegExp("s*:selfs*,?","g");function nu(e,t,n){return new ru(e).build(t,n)}class ru{constructor(e){this._driver=e}build(e,t){const n=new iu(t);return this._resetContextStyleTimingState(n),$l(this,jl(e),n)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let n=t.queryCount=0,r=t.depCount=0;const i=[],s=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(e=>{if(this._resetContextStyleTimingState(t),0==e.type){const n=e,r=n.name;r.toString().split(/\s*,\s*/).forEach(e=>{n.name=e,i.push(this.visitState(n,t))}),n.name=r}else if(1==e.type){const i=this.visitTransition(e,t);n+=i.queryCount,r+=i.depCount,s.push(i)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:i,transitions:s,queryCount:n,depCount:r,options:null}}visitState(e,t){const n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){const i=new Set,s=r||{};if(n.styles.forEach(e=>{if(su(e)){const t=e;Object.keys(t).forEach(e=>{Bl(t[e]).forEach(e=>{s.hasOwnProperty(e)||i.add(e)})})}}),i.size){const n=Ul(i.values());t.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const n=$l(this,jl(e.animation),t);return{type:1,matchers:Xl(e.expr,t.errors),animation:n,queryCount:t.queryCount,depCount:t.depCount,options:ou(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(e=>$l(this,e,t)),options:ou(e.options)}}visitGroup(e,t){const n=t.currentTime;let r=0;const i=e.steps.map(e=>{t.currentTime=n;const i=$l(this,e,t);return r=Math.max(r,t.currentTime),i});return t.currentTime=r,{type:3,steps:i,options:ou(e.options)}}visitAnimate(e,t){const n=function(e,t){let n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return au(Nl(e,t).duration,0,"");const r=e;if(r.split(/\s+/).some(e=>"{"==e.charAt(0)&&"{"==e.charAt(1))){const e=au(0,0,"");return e.dynamic=!0,e.strValue=r,e}return n=n||Nl(r,t),au(n.duration,n.delay,n.easing)}(e.timings,t.errors);let r;t.currentAnimateTimings=n;let i=e.styles?e.styles:Ja({});if(5==i.type)r=this.visitKeyframes(i,t);else{let i=e.styles,s=!1;if(!i){s=!0;const e={};n.easing&&(e.easing=n.easing),i=Ja(e)}t.currentTime+=n.duration+n.delay;const o=this.visitStyle(i,t);o.isEmptyStep=s,r=o}return t.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}}visitStyle(e,t){const n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n}_makeStyleAst(e,t){const n=[];Array.isArray(e.styles)?e.styles.forEach(e=>{"string"==typeof e?e==Xa?n.push(e):t.errors.push(`The provided style string value ${e} is not allowed.`):n.push(e)}):n.push(e.styles);let r=!1,i=null;return n.forEach(e=>{if(su(e)){const t=e,n=t.easing;if(n&&(i=n,delete t.easing),!r)for(let e in t)if(t[e].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const n=t.currentAnimateTimings;let r=t.currentTime,i=t.currentTime;n&&i>0&&(i-=n.duration+n.delay),e.styles.forEach(e=>{"string"!=typeof e&&Object.keys(e).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void t.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const s=t.collectedStyles[t.currentQuerySelector],o=s[n];let a=!0;o&&(i!=r&&i>=o.startTime&&r<=o.endTime&&(t.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${i}ms" and "${r}ms"`),a=!1),i=o.startTime),a&&(s[n]={startTime:i,endTime:r}),t.options&&function(e,t,n){const r=t.params||{},i=Bl(e);i.length&&i.forEach(e=>{r.hasOwnProperty(e)||n.push(`Unable to resolve the local animation param ${e} in the given list of values`)})}(e[n],t.options,t.errors)})})}visitKeyframes(e,t){const n={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),n;let r=0;const i=[];let s=!1,o=!1,a=0;const l=e.steps.map(e=>{const n=this._makeStyleAst(e,t);let l=null!=n.offset?n.offset:function(e){if("string"==typeof e)return null;let t=null;if(Array.isArray(e))e.forEach(e=>{if(su(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}});else if(su(e)&&e.hasOwnProperty("offset")){const n=e;t=parseFloat(n.offset),delete n.offset}return t}(n.styles),u=0;return null!=l&&(r++,u=n.offset=l),o=o||u<0||u>1,s=s||u<a,a=u,i.push(u),n});o&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&t.errors.push("Please ensure that all keyframe offsets are in order");const u=e.steps.length;let c=0;r>0&&r<u?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==r&&(c=1/(u-1));const h=u-1,d=t.currentTime,f=t.currentAnimateTimings,p=f.duration;return l.forEach((e,r)=>{const s=c>0?r==h?1:c*r:i[r],o=s*p;t.currentTime=d+f.delay+o,f.duration=o,this._validateStyleAst(e,t),e.offset=s,n.styles.push(e)}),n}visitReference(e,t){return{type:8,animation:$l(this,jl(e.animation),t),options:ou(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:ou(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:ou(e.options)}}visitQuery(e,t){const n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[i,s]=function(e){const t=!!e.split(/\s*,\s*/).find(e=>":self"==e);return t&&(e=e.replace(tu,"")),[e=e.replace(/@\*/g,Rl).replace(/@\w+/g,e=>".ng-trigger-"+e.substr(1)).replace(/:animating/g,Al),t]}(e.selector);t.currentQuerySelector=n.length?n+" "+i:i,ul(t.collectedStyles,t.currentQuerySelector,{});const o=$l(this,jl(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:o,originalSelector:e.selector,options:ou(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");const n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Nl(e.timings,t.errors,!0);return{type:12,animation:$l(this,jl(e.animation),t),timings:n,options:null}}}class iu{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function su(e){return!Array.isArray(e)&&"object"==typeof e}function ou(e){var t;return e?(e=Ml(e)).params&&(e.params=(t=e.params)?Ml(t):null):e={},e}function au(e,t,n){return{duration:e,delay:t,easing:n}}function lu(e,t,n,r,i,s,o=null,a=!1){return{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}class uu{constructor(){this._map=new Map}consume(e){let t=this._map.get(e);return t?this._map.delete(e):t=[],t}append(e,t){let n=this._map.get(e);n||this._map.set(e,n=[]),n.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const cu=new RegExp(":enter","g"),hu=new RegExp(":leave","g");function du(e,t,n,r,i,s={},o={},a,l,u=[]){return(new fu).buildKeyframes(e,t,n,r,i,s,o,a,l,u)}class fu{buildKeyframes(e,t,n,r,i,s,o,a,l,u=[]){l=l||new uu;const c=new mu(e,t,l,r,i,u,[]);c.options=a,c.currentTimeline.setStyles([s],null,c.errors,a),$l(this,n,c);const h=c.timelines.filter(e=>e.containsAnimation());if(h.length&&Object.keys(o).length){const e=h[h.length-1];e.allowOnlyTimelineStyles()||e.setStyles([o],null,c.errors,a)}return h.length?h.map(e=>e.buildKeyframes()):[lu(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const n=t.subInstructions.consume(t.element);if(n){const r=t.createSubContext(e.options),i=t.currentTimeline.currentTime,s=this._visitSubInstructions(n,r,r.options);i!=s&&t.transformIntoNewTimeline(s)}t.previousNode=e}visitAnimateRef(e,t){const n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,n){let r=t.currentTimeline.currentTime;const i=null!=n.duration?Cl(n.duration):null,s=null!=n.delay?Cl(n.delay):null;return 0!==i&&e.forEach(e=>{const n=t.appendInstructionToTimeline(e,i,s);r=Math.max(r,n.duration+n.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),$l(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const n=t.subContextCount;let r=t;const i=e.options;if(i&&(i.params||i.delay)&&(r=t.createSubContext(i),r.transformIntoNewTimeline(),null!=i.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=pu);const e=Cl(i.delay);r.delayNextStep(e)}e.steps.length&&(e.steps.forEach(e=>$l(this,e,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>n&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const n=[];let r=t.currentTimeline.currentTime;const i=e.options&&e.options.delay?Cl(e.options.delay):0;e.steps.forEach(s=>{const o=t.createSubContext(e.options);i&&o.delayNextStep(i),$l(this,s,o),r=Math.max(r,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(e=>t.currentTimeline.mergeTimelineCollectedStyles(e)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const n=e.strValue;return Nl(t.params?ql(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());const i=e.style;5==i.type?this.visitKeyframes(i,t):(t.incrementTime(n.duration),this.visitStyle(i,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();const i=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(i):n.setStyles(e.styles,i,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const n=t.currentAnimateTimings,r=t.currentTimeline.duration,i=n.duration,s=t.createSubContext().currentTimeline;s.easing=n.easing,e.styles.forEach(e=>{s.forwardTime((e.offset||0)*i),s.setStyles(e.styles,e.easing,t.errors,t.options),s.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(s),t.transformIntoNewTimeline(r+i),t.previousNode=e}visitQuery(e,t){const n=t.currentTimeline.currentTime,r=e.options||{},i=r.delay?Cl(r.delay):0;i&&(6===t.previousNode.type||0==n&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=pu);let s=n;const o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=o.length;let a=null;o.forEach((n,r)=>{t.currentQueryIndex=r;const o=t.createSubContext(e.options,n);i&&o.delayNextStep(i),n===t.element&&(a=o.currentTimeline),$l(this,e.animation,o),o.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,o.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const n=t.parentContext,r=t.currentTimeline,i=e.timings,s=Math.abs(i.duration),o=s*(t.currentQueryTotal-1);let a=s*t.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=t.currentTimeline;a&&l.delayNextStep(a);const u=l.currentTime;$l(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)}}const pu={};class mu{constructor(e,t,n,r,i,s,o,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=s,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=pu,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new _u(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const n=e;let r=this.options;null!=n.duration&&(r.duration=Cl(n.duration)),null!=n.delay&&(r.delay=Cl(n.delay));const i=n.params;if(i){let e=r.params;e||(e=this.options.params={}),Object.keys(i).forEach(n=>{t&&e.hasOwnProperty(n)||(e[n]=ql(i[n],e,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const n=e.params={};Object.keys(t).forEach(e=>{n[e]=t[e]})}}return e}createSubContext(e=null,t,n){const r=t||this.element,i=new mu(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(e),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(e){return this.previousNode=pu,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,n){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},i=new yu(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(i),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,n,r,i,s){let o=[];if(r&&o.push(this.element),e.length>0){e=(e=e.replace(cu,"."+this._enterClassName)).replace(hu,"."+this._leaveClassName);let t=this._driver.query(this.element,e,1!=n);0!==n&&(t=n<0?t.slice(t.length+n,t.length):t.slice(0,n)),o.push(...t)}return i||0!=o.length||s.push(`\`query("${t}")\` returned zero elements. (Use \`query("${t}", { optional: true })\` if you wish to allow this.)`),o}}class _u{constructor(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new _u(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(e=>{this._backFill[e]=this._globalTimelineStyles[e]||Xa,this._currentKeyframe[e]=Xa}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,n,r){t&&(this._previousKeyframe.easing=t);const i=r&&r.params||{},s=function(e,t){const n={};let r;return e.forEach(e=>{"*"===e?(r=r||Object.keys(t),r.forEach(e=>{n[e]=Xa})):Ll(e,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(s).forEach(e=>{const t=ql(s[e],i,n);this._pendingStyles[e]=t,this._localTimelineStyles.hasOwnProperty(e)||(this._backFill[e]=this._globalTimelineStyles.hasOwnProperty(e)?this._globalTimelineStyles[e]:Xa),this._updateStyle(e,t)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(t=>{this._currentKeyframe[t]=e[t]}),Object.keys(this._localTimelineStyles).forEach(e=>{this._currentKeyframe.hasOwnProperty(e)||(this._currentKeyframe[e]=this._localTimelineStyles[e])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const n=this._styleSummary[t],r=e._styleSummary[t];(!n||r.time>n.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,n=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((i,s)=>{const o=Ll(i,!0);Object.keys(o).forEach(n=>{const r=o[n];"!"==r?e.add(n):r==Xa&&t.add(n)}),n||(o.offset=s/this.duration),r.push(o)});const i=e.size?Ul(e.values()):[],s=t.size?Ul(t.values()):[];if(n){const e=r[0],t=Ml(e);e.offset=0,t.offset=1,r=[e,t]}return lu(this.element,r,i,s,this.duration,this.startTime,this.easing,!1)}}class yu extends _u{constructor(e,t,n,r,i,s,o=!1){super(e,t,s.delay),this.element=t,this.keyframes=n,this.preStyleProps=r,this.postStyleProps=i,this._stretchStartingKeyframe=o,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:n,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const i=[],s=n+t,o=t/s,a=Ll(e[0],!1);a.offset=0,i.push(a);const l=Ll(e[0],!1);l.offset=gu(o),i.push(l);const u=e.length-1;for(let r=1;r<=u;r++){let o=Ll(e[r],!1);o.offset=gu((t+o.offset*n)/s),i.push(o)}n=s,t=0,r="",e=i}return lu(this.element,e,this.preStyleProps,this.postStyleProps,n,t,r,!0)}}function gu(e,t=3){const n=Math.pow(10,t-1);return Math.round(e*n)/n}class Eu{}class vu extends Eu{normalizePropertyName(e,t){return zl(e)}normalizeStyleValue(e,t,n,r){let i="";const s=n.toString().trim();if(Tu[t]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{const t=n.match(/^[+-]?[\d\.]+([a-z]*)$/);t&&0==t[1].length&&r.push(`Please provide a CSS unit value for ${e}:${n}`)}return s+i}}const Tu=(()=>function(e){const t={};return e.forEach(e=>t[e]=!0),t}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Iu(e,t,n,r,i,s,o,a,l,u,c,h,d){return{type:0,element:e,triggerName:t,isRemovalTransition:i,fromState:n,fromStyles:s,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:d}}const bu={};class wu{constructor(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}match(e,t,n,r){return function(e,t,n,r,i){return e.some(e=>e(t,n,r,i))}(this.ast.matchers,e,t,n,r)}buildStyles(e,t,n){const r=this._stateStyles["*"],i=this._stateStyles[e],s=r?r.buildStyles(t,n):{};return i?i.buildStyles(t,n):s}build(e,t,n,r,i,s,o,a,l,u){const c=[],h=this.ast.options&&this.ast.options.params||bu,d=this.buildStyles(n,o&&o.params||bu,c),f=a&&a.params||bu,p=this.buildStyles(r,f,c),m=new Set,_=new Map,y=new Map,g="void"===r,E={params:Object.assign(Object.assign({},h),f)},v=u?[]:du(e,t,this.ast.animation,i,s,d,p,E,l,c);let T=0;if(v.forEach(e=>{T=Math.max(e.duration+e.delay,T)}),c.length)return Iu(t,this._triggerName,n,r,g,d,p,[],[],_,y,T,c);v.forEach(e=>{const n=e.element,r=ul(_,n,{});e.preStyleProps.forEach(e=>r[e]=!0);const i=ul(y,n,{});e.postStyleProps.forEach(e=>i[e]=!0),n!==t&&m.add(n)});const I=Ul(m.values());return Iu(t,this._triggerName,n,r,g,d,p,v,I,_,y,T)}}class Su{constructor(e,t){this.styles=e,this.defaultParams=t}buildStyles(e,t){const n={},r=Ml(this.defaultParams);return Object.keys(e).forEach(t=>{const n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(e=>{if("string"!=typeof e){const i=e;Object.keys(i).forEach(e=>{let s=i[e];s.length>1&&(s=ql(s,r,t)),n[e]=s})}}),n}}class Ou{constructor(e,t){this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(e=>{this.states[e.name]=new Su(e.style,e.options&&e.options.params||{})}),Ru(this.states,"true","1"),Ru(this.states,"false","0"),t.transitions.forEach(t=>{this.transitionFactories.push(new wu(e,t,this.states))}),this.fallbackTransition=new wu(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[(e,t)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,n,r){return this.transitionFactories.find(i=>i.match(e,t,n,r))||null}matchStyles(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)}}function Ru(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}const Du=new uu;class Au{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(e,t){const n=[],r=nu(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=r}_buildPlayer(e,t,n){const r=e.element,i=sl(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,i,e.duration,e.delay,e.easing,[],!0)}create(e,t,n={}){const r=[],i=this._animations[e];let s;const o=new Map;if(i?(s=du(this._driver,t,i,wl,Sl,{},{},n,Du,r),s.forEach(e=>{const t=ul(o,e.element,{});e.postStyleProps.forEach(e=>t[e]=null)})):(r.push("The requested animation doesn't exist or has already been destroyed"),s=[]),r.length)throw new Error("Unable to create the animation due to the following errors: "+r.join("\n"));o.forEach((e,t)=>{Object.keys(e).forEach(n=>{e[n]=this._driver.computeStyle(t,n,Xa)})});const a=il(s.map(e=>{const t=o.get(e.element);return this._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(()=>this.destroy(e)),this.players.push(a),a}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t}listen(e,t,n,r){const i=ll(t,"","","");return ol(this._getPlayer(e),n,i,r),()=>{}}command(e,t,n,r){if("register"==n)return void this.register(e,r[0]);if("create"==n)return void this.create(e,t,r[0]||{});const i=this._getPlayer(e);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const Cu="ng-animate-queued",Pu="ng-animate-disabled",Nu=".ng-animate-disabled",Mu=[],Lu={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},xu={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class ku{constructor(e,t=""){this.namespaceId=t;const n=e&&e.hasOwnProperty("value");if(this.value=null!=(r=n?e.value:e)?r:null,n){const t=Ml(e);delete t.value,this.options=t}else this.options={};var r;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const e=this.options.params;Object.keys(t).forEach(n=>{null==e[n]&&(e[n]=t[n])})}}}const Fu="void",Gu=new ku(Fu);class ju{constructor(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Wu(t,this._hostClassName)}listen(e,t,n,r){if(!this._triggers.hasOwnProperty(t))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${t}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${t}" because the provided event is undefined!`);if("start"!=(i=n)&&"done"!=i)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${t}" is not supported!`);var i;const s=ul(this._elementListeners,e,[]),o={name:t,phase:n,callback:r};s.push(o);const a=ul(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Wu(e,Ol),Wu(e,"ng-trigger-"+t),a[t]=Gu),()=>{this._engine.afterFlush(()=>{const e=s.indexOf(o);e>=0&&s.splice(e,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return t}trigger(e,t,n,r=!0){const i=this._getTrigger(t),s=new Bu(this.id,t,e);let o=this._engine.statesByElement.get(e);o||(Wu(e,Ol),Wu(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,o={}));let a=o[t];const l=new ku(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[t]=l,a||(a=Gu),l.value!==Fu&&a.value===l.value){if(!function(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(let i=0;i<n.length;i++){const r=n[i];if(!t.hasOwnProperty(r)||e[r]!==t[r])return!1}return!0}(a.params,l.params)){const t=[],n=i.matchStyles(a.value,a.params,t),r=i.matchStyles(l.value,l.params,t);t.length?this._engine.reportError(t):this._engine.afterFlush(()=>{Gl(e,n),Fl(e,r)})}return}const u=ul(this._engine.playersByElement,e,[]);u.forEach(e=>{e.namespaceId==this.id&&e.triggerName==t&&e.queued&&e.destroy()});let c=i.matchTransition(a.value,l.value,e,l.params),h=!1;if(!c){if(!r)return;c=i.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:c,fromState:a,toState:l,player:s,isFallbackTransition:h}),h||(Wu(e,Cu),s.onStart(()=>{Yu(e,Cu)})),s.onDone(()=>{let t=this.players.indexOf(s);t>=0&&this.players.splice(t,1);const n=this._engine.playersByElement.get(e);if(n){let e=n.indexOf(s);e>=0&&n.splice(e,1)}}),this.players.push(s),u.push(s),s}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,n)=>{delete t[e]}),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(t=>t.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(e=>e.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const n=this._engine.driver.query(e,Rl,!0);n.forEach(e=>{if(e.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(e);n.size?n.forEach(n=>n.triggerLeaveAnimation(e,t,!1,!0)):this.clearElementCache(e)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(e=>this.clearElementCache(e)))}triggerLeaveAnimation(e,t,n,r){const i=this._engine.statesByElement.get(e);if(i){const s=[];if(Object.keys(i).forEach(t=>{if(this._triggers[t]){const n=this.trigger(e,t,Fu,r);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&il(s).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e);if(t){const n=new Set;t.forEach(t=>{const r=t.name;if(n.has(r))return;n.add(r);const i=this._triggers[r].fallbackTransition,s=this._engine.statesByElement.get(e)[r]||Gu,o=new ku(Fu),a=new Bu(this.id,r,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:r,transition:i,fromState:s,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(e,t){const n=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(n.totalAnimations){const t=n.players.length?n.playersByQueriedElement.get(e):[];if(t&&t.length)r=!0;else{let t=e;for(;t=t.parentNode;)if(n.statesByElement.get(t)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)n.markElementAsRemoved(this.id,e,!1,t);else{const r=e.__ng_removed;r&&r!==Lu||(n.afterFlush(()=>this.clearElementCache(e)),n.destroyInnerAnimations(e),n._onRemovalComplete(e,t))}}insertNode(e,t){Wu(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(n=>{const r=n.player;if(r.destroyed)return;const i=n.element,s=this._elementListeners.get(i);s&&s.forEach(t=>{if(t.name==n.triggerName){const r=ll(i,n.triggerName,n.fromState.value,n.toState.value);r._data=e,ol(n.player,t.phase,r,t.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(n)}),this._queue=[],t.sort((e,t)=>{const n=e.transition.ast.depCount,r=t.transition.ast.depCount;return 0==n||0==r?n-r:this._engine.driver.containsElement(e.element,t.element)?1:-1})}destroy(e){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(t=>t.element===e)||t,t}}class Vu{constructor(e,t,n){this.bodyNode=e,this.driver=t,this._normalizer=n,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(e,t)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(t=>{t.queued&&e.push(t)})}),e}createNamespace(e,t){const n=new ju(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n}_balanceNamespaceList(e,t){const n=this._namespaceList.length-1;if(n>=0){let r=!1;for(let i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,t)){this._namespaceList.splice(i+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e}register(e,t){let n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n}registerTrigger(e,t,n){let r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++}destroy(e,t){if(!e)return;const n=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[e];const t=this._namespaceList.indexOf(n);t>=0&&this._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(()=>n.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,n=this.statesByElement.get(e);if(n){const e=Object.keys(n);for(let r=0;r<e.length;r++){const i=n[e[r]].namespaceId;if(i){const e=this._fetchNamespace(i);e&&t.add(e)}}}return t}trigger(e,t,n,r){if(qu(t)){const i=this._fetchNamespace(e);if(i)return i.trigger(t,n,r),!0}return!1}insertNode(e,t,n,r){if(!qu(t))return;const i=t.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const e=this.collectedLeaveElements.indexOf(t);e>=0&&this.collectedLeaveElements.splice(e,1)}if(e){const r=this._fetchNamespace(e);r&&r.insertNode(t,n)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Wu(e,Pu)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Yu(e,Pu))}removeNode(e,t,n,r){if(qu(t)){const i=e?this._fetchNamespace(e):null;if(i?i.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),n){const n=this.namespacesByHostElement.get(t);n&&n.id!==e&&n.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,n,r){this.collectedLeaveElements.push(t),t.__ng_removed={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}}listen(e,t,n,r,i){return qu(t)?this._fetchNamespace(e).listen(t,n,r,i):()=>{}}_buildInstruction(e,t,n,r,i){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t,i)}destroyInnerAnimations(e){let t=this.driver.query(e,Rl,!0);t.forEach(e=>this.destroyActiveAnimationsForElement(e)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Al,!0),t.forEach(e=>this.finishActiveQueriedAnimationOnElement(e)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(e=>{e.queued?e.markedForDestroy=!0:e.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(e=>e.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return il(this.players).onDone(()=>e());e()})}processLeaveNode(e){const t=e.__ng_removed;if(t&&t.setForRemoval){if(e.__ng_removed=Lu,t.namespaceId){this.destroyInnerAnimations(e);const n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}this.driver.matchesElement(e,Nu)&&this.markElementAsDisabled(e,!1),this.driver.query(e,Nu,!0).forEach(e=>{this.markElementAsDisabled(e,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((e,t)=>this._balanceNamespaceList(e,t)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)Wu(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{t=this._flushAnimations(n,e)}finally{for(let e=0;e<n.length;e++)n[e]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(e=>e()),this._flushFns=[],this._whenQuietFns.length){const e=this._whenQuietFns;this._whenQuietFns=[],t.length?il(t).onDone(()=>{e.forEach(e=>e())}):e.forEach(e=>e())}}reportError(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))}_flushAnimations(e,t){const n=new uu,r=[],i=new Map,s=[],o=new Map,a=new Map,l=new Map,u=new Set;this.disabledNodes.forEach(e=>{u.add(e);const t=this.driver.query(e,".ng-animate-queued",!0);for(let n=0;n<t.length;n++)u.add(t[n])});const c=this.bodyNode,h=Array.from(this.statesByElement.keys()),d=zu(h,this.collectedEnterElements),f=new Map;let p=0;d.forEach((e,t)=>{const n=wl+p++;f.set(t,n),e.forEach(e=>Wu(e,n))});const m=[],_=new Set,y=new Set;for(let C=0;C<this.collectedLeaveElements.length;C++){const e=this.collectedLeaveElements[C],t=e.__ng_removed;t&&t.setForRemoval&&(m.push(e),_.add(e),t.hasAnimation?this.driver.query(e,".ng-star-inserted",!0).forEach(e=>_.add(e)):y.add(e))}const g=new Map,E=zu(h,Array.from(_));E.forEach((e,t)=>{const n=Sl+p++;g.set(t,n),e.forEach(e=>Wu(e,n))}),e.push(()=>{d.forEach((e,t)=>{const n=f.get(t);e.forEach(e=>Yu(e,n))}),E.forEach((e,t)=>{const n=g.get(t);e.forEach(e=>Yu(e,n))}),m.forEach(e=>{this.processLeaveNode(e)})});const v=[],T=[];for(let C=this._namespaceList.length-1;C>=0;C--)this._namespaceList[C].drainQueuedTransitions(t).forEach(e=>{const t=e.player,i=e.element;if(v.push(t),this.collectedEnterElements.length){const e=i.__ng_removed;if(e&&e.setForMove)return void t.destroy()}const u=!c||!this.driver.containsElement(c,i),h=g.get(i),d=f.get(i),p=this._buildInstruction(e,n,d,h,u);if(p.errors&&p.errors.length)T.push(p);else{if(u)return t.onStart(()=>Gl(i,p.fromStyles)),t.onDestroy(()=>Fl(i,p.toStyles)),void r.push(t);if(e.isFallbackTransition)return t.onStart(()=>Gl(i,p.fromStyles)),t.onDestroy(()=>Fl(i,p.toStyles)),void r.push(t);p.timelines.forEach(e=>e.stretchStartingKeyframe=!0),n.append(i,p.timelines),s.push({instruction:p,player:t,element:i}),p.queriedElements.forEach(e=>ul(o,e,[]).push(t)),p.preStyleProps.forEach((e,t)=>{const n=Object.keys(e);if(n.length){let e=a.get(t);e||a.set(t,e=new Set),n.forEach(t=>e.add(t))}}),p.postStyleProps.forEach((e,t)=>{const n=Object.keys(e);let r=l.get(t);r||l.set(t,r=new Set),n.forEach(e=>r.add(e))})}});if(T.length){const e=[];T.forEach(t=>{e.push(`@${t.triggerName} has failed due to:\n`),t.errors.forEach(t=>e.push(`- ${t}\n`))}),v.forEach(e=>e.destroy()),this.reportError(e)}const I=new Map,b=new Map;s.forEach(e=>{const t=e.element;n.has(t)&&(b.set(t,t),this._beforeAnimationBuild(e.player.namespaceId,e.instruction,I))}),r.forEach(e=>{const t=e.element;this._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(e=>{ul(I,t,[]).push(e),e.destroy()})});const w=m.filter(e=>Qu(e,a,l)),S=new Map;Hu(S,this.driver,y,l,Xa).forEach(e=>{Qu(e,a,l)&&w.push(e)});const O=new Map;d.forEach((e,t)=>{Hu(O,this.driver,new Set(e),a,"!")}),w.forEach(e=>{const t=S.get(e),n=O.get(e);S.set(e,Object.assign(Object.assign({},t),n))});const R=[],D=[],A={};s.forEach(e=>{const{element:t,player:s,instruction:o}=e;if(n.has(t)){if(u.has(t))return s.onDestroy(()=>Fl(t,o.toStyles)),s.disabled=!0,s.overrideTotalTime(o.totalTime),void r.push(s);let e=A;if(b.size>1){let n=t;const r=[];for(;n=n.parentNode;){const t=b.get(n);if(t){e=t;break}r.push(n)}r.forEach(t=>b.set(t,e))}const n=this._buildAnimation(s.namespaceId,o,I,i,O,S);if(s.setRealPlayer(n),e===A)R.push(s);else{const t=this.playersByElement.get(e);t&&t.length&&(s.parentPlayer=il(t)),r.push(s)}}else Gl(t,o.fromStyles),s.onDestroy(()=>Fl(t,o.toStyles)),D.push(s),u.has(t)&&r.push(s)}),D.forEach(e=>{const t=i.get(e.element);if(t&&t.length){const n=il(t);e.setRealPlayer(n)}}),r.forEach(e=>{e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(let C=0;C<m.length;C++){const e=m[C],t=e.__ng_removed;if(Yu(e,Sl),t&&t.hasAnimation)continue;let n=[];if(o.size){let t=o.get(e);t&&t.length&&n.push(...t);let r=this.driver.query(e,Al,!0);for(let e=0;e<r.length;e++){let t=o.get(r[e]);t&&t.length&&n.push(...t)}}const r=n.filter(e=>!e.destroyed);r.length?$u(this,e,r):this.processLeaveNode(e)}return m.length=0,R.forEach(e=>{this.players.push(e),e.onDone(()=>{e.destroy();const t=this.players.indexOf(e);this.players.splice(t,1)}),e.play()}),R}elementContainsData(e,t){let n=!1;const r=t.__ng_removed;return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,n,r,i){let s=[];if(t){const t=this.playersByQueriedElement.get(e);t&&(s=t)}else{const t=this.playersByElement.get(e);if(t){const e=!i||i==Fu;t.forEach(t=>{t.queued||(e||t.triggerName==r)&&s.push(t)})}}return(n||r)&&(s=s.filter(e=>!(n&&n!=e.namespaceId||r&&r!=e.triggerName))),s}_beforeAnimationBuild(e,t,n){const r=t.element,i=t.isRemovalTransition?void 0:e,s=t.isRemovalTransition?void 0:t.triggerName;for(const o of t.timelines){const e=o.element,a=e!==r,l=ul(n,e,[]);this._getPreviousPlayers(e,a,i,s,t.toState).forEach(e=>{const t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),l.push(e)})}Gl(r,t.fromStyles)}_buildAnimation(e,t,n,r,i,s){const o=t.triggerName,a=t.element,l=[],u=new Set,c=new Set,h=t.timelines.map(t=>{const h=t.element;u.add(h);const d=h.__ng_removed;if(d&&d.removedBeforeQueried)return new tl(t.duration,t.delay);const f=h!==a,p=function(e){const t=[];return function e(t,n){for(let r=0;r<t.length;r++){const i=t[r];i instanceof nl?e(i.players,n):n.push(i)}}(e,t),t}((n.get(h)||Mu).map(e=>e.getRealPlayer())).filter(e=>!!e.element&&e.element===h),m=i.get(h),_=s.get(h),y=sl(0,this._normalizer,0,t.keyframes,m,_),g=this._buildPlayer(t,y,p);if(t.subTimeline&&r&&c.add(h),f){const t=new Bu(e,o,h);t.setRealPlayer(g),l.push(t)}return g});l.forEach(e=>{ul(this.playersByQueriedElement,e.element,[]).push(e),e.onDone(()=>function(e,t,n){let r;if(e instanceof Map){if(r=e.get(t),r){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&e.delete(t)}}else if(r=e[t],r){if(r.length){const e=r.indexOf(n);r.splice(e,1)}0==r.length&&delete e[t]}return r}(this.playersByQueriedElement,e.element,e))}),u.forEach(e=>Wu(e,Dl));const d=il(h);return d.onDestroy(()=>{u.forEach(e=>Yu(e,Dl)),Fl(a,t.toStyles)}),c.forEach(e=>{ul(r,e,[]).push(d)}),d}_buildPlayer(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new tl(e.duration,e.delay)}}class Bu{constructor(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new tl,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(n=>ol(e,t,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){ul(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function qu(e){return e&&1===e.nodeType}function Uu(e,t){const n=e.style.display;return e.style.display=null!=t?t:"none",n}function Hu(e,t,n,r,i){const s=[];n.forEach(e=>s.push(Uu(e)));const o=[];r.forEach((n,r)=>{const s={};n.forEach(e=>{const n=s[e]=t.computeStyle(r,e,i);n&&0!=n.length||(r.__ng_removed=xu,o.push(r))}),e.set(r,s)});let a=0;return n.forEach(e=>Uu(e,s[a++])),o}function zu(e,t){const n=new Map;if(e.forEach(e=>n.set(e,[])),0==t.length)return n;const r=new Set(t),i=new Map;return t.forEach(e=>{const t=function e(t){if(!t)return 1;let s=i.get(t);if(s)return s;const o=t.parentNode;return s=n.has(o)?o:r.has(o)?1:e(o),i.set(t,s),s}(e);1!==t&&n.get(t).push(e)}),n}function Wu(e,t){if(e.classList)e.classList.add(t);else{let n=e.$$classes;n||(n=e.$$classes={}),n[t]=!0}}function Yu(e,t){if(e.classList)e.classList.remove(t);else{let n=e.$$classes;n&&delete n[t]}}function $u(e,t,n){il(n).onDone(()=>e.processLeaveNode(t))}function Qu(e,t,n){const r=n.get(e);if(!r)return!1;let i=t.get(e);return i?r.forEach(e=>i.add(e)):t.set(e,r),n.delete(e),!0}class Zu{constructor(e,t,n){this.bodyNode=e,this._driver=t,this._triggerCache={},this.onRemovalComplete=(e,t)=>{},this._transitionEngine=new Vu(e,t,n),this._timelineEngine=new Au(e,t,n),this._transitionEngine.onRemovalComplete=(e,t)=>this.onRemovalComplete(e,t)}registerTrigger(e,t,n,r,i){const s=e+"-"+r;let o=this._triggerCache[s];if(!o){const e=[],t=nu(this._driver,i,e);if(e.length)throw new Error(`The animation trigger "${r}" has failed to build due to the following errors:\n - ${e.join("\n - ")}`);o=function(e,t){return new Ou(e,t)}(r,t),this._triggerCache[s]=o}this._transitionEngine.registerTrigger(t,r,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)}onRemove(e,t,n,r){this._transitionEngine.removeNode(e,t,r||!1,n)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,n,r){if("@"==n.charAt(0)){const[e,i]=cl(n);this._timelineEngine.command(e,t,i,r)}else this._transitionEngine.trigger(e,t,n,r)}listen(e,t,n,r,i){if("@"==n.charAt(0)){const[e,r]=cl(n);return this._timelineEngine.listen(e,t,r,i)}return this._transitionEngine.listen(e,t,n,r,i)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function Xu(e,t){let n=null,r=null;return Array.isArray(t)&&t.length?(n=Ju(t[0]),t.length>1&&(r=Ju(t[t.length-1]))):t&&(n=Ju(t)),n||r?new Ku(e,n,r):null}let Ku=(()=>{class e{constructor(t,n,r){this._element=t,this._startStyles=n,this._endStyles=r,this._state=0;let i=e.initialStylesByElement.get(t);i||e.initialStylesByElement.set(t,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Fl(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Fl(this._element,this._initialStyles),this._endStyles&&(Fl(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Gl(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Gl(this._element,this._endStyles),this._endStyles=null),Fl(this._element,this._initialStyles),this._state=3)}}return e.initialStylesByElement=new WeakMap,e})();function Ju(e){let t=null;const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=n[r];ec(i)&&(t=t||{},t[i]=e[i])}return t}function ec(e){return"display"===e||"position"===e}const tc="animation",nc="animationend";class rc{constructor(e,t,n,r,i,s,o){this._element=e,this._name=t,this._duration=n,this._delay=r,this._easing=i,this._fillMode=s,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=e=>this._handleCallback(e)}apply(){!function(e,t){const n=uc(e,"").trim();n.length&&(function(e,t){let n=0;for(let r=0;r<e.length;r++)","===e.charAt(r)&&n++}(n),t=`${n}, ${t}`),lc(e,"",t)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),ac(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){ic(this._element,this._name,"paused")}resume(){ic(this._element,this._name,"running")}setPosition(e){const t=sc(this._element,this._name);this._position=e*this._duration,lc(this._element,"Delay",`-${this._position}ms`,t)}getPosition(){return this._position}_handleCallback(e){const t=e._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(t-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),ac(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(e,t){const n=uc(e,"").split(","),r=oc(n,t);r>=0&&(n.splice(r,1),lc(e,"",n.join(",")))}(this._element,this._name))}}function ic(e,t,n){lc(e,"PlayState",n,sc(e,t))}function sc(e,t){const n=uc(e,"");return n.indexOf(",")>0?oc(n.split(","),t):oc([n],t)}function oc(e,t){for(let n=0;n<e.length;n++)if(e[n].indexOf(t)>=0)return n;return-1}function ac(e,t,n){n?e.removeEventListener(nc,t):e.addEventListener(nc,t)}function lc(e,t,n,r){const i=tc+t;if(null!=r){const t=e.style[i];if(t.length){const e=t.split(",");e[r]=n,n=e.join(",")}}e.style[i]=n}function uc(e,t){return e.style[tc+t]}class cc{constructor(e,t,n,r,i,s,o,a){this.element=e,this.keyframes=t,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=s||"linear",this.totalTime=r+i,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new rc(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const t=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(e[n]=t?this._finalStyles[n]:Ql(this.element,n))})}this.currentSnapshot=e}}class hc extends tl{constructor(e,t){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=Tl(t)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(e=>{const t=this._startingStyles[e];t?this.element.style.setProperty(e,t):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class dc{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(e){return yl(e)}matchesElement(e,t){return gl(e,t)}containsElement(e,t){return El(e,t)}query(e,t,n){return vl(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}buildKeyframeElement(e,t,n){n=n.map(e=>Tl(e));let r=`@keyframes ${t} {\n`,i="";n.forEach(e=>{i=" ";const t=parseFloat(e.offset);r+=`${i}${100*t}% {\n`,i+=" ",Object.keys(e).forEach(t=>{const n=e[t];switch(t){case"offset":return;case"easing":return void(n&&(r+=`${i}animation-timing-function: ${n};\n`));default:return void(r+=`${i}${t}: ${n};\n`)}}),r+=i+"}\n"}),r+="}\n";const s=document.createElement("style");return s.innerHTML=r,s}animate(e,t,n,r,i,s=[],o){o&&this._notifyFaultyScrubber();const a=s.filter(e=>e instanceof cc),l={};Wl(n,r)&&a.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const u=function(e){let t={};return e&&(Array.isArray(e)?e:[e]).forEach(e=>{Object.keys(e).forEach(n=>{"offset"!=n&&"easing"!=n&&(t[n]=e[n])})}),t}(t=Yl(e,t,l));if(0==n)return new hc(e,u);const c="gen_css_kf_"+this._count++,h=this.buildKeyframeElement(e,c,t);document.querySelector("head").appendChild(h);const d=Xu(e,t),f=new cc(e,t,c,n,r,i,u,d);return f.onDestroy(()=>{var e;(e=h).parentNode.removeChild(e)}),f}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class fc{constructor(e,t,n,r){this.element=e,this.keyframes=t,this.options=n,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,n){return e.animate(t,n)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(t=>{"offset"!=t&&(e[t]=this._finished?this._finalKeyframe[t]:Ql(this.element,t))}),this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(e=>e()),t.length=0}}class pc{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(mc().toString()),this._cssKeyframesDriver=new dc}validateStyleProperty(e){return yl(e)}matchesElement(e,t){return gl(e,t)}containsElement(e,t){return El(e,t)}query(e,t,n){return vl(e,t,n)}computeStyle(e,t,n){return window.getComputedStyle(e)[t]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,t,n,r,i,s=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,t,n,r,i,s);const a={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(a.easing=i);const l={},u=s.filter(e=>e instanceof fc);Wl(n,r)&&u.forEach(e=>{let t=e.currentSnapshot;Object.keys(t).forEach(e=>l[e]=t[e])});const c=Xu(e,t=Yl(e,t=t.map(e=>Ll(e,!1)),l));return new fc(e,t,a,c)}}function mc(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let _c=(()=>{class e extends Za{constructor(e,t){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(t.body,{id:"0",encapsulation:Je.None,styles:[],data:{animation:[]}})}build(e){const t=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(e)?Ka(e):e;return Ec(this._renderer,null,t,"register",[n]),new yc(t,this._renderer)}}return e.\u0275fac=function(t){return new(t||e)(He(rs),He(ya))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e})();class yc extends class{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new gc(this._id,e,t||{},this._renderer)}}class gc{constructor(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return Ec(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(e){this._command("setPosition",e)}getPosition(){return 0}}function Ec(e,t,n,r,i){return e.setProperty(t,`@@${n}:${r}`,i)}const vc="@",Tc="@.disabled";let Ic=(()=>{class e{constructor(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=(e,t)=>{t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}createRenderer(e,t){const n=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){let e=this._rendererCache.get(n);return e||(e=new bc("",n,this.engine),this._rendererCache.set(n,e)),e}const r=t.id,i=t.id+"-"+this._currentId;this._currentId++,this.engine.register(i,e);const s=t=>{Array.isArray(t)?t.forEach(s):this.engine.registerTrigger(r,i,e,t.name,t)};return t.data.animation.forEach(s),new wc(this,i,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,n){e>=0&&e<this._microtaskId?this._zone.run(()=>t(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(e=>{const[t,n]=e;t(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return e.\u0275fac=function(t){return new(t||e)(He(rs),He(Zu),He(wo))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e})();class bc{constructor(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?e=>t.destroyNode(e):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)}removeChild(e,t,n){this.engine.onRemove(this.namespaceId,t,this.delegate,n)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,n,r){this.delegate.setAttribute(e,t,n,r)}removeAttribute(e,t,n){this.delegate.removeAttribute(e,t,n)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,n,r){this.delegate.setStyle(e,t,n,r)}removeStyle(e,t,n){this.delegate.removeStyle(e,t,n)}setProperty(e,t,n){t.charAt(0)==vc&&t==Tc?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,n){return this.delegate.listen(e,t,n)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class wc extends bc{constructor(e,t,n,r){super(t,n,r),this.factory=e,this.namespaceId=t}setProperty(e,t,n){t.charAt(0)==vc?"."==t.charAt(1)&&t==Tc?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)}listen(e,t,n){if(t.charAt(0)==vc){const r=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e);let i=t.substr(1),s="";return i.charAt(0)!=vc&&([i,s]=function(e){const t=e.indexOf(".");return[e.substring(0,t),e.substr(t+1)]}(i)),this.engine.listen(this.namespaceId,r,i,s,e=>{this.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)}}let Sc=(()=>{class e extends Zu{constructor(e,t,n){super(e.body,t,n)}}return e.\u0275fac=function(t){return new(t||e)(He(ya),He(bl),He(Eu))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e})();const Oc=[{provide:bl,useFactory:function(){return"function"==typeof mc()?new pc:new dc}},{provide:new Me("AnimationModuleType"),useValue:"BrowserAnimations"},{provide:Za,useClass:_c},{provide:Eu,useFactory:function(){return new vu}},{provide:Zu,useClass:Sc},{provide:rs,useFactory:function(e,t,n){return new Ic(e,t,n)},deps:[Fa,Zu,wo]}];let Rc=(()=>{class e{}return e.\u0275mod=at({type:e}),e.\u0275inj=ae({factory:function(t){return new(t||e)},providers:Oc,imports:[Qa]}),e})();var Dc=n("eFs7"),Ac=n.n(Dc),Cc=n("ttM9"),Pc=n.n(Cc),Nc=n("WAnW");const Mc=Object(Nc.supported)(),Lc=["id","name","class","multiple","required","disabled","capture","accept"],xc=["setOptions","on","off","onOnce","appendTo","insertAfter","insertBefore","isAttachedTo","replaceElement","restoreElement","destroy"],kc=["oninit","onwarning","onerror","onactivatefile","onaddfilestart","onaddfileprogress","onaddfile","onprocessfilestart","onprocessfileprogress","onprocessfileabort","onprocessfilerevert","onprocessfile","onprocessfiles","onremovefile","onpreparefile","onupdatefiles"];let Fc=(()=>{class e{constructor(e,t){this.options={},this.handleEvent=null,this.root=e,this.zone=t,kc.forEach(e=>{this[e]=new Hs})}ngAfterViewInit(){const e=this.root.nativeElement.querySelector("input"),t=this.root.nativeElement.attributes;Lc.forEach(n=>{const r=t[n]?t[n].value:this.options[n];r&&e.setAttribute(n,r)}),Mc&&(this.handleEvent=e=>{this["on"+e.type.split(":")[1]].emit(Object.assign({},e.detail))},kc.forEach(e=>{this.root.nativeElement.addEventListener("FilePond:"+e.substr(2),this.handleEvent)}),this.zone.runOutsideAngular(()=>{this.pond=Object(Nc.create)(e,Object.assign({},this.options,{files:this.files}))}),Object.keys(this.pond).filter(e=>-1===xc.indexOf(e)).forEach(e=>{this[e]=this.pond[e]}))}ngOnChanges(e){if(e.firstChange)return;if(!this.pond)return;const t=e.options?e.options.currentValue:this.options;e.files&&JSON.stringify(e.files.previousValue)!==JSON.stringify(e.files.currentValue)&&(t.files=e.files.currentValue),this.pond.setOptions(t)}ngOnDestroy(){this.pond&&(kc.forEach(e=>{this.root.nativeElement.removeEventListener("FilePond:"+e.substr(2),this.handleEvent)}),this.pond.destroy())}}return e.\u0275fac=function(t){return new(t||e)(qi(ts),qi(wo))},e.\u0275cmp=rt({type:e,selectors:[["file-pond"]],inputs:{options:"options",files:"files"},outputs:{oninit:"oninit",onwarning:"onwarning",onerror:"onerror",onactivatefile:"onactivatefile",onaddfilestart:"onaddfilestart",onaddfileprogress:"onaddfileprogress",onaddfile:"onaddfile",onprocessfilestart:"onprocessfilestart",onprocessfileprogress:"onprocessfileprogress",onprocessfileabort:"onprocessfileabort",onprocessfilerevert:"onprocessfilerevert",onprocessfile:"onprocessfile",onprocessfiles:"onprocessfiles",onremovefile:"onremovefile",onpreparefile:"onpreparefile",onupdatefiles:"onupdatefiles"},features:[It],decls:2,vars:0,consts:[[1,"filepond--wrapper"],["type","file"]],template:function(e,t){1&e&&(zi(0,"div",0),zi(1,"input",1,undefined),Wi(),Wi())},styles:[""],encapsulation:2}),e})(),Gc=(()=>{class e{}return e.\u0275mod=at({type:e}),e.\u0275inj=ae({factory:function(t){return new(t||e)},imports:[[Ta]]}),e})();const jc=["myPond"];let Vc=(()=>{class e{constructor(){this.initialFiles=[],this.pondOptions={instantUpload:!0,allowDownloadByUrl:!0,server:{process:(e,t,n,r,i,s,o)=>(this.onUpload(null,[{fieldName:e,file:t,fileName:t.name}]).then(e=>r(e)).catch(e=>i(e)),{abort:()=>{o()}}),revert:(e,t,n)=>{this.onRemoveUploaded({fileId:e}).then(e=>t()).catch(e=>n(e))}}}}pondInit(){for(const e of this.initialFiles)this.myPond.addFile(e.id,{type:"limbo",file:{name:e.fileName,size:e.length},metadata:{url:e.downloadUrl}})}ngOnChanges(e){this.pondOptions=Object.assign(Object.assign({},this.pondOptions),{allowMultiple:!!this.allowMultiple})}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=rt({type:e,selectors:[["drayman-file-uploader-internal"]],viewQuery:function(e,t){var n,r,i,s,o,a;1&e&&(s=jc,o=!0,function(e,t,n,r,i,s){e.firstCreatePass&&function(e,t,n){null===e.queries&&(e.queries=new Zs),e.queries.track(new Xs(t,-1))}(e,new Qs(n,r,!1,i)),function(e,t){const n=new Ws;wr(e,t,n,n.destroy),null===t[19]&&(t[19]=new $s),t[19].queries.push(new Ys(n))}(e,t)}(Ut(),qt(),s,o,a)),2&e&&function(e){const t=qt(),n=Ut(),r=Xt();Kt(r+1);const i=to(n,r);if(e.dirty&&xt(t)===i.metadata.isStatic){if(null===i.matches)e.reset([]);else{const s=i.crossesNgTemplate?function e(t,n,r,i){const s=t.queries.getByIndex(r),o=s.matches;if(null!==o){const a=eo(t,n,s,r);for(let t=0;t<o.length;t+=2){const r=o[t];if(r>0)i.push(a[t/2]);else{const s=o[t+1],a=n[-r];for(let t=ft;t<a.length;t++){const n=a[t];n[17]===n[3]&&e(n[1],n,s,i)}if(null!==a[9]){const t=a[9];for(let n=0;n<t.length;n++){const r=t[n];e(r[1],r,s,i)}}}}}return i}(n,t,r,[]):eo(n,t,i,r);e.reset(s),e.notifyOnChanges()}return!0}return!1}((r=qt(),i=Xt(),n=r[19].queries[i].queryList))&&(t.myPond=n.first)},inputs:{onUpload:"onUpload",onRemoveUploaded:"onRemoveUploaded",allowMultiple:"allowMultiple",initialFiles:"initialFiles"},features:[It],decls:2,vars:1,consts:[["aria-label","File uploader",3,"options","oninit"],["myPond",""]],template:function(e,t){1&e&&(zi(0,"file-pond",0,1),$i("oninit",(function(){return t.pondInit()})),Wi()),2&e&&Ui("options",t.pondOptions)},directives:[Fc],styles:[""]}),e})();Object(Nc.registerPlugin)(Pc.a),Object(Nc.registerPlugin)(Ac.a);let Bc=(()=>{class e{constructor(e){this.injector=e}ngDoBootstrap(){const e=function(e,t){const n=function(e,t){return t.get(es).resolveComponentFactory(e).inputs}(e,t.injector),r=t.strategyFactory||new ha(e,t.injector),i=function(e){const t={};return e.forEach(({propName:e,templateName:n})=>{var r;t[(r=n,r.replace(/[A-Z]/g,e=>"-"+e.toLowerCase()))]=e}),t}(n);class s extends fa{constructor(e){super(),this.injector=e}get ngElementStrategy(){if(!this._ngElementStrategy){const e=this._ngElementStrategy=r.create(this.injector||t.injector),i=n.filter(({propName:e})=>this.hasOwnProperty(e)).map(({propName:e})=>[e,this[e]]);this instanceof s?i.forEach(([e])=>delete this[e]):pa(n,this),i.forEach(([t,n])=>e.setInputValue(t,n))}return this._ngElementStrategy}attributeChangedCallback(e,t,n,r){this.ngElementStrategy.setInputValue(i[e],n)}connectedCallback(){let e=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),e=!0),this.ngElementStrategy.connect(this),e||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(e=>{const t=function(e,t,n){if("function"!=typeof CustomEvent){const r=e.createEvent("CustomEvent");return r.initCustomEvent(t,!1,!1,n),r}return new CustomEvent(t,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,e.name,e.value);this.dispatchEvent(t)})}}return s.observedAttributes=Object.keys(i),Object.defineProperty(s.prototype,"ngElementStrategy",{enumerable:!0}),pa(n,s.prototype),s}(Vc,{injector:this.injector});customElements.define("drayman-file-uploader",e)}}return e.\u0275mod=at({type:e}),e.\u0275inj=ae({factory:function(t){return new(t||e)(He(ki))},imports:[[Qa,Rc,Gc]]}),e})();(function(){if(Yn)throw new Error("Cannot enable prod mode after platform setup.");Wn=!1})(),Ya().bootstrapModule(Bc).catch(e=>console.error(e))},zn8P:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="zn8P"}});
1
+ (()=>{var xD={452:function(ft){ft.exports=function(){"use strict";var Je=function(Nn){var Bi=Nn.addFilter,Ee=Nn.utils,Ge=Ee.Type,Ie=Ee.replaceInString,Ae=Ee.toNaturalFileSize;return Bi("ALLOW_HOPPER_ITEM",function(At,Ut){var rt=Ut.query;if(!rt("GET_ALLOW_FILE_SIZE_VALIDATION"))return!0;var et=rt("GET_MAX_FILE_SIZE");if(null!==et&&At.size>=et)return!1;var sn=rt("GET_MIN_FILE_SIZE");return!(null!==sn&&At.size<=sn)}),Bi("LOAD_FILE",function(At,Ut){var rt=Ut.query;return new Promise(function(et,sn){if(!rt("GET_ALLOW_FILE_SIZE_VALIDATION"))return et(At);var ni=rt("GET_FILE_VALIDATE_SIZE_FILTER");if(ni&&!ni(At))return et(At);var gn=rt("GET_MAX_FILE_SIZE");if(null!==gn&&At.size>=gn)sn({status:{main:rt("GET_LABEL_MAX_FILE_SIZE_EXCEEDED"),sub:Ie(rt("GET_LABEL_MAX_FILE_SIZE"),{filesize:Ae(gn)})}});else{var Gt=rt("GET_MIN_FILE_SIZE");if(null!==Gt&&At.size<=Gt)sn({status:{main:rt("GET_LABEL_MIN_FILE_SIZE_EXCEEDED"),sub:Ie(rt("GET_LABEL_MIN_FILE_SIZE"),{filesize:Ae(Gt)})}});else{var Fn=rt("GET_MAX_TOTAL_FILE_SIZE");if(null!==Fn&&rt("GET_ACTIVE_ITEMS").reduce(function(Nr,tt){return Nr+tt.fileSize},0)>Fn)return void sn({status:{main:rt("GET_LABEL_MAX_TOTAL_FILE_SIZE_EXCEEDED"),sub:Ie(rt("GET_LABEL_MAX_TOTAL_FILE_SIZE"),{filesize:Ae(Fn)})}});et(At)}}})}),{options:{allowFileSizeValidation:[!0,Ge.BOOLEAN],maxFileSize:[null,Ge.INT],minFileSize:[null,Ge.INT],maxTotalFileSize:[null,Ge.INT],fileValidateSizeFilter:[null,Ge.FUNCTION],labelMinFileSizeExceeded:["File is too small",Ge.STRING],labelMinFileSize:["Minimum file size is {filesize}",Ge.STRING],labelMaxFileSizeExceeded:["File is too large",Ge.STRING],labelMaxFileSize:["Maximum file size is {filesize}",Ge.STRING],labelMaxTotalFileSizeExceeded:["Maximum total size exceeded",Ge.STRING],labelMaxTotalFileSize:["Maximum total file size is {filesize}",Ge.STRING]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:Je})),Je}()},212:function(ft){ft.exports=function(){"use strict";const J=Ee=>{let Ge=document.createElement("span");return Ge.className="filepond--download-icon",Ge.title=Ee,Ge},pn=(Ee,Ge)=>{if(Ge&&Ee.getMetadata("url"))location.href=Ee.getMetadata("url");else{const Ie=document.createElement("a"),Ae=window.URL.createObjectURL(Ee.file);document.body.appendChild(Ie),Ie.style.display="none",Ie.href=Ae,Ie.download=Ee.file.name,Ie.click(),window.URL.revokeObjectURL(Ae),Ie.remove()}},Nn=Ee=>{const{addFilter:Ge,utils:Ie}=Ee,{Type:Ae,createRoute:At}=Ie;return Ge("CREATE_VIEW",Ut=>{const{is:rt,view:et,query:sn}=Ut;rt("file")&&et.registerWriter(At({DID_LOAD_ITEM:({root:gn,props:Gt})=>{const{id:Fn}=Gt,Pr=sn("GET_ITEM",Fn);if(!Pr||Pr.archived)return;const Nr=gn.query("GET_LABEL_BUTTON_DOWNLOAD_ITEM"),tt=gn.query("GET_ALLOW_DOWNLOAD_BY_URL");((Ee,Ge,Ie,Ae)=>{const At=Ge.querySelector(".filepond--file-info-main"),Ut=J(Ie);At.prepend(Ut),Ut.addEventListener("click",()=>pn(Ee,Ae))})(Pr,gn.element,Nr,tt)}},({props:Gt})=>{const{id:Fn}=Gt;sn("GET_ITEM",Fn)}))}),{options:{labelButtonDownloadItem:["Download file",Ae.STRING],allowDownloadByUrl:[!1,Ae.BOOLEAN]}}};return"undefined"!=typeof window&&void 0!==window.document&&document.dispatchEvent(new CustomEvent("FilePond:pluginloaded",{detail:Nn})),Nn}()},917:function(ft,Je){!function(J){"use strict";var pn=function(s){return s instanceof HTMLElement},Nn=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],f=Object.assign({},s),g=[],y=[],I=function(){var P=[].concat(y);y.length=0,P.forEach(function(B){T(B.type,B.data)})},T=function(P,B,$){!$||document.hidden?(k[P]&&k[P](B),g.push({type:P,data:B})):y.push({type:P,data:B})},C=function(P){for(var B,$=arguments.length,ne=new Array($>1?$-1:0),j=1;j<$;j++)ne[j-1]=arguments[j];return N[P]?(B=N)[P].apply(B,ne):null},S={getState:function(){return Object.assign({},f)},processActionQueue:function(){var P=[].concat(g);return g.length=0,P},processDispatchQueue:I,dispatch:T,query:C},N={};a.forEach(function(H){N=Object.assign({},H(f),{},N)});var k={};return c.forEach(function(H){k=Object.assign({},H(T,C,f),{},k)}),S},Ee=function(s,a){for(var c in s)!s.hasOwnProperty(c)||a(c,s[c])},Ge=function(s){var a={};return Ee(s,function(c){!function(s,a,c){"function"!=typeof c?Object.defineProperty(s,a,Object.assign({},c)):s[a]=c}(a,c,s[c])}),a},Ie=function(s,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(null===c)return s.getAttribute(a)||s.hasAttribute(a);s.setAttribute(a,c)},Ae="http://www.w3.org/2000/svg",At=["svg","path"],Ut=function(s){return At.includes(s)},rt=function(s,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"object"==typeof a&&(c=a,a=null);var f=Ut(s)?document.createElementNS(Ae,s):document.createElement(s);return a&&(Ut(s)?Ie(f,"class",a):f.className=a),Ee(c,function(g,y){Ie(f,g,y)}),f},et=function(s){return function(a,c){void 0!==c&&s.children[c]?s.insertBefore(a,s.children[c]):s.appendChild(a)}},sn=function(s,a){return function(c,f){return void 0!==f?a.splice(f,0,c):a.push(c),c}},ni=function(s,a){return function(c){return a.splice(a.indexOf(c),1),c.element.parentNode&&s.removeChild(c.element),c}},gn="undefined"!=typeof window&&void 0!==window.document,Gt=function(){return gn},Pr="children"in(Gt()?rt("svg"):{})?function(h){return h.children.length}:function(h){return h.childNodes.length},Nr=function(s,a,c,f){var g=c[0]||s.left,y=c[1]||s.top,v=g+s.width,_=y+s.height*(f[1]||1),I={element:Object.assign({},s),inner:{left:s.left,top:s.top,right:s.right,bottom:s.bottom},outer:{left:g,top:y,right:v,bottom:_}};return a.filter(function(T){return!T.isRectIgnored()}).map(function(T){return T.rect}).forEach(function(T){tt(I.inner,Object.assign({},T.inner)),tt(I.outer,Object.assign({},T.outer))}),zs(I.inner),I.outer.bottom+=I.element.marginBottom,I.outer.right+=I.element.marginRight,zs(I.outer),I},tt=function(s,a){a.top+=s.top,a.right+=s.left,a.bottom+=s.top,a.left+=s.left,a.bottom>s.bottom&&(s.bottom=a.bottom),a.right>s.right&&(s.right=a.right)},zs=function(s){s.width=s.right-s.left,s.height=s.bottom-s.top},ri=function(s){return"number"==typeof s},ii=function(s,a,c){var f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.001;return Math.abs(s-a)<f&&Math.abs(c)<f},So=function(s){return s<.5?2*s*s:(4-2*s)*s-1},qs={spring:function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=s.stiffness,c=void 0===a?.5:a,f=s.damping,g=void 0===f?.75:f,y=s.mass,v=void 0===y?10:y,_=null,I=null,T=0,C=!1,k=Ge({interpolate:function(P,B){if(!C){if(!ri(_)||!ri(I))return C=!0,void(T=0);ii(I+=T+=-(I-_)*c/v,_,T*=g)||B?(T=0,C=!0,k.onupdate(I=_),k.oncomplete(I)):k.onupdate(I)}},target:{set:function(P){if(ri(P)&&!ri(I)&&(I=P),null===_&&(_=P,I=P),I===(_=P)||void 0===_)return C=!0,T=0,k.onupdate(I),void k.oncomplete(I);C=!1},get:function(){return _}},resting:{get:function(){return C}},onupdate:function(P){},oncomplete:function(P){}});return k},tween:function(){var I,T,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=s.duration,c=void 0===a?500:a,f=s.easing,g=void 0===f?So:f,y=s.delay,v=void 0===y?0:y,_=null,C=!0,S=!1,N=null,H=Ge({interpolate:function(B,$){C||null===N||(null===_&&(_=B),!(B-_<v)&&((I=B-_-v)>=c||$?(I=1,H.onupdate((T=S?0:1)*N),H.oncomplete(T*N),C=!0):(T=I/c,H.onupdate((I>=0?g(S?1-T:T):0)*N))))},target:{get:function(){return S?0:N},set:function(B){if(null===N)return N=B,H.onupdate(B),void H.oncomplete(B);B<N?(N=1,S=!0):(S=!1,N=B),C=!1,_=null}},resting:{get:function(){return C}},onupdate:function(B){},oncomplete:function(B){}});return H}},Ys=function(s,a,c){var f=arguments.length>3&&void 0!==arguments[3]&&arguments[3];(a=Array.isArray(a)?a:[a]).forEach(function(g){s.forEach(function(y){var v=y,_=function(){return c[y]},I=function(C){return c[y]=C};"object"==typeof y&&(v=y.key,_=y.getter||_,I=y.setter||I),(!g[v]||f)&&(g[v]={get:_,set:I})})})},$t=function(s){return null!=s},rd={opacity:1,scaleX:1,scaleY:1,translateX:0,translateY:0,rotateX:0,rotateY:0,rotateZ:0,originX:0,originY:0},ku=function(s,a){if(Object.keys(s).length!==Object.keys(a).length)return!0;for(var c in a)if(a[c]!==s[c])return!0;return!1},Bu=function(s,a){var c=a.opacity,f=a.perspective,g=a.translateX,y=a.translateY,v=a.scaleX,_=a.scaleY,I=a.rotateX,T=a.rotateY,C=a.rotateZ,S=a.originX,N=a.originY,k=a.width,H=a.height,P="",B="";($t(S)||$t(N))&&(B+="transform-origin: "+(S||0)+"px "+(N||0)+"px;"),$t(f)&&(P+="perspective("+f+"px) "),($t(g)||$t(y))&&(P+="translate3d("+(g||0)+"px, "+(y||0)+"px, 0) "),($t(v)||$t(_))&&(P+="scale3d("+($t(v)?v:1)+", "+($t(_)?_:1)+", 1) "),$t(C)&&(P+="rotateZ("+C+"rad) "),$t(I)&&(P+="rotateX("+I+"rad) "),$t(T)&&(P+="rotateY("+T+"rad) "),P.length&&(B+="transform:"+P+";"),$t(c)&&(B+="opacity:"+c+";",0===c&&(B+="visibility:hidden;"),c<1&&(B+="pointer-events:none;")),$t(H)&&(B+="height:"+H+"px;"),$t(k)&&(B+="width:"+k+"px;");var $=s.elementCurrentStyle||"";(B.length!==$.length||B!==$)&&(s.style.cssText=B,s.elementCurrentStyle=B)},Vu={styles:function(s){var a=s.mixinConfig,c=s.viewProps,f=s.viewInternalAPI,g=s.viewExternalAPI,y=s.view,v=Object.assign({},c),_={};Ys(a,[f,g],c);var C=function(){return y.rect?Nr(y.rect,y.childViews,[c.translateX||0,c.translateY||0],[c.scaleX||0,c.scaleY||0]):null};return f.rect={get:C},g.rect={get:C},a.forEach(function(S){c[S]=void 0===v[S]?rd[S]:v[S]}),{write:function(){if(ku(_,c))return Bu(y.element,c),Object.assign(_,Object.assign({},c)),!0},destroy:function(){}}},listeners:function(s){var g=s.viewExternalAPI,v=s.view,_=[],I=function(s){return function(a,c){s.addEventListener(a,c)}}(v.element),T=function(s){return function(a,c){s.removeEventListener(a,c)}}(v.element);return g.on=function(C,S){_.push({type:C,fn:S}),I(C,S)},g.off=function(C,S){_.splice(_.findIndex(function(N){return N.type===C&&N.fn===S}),1),T(C,S)},{write:function(){return!0},destroy:function(){_.forEach(function(S){T(S.type,S.fn)})}}},animations:function(s){var a=s.mixinConfig,c=s.viewProps,f=s.viewInternalAPI,g=s.viewExternalAPI,y=Object.assign({},c),v=[];return Ee(a,function(_,I){var T=function(s,a,c){var f=s[a]&&"object"==typeof s[a][c]?s[a][c]:s[a]||s,g="string"==typeof f?f:f.type,y="object"==typeof f?Object.assign({},f):{};return qs[g]?qs[g](y):null}(I);T&&(T.onupdate=function(S){c[_]=S},T.target=y[_],Ys([{key:_,setter:function(N){T.target!==N&&(T.target=N)},getter:function(){return c[_]}}],[f,g],c,!0),v.push(T))}),{write:function(I){var T=document.hidden,C=!0;return v.forEach(function(S){S.resting||(C=!1),S.interpolate(I,T)}),C},destroy:function(){}}},apis:function(s){Ys(s.mixinConfig,s.viewExternalAPI,s.viewProps)}},ju=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return a.layoutCalculated||(s.paddingTop=parseInt(c.paddingTop,10)||0,s.marginTop=parseInt(c.marginTop,10)||0,s.marginRight=parseInt(c.marginRight,10)||0,s.marginBottom=parseInt(c.marginBottom,10)||0,s.marginLeft=parseInt(c.marginLeft,10)||0,a.layoutCalculated=!0),s.left=a.offsetLeft||0,s.top=a.offsetTop||0,s.width=a.offsetWidth||0,s.height=a.offsetHeight||0,s.right=s.left+s.width,s.bottom=s.top+s.height,s.scrollTop=a.scrollTop,s.hidden=null===a.offsetParent,s},ht=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=s.tag,c=void 0===a?"div":a,f=s.name,g=void 0===f?null:f,y=s.attributes,v=void 0===y?{}:y,_=s.read,I=void 0===_?function(){}:_,T=s.write,C=void 0===T?function(){}:T,S=s.create,N=void 0===S?function(){}:S,k=s.destroy,H=void 0===k?function(){}:k,P=s.filterFrameActionsForChild,B=void 0===P?function(z,ee){return ee}:P,$=s.didCreateView,ne=void 0===$?function(){}:$,j=s.didWriteView,Re=void 0===j?function(){}:j,ae=s.ignoreRect,Ve=void 0!==ae&&ae,xe=s.ignoreRectUpdate,q=void 0!==xe&&xe,te=s.mixins,re=void 0===te?[]:te;return function(z){var ee=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},oe=rt(c,"filepond--"+g,v),je=window.getComputedStyle(oe,null),ke=ju(),se=null,x=!1,A=[],Q=[],fe={},ge={},Ce=[C],_e=[I],Oe=[H],Kn=function(){return oe},_r=function(){return A.concat()},Za=function(Pe){return function(Zn,Dr){return Zn(Pe,Dr)}},ps=function(){return se||(se=Nr(ke,A,[0,0],[1,1]))},po=function(){se=null,A.forEach(function(Dr){return Dr._read()}),!(q&&ke.width&&ke.height)&&ju(ke,oe,je);var Zn={root:wn,props:ee,rect:ke};_e.forEach(function(Dr){return Dr(Zn)})},Lf=function(Pe,Zn,Dr){var Ci=0===Zn.length;return Ce.forEach(function(bt){!1===bt({props:ee,root:wn,actions:Zn,timestamp:Pe,shouldOptimize:Dr})&&(Ci=!1)}),Q.forEach(function(bt){!1===bt.write(Pe)&&(Ci=!1)}),A.filter(function(bt){return!!bt.element.parentNode}).forEach(function(bt){bt._write(Pe,B(bt,Zn),Dr)||(Ci=!1)}),A.forEach(function(bt,Xn){bt.element.parentNode||(wn.appendChild(bt.element,Xn),bt._read(),bt._write(Pe,B(bt,Zn),Dr),Ci=!1)}),x=Ci,Re({props:ee,root:wn,actions:Zn,timestamp:Pe}),Ci},Vl=function(){Q.forEach(function(Pe){return Pe.destroy()}),Oe.forEach(function(Pe){Pe({root:wn,props:ee})}),A.forEach(function(Pe){return Pe._destroy()})},jl={element:{get:Kn},style:{get:function(){return je}},childViews:{get:_r}},Hl=Object.assign({},jl,{rect:{get:ps},ref:{get:function(){return fe}},is:function(Pe){return g===Pe},appendChild:et(oe),createChildView:Za(z),linkView:function(Pe){return A.push(Pe),Pe},unlinkView:function(Pe){A.splice(A.indexOf(Pe),1)},appendChildView:sn(0,A),removeChildView:ni(oe,A),registerWriter:function(Pe){return Ce.push(Pe)},registerReader:function(Pe){return _e.push(Pe)},registerDestroyer:function(Pe){return Oe.push(Pe)},invalidateLayout:function(){return oe.layoutCalculated=!1},dispatch:z.dispatch,query:z.query}),Ja={element:{get:Kn},childViews:{get:_r},rect:{get:ps},resting:{get:function(){return x}},isRectIgnored:function(){return Ve},_read:po,_write:Lf,_destroy:Vl},eu=Object.assign({},jl,{rect:{get:function(){return ke}}});Object.keys(re).sort(function(He,Pe){return"styles"===He?1:"styles"===Pe?-1:0}).forEach(function(He){var Pe=Vu[He]({mixinConfig:re[He],viewProps:ee,viewState:ge,viewInternalAPI:Hl,viewExternalAPI:Ja,view:Ge(eu)});Pe&&Q.push(Pe)});var wn=Ge(Hl);N({root:wn,props:ee});var tu=Pr(oe);return A.forEach(function(He,Pe){wn.appendChild(He.element,tu+Pe)}),ne(wn),Ge(Ja)}},Ft=function(s,a){return function(c){var f=c.root,g=c.props,y=c.actions,v=void 0===y?[]:y,_=c.timestamp,I=c.shouldOptimize;v.filter(function(T){return s[T.type]}).forEach(function(T){return s[T.type]({root:f,props:g,action:T.data,timestamp:_,shouldOptimize:I})}),a&&a({root:f,props:g,actions:v,timestamp:_,shouldOptimize:I})}},Hu=function(s,a){return a.parentNode.insertBefore(s,a)},Uu=function(s,a){return a.parentNode.insertBefore(s,a.nextSibling)},Ao=function(s){return Array.isArray(s)},Ln=function(s){return null==s},Gu=function(s){return s.trim()},Ks=function(s){return""+s},od=function(s){return"boolean"==typeof s},Zs=function(s){return od(s)?s:"true"===s},Lt=function(s){return"string"==typeof s},zu=function(s){return ri(s)?s:Lt(s)?Ks(s).replace(/[a-z]+/gi,""):0},Mo=function(s){return parseInt(zu(s),10)},sd=function(s){return parseFloat(zu(s))},oi=function(s){return ri(s)&&isFinite(s)&&Math.floor(s)===s},Xs=function(s){if(oi(s))return s;var a=Ks(s).trim();return/MB$/i.test(a)?(a=a.replace(/MB$i/,"").trim(),1e3*Mo(a)*1e3):/KB/i.test(a)?(a=a.replace(/KB$i/,"").trim(),1e3*Mo(a)):Mo(a)},Fr=function(s){return"function"==typeof s},Wu={process:"POST",patch:"PATCH",revert:"DELETE",fetch:"GET",restore:"GET",load:"GET"},ud=function(s,a,c,f,g){if(null===a)return null;if("function"==typeof a)return a;var y={url:"GET"===c||"PATCH"===c?"?"+s+"=":"",method:c,headers:g,withCredentials:!1,timeout:f,onload:null,ondata:null,onerror:null};if(Lt(a))return y.url=a,y;if(Object.assign(y,a),Lt(y.headers)){var v=y.headers.split(/:(.+)/);y.headers={header:v[0],value:v[1]}}return y.withCredentials=Zs(y.withCredentials),y},wt=function(s){return"object"==typeof s&&null!==s},Js=function(s){return Ao(s)?"array":function(s){return null===s}(s)?"null":oi(s)?"int":/^[0-9]+ ?(?:GB|MB|KB)$/gi.test(s)?"bytes":function(s){return wt(s)&&Lt(s.url)&&wt(s.process)&&wt(s.revert)&&wt(s.restore)&&wt(s.fetch)}(s)?"api":typeof s},hd={array:function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",";return Ln(s)?[]:Ao(s)?s:Ks(s).split(a).map(Gu).filter(function(c){return c.length})},boolean:Zs,int:function(s){return"bytes"===Js(s)?Xs(s):Mo(s)},number:sd,float:sd,bytes:Xs,string:function(s){return Fr(s)?s:Ks(s)},function:function(s){return function(s){for(var a=self,c=s.split("."),f=null;f=c.shift();)if(!(a=a[f]))return null;return a}(s)},serverapi:function(s){return function(s){var a={};return a.url=Lt(s)?s:s.url||"",a.timeout=s.timeout?parseInt(s.timeout,10):0,a.headers=s.headers?s.headers:{},Ee(Wu,function(c){a[c]=ud(c,s[c],Wu[c],a.timeout,a.headers)}),a.remove=s.remove||null,delete a.headers,a}(s)},object:function(s){try{return JSON.parse(function(s){return s.replace(/{\s*'/g,'{"').replace(/'\s*}/g,'"}').replace(/'\s*:/g,'":').replace(/:\s*'/g,':"').replace(/,\s*'/g,',"').replace(/'\s*,/g,'",')}(s))}catch(a){return null}}},qe=function(s,a,c){if(s===a)return s;var f=Js(s);if(f!==c){var g=function(s,a){return hd[a](s)}(s,c);if(f=Js(g),null===g)throw'Trying to assign value with incorrect type to "'+option+'", allowed type: "'+c+'"';s=g}return s},$e=function(s){var a={};return Ee(s,function(c){var f=s[c];a[c]=function(s,a){var c=s;return{enumerable:!0,get:function(){return c},set:function(g){c=qe(g,s,a)}}}(f[0],f[1])}),Ge(a)},ta=function(s){return{items:[],listUpdateTimeout:null,itemUpdateTimeout:null,processingQueue:[],options:$e(s)}},Ro=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-";return s.split(/(?=[A-Z])/).map(function(c){return c.toLowerCase()}).join(a)},na=function(s,a){var c={};return Ee(a,function(f){c[f]={get:function(){return s.getState().options[f]},set:function(y){s.dispatch("SET_"+Ro(f,"_").toUpperCase(),{value:y})}}}),c},ve=function(s){return function(a,c,f){var g={};return Ee(s,function(y){var v=Ro(y,"_").toUpperCase();g["SET_"+v]=function(_){try{f.options[y]=_.value}catch(I){}a("DID_SET_"+v,{value:f.options[y]})}}),g}},Yu=function(s){return function(a){var c={};return Ee(s,function(f){c["GET_"+Ro(f,"_").toUpperCase()]=function(g){return a.options[f]}}),c}},mn_API=1,mn_DROP=2,mn_BROWSE=3,mn_PASTE=4,mn_NONE=5,Y=function(){return Math.random().toString(36).substr(2,9)};function gd(h){this.wrapped=h}function Oo(h){var s,a;function f(y,v){try{var _=h[y](v),I=_.value,T=I instanceof gd;Promise.resolve(T?I.wrapped:I).then(function(C){T?f("next",C):g(_.done?"return":"normal",C)},function(C){f("throw",C)})}catch(C){g("throw",C)}}function g(y,v){switch(y){case"return":s.resolve({value:v,done:!0});break;case"throw":s.reject(v);break;default:s.resolve({value:v,done:!1})}(s=s.next)?f(s.key,s.arg):a=null}this._invoke=function c(y,v){return new Promise(function(_,I){var T={key:y,arg:v,resolve:_,reject:I,next:null};a?a=a.next=T:(s=a=T,f(y,v))})},"function"!=typeof h.return&&(this.return=void 0)}function Ku(h,s){if(null==h)return{};var c,f,a=function ua(h,s){if(null==h)return{};var f,g,a={},c=Object.keys(h);for(g=0;g<c.length;g++)!(s.indexOf(f=c[g])>=0)&&(a[f]=h[f]);return a}(h,s);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(h);for(f=0;f<g.length;f++)!(s.indexOf(c=g[f])>=0)&&(!Object.prototype.propertyIsEnumerable.call(h,c)||(a[c]=h[c]))}return a}function wd(h){return function We(h){if(Array.isArray(h)){for(var s=0,a=new Array(h.length);s<h.length;s++)a[s]=h[s];return a}}(h)||function bd(h){if(Symbol.iterator in Object(h)||"[object Arguments]"===Object.prototype.toString.call(h))return Array.from(h)}(h)||function Fo(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}"function"==typeof Symbol&&Symbol.asyncIterator&&(Oo.prototype[Symbol.asyncIterator]=function(){return this}),Oo.prototype.next=function(h){return this._invoke("next",h)},Oo.prototype.throw=function(h){return this._invoke("throw",h)},Oo.prototype.return=function(h){return this._invoke("return",h)};var s,a,U=function(s,a){return s.splice(a,1)},Ke=function(){var s=[],a=function(g,y){U(s,s.findIndex(function(v){return v.event===g&&(v.cb===y||!y)}))},c=function(g,y,v){s.filter(function(_){return _.event===g}).map(function(_){return _.cb}).forEach(function(_){return function(s,a){a?s():document.hidden?Promise.resolve(1).then(s):setTimeout(s,0)}(function(){return _.apply(void 0,wd(y))},v)})};return{fireSync:function(g){for(var y=arguments.length,v=new Array(y>1?y-1:0),_=1;_<y;_++)v[_-1]=arguments[_];c(g,v,!0)},fire:function(g){for(var y=arguments.length,v=new Array(y>1?y-1:0),_=1;_<y;_++)v[_-1]=arguments[_];c(g,v,!1)},on:function(g,y){s.push({event:g,cb:y})},onOnce:function(g,y){s.push({event:g,cb:function(){a(g,y),y.apply(void 0,arguments)}})},off:a}},zt=function(s,a,c){Object.getOwnPropertyNames(s).filter(function(f){return!c.includes(f)}).forEach(function(f){return Object.defineProperty(a,f,Object.getOwnPropertyDescriptor(s,f))})},kr=["fire","process","revert","load","on","off","onOnce","retryLoad","extend","archive","archived","release","released","requestProcessing","freeze"],Be=function(s){var a={};return zt(s,a,kr),a},Br=function(s){s.forEach(function(a,c){a.released&&U(s,c)})},K={INIT:1,IDLE:2,PROCESSING_QUEUED:9,PROCESSING:3,PROCESSING_COMPLETE:5,PROCESSING_ERROR:6,PROCESSING_REVERT_ERROR:10,LOADING:7,LOAD_ERROR:8},yt={INPUT:1,LIMBO:2,LOCAL:3},Vr=function(s){return/[^0-9]+/.exec(s)},pe=function(){return Vr(1.1.toLocaleString())[0]},L={BOOLEAN:"boolean",INT:"int",NUMBER:"number",STRING:"string",ARRAY:"array",OBJECT:"object",FUNCTION:"function",ACTION:"action",SERVER_API:"serverapi",REGEX:"regex"},Gi=[],Jt=function(s,a,c){return new Promise(function(f,g){var y=Gi.filter(function(_){return _.key===s}).map(function(_){return _.cb});if(0!==y.length){var v=y.shift();y.reduce(function(_,I){return _.then(function(T){return I(T,c)})},v(a,c)).then(function(_){return f(_)}).catch(function(_){return g(_)})}else f(a)})},st=function(s,a,c){return Gi.filter(function(f){return f.key===s}).map(function(f){return f.cb(a,c)})},$i=function(s,a){return Gi.push({key:s,cb:a})},qt=function(){return Object.assign({},li)},li={id:[null,L.STRING],name:["filepond",L.STRING],disabled:[!1,L.BOOLEAN],className:[null,L.STRING],required:[!1,L.BOOLEAN],captureMethod:[null,L.STRING],allowSyncAcceptAttribute:[!0,L.BOOLEAN],allowDrop:[!0,L.BOOLEAN],allowBrowse:[!0,L.BOOLEAN],allowPaste:[!0,L.BOOLEAN],allowMultiple:[!1,L.BOOLEAN],allowReplace:[!0,L.BOOLEAN],allowRevert:[!0,L.BOOLEAN],allowRemove:[!0,L.BOOLEAN],allowProcess:[!0,L.BOOLEAN],allowReorder:[!1,L.BOOLEAN],allowDirectoriesOnly:[!1,L.BOOLEAN],forceRevert:[!1,L.BOOLEAN],maxFiles:[null,L.INT],checkValidity:[!1,L.BOOLEAN],itemInsertLocationFreedom:[!0,L.BOOLEAN],itemInsertLocation:["before",L.STRING],itemInsertInterval:[75,L.INT],dropOnPage:[!1,L.BOOLEAN],dropOnElement:[!0,L.BOOLEAN],dropValidation:[!1,L.BOOLEAN],ignoredFiles:[[".ds_store","thumbs.db","desktop.ini"],L.ARRAY],instantUpload:[!0,L.BOOLEAN],maxParallelUploads:[2,L.INT],chunkUploads:[!1,L.BOOLEAN],chunkForce:[!1,L.BOOLEAN],chunkSize:[5e6,L.INT],chunkRetryDelays:[[500,1e3,3e3],L.Array],server:[null,L.SERVER_API],labelDecimalSeparator:[pe(),L.STRING],labelThousandsSeparator:[(s=pe(),a=1e3.toLocaleString(),a!==1e3.toString()?Vr(a)[0]:"."===s?",":"."),L.STRING],labelIdle:['Drag & Drop your files or <span class="filepond--label-action">Browse</span>',L.STRING],labelInvalidField:["Field contains invalid files",L.STRING],labelFileWaitingForSize:["Waiting for size",L.STRING],labelFileSizeNotAvailable:["Size not available",L.STRING],labelFileCountSingular:["file in list",L.STRING],labelFileCountPlural:["files in list",L.STRING],labelFileLoading:["Loading",L.STRING],labelFileAdded:["Added",L.STRING],labelFileLoadError:["Error during load",L.STRING],labelFileRemoved:["Removed",L.STRING],labelFileRemoveError:["Error during remove",L.STRING],labelFileProcessing:["Uploading",L.STRING],labelFileProcessingComplete:["Upload complete",L.STRING],labelFileProcessingAborted:["Upload cancelled",L.STRING],labelFileProcessingError:["Error during upload",L.STRING],labelFileProcessingRevertError:["Error during revert",L.STRING],labelTapToCancel:["tap to cancel",L.STRING],labelTapToRetry:["tap to retry",L.STRING],labelTapToUndo:["tap to undo",L.STRING],labelButtonRemoveItem:["Remove",L.STRING],labelButtonAbortItemLoad:["Abort",L.STRING],labelButtonRetryItemLoad:["Retry",L.STRING],labelButtonAbortItemProcessing:["Cancel",L.STRING],labelButtonUndoItemProcessing:["Undo",L.STRING],labelButtonRetryItemProcessing:["Retry",L.STRING],labelButtonProcessItem:["Upload",L.STRING],iconRemove:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M11.586 13l-2.293 2.293a1 1 0 0 0 1.414 1.414L13 14.414l2.293 2.293a1 1 0 0 0 1.414-1.414L14.414 13l2.293-2.293a1 1 0 0 0-1.414-1.414L13 11.586l-2.293-2.293a1 1 0 0 0-1.414 1.414L11.586 13z" fill="currentColor" fill-rule="nonzero"/></svg>',L.STRING],iconProcess:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M14 10.414v3.585a1 1 0 0 1-2 0v-3.585l-1.293 1.293a1 1 0 0 1-1.414-1.415l3-3a1 1 0 0 1 1.414 0l3 3a1 1 0 0 1-1.414 1.415L14 10.414zM9 18a1 1 0 0 1 0-2h8a1 1 0 0 1 0 2H9z" fill="currentColor" fill-rule="evenodd"/></svg>',L.STRING],iconRetry:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M10.81 9.185l-.038.02A4.997 4.997 0 0 0 8 13.683a5 5 0 0 0 5 5 5 5 0 0 0 5-5 1 1 0 0 1 2 0A7 7 0 1 1 9.722 7.496l-.842-.21a.999.999 0 1 1 .484-1.94l3.23.806c.535.133.86.675.73 1.21l-.804 3.233a.997.997 0 0 1-1.21.73.997.997 0 0 1-.73-1.21l.23-.928v-.002z" fill="currentColor" fill-rule="nonzero"/></svg>',L.STRING],iconUndo:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M9.185 10.81l.02-.038A4.997 4.997 0 0 1 13.683 8a5 5 0 0 1 5 5 5 5 0 0 1-5 5 1 1 0 0 0 0 2A7 7 0 1 0 7.496 9.722l-.21-.842a.999.999 0 1 0-1.94.484l.806 3.23c.133.535.675.86 1.21.73l3.233-.803a.997.997 0 0 0 .73-1.21.997.997 0 0 0-1.21-.73l-.928.23-.002-.001z" fill="currentColor" fill-rule="nonzero"/></svg>',L.STRING],iconDone:['<svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg"><path d="M18.293 9.293a1 1 0 0 1 1.414 1.414l-7.002 7a1 1 0 0 1-1.414 0l-3.998-4a1 1 0 1 1 1.414-1.414L12 15.586l6.294-6.293z" fill="currentColor" fill-rule="nonzero"/></svg>',L.STRING],oninit:[null,L.FUNCTION],onwarning:[null,L.FUNCTION],onerror:[null,L.FUNCTION],onactivatefile:[null,L.FUNCTION],oninitfile:[null,L.FUNCTION],onaddfilestart:[null,L.FUNCTION],onaddfileprogress:[null,L.FUNCTION],onaddfile:[null,L.FUNCTION],onprocessfilestart:[null,L.FUNCTION],onprocessfileprogress:[null,L.FUNCTION],onprocessfileabort:[null,L.FUNCTION],onprocessfilerevert:[null,L.FUNCTION],onprocessfile:[null,L.FUNCTION],onprocessfiles:[null,L.FUNCTION],onremovefile:[null,L.FUNCTION],onpreparefile:[null,L.FUNCTION],onupdatefiles:[null,L.FUNCTION],onreorderfiles:[null,L.FUNCTION],beforeDropFile:[null,L.FUNCTION],beforeAddFile:[null,L.FUNCTION],beforeRemoveFile:[null,L.FUNCTION],stylePanelLayout:[null,L.STRING],stylePanelAspectRatio:[null,L.STRING],styleItemPanelAspectRatio:[null,L.STRING],styleButtonRemoveItemPosition:["left",L.STRING],styleButtonProcessItemPosition:["right",L.STRING],styleLoadIndicatorPosition:["right",L.STRING],styleProgressIndicatorPosition:["right",L.STRING],styleButtonRemoveItemAlign:[!1,L.BOOLEAN],files:[[],L.ARRAY]},jr=function(s,a){return Ln(a)?s[0]||null:oi(a)?s[a]||null:("object"==typeof a&&(a=a.id),s.find(function(c){return c.id===a})||null)},_n=function(s){if(Ln(s))return s;if(/:/.test(s)){var a=s.split(":");return a[1]/a[0]}return parseFloat(s)},at=function(s){return s.filter(function(a){return!a.archived})},dr={EMPTY:0,IDLE:1,ERROR:2,BUSY:3,READY:4},Bo=[K.LOAD_ERROR,K.PROCESSING_ERROR,K.PROCESSING_REVERT_ERROR],Vo=[K.LOADING,K.PROCESSING,K.PROCESSING_QUEUED,K.INIT],Dn=[K.PROCESSING_COMPLETE],Od=function(s){return Bo.includes(s.status)},Eg=function(s){return Vo.includes(s.status)},Pd=function(s){return Dn.includes(s.status)},Nd=function(s){return{GET_STATUS:function(){var c=at(s.items),g=dr.ERROR,y=dr.BUSY,v=dr.IDLE,_=dr.READY;return 0===c.length?dr.EMPTY:c.some(Od)?g:c.some(Eg)?y:c.some(Pd)?_:v},GET_ITEM:function(c){return jr(s.items,c)},GET_ACTIVE_ITEM:function(c){return jr(at(s.items),c)},GET_ACTIVE_ITEMS:function(){return at(s.items)},GET_ITEMS:function(){return s.items},GET_ITEM_NAME:function(c){var f=jr(s.items,c);return f?f.filename:null},GET_ITEM_SIZE:function(c){var f=jr(s.items,c);return f?f.fileSize:null},GET_STYLES:function(){return Object.keys(s.options).filter(function(c){return/^style/.test(c)}).map(function(c){return{name:c,value:s.options[c]}})},GET_PANEL_ASPECT_RATIO:function(){return/circle/.test(s.options.stylePanelLayout)?1:_n(s.options.stylePanelAspectRatio)},GET_ITEM_PANEL_ASPECT_RATIO:function(){return s.options.styleItemPanelAspectRatio},GET_ITEMS_BY_STATUS:function(c){return at(s.items).filter(function(f){return f.status===c})},GET_TOTAL_ITEMS:function(){return at(s.items).length},IS_ASYNC:function(){return wt(s.options.server)&&(wt(s.options.server.process)||Fr(s.options.server.process))}}},Fd=function(s,a,c){return Math.max(Math.min(c,s),a)},el=function(s){return/^\s*data:([a-z]+\/[a-z0-9-+.]+(;[a-z-]+=[a-z0-9-]+)?)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s]*)\s*$/i.test(s)},jo=function(s){return s.split("/").pop().split("?").shift()},fa=function(s){return s.split(".").pop()},Tg=function(s){if("string"!=typeof s)return"";var a=s.split("/").pop();return/svg/.test(a)?"svg":/zip|compressed/.test(a)?"zip":/plain/.test(a)?"txt":/msword/.test(a)?"doc":/[a-z]+/.test(a)?"jpeg"===a?"jpg":a:""},Ho=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(a+s).slice(-a.length)},Ld=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date;return s.getFullYear()+"-"+Ho(s.getMonth()+1,"00")+"-"+Ho(s.getDate(),"00")+"_"+Ho(s.getHours(),"00")+"-"+Ho(s.getMinutes(),"00")+"-"+Ho(s.getSeconds(),"00")},zi=function(s,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,g=s.slice(0,s.size,"string"==typeof c?c:s.type);return g.lastModifiedDate=new Date,s._relativePath&&(g._relativePath=s._relativePath),Lt(a)||(a=Ld()),a&&null===f&&fa(a)?g.name=a:(f=f||Tg(g.type),g.name=a+(f?"."+f:"")),g},xd=function(s,a){var c=window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder;if(c){var f=new c;return f.append(s),f.getBlob(a)}return new Blob([s],{type:a})},ha=function(s){return(/^data:(.+);/.exec(s)||[])[1]||null},Cg=function(s){var a=ha(s),c=function(s){return atob(function(s){return s.split(",")[1].replace(/\s/g,"")}(s))}(s);return function(s,a){for(var c=new ArrayBuffer(s.length),f=new Uint8Array(c),g=0;g<s.length;g++)f[g]=s.charCodeAt(g);return xd(c,a)}(c,a)},Hr=function(s){if(!/^content-disposition:/i.test(s))return null;var a=s.split(/filename=|filename\*=.+''/).splice(1).map(function(c){return c.trim().replace(/^["']|[;"']{0,2}$/g,"")}).filter(function(c){return c.length});return a.length?decodeURI(a[a.length-1]):null},tl=function(s){if(/content-length:/i.test(s)){var a=s.match(/[0-9]+/)[0];return a?parseInt(a,10):null}return null},ci=function(s){return/x-content-transfer-id:/i.test(s)&&(s.split(":")[1]||"").trim()||null},Uo=function(s){var a={source:null,name:null,size:null},c=s.split("\n"),f=!0,g=!1,y=void 0;try{for(var _,v=c[Symbol.iterator]();!(f=(_=v.next()).done);f=!0){var I=_.value,T=Hr(I);if(T)a.name=T;else{var C=tl(I);if(C)a.size=C;else{var S=ci(I);S&&(a.source=S)}}}}catch(N){g=!0,y=N}finally{try{!f&&null!=v.return&&v.return()}finally{if(g)throw y}}return a},kd=function(s){var a={source:null,complete:!1,progress:0,size:null,timestamp:null,duration:0,request:null},y=function(I){s?(a.timestamp=Date.now(),a.request=s(I,function(T){a.duration=Date.now()-a.timestamp,a.complete=!0,T instanceof Blob&&(T=zi(T,T.name||jo(I))),v.fire("load",T instanceof Blob?T:T?T.body:null)},function(T){v.fire("error","string"==typeof T?{type:"error",code:0,body:T}:T)},function(T,C,S){S&&(a.size=S),a.duration=Date.now()-a.timestamp,T?(a.progress=C/S,v.fire("progress",a.progress)):a.progress=null},function(){v.fire("abort")},function(T){var C=Uo("string"==typeof T?T:T.headers);v.fire("meta",{size:a.size||C.size,filename:C.name,source:C.source})})):v.fire("error",{type:"error",body:"Can't load URL",code:400})},v=Object.assign({},Ke(),{setSource:function(I){return a.source=I},getProgress:function(){return a.progress},abort:function(){a.request&&a.request.abort&&a.request.abort()},load:function(){var I=a.source;v.fire("init",I),I instanceof File?v.fire("load",I):I instanceof Blob?v.fire("load",zi(I,I.name)):el(I)?v.fire("load",function(s,a,c){return zi(Cg(s),a,null,c)}(I)):y(I)}});return v},nl=function(s){return/GET|HEAD/.test(s)},fr=function(s,a,c){var f={onheaders:function(){},onprogress:function(){},onload:function(){},ontimeout:function(){},onerror:function(){},onabort:function(){},abort:function(){g=!0,v.abort()}},g=!1,y=!1;c=Object.assign({method:"POST",headers:{},withCredentials:!1},c),a=encodeURI(a),nl(c.method)&&s&&(a=""+a+encodeURIComponent("string"==typeof s?s:JSON.stringify(s)));var v=new XMLHttpRequest;return(nl(c.method)?v:v.upload).onprogress=function(I){g||f.onprogress(I.lengthComputable,I.loaded,I.total)},v.onreadystatechange=function(){v.readyState<2||4===v.readyState&&0===v.status||y||(y=!0,f.onheaders(v))},v.onload=function(){v.status>=200&&v.status<300?f.onload(v):f.onerror(v)},v.onerror=function(){return f.onerror(v)},v.onabort=function(){g=!0,f.onabort()},v.ontimeout=function(){return f.ontimeout(v)},v.open(c.method,a,!0),oi(c.timeout)&&(v.timeout=c.timeout),Object.keys(c.headers).forEach(function(I){var T=unescape(encodeURIComponent(c.headers[I]));v.setRequestHeader(I,T)}),c.responseType&&(v.responseType=c.responseType),c.withCredentials&&(v.withCredentials=!0),v.send(s),f},ut=function(s,a,c,f){return{type:s,code:a,body:c,headers:f}},Ur=function(s){return function(a){s(ut("error",0,"Timeout",a.getAllResponseHeaders()))}},Go=function(s){return/\?/.test(s)},qi=function(){for(var s="",a=arguments.length,c=new Array(a),f=0;f<a;f++)c[f]=arguments[f];return c.forEach(function(g){s+=Go(s)&&Go(g)?g.replace(/\?/,"&"):g}),s},Wt=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0;if("function"==typeof a)return a;if(!a||!Lt(a.url))return null;var c=a.onload||function(g){return g},f=a.onerror||function(g){return null};return function(g,y,v,_,I,T){var C=fr(g,qi(s,a.url),Object.assign({},a,{responseType:"blob"}));return C.onload=function(S){var N=S.getAllResponseHeaders(),k=Uo(N).name||jo(g);y(ut("load",S.status,"HEAD"===a.method?null:zi(c(S.response),k),N))},C.onerror=function(S){v(ut("error",S.status,f(S.response)||S.statusText,S.getAllResponseHeaders()))},C.onheaders=function(S){T(ut("headers",S.status,null,S.getAllResponseHeaders()))},C.ontimeout=Ur(v),C.onprogress=_,C.onabort=I,C}},Yt_QUEUED=0,Yt_COMPLETE=1,Yt_PROCESSING=2,Yt_ERROR=3,Yt_WAITING=4,Bd=function(s,a,c,f,g,y,v,_,I,T,C){for(var S=[],k=C.chunkServer,H=C.chunkSize,P=C.chunkRetryDelays,B={serverId:C.chunkTransferId,aborted:!1},$=a.ondata||function(x){return x},ne=a.onload||function(x,A){return"HEAD"===A?x.getResponseHeader("Upload-Offset"):x.response},j=a.onerror||function(x){return null},Ve=Math.floor(f.size/H),xe=0;xe<=Ve;xe++){var q=xe*H,te=f.slice(q,q+H,"application/offset+octet-stream");S[xe]={index:xe,size:te.size,offset:q,data:te,file:f,progress:0,retries:wd(P),status:Yt_QUEUED,error:null,request:null,timeout:null}}var A,Q,ge,Ce,z=function(A){return A.status===Yt_QUEUED||A.status===Yt_ERROR},ee=function(A){if(!B.aborted){if(!(A=A||S.find(z)))return void(S.every(function(Oe){return Oe.status===Yt_COMPLETE})&&y(B.serverId));A.status=Yt_PROCESSING,A.progress=null;var Q=k.ondata||function(Oe){return Oe},fe=k.onerror||function(Oe){return null},ge=qi(s,k.url,B.serverId),Ce="function"==typeof k.headers?k.headers(A):Object.assign({},k.headers,{"Content-Type":"application/offset+octet-stream","Upload-Offset":A.offset,"Upload-Length":f.size,"Upload-Name":f.name}),_e=A.request=fr(Q(A.data),ge,Object.assign({},k,{headers:Ce}));_e.onload=function(){A.status=Yt_COMPLETE,A.request=null,ke()},_e.onprogress=function(Oe,Kn,_r){A.progress=Oe?Kn:null,je()},_e.onerror=function(Oe){A.status=Yt_ERROR,A.request=null,A.error=fe(Oe.response)||Oe.statusText,oe(A)||v(ut("error",Oe.status,fe(Oe.response)||Oe.statusText,Oe.getAllResponseHeaders()))},_e.ontimeout=function(Oe){A.status=Yt_ERROR,A.request=null,oe(A)||Ur(v)(Oe)},_e.onabort=function(){A.status=Yt_QUEUED,A.request=null,I()}}},oe=function(A){return 0!==A.retries.length&&(A.status=Yt_WAITING,clearTimeout(A.timeout),A.timeout=setTimeout(function(){ee(A)},A.retries.shift()),!0)},je=function(){var A=S.reduce(function(fe,ge){return null===fe||null===ge.progress?null:fe+ge.progress},0);if(null===A)return _(!1,0,0);var Q=S.reduce(function(fe,ge){return fe+ge.size},0);_(!0,A,Q)},ke=function(){S.filter(function(Q){return Q.status===Yt_PROCESSING}).length>=1||ee()};return B.serverId?(A=function(x){B.aborted||(S.filter(function(A){return A.offset<x}).forEach(function(A){A.status=Yt_COMPLETE,A.progress=A.size}),ke())},Q=qi(s,k.url,B.serverId),ge={headers:"function"==typeof a.headers?a.headers(B.serverId):Object.assign({},a.headers),method:"HEAD"},(Ce=fr(null,Q,ge)).onload=function(_e){return A(ne(_e,ge.method))},Ce.onerror=function(_e){return v(ut("error",_e.status,j(_e.response)||_e.statusText,_e.getAllResponseHeaders()))},Ce.ontimeout=Ur(v)):function(A){var Q=new FormData;wt(g)&&Q.append(c,JSON.stringify(g));var fe="function"==typeof a.headers?a.headers(f,g):Object.assign({},a.headers,{"Upload-Length":f.size}),ge=Object.assign({},a,{headers:fe}),Ce=fr($(Q),qi(s,a.url),ge);Ce.onload=function(_e){return A(ne(_e,ge.method))},Ce.onerror=function(_e){return v(ut("error",_e.status,j(_e.response)||_e.statusText,_e.getAllResponseHeaders()))},Ce.ontimeout=Ur(v)}(function(x){B.aborted||(T(x),B.serverId=x,ke())}),{abort:function(){B.aborted=!0,S.forEach(function(A){clearTimeout(A.timeout),A.request&&A.request.abort()})}}},ga=function(s,a,c,f){return function(g,y,v,_,I,T,C){if(g){var S=f.chunkUploads;if(g instanceof Blob&&S&&(S&&g.size>f.chunkSize||f.chunkForce))return Bd(s,a,c,g,y,v,_,I,T,C,f);var H=a.ondata||function(j){return j},P=a.onload||function(j){return j},B=a.onerror||function(j){return null},$=new FormData;wt(y)&&$.append(c,JSON.stringify(y)),(g instanceof Blob?[{name:null,file:g}]:g).forEach(function(j){$.append(c,j.file,null===j.name?j.file.name:""+j.name+j.file.name)});var ne=fr(H($),qi(s,a.url),a);return ne.onload=function(j){v(ut("load",j.status,P(j.response),j.getAllResponseHeaders()))},ne.onerror=function(j){_(ut("error",j.status,B(j.response)||j.statusText,j.getAllResponseHeaders()))},ne.ontimeout=Ur(_),ne.onprogress=I,ne.onabort=T,ne}}},Wi=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0;if("function"==typeof a)return a;if(!a||!Lt(a.url))return function(g,y){return y()};var c=a.onload||function(g){return g},f=a.onerror||function(g){return null};return function(g,y,v){var _=fr(g,s+a.url,a);return _.onload=function(I){y(ut("load",I.status,c(I.response),I.getAllResponseHeaders()))},_.onerror=function(I){v(ut("error",I.status,f(I.response)||I.statusText,I.getAllResponseHeaders()))},_.ontimeout=Ur(v),_}},$o=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return s+Math.random()*(a-s)},ma=function(s){var a={complete:!1,perceivedProgress:0,perceivedPerformanceUpdater:null,progress:null,timestamp:null,perceivedDuration:0,duration:0,request:null,response:null},f=function(){!a.request||(a.perceivedPerformanceUpdater.clear(),a.request.abort&&a.request.abort(),a.complete=!0)},_=Object.assign({},Ke(),{process:function(T,C){var S=function(){0===a.duration||null===a.progress||_.fire("progress",_.getProgress())},N=function(){a.complete=!0,_.fire("load-perceived",a.response.body)};_.fire("start"),a.timestamp=Date.now(),a.perceivedPerformanceUpdater=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:25,g=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,y=null,v=Date.now();return function I(){var T=Date.now()-v,C=$o(f,g);T+C>a&&(C=T+C-a);var S=T/a;S>=1||document.hidden?s(1):(s(S),y=setTimeout(I,C))}(),{clear:function(){clearTimeout(y)}}}(function(k){a.perceivedProgress=k,a.perceivedDuration=Date.now()-a.timestamp,S(),a.response&&1===a.perceivedProgress&&!a.complete&&N()},$o(750,1500)),a.request=s(T,C,function(k){a.response=wt(k)?k:{type:"load",code:200,body:""+k,headers:{}},a.duration=Date.now()-a.timestamp,a.progress=1,_.fire("load",a.response.body),1===a.perceivedProgress&&N()},function(k){a.perceivedPerformanceUpdater.clear(),_.fire("error",wt(k)?k:{type:"error",code:0,body:""+k})},function(k,H,P){a.duration=Date.now()-a.timestamp,a.progress=k?H/P:null,S()},function(){a.perceivedPerformanceUpdater.clear(),_.fire("abort",a.response?a.response.body:null)},function(k){_.fire("transfer",k)})},abort:f,getProgress:function(){return a.progress?Math.min(a.progress,a.perceivedProgress):null},getDuration:function(){return Math.min(a.duration,a.perceivedDuration)},reset:function(){f(),a.complete=!1,a.perceivedProgress=0,a.progress=0,a.timestamp=null,a.perceivedDuration=0,a.duration=0,a.request=null,a.response=null}});return _},Hd=function(s){return s.substr(0,s.lastIndexOf("."))||s},it=function(s){var a=[s.name,s.size,s.type];return s instanceof Blob||el(s)?a[0]=s.name||Ld():el(s)?(a[1]=s.length,a[2]=ha(s)):Lt(s)&&(a[0]=jo(s),a[1]=0,a[2]="application/octet-stream"),{name:a[0],size:a[1],type:a[2]}},Gr=function(s){return!!(s instanceof File||s instanceof Blob&&s.name)},Ud=function h(s){if(!wt(s))return s;var a=Ao(s)?[]:{};for(var c in s)if(s.hasOwnProperty(c)){var f=s[c];a[c]=f&&wt(f)?h(f):f}return a},$d=function(s,a){var c=function(s,a){return Ln(a)?0:Lt(a)?s.findIndex(function(c){return c.id===a}):-1}(s,a);if(!(c<0))return s[c]||null},Yi=function(s,a,c,f,g,y){var v=fr(null,s,{method:"GET",responseType:"blob"});return v.onload=function(_){var I=_.getAllResponseHeaders(),T=Uo(I).name||jo(s);a(ut("load",_.status,zi(_.response,T),I))},v.onerror=function(_){c(ut("error",_.status,_.statusText,_.getAllResponseHeaders()))},v.onheaders=function(_){y(ut("headers",_.status,null,_.getAllResponseHeaders()))},v.ontimeout=Ur(c),v.onprogress=f,v.onabort=g,v},Qt=function(s){return 0===s.indexOf("//")&&(s=location.protocol+s),s.toLowerCase().replace("blob:","").replace(/([a-z])?:\/\//,"$1").split("/")[0]},di=function(s){return function(){return Fr(s)?s.apply(void 0,arguments):s}},kt=function(s,a){clearTimeout(a.listUpdateTimeout),a.listUpdateTimeout=setTimeout(function(){s("DID_UPDATE_ITEMS",{items:at(a.items)})},0)},ya=function(s){for(var a=arguments.length,c=new Array(a>1?a-1:0),f=1;f<a;f++)c[f-1]=arguments[f];return new Promise(function(g){if(!s)return g(!0);var y=s.apply(void 0,c);return null==y?g(!0):"boolean"==typeof y?g(y):void("function"==typeof y.then&&y.then(g))})},Qi=function(s,a){s.items.sort(function(c,f){return a(Be(c),Be(f))})},cn=function(s,a){return function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},f=c.query,g=c.success,y=void 0===g?function(){}:g,v=c.failure,_=void 0===v?function(){}:v,I=Ku(c,["query","success","failure"]),T=jr(s.items,f);T?a(T,y,_,I||{}):_({error:ut("error",0,"Item not found"),file:null})}},hr=function(s,a,c){return{ABORT_ALL:function(){at(c.items).forEach(function(g){g.freeze(),g.abortLoad(),g.abortProcessing()})},DID_SET_FILES:function(g){var y=g.value,_=(void 0===y?[]:y).map(function(T){return{source:T.source?T.source:T,options:T.options}}),I=at(c.items);I.forEach(function(T){_.find(function(C){return C.source===T.source||C.source===T.file})||s("REMOVE_ITEM",{query:T,remove:!1})}),I=at(c.items),_.forEach(function(T,C){I.find(function(S){return S.source===T.source||S.file===T.source})||s("ADD_ITEM",Object.assign({},T,{interactionMethod:mn_NONE,index:C}))})},DID_UPDATE_ITEM_METADATA:function(g){var y=g.id;clearTimeout(c.itemUpdateTimeout),c.itemUpdateTimeout=setTimeout(function(){var S,v=$d(c.items,y);if(a("IS_ASYNC")){var _=function(){setTimeout(function(){s("REQUEST_ITEM_PROCESSING",{query:y})},32)};return v.status===K.PROCESSING_COMPLETE?(S=c.options.instantUpload,void v.revert(Wi(c.options.server.url,c.options.server.revert),a("GET_FORCE_REVERT")).then(S?_:function(){}).catch(function(){})):v.status===K.PROCESSING?function(S){v.abortProcessing().then(S?_:function(){})}(c.options.instantUpload):void(c.options.instantUpload&&_())}Jt("SHOULD_PREPARE_OUTPUT",!1,{item:v,query:a}).then(function(C){!C||s("REQUEST_PREPARE_OUTPUT",{query:y,item:v,success:function(N){s("DID_PREPARE_OUTPUT",{id:y,file:N})}},!0)})},0)},MOVE_ITEM:function(g){var v=g.index,_=jr(c.items,g.query);if(_){var I=c.items.indexOf(_);I!==(v=Fd(v,0,c.items.length-1))&&c.items.splice(v,0,c.items.splice(I,1)[0])}},SORT:function(g){Qi(c,g.compare),s("DID_SORT_ITEMS",{items:a("GET_ACTIVE_ITEMS")})},ADD_ITEMS:function(g){var y=g.items,v=g.index,_=g.interactionMethod,I=g.success,T=void 0===I?function(){}:I,C=g.failure,S=void 0===C?function(){}:C,N=v;if(-1===v||void 0===v){var k=a("GET_ITEM_INSERT_LOCATION"),H=a("GET_TOTAL_ITEMS");N="before"===k?0:H}var P=a("GET_IGNORED_FILES"),ne=y.filter(function(Re){return Gr(Re)?!P.includes(Re.name.toLowerCase()):!Ln(Re)}).map(function(j){return new Promise(function(Re,ae){s("ADD_ITEM",{interactionMethod:_,source:j.source||j,success:Re,failure:ae,index:N++,options:j.options||{}})})});Promise.all(ne).then(T).catch(S)},ADD_ITEM:function(g){var y=g.source,v=g.index,_=void 0===v?-1:v,I=g.interactionMethod,T=g.success,C=void 0===T?function(){}:T,S=g.failure,N=void 0===S?function(){}:S,k=g.options,H=void 0===k?{}:k;if(Ln(y))N({error:ut("error",0,"No source"),file:null});else if(!Gr(y)||!c.options.ignoredFiles.includes(y.name.toLowerCase())){if(!function(s){var a=at(s.items).length;if(!s.options.allowMultiple)return 0===a;var c=s.options.maxFiles;return null===c||a<c}(c)){if(c.options.allowMultiple||!c.options.allowMultiple&&!c.options.allowReplace){var P=ut("warning",0,"Max files");return s("DID_THROW_MAX_FILES",{source:y,error:P}),void N({error:P,file:null})}var B=at(c.items)[0];if(B.status===K.PROCESSING_COMPLETE||B.status===K.PROCESSING_REVERT_ERROR){var $=a("GET_FORCE_REVERT");if(B.revert(Wi(c.options.server.url,c.options.server.revert),$).then(function(){!$||s("ADD_ITEM",{source:y,index:_,interactionMethod:I,success:C,failure:N,options:H})}).catch(function(){}),$)return}s("REMOVE_ITEM",{query:B.id})}var ne="local"===H.type?yt.LOCAL:"limbo"===H.type?yt.LIMBO:yt.INPUT,j=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,f=Y(),g={archived:!1,frozen:!1,released:!1,source:null,file:c,serverFileReference:a,transferId:null,processingAborted:!1,status:a?K.PROCESSING_COMPLETE:K.INIT,activeLoader:null,activeProcessor:null},y=null,v={},_=function(te){return g.status=te},I=function(te){if(!g.released&&!g.frozen){for(var re=arguments.length,z=new Array(re>1?re-1:0),ee=1;ee<re;ee++)z[ee-1]=arguments[ee];Ve.fire.apply(Ve,[te].concat(z))}},B=function q(te,re){if(g.processingAborted)g.processingAborted=!1;else if(_(K.PROCESSING),y=null,g.file instanceof Blob){te.on("load",function(oe){g.transferId=null,g.serverFileReference=oe}),te.on("transfer",function(oe){g.transferId=oe}),te.on("load-perceived",function(oe){g.activeProcessor=null,g.transferId=null,g.serverFileReference=oe,_(K.PROCESSING_COMPLETE),I("process-complete",oe)}),te.on("start",function(){I("process-start")}),te.on("error",function(oe){g.activeProcessor=null,_(K.PROCESSING_ERROR),I("process-error",oe)}),te.on("abort",function(oe){g.activeProcessor=null,g.transferId=null,g.serverFileReference=oe,_(K.IDLE),I("process-abort"),y&&y()}),te.on("progress",function(oe){I("process-progress",oe)});var ee=console.error;re(g.file,function(je){g.archived||te.process(je,Object.assign({},v))},ee),g.activeProcessor=te}else Ve.on("load",function(){q(te,re)})},Re=function(te,re,z){var ee=te.split("."),oe=ee[0],je=ee.pop(),ke=v;ee.forEach(function(se){return ke=ke[se]}),JSON.stringify(ke[je])!==JSON.stringify(re)&&(ke[je]=re,!z&&I("metadata-update",{key:oe,value:v[oe]}))},Ve=Object.assign({id:{get:function(){return f}},origin:{get:function(){return s}},serverId:{get:function(){return g.serverFileReference}},transferId:{get:function(){return g.transferId}},status:{get:function(){return g.status}},filename:{get:function(){return g.file.name}},filenameWithoutExtension:{get:function(){return Hd(g.file.name)}},fileExtension:{get:function(){return fa(g.file.name)}},fileType:{get:function(){return g.file.type}},fileSize:{get:function(){return g.file.size}},file:{get:function(){return g.file}},relativePath:{get:function(){return g.file._relativePath}},source:{get:function(){return g.source}},getMetadata:function(te){return Ud(te?v[te]:v)},setMetadata:function(te,re,z){if(wt(te)){var ee=te;return Object.keys(ee).forEach(function(oe){Re(oe,ee[oe],re)}),te}return Re(te,re,z),re},extend:function(te,re){return xe[te]=re},abortLoad:function(){g.activeLoader?g.activeLoader.abort():(_(K.INIT),I("load-abort"))},retryLoad:function(){!g.activeLoader||g.activeLoader.load()},requestProcessing:function(){g.processingAborted=!1,_(K.PROCESSING_QUEUED)},abortProcessing:function(){return new Promise(function(te){if(!g.activeProcessor)return g.processingAborted=!0,_(K.IDLE),I("process-abort"),void te();y=function(){te()},g.activeProcessor.abort()})},load:function(te,re,z){g.source=te,Ve.fireSync("init"),g.file?Ve.fireSync("load-skip"):(g.file=it(te),re.on("init",function(){I("load-init")}),re.on("meta",function(ee){g.file.size=ee.size,g.file.filename=ee.filename,ee.source&&(s=yt.LIMBO,g.serverFileReference=ee.source,g.status=K.PROCESSING_COMPLETE),I("load-meta")}),re.on("progress",function(ee){_(K.LOADING),I("load-progress",ee)}),re.on("error",function(ee){_(K.LOAD_ERROR),I("load-request-error",ee)}),re.on("abort",function(){_(K.INIT),I("load-abort")}),re.on("load",function(ee){g.activeLoader=null;var oe=function(se){g.file=Gr(se)?se:g.file,_(s===yt.LIMBO&&g.serverFileReference?K.PROCESSING_COMPLETE:K.IDLE),I("load")};g.serverFileReference?oe(ee):z(ee,oe,function(se){g.file=ee,I("load-meta"),_(K.LOAD_ERROR),I("load-file-error",se)})}),re.setSource(te),g.activeLoader=re,re.load())},process:B,revert:function(te,re){return new Promise(function(z,ee){null!==g.serverFileReference?(te(g.serverFileReference,function(){g.serverFileReference=null,z()},function(oe){re?(_(K.PROCESSING_REVERT_ERROR),I("process-revert-error"),ee(oe)):z()}),_(K.IDLE),I("process-revert")):z()})}},Ke(),{freeze:function(){return g.frozen=!0},release:function(){return g.released=!0},released:{get:function(){return g.released}},archive:function(){return g.archived=!0},archived:{get:function(){return g.archived}}}),xe=Ge(Ve);return xe}(ne,ne===yt.INPUT?null:y,H.file);Object.keys(H.metadata||{}).forEach(function(z){j.setMetadata(z,H.metadata[z])}),st("DID_CREATE_ITEM",j,{query:a,dispatch:s});var Re=a("GET_ITEM_INSERT_LOCATION");c.options.itemInsertLocationFreedom||(_="before"===Re?-1:c.items.length),function(s,a,c){Ln(a)||(void 0===c?s.push(a):function(s,a,c){s.splice(a,0,c)}(s,c=Fd(c,0,s.length),a))}(c.items,j,_),Fr(Re)&&y&&Qi(c,Re);var ae=j.id;j.on("init",function(){s("DID_INIT_ITEM",{id:ae})}),j.on("load-init",function(){s("DID_START_ITEM_LOAD",{id:ae})}),j.on("load-meta",function(){s("DID_UPDATE_ITEM_META",{id:ae})}),j.on("load-progress",function(z){s("DID_UPDATE_ITEM_LOAD_PROGRESS",{id:ae,progress:z})}),j.on("load-request-error",function(z){var ee=di(c.options.labelFileLoadError)(z);if(z.code>=400&&z.code<500)return s("DID_THROW_ITEM_INVALID",{id:ae,error:z,status:{main:ee,sub:z.code+" ("+z.body+")"}}),void N({error:z,file:Be(j)});s("DID_THROW_ITEM_LOAD_ERROR",{id:ae,error:z,status:{main:ee,sub:c.options.labelTapToRetry}})}),j.on("load-file-error",function(z){s("DID_THROW_ITEM_INVALID",{id:ae,error:z.status,status:z.status}),N({error:z.status,file:Be(j)})}),j.on("load-abort",function(){s("REMOVE_ITEM",{query:ae})}),j.on("load-skip",function(){s("COMPLETE_LOAD_ITEM",{query:ae,item:j,data:{source:y,success:C}})}),j.on("load",function(){var z=function(oe){oe?(j.on("metadata-update",function(je){s("DID_UPDATE_ITEM_METADATA",{id:ae,change:je})}),Jt("SHOULD_PREPARE_OUTPUT",!1,{item:j,query:a}).then(function(je){var ke=function(){s("COMPLETE_LOAD_ITEM",{query:ae,item:j,data:{source:y,success:C}}),kt(s,c)};je?s("REQUEST_PREPARE_OUTPUT",{query:ae,item:j,success:function(x){s("DID_PREPARE_OUTPUT",{id:ae,file:x}),ke()}},!0):ke()})):s("REMOVE_ITEM",{query:ae})};Jt("DID_LOAD_ITEM",j,{query:a,dispatch:s}).then(function(){ya(a("GET_BEFORE_ADD_FILE"),Be(j)).then(z)}).catch(function(){z(!1)})}),j.on("process-start",function(){s("DID_START_ITEM_PROCESSING",{id:ae})}),j.on("process-progress",function(z){s("DID_UPDATE_ITEM_PROCESS_PROGRESS",{id:ae,progress:z})}),j.on("process-error",function(z){s("DID_THROW_ITEM_PROCESSING_ERROR",{id:ae,error:z,status:{main:di(c.options.labelFileProcessingError)(z),sub:c.options.labelTapToRetry}})}),j.on("process-revert-error",function(z){s("DID_THROW_ITEM_PROCESSING_REVERT_ERROR",{id:ae,error:z,status:{main:di(c.options.labelFileProcessingRevertError)(z),sub:c.options.labelTapToRetry}})}),j.on("process-complete",function(z){s("DID_COMPLETE_ITEM_PROCESSING",{id:ae,error:null,serverFileReference:z}),s("DID_DEFINE_VALUE",{id:ae,value:z})}),j.on("process-abort",function(){s("DID_ABORT_ITEM_PROCESSING",{id:ae})}),j.on("process-revert",function(){s("DID_REVERT_ITEM_PROCESSING",{id:ae}),s("DID_DEFINE_VALUE",{id:ae,value:null})}),s("DID_ADD_ITEM",{id:ae,index:_,interactionMethod:I}),kt(s,c);var Ve=c.options.server||{},xe=Ve.url,q=Ve.load,te=Ve.restore,re=Ve.fetch;j.load(y,kd(ne===yt.INPUT?Lt(y)&&function(s){return(s.indexOf(":")>-1||s.indexOf("//")>-1)&&Qt(location.href)!==Qt(s)}(y)&&re?Wt(xe,re):Yi:Wt(xe,ne===yt.LIMBO?te:q)),function(z,ee,oe){Jt("LOAD_FILE",z,{query:a}).then(ee).catch(oe)})}},REQUEST_PREPARE_OUTPUT:function(g){var y=g.item,v=g.success,_=g.failure,I=void 0===_?function(){}:_,T={error:ut("error",0,"Item not found"),file:null};if(y.archived)return I(T);Jt("PREPARE_OUTPUT",y.file,{query:a,item:y}).then(function(C){Jt("COMPLETE_PREPARE_OUTPUT",C,{query:a,item:y}).then(function(S){if(y.archived)return I(T);v(S)})})},COMPLETE_LOAD_ITEM:function(g){var y=g.item,v=g.data,_=v.success,I=v.source,T=a("GET_ITEM_INSERT_LOCATION");if(Fr(T)&&I&&Qi(c,T),s("DID_LOAD_ITEM",{id:y.id,error:null,serverFileReference:y.origin===yt.INPUT?null:I}),_(Be(y)),y.origin!==yt.LOCAL)return y.origin===yt.LIMBO?(s("DID_COMPLETE_ITEM_PROCESSING",{id:y.id,error:null,serverFileReference:I}),void s("DID_DEFINE_VALUE",{id:y.id,value:I})):void(a("IS_ASYNC")&&c.options.instantUpload&&s("REQUEST_ITEM_PROCESSING",{query:y.id}));s("DID_LOAD_LOCAL_ITEM",{id:y.id})},RETRY_ITEM_LOAD:cn(c,function(f){f.retryLoad()}),REQUEST_ITEM_PREPARE:cn(c,function(f,g,y){s("REQUEST_PREPARE_OUTPUT",{query:f.id,item:f,success:function(_){s("DID_PREPARE_OUTPUT",{id:f.id,file:_}),g({file:f,output:_})},failure:y},!0)}),REQUEST_ITEM_PROCESSING:cn(c,function(f,g,y){if(f.status===K.IDLE||f.status===K.PROCESSING_ERROR)f.status!==K.PROCESSING_QUEUED&&(f.requestProcessing(),s("DID_REQUEST_ITEM_PROCESSING",{id:f.id}),s("PROCESS_ITEM",{query:f,success:g,failure:y},!0));else{var _=function(){return s("REQUEST_ITEM_PROCESSING",{query:f,success:g,failure:y})},I=function(){return document.hidden?_():setTimeout(_,32)};f.status===K.PROCESSING_COMPLETE||f.status===K.PROCESSING_REVERT_ERROR?f.revert(Wi(c.options.server.url,c.options.server.revert),a("GET_FORCE_REVERT")).then(I).catch(function(){}):f.status===K.PROCESSING&&f.abortProcessing().then(I)}}),PROCESS_ITEM:cn(c,function(f,g,y){var v=a("GET_MAX_PARALLEL_UPLOADS");if(a("GET_ITEMS_BY_STATUS",K.PROCESSING).length!==v){if(f.status!==K.PROCESSING){var I=function C(){var S=c.processingQueue.shift();if(S){var N=S.id,k=S.success,H=S.failure,P=jr(c.items,N);if(!P||P.archived)return void C();s("PROCESS_ITEM",{query:N,success:k,failure:H},!0)}};f.onOnce("process-complete",function(){g(Be(f)),I(),a("GET_ITEMS_BY_STATUS",K.PROCESSING_COMPLETE).length===c.items.length&&s("DID_COMPLETE_ITEM_PROCESSING_ALL")}),f.onOnce("process-error",function(C){y({error:C,file:Be(f)}),I()});var T=c.options;f.process(ma(function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0,c=arguments.length>2?arguments[2]:void 0,f=arguments.length>3?arguments[3]:void 0;return"function"==typeof a?function(){for(var g=arguments.length,y=new Array(g),v=0;v<g;v++)y[v]=arguments[v];return a.apply(void 0,[c].concat(y,[f]))}:a&&Lt(a.url)?ga(s,a,c,f):null}(T.server.url,T.server.process,T.name,{chunkTransferId:f.transferId,chunkServer:T.server.patch,chunkUploads:T.chunkUploads,chunkForce:T.chunkForce,chunkSize:T.chunkSize,chunkRetryDelays:T.chunkRetryDelays})),function(C,S,N){Jt("PREPARE_OUTPUT",C,{query:a,item:f}).then(function(k){s("DID_PREPARE_OUTPUT",{id:f.id,file:k}),S(k)}).catch(N)})}}else c.processingQueue.push({id:f.id,success:g,failure:y})}),RETRY_ITEM_PROCESSING:cn(c,function(f){s("REQUEST_ITEM_PROCESSING",{query:f})}),REQUEST_REMOVE_ITEM:cn(c,function(f){ya(a("GET_BEFORE_REMOVE_FILE"),Be(f)).then(function(g){!g||s("REMOVE_ITEM",{query:f})})}),RELEASE_ITEM:cn(c,function(f){f.release()}),REMOVE_ITEM:cn(c,function(f,g,y,v){var _=function(){var C=f.id;$d(c.items,C).archive(),s("DID_REMOVE_ITEM",{error:null,id:C,item:f}),kt(s,c),g(Be(f))},I=c.options.server;f.origin===yt.LOCAL&&I&&Fr(I.remove)&&!1!==v.remove?(s("DID_START_ITEM_REMOVE",{id:f.id}),I.remove(f.source,function(){return _()},function(T){s("DID_THROW_ITEM_REMOVE_ERROR",{id:f.id,error:ut("error",0,T,null),status:{main:di(c.options.labelFileRemoveError)(T),sub:c.options.labelTapToRetry}})})):(v.revert&&f.origin!==yt.LOCAL&&null!==f.serverId&&f.revert(Wi(c.options.server.url,c.options.server.revert),a("GET_FORCE_REVERT")),_())}),ABORT_ITEM_LOAD:cn(c,function(f){f.abortLoad()}),ABORT_ITEM_PROCESSING:cn(c,function(f){f.serverId?s("REVERT_ITEM_PROCESSING",{id:f.id}):f.abortProcessing().then(function(){c.options.instantUpload&&s("REMOVE_ITEM",{query:f.id})})}),REQUEST_REVERT_ITEM_PROCESSING:cn(c,function(f){if(c.options.instantUpload){var g=function(I){!I||s("REVERT_ITEM_PROCESSING",{query:f})},y=a("GET_BEFORE_REMOVE_FILE");if(!y)return g(!0);var v=y(Be(f));return null==v?g(!0):"boolean"==typeof v?g(v):void("function"==typeof v.then&&v.then(g))}s("REVERT_ITEM_PROCESSING",{query:f})}),REVERT_ITEM_PROCESSING:cn(c,function(f){f.revert(Wi(c.options.server.url,c.options.server.revert),a("GET_FORCE_REVERT")).then(function(){(c.options.instantUpload||function(s){return!Gr(s.file)}(f))&&s("REMOVE_ITEM",{query:f.id})}).catch(function(){})}),SET_OPTIONS:function(g){Ee(g.options,function(v,_){s("SET_"+Ro(v,"_").toUpperCase(),{value:_})})}}},In=function(s){return document.createElement(s)},Z=function(s,a){var c=s.childNodes[0];c?a!==c.nodeValue&&(c.nodeValue=a):(c=document.createTextNode(a),s.appendChild(c))},va=function(s,a,c,f){var g=(f%360-90)*Math.PI/180;return{x:s+c*Math.cos(g),y:a+c*Math.sin(g)}},qd=function(s,a,c,f,g){var y=1;return g>f&&g-f<=.5&&(y=0),f>g&&f-g>=.5&&(y=0),function(s,a,c,f,g,y){var v=va(s,a,c,g),_=va(s,a,c,f);return["M",v.x,v.y,"A",c,c,0,y,0,_.x,_.y].join(" ")}(s,a,c,360*Math.min(.9999,f),360*Math.min(.9999,g),y)},Ea=ht({tag:"div",name:"progress-indicator",ignoreRectUpdate:!0,ignoreRect:!0,create:function(s){var a=s.root,c=s.props;c.spin=!1,c.progress=0,c.opacity=0;var f=rt("svg");a.ref.path=rt("path",{"stroke-width":2,"stroke-linecap":"round"}),f.appendChild(a.ref.path),a.ref.svg=f,a.appendChild(f)},write:function(s){var a=s.root,c=s.props;if(0!==c.opacity){c.align&&(a.element.dataset.align=c.align);var f=parseInt(Ie(a.ref.path,"stroke-width"),10),g=.5*a.rect.element.width,y=0,v=0;c.spin?(y=0,v=.5):(y=0,v=c.progress);var _=qd(g,g,g-f,y,v);Ie(a.ref.path,"d",_),Ie(a.ref.path,"stroke-opacity",c.spin||c.progress>0?1:0)}},mixins:{apis:["progress","spin","align"],styles:["opacity"],animations:{opacity:{type:"tween",duration:500},progress:{type:"spring",stiffness:.95,damping:.65,mass:10}}}}),F=ht({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:function(s){var c=s.props;s.root.element.innerHTML=(c.icon||"")+"<span>"+c.label+"</span>",c.isDisabled=!1},write:function(s){var a=s.root,c=s.props,f=c.isDisabled,g=a.query("GET_DISABLED")||0===c.opacity;g&&!f?(c.isDisabled=!0,Ie(a.element,"disabled","disabled")):!g&&f&&(c.isDisabled=!1,a.element.removeAttribute("disabled"))}}),Me=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".";return(s=Math.round(Math.abs(s)))<1e3?s+" bytes":s<gt?Math.floor(s/Zd)+" KB":s<_a?hi(s/gt,1,a)+" MB":hi(s/_a,2,a)+" GB"},Zd=1e3,gt=1e6,_a=1e9,hi=function(s,a,c){return s.toFixed(a).split(".").filter(function(f){return"0"!==f}).join(c)},qo=function(s){var a=s.root,c=s.props;Z(a.ref.fileSize,Me(a.query("GET_ITEM_SIZE",c.id))),Z(a.ref.fileName,a.query("GET_ITEM_NAME",c.id))},Wo=function(s){var a=s.root;oi(a.query("GET_ITEM_SIZE",s.props.id))||Z(a.ref.fileSize,a.query("GET_LABEL_FILE_SIZE_NOT_AVAILABLE"))},Rg=ht({name:"file-info",ignoreRect:!0,ignoreRectUpdate:!0,write:Ft({DID_LOAD_ITEM:qo,DID_UPDATE_ITEM_META:qo,DID_THROW_ITEM_LOAD_ERROR:Wo,DID_THROW_ITEM_INVALID:Wo}),didCreateView:function(s){st("CREATE_VIEW",Object.assign({},s,{view:s}))},create:function(s){var a=s.root,c=s.props,f=In("span");f.className="filepond--file-info-main",Ie(f,"aria-hidden","true"),a.appendChild(f),a.ref.fileName=f;var g=In("span");g.className="filepond--file-info-sub",a.appendChild(g),a.ref.fileSize=g,Z(g,a.query("GET_LABEL_FILE_WAITING_FOR_SIZE")),Z(f,a.query("GET_ITEM_NAME",c.id))},mixins:{styles:["translateX","translateY"],animations:{translateX:"spring",translateY:"spring"}}}),rl=function(s){return Math.round(100*s)},Ki=function(s){var a=s.root,c=s.action,f=null===c.progress?a.query("GET_LABEL_FILE_LOADING"):a.query("GET_LABEL_FILE_LOADING")+" "+rl(c.progress)+"%";Z(a.ref.main,f),Z(a.ref.sub,a.query("GET_LABEL_TAP_TO_CANCEL"))},Vn=function(s){var a=s.root;Z(a.ref.main,""),Z(a.ref.sub,"")},Zi=function(s){var a=s.root,c=s.action;Z(a.ref.main,c.status.main),Z(a.ref.sub,c.status.sub)},ol=ht({name:"file-status",ignoreRect:!0,ignoreRectUpdate:!0,write:Ft({DID_LOAD_ITEM:Vn,DID_REVERT_ITEM_PROCESSING:Vn,DID_REQUEST_ITEM_PROCESSING:function(s){var a=s.root;Z(a.ref.main,a.query("GET_LABEL_FILE_PROCESSING")),Z(a.ref.sub,a.query("GET_LABEL_TAP_TO_CANCEL"))},DID_ABORT_ITEM_PROCESSING:function(s){var a=s.root;Z(a.ref.main,a.query("GET_LABEL_FILE_PROCESSING_ABORTED")),Z(a.ref.sub,a.query("GET_LABEL_TAP_TO_RETRY"))},DID_COMPLETE_ITEM_PROCESSING:function(s){var a=s.root;Z(a.ref.main,a.query("GET_LABEL_FILE_PROCESSING_COMPLETE")),Z(a.ref.sub,a.query("GET_LABEL_TAP_TO_UNDO"))},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(s){var a=s.root,c=s.action,f=null===c.progress?a.query("GET_LABEL_FILE_PROCESSING"):a.query("GET_LABEL_FILE_PROCESSING")+" "+rl(c.progress)+"%";Z(a.ref.main,f),Z(a.ref.sub,a.query("GET_LABEL_TAP_TO_CANCEL"))},DID_UPDATE_ITEM_LOAD_PROGRESS:Ki,DID_THROW_ITEM_LOAD_ERROR:Zi,DID_THROW_ITEM_INVALID:Zi,DID_THROW_ITEM_PROCESSING_ERROR:Zi,DID_THROW_ITEM_PROCESSING_REVERT_ERROR:Zi,DID_THROW_ITEM_REMOVE_ERROR:Zi}),didCreateView:function(s){st("CREATE_VIEW",Object.assign({},s,{view:s}))},create:function(s){var a=s.root,c=In("span");c.className="filepond--file-status-main",a.appendChild(c),a.ref.main=c;var f=In("span");f.className="filepond--file-status-sub",a.appendChild(f),a.ref.sub=f,Ki({root:a,action:{progress:null}})},mixins:{styles:["translateX","translateY","opacity"],animations:{opacity:{type:"tween",duration:250},translateX:"spring",translateY:"spring"}}}),gi={AbortItemLoad:{label:"GET_LABEL_BUTTON_ABORT_ITEM_LOAD",action:"ABORT_ITEM_LOAD",className:"filepond--action-abort-item-load",align:"LOAD_INDICATOR_POSITION"},RetryItemLoad:{label:"GET_LABEL_BUTTON_RETRY_ITEM_LOAD",action:"RETRY_ITEM_LOAD",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-load",align:"BUTTON_PROCESS_ITEM_POSITION"},RemoveItem:{label:"GET_LABEL_BUTTON_REMOVE_ITEM",action:"REQUEST_REMOVE_ITEM",icon:"GET_ICON_REMOVE",className:"filepond--action-remove-item",align:"BUTTON_REMOVE_ITEM_POSITION"},ProcessItem:{label:"GET_LABEL_BUTTON_PROCESS_ITEM",action:"REQUEST_ITEM_PROCESSING",icon:"GET_ICON_PROCESS",className:"filepond--action-process-item",align:"BUTTON_PROCESS_ITEM_POSITION"},AbortItemProcessing:{label:"GET_LABEL_BUTTON_ABORT_ITEM_PROCESSING",action:"ABORT_ITEM_PROCESSING",className:"filepond--action-abort-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RetryItemProcessing:{label:"GET_LABEL_BUTTON_RETRY_ITEM_PROCESSING",action:"RETRY_ITEM_PROCESSING",icon:"GET_ICON_RETRY",className:"filepond--action-retry-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"},RevertItemProcessing:{label:"GET_LABEL_BUTTON_UNDO_ITEM_PROCESSING",action:"REQUEST_REVERT_ITEM_PROCESSING",icon:"GET_ICON_UNDO",className:"filepond--action-revert-item-processing",align:"BUTTON_PROCESS_ITEM_POSITION"}},Da=[];Ee(gi,function(h){Da.push(h)});var h,Vt=function(s){var a=s.ref.buttonRemoveItem.rect.element;return a.hidden?null:a.width+a.left},Ia=function(s){return s.ref.buttonAbortItemLoad.rect.element.width},Xi=function(s){return Math.floor(s.ref.buttonRemoveItem.rect.element.height/4)},Ta=function(s){return Math.floor(s.ref.buttonRemoveItem.rect.element.left/2)},Ji=function(s){return s.query("GET_STYLE_BUTTON_REMOVE_ITEM_POSITION")},al={buttonAbortItemLoad:{opacity:0},buttonRetryItemLoad:{opacity:0},buttonRemoveItem:{opacity:0},buttonProcessItem:{opacity:0},buttonAbortItemProcessing:{opacity:0},buttonRetryItemProcessing:{opacity:0},buttonRevertItemProcessing:{opacity:0},loadProgressIndicator:{opacity:0,align:function(s){return s.query("GET_STYLE_LOAD_INDICATOR_POSITION")}},processProgressIndicator:{opacity:0,align:function(s){return s.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}},processingCompleteIndicator:{opacity:0,scaleX:.75,scaleY:.75},info:{translateX:0,translateY:0,opacity:0},status:{translateX:0,translateY:0,opacity:0}},wa={buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Vt},status:{translateX:Vt}},Yo={buttonAbortItemProcessing:{opacity:1},processProgressIndicator:{opacity:1},status:{opacity:1}},$r={DID_THROW_ITEM_INVALID:{buttonRemoveItem:{opacity:1},info:{translateX:Vt},status:{translateX:Vt,opacity:1}},DID_START_ITEM_LOAD:{buttonAbortItemLoad:{opacity:1},loadProgressIndicator:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_LOAD_ERROR:{buttonRetryItemLoad:{opacity:1},buttonRemoveItem:{opacity:1},info:{translateX:Vt},status:{opacity:1}},DID_START_ITEM_REMOVE:{processProgressIndicator:{opacity:1,align:Ji},info:{translateX:Vt},status:{opacity:0}},DID_THROW_ITEM_REMOVE_ERROR:{processProgressIndicator:{opacity:0,align:Ji},buttonRemoveItem:{opacity:1},info:{translateX:Vt},status:{opacity:1,translateX:Vt}},DID_LOAD_ITEM:wa,DID_LOAD_LOCAL_ITEM:{buttonRemoveItem:{opacity:1},info:{translateX:Vt},status:{translateX:Vt}},DID_START_ITEM_PROCESSING:Yo,DID_REQUEST_ITEM_PROCESSING:Yo,DID_UPDATE_ITEM_PROCESS_PROGRESS:Yo,DID_COMPLETE_ITEM_PROCESSING:{buttonRevertItemProcessing:{opacity:1},info:{opacity:1},status:{opacity:1}},DID_THROW_ITEM_PROCESSING_ERROR:{buttonRemoveItem:{opacity:1},buttonRetryItemProcessing:{opacity:1},status:{opacity:1},info:{translateX:Vt}},DID_THROW_ITEM_PROCESSING_REVERT_ERROR:{buttonRevertItemProcessing:{opacity:1},status:{opacity:1},info:{opacity:1}},DID_ABORT_ITEM_PROCESSING:{buttonRemoveItem:{opacity:1},buttonProcessItem:{opacity:1},info:{translateX:Vt},status:{opacity:1}},DID_REVERT_ITEM_PROCESSING:wa},Qo=ht({create:function(s){var a=s.root;a.element.innerHTML=a.query("GET_ICON_DONE")},name:"processing-complete-indicator",ignoreRect:!0,mixins:{styles:["scaleX","scaleY","opacity"],animations:{scaleX:"spring",scaleY:"spring",opacity:{type:"tween",duration:250}}}}),jt=Ft({DID_SET_LABEL_BUTTON_ABORT_ITEM_PROCESSING:function(s){s.root.ref.buttonAbortItemProcessing.label=s.action.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_LOAD:function(s){s.root.ref.buttonAbortItemLoad.label=s.action.value},DID_SET_LABEL_BUTTON_ABORT_ITEM_REMOVAL:function(s){s.root.ref.buttonAbortItemRemoval.label=s.action.value},DID_REQUEST_ITEM_PROCESSING:function(s){var a=s.root;a.ref.processProgressIndicator.spin=!0,a.ref.processProgressIndicator.progress=0},DID_START_ITEM_LOAD:function(s){var a=s.root;a.ref.loadProgressIndicator.spin=!0,a.ref.loadProgressIndicator.progress=0},DID_START_ITEM_REMOVE:function(s){var a=s.root;a.ref.processProgressIndicator.spin=!0,a.ref.processProgressIndicator.progress=0},DID_UPDATE_ITEM_LOAD_PROGRESS:function(s){var a=s.root,c=s.action;a.ref.loadProgressIndicator.spin=!1,a.ref.loadProgressIndicator.progress=c.progress},DID_UPDATE_ITEM_PROCESS_PROGRESS:function(s){var a=s.root,c=s.action;a.ref.processProgressIndicator.spin=!1,a.ref.processProgressIndicator.progress=c.progress}}),pr=ht({create:function(s){var C,a=s.root,f=s.props.id,g=a.query("GET_ALLOW_REVERT"),y=a.query("GET_ALLOW_REMOVE"),v=a.query("GET_ALLOW_PROCESS"),_=a.query("GET_INSTANT_UPLOAD"),I=a.query("IS_ASYNC"),T=a.query("GET_STYLE_BUTTON_REMOVE_ITEM_ALIGN");I?v&&!g?C=function($){return!/RevertItemProcessing/.test($)}:!v&&g?C=function($){return!/ProcessItem|RetryItemProcessing|AbortItemProcessing/.test($)}:!v&&!g&&(C=function($){return!/Process/.test($)}):C=function($){return!/Process/.test($)};var S=C?Da.filter(C):Da.concat();if(_&&g&&(gi.RevertItemProcessing.label="GET_LABEL_BUTTON_REMOVE_ITEM",gi.RevertItemProcessing.icon="GET_ICON_REMOVE"),I&&!g){var N=$r.DID_COMPLETE_ITEM_PROCESSING;N.info.translateX=Ta,N.info.translateY=Xi,N.status.translateY=Xi,N.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}if(I&&!v&&(["DID_START_ITEM_PROCESSING","DID_REQUEST_ITEM_PROCESSING","DID_UPDATE_ITEM_PROCESS_PROGRESS","DID_THROW_ITEM_PROCESSING_ERROR"].forEach(function(B){$r[B].status.translateY=Xi}),$r.DID_THROW_ITEM_PROCESSING_ERROR.status.translateX=Ia),T&&g){gi.RevertItemProcessing.align="BUTTON_REMOVE_ITEM_POSITION";var k=$r.DID_COMPLETE_ITEM_PROCESSING;k.info.translateX=Vt,k.status.translateY=Xi,k.processingCompleteIndicator={opacity:1,scaleX:1,scaleY:1}}y||(gi.RemoveItem.disabled=!0),Ee(gi,function(B,$){var ne=a.createChildView(F,{label:a.query($.label),icon:a.query($.icon),opacity:0});S.includes(B)&&a.appendChildView(ne),$.disabled&&(ne.element.setAttribute("disabled","disabled"),ne.element.setAttribute("hidden","hidden")),ne.element.dataset.align=a.query("GET_STYLE_"+$.align),ne.element.classList.add($.className),ne.on("click",function(j){j.stopPropagation(),!$.disabled&&a.dispatch($.action,{query:f})}),a.ref["button"+B]=ne}),a.ref.processingCompleteIndicator=a.appendChildView(a.createChildView(Qo)),a.ref.processingCompleteIndicator.element.dataset.align=a.query("GET_STYLE_BUTTON_PROCESS_ITEM_POSITION"),a.ref.info=a.appendChildView(a.createChildView(Rg,{id:f})),a.ref.status=a.appendChildView(a.createChildView(ol,{id:f}));var H=a.appendChildView(a.createChildView(Ea,{opacity:0,align:a.query("GET_STYLE_LOAD_INDICATOR_POSITION")}));H.element.classList.add("filepond--load-indicator"),a.ref.loadProgressIndicator=H;var P=a.appendChildView(a.createChildView(Ea,{opacity:0,align:a.query("GET_STYLE_PROGRESS_INDICATOR_POSITION")}));P.element.classList.add("filepond--process-indicator"),a.ref.processProgressIndicator=P,a.ref.activeStyles=[]},write:function(s){var a=s.root,c=s.actions;jt({root:a,actions:c,props:s.props});var g=c.concat().filter(function(v){return/^DID_/.test(v.type)}).reverse().find(function(v){return $r[v.type]});if(g){a.ref.activeStyles=[];var y=$r[g.type];Ee(al,function(v,_){var I=a.ref[v];Ee(_,function(T,C){a.ref.activeStyles.push({control:I,key:T,value:y[v]&&void 0!==y[v][T]?y[v][T]:C})})})}a.ref.activeStyles.forEach(function(v){var T=v.value;v.control[v.key]="function"==typeof T?T(a):T})},didCreateView:function(s){st("CREATE_VIEW",Object.assign({},s,{view:s}))},name:"file"}),nf=ht({create:function(s){var a=s.root,c=s.props;a.ref.fileName=In("legend"),a.appendChild(a.ref.fileName),a.ref.file=a.appendChildView(a.createChildView(pr,{id:c.id})),a.ref.data=!1},ignoreRect:!0,write:Ft({DID_LOAD_ITEM:function(s){var a=s.root;Z(a.ref.fileName,a.query("GET_ITEM_NAME",s.props.id))}}),didCreateView:function(s){st("CREATE_VIEW",Object.assign({},s,{view:s}))},tag:"fieldset",name:"file-wrapper"}),ul={type:"spring",damping:.6,mass:7},of=function(s,a,c){var f=ht({name:"panel-"+a.name+" filepond--"+c,mixins:a.mixins,ignoreRectUpdate:!0}),g=s.createChildView(f,a.props);s.ref[a.name]=s.appendChildView(g)},eo=ht({name:"panel",write:function(s){var a=s.root,c=s.props;if((null===a.ref.scalable||c.scalable!==a.ref.scalable)&&(a.ref.scalable=!od(c.scalable)||c.scalable,a.element.dataset.scalable=a.ref.scalable),c.height){var f=a.ref.top.rect.element,g=a.ref.bottom.rect.element,y=Math.max(f.height+g.height,c.height);a.ref.center.translateY=f.height,a.ref.center.scaleY=(y-f.height-g.height)/100,a.ref.bottom.translateY=y-g.height}},create:function(s){var a=s.root,c=s.props;[{name:"top"},{name:"center",props:{translateY:null,scaleY:null},mixins:{animations:{scaleY:ul},styles:["translateY","scaleY"]}},{name:"bottom",props:{translateY:null},mixins:{animations:{translateY:ul},styles:["translateY"]}}].forEach(function(f){of(a,f,c.name)}),a.element.classList.add("filepond--"+c.name),a.ref.scalable=null},ignoreRect:!0,mixins:{apis:["height","scalable"]}}),to={type:"spring",stiffness:.75,damping:.45,mass:10},ba={DID_START_ITEM_LOAD:"busy",DID_UPDATE_ITEM_LOAD_PROGRESS:"loading",DID_THROW_ITEM_INVALID:"load-invalid",DID_THROW_ITEM_LOAD_ERROR:"load-error",DID_LOAD_ITEM:"idle",DID_THROW_ITEM_REMOVE_ERROR:"remove-error",DID_START_ITEM_REMOVE:"busy",DID_START_ITEM_PROCESSING:"busy processing",DID_REQUEST_ITEM_PROCESSING:"busy processing",DID_UPDATE_ITEM_PROCESS_PROGRESS:"processing",DID_COMPLETE_ITEM_PROCESSING:"processing-complete",DID_THROW_ITEM_PROCESSING_ERROR:"processing-error",DID_THROW_ITEM_PROCESSING_REVERT_ERROR:"processing-revert-error",DID_ABORT_ITEM_PROCESSING:"cancelled",DID_REVERT_ITEM_PROCESSING:"idle"},gr=Ft({DID_UPDATE_PANEL_HEIGHT:function(s){s.root.height=s.action.height}}),no=Ft({DID_GRAB_ITEM:function(s){var a=s.root;s.props.dragOrigin={x:a.translateX,y:a.translateY}},DID_DRAG_ITEM:function(s){s.root.element.dataset.dragState="drag"},DID_DROP_ITEM:function(s){var a=s.root,c=s.props;c.dragOffset=null,c.dragOrigin=null,a.element.dataset.dragState="drop"}},function(h){var s=h.root,a=h.actions,c=h.props,f=h.shouldOptimize;"drop"===s.element.dataset.dragState&&s.scaleX<=1&&(s.element.dataset.dragState="idle");var g=a.concat().filter(function(v){return/^DID_/.test(v.type)}).reverse().find(function(v){return ba[v.type]});g&&g.type!==c.currentState&&(c.currentState=g.type,s.element.dataset.filepondItemState=ba[c.currentState]||"");var y=s.query("GET_ITEM_PANEL_ASPECT_RATIO")||s.query("GET_PANEL_ASPECT_RATIO");y?f||(s.height=s.rect.element.width*y):(gr({root:s,actions:a,props:c}),!s.height&&s.ref.container.rect.element.height>0&&(s.height=s.ref.container.rect.element.height)),f&&(s.ref.panel.height=null),s.ref.panel.height=s.height}),uf=ht({create:function(s){var a=s.root,c=s.props;if(a.ref.handleClick=function(g){return a.dispatch("DID_ACTIVATE_ITEM",{id:c.id})},a.element.id="filepond--item-"+c.id,a.element.addEventListener("click",a.ref.handleClick),a.ref.container=a.appendChildView(a.createChildView(nf,{id:c.id})),a.ref.panel=a.appendChildView(a.createChildView(eo,{name:"item-panel"})),a.ref.panel.height=null,c.markedForRemoval=!1,a.query("GET_ALLOW_REORDER")){a.element.dataset.dragState="idle";a.element.addEventListener("pointerdown",function(y){if(y.isPrimary){var v=!1,_={x:y.pageX,y:y.pageY};c.dragOrigin={x:a.translateX,y:a.translateY},c.dragCenter={x:y.offsetX,y:y.offsetY};var I=function(s){var a=s.map(function(f){return f.id}),c=void 0;return{setIndex:function(g){c=g},getIndex:function(){return c},getItemIndex:function(g){return a.indexOf(g.id)}}}(a.query("GET_ACTIVE_ITEMS"));a.dispatch("DID_GRAB_ITEM",{id:c.id,dragState:I});var T=function(N){N.isPrimary&&(N.stopPropagation(),N.preventDefault(),c.dragOffset={x:N.pageX-_.x,y:N.pageY-_.y},c.dragOffset.x*c.dragOffset.x+c.dragOffset.y*c.dragOffset.y>16&&!v&&(v=!0,a.element.removeEventListener("click",a.ref.handleClick)),a.dispatch("DID_DRAG_ITEM",{id:c.id,dragState:I}))};document.addEventListener("pointermove",T),document.addEventListener("pointerup",function S(N){!N.isPrimary||(document.removeEventListener("pointermove",T),document.removeEventListener("pointerup",S),c.dragOffset={x:N.pageX-_.x,y:N.pageY-_.y},a.dispatch("DID_DROP_ITEM",{id:c.id,dragState:I}),v&&setTimeout(function(){return a.element.addEventListener("click",a.ref.handleClick)},0))})}})}},write:no,destroy:function(s){var a=s.root,c=s.props;a.element.removeEventListener("click",a.ref.handleClick),a.dispatch("RELEASE_ITEM",{query:c.id})},tag:"li",name:"item",mixins:{apis:["id","interactionMethod","markedForRemoval","spawnDate","dragCenter","dragOrigin","dragOffset"],styles:["translateX","translateY","scaleX","scaleY","opacity","height"],animations:{scaleX:"spring",scaleY:"spring",translateX:to,translateY:to,opacity:{type:"tween",duration:150}}}}),Sa=function(s,a,c){if(c){var g=a.length,y=null;if(0===g||c.top<a[0].rect.element.top)return-1;var _=a[0].rect.element,T=_.width+(_.marginLeft+_.marginRight),C=Math.round(s.rect.element.width/T);if(1===C){for(var S=0;S<g;S++){var N=a[S];if(c.top<N.rect.outer.top+.5*N.rect.element.height)return S}return g}for(var P=_.height+(_.marginTop+_.marginBottom),B=0;B<g;B++){var $=B%C,Re=Math.floor(B/C)*P;if(c.top<Re+P+_.marginBottom&&c.top>Re-_.marginTop){if(c.left<$*T+T)return B;y=B!==g-1?B:null}}return null!==y?y:g}},mr={height:0,width:0,get getHeight(){return this.height},set setHeight(h){(0===this.height||0===h)&&(this.height=h)},get getWidth(){return this.width},set setWidth(h){(0===this.width||0===h)&&(this.width=h)},setDimensions:function(s,a){(0===this.height||0===s)&&(this.height=s),(0===this.width||0===a)&&(this.width=a)}},ll=function(s,a,c){var f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,g=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;s.dragOffset?(s.translateX=null,s.translateY=null,s.translateX=s.dragOrigin.x+s.dragOffset.x,s.translateY=s.dragOrigin.y+s.dragOffset.y,s.scaleX=1.025,s.scaleY=1.025):(s.translateX=a,s.translateY=c,Date.now()>s.spawnDate&&(0===s.opacity&&Pg(s,a,c,f,g),s.scaleX=1,s.scaleY=1,s.opacity=1))},Pg=function(s,a,c,f,g){s.interactionMethod===mn_NONE?(s.translateX=null,s.translateX=a,s.translateY=null,s.translateY=c):s.interactionMethod===mn_DROP?(s.translateX=null,s.translateX=a-20*f,s.translateY=null,s.translateY=c-10*g,s.scaleX=.8,s.scaleY=.8):s.interactionMethod===mn_BROWSE?(s.translateY=null,s.translateY=c-30):s.interactionMethod===mn_API&&(s.translateX=null,s.translateX=a-30,s.translateY=null)},mi=function(s){return s.rect.element.height+.5*s.rect.element.marginBottom+.5*s.rect.element.marginTop},Xo=Ft({DID_ADD_ITEM:function(s){var a=s.root,c=s.action,f=c.id,g=c.index,y=c.interactionMethod;a.ref.addIndex=g;var v=Date.now(),_=v,I=1;if(y!==mn_NONE){I=0;var T=a.query("GET_ITEM_INSERT_INTERVAL"),C=v-a.ref.lastItemSpanwDate;_=C<T?v+(T-C):v}a.ref.lastItemSpanwDate=_,a.appendChildView(a.createChildView(uf,{spawnDate:_,id:f,opacity:I,interactionMethod:y}),g)},DID_REMOVE_ITEM:function(s){var f=s.action.id,g=s.root.childViews.find(function(y){return y.id===f});!g||(g.scaleX=.9,g.scaleY=.9,g.opacity=0,g.markedForRemoval=!0)},DID_DRAG_ITEM:function(s){var a=s.root,c=s.action,f=c.id,g=c.dragState,y=a.query("GET_ITEM",{id:f}),v=a.childViews.find(function($){return $.id===f}),_=a.childViews.length,I=g.getItemIndex(y);if(v){var T={x:v.dragOrigin.x+v.dragOffset.x+v.dragCenter.x,y:v.dragOrigin.y+v.dragOffset.y+v.dragCenter.y},C=mi(v),S=function(s){return s.rect.element.width+.5*s.rect.element.marginLeft+.5*s.rect.element.marginRight}(v),N=Math.floor(a.rect.outer.width/S);N>_&&(N=_);var k=Math.floor(_/N+1);mr.setHeight=C*k,mr.setWidth=S*N;var H={y:Math.floor(T.y/C),x:Math.floor(T.x/S),getGridIndex:function(){return T.y>mr.getHeight||T.y<0||T.x>mr.getWidth||T.x<0?I:this.y*N+this.x},getColIndex:function(){for(var ne=a.query("GET_ACTIVE_ITEMS"),j=a.childViews.filter(function(oe){return oe.rect.element.height}),Re=ne.map(function(oe){return j.find(function(je){return je.id===oe.id})}),ae=Re.findIndex(function(oe){return oe===v}),Ve=mi(v),xe=Re.length,q=xe,te=0,re=0,z=0,ee=0;ee<xe;ee++)if(te=mi(Re[ee]),T.y<(re=(z=re)+te)){if(ae>ee){if(T.y<z+Ve){q=ee;break}continue}q=ee;break}return q}},P=N>1?H.getGridIndex():H.getColIndex();a.dispatch("MOVE_ITEM",{query:v,index:P});var B=g.getIndex();if(void 0===B||B!==P){if(g.setIndex(P),void 0===B)return;a.dispatch("DID_REORDER_ITEMS",{items:a.query("GET_ACTIVE_ITEMS"),origin:I,target:P})}}}}),yi=ht({create:function(s){var a=s.root;Ie(a.element,"role","list"),a.ref.lastItemSpanwDate=Date.now()},write:function(s){var a=s.root,c=s.props,g=s.shouldOptimize;Xo({root:a,props:c,actions:s.actions});var y=c.dragCoordinates,v=a.rect.element.width,_=a.childViews.filter(function(q){return q.rect.element.height}),I=a.query("GET_ACTIVE_ITEMS").map(function(q){return _.find(function(te){return te.id===q.id})}).filter(function(q){return q}),T=y?Sa(a,I,y):null,C=a.ref.addIndex||null;a.ref.addIndex=null;var S=0,N=0,k=0;if(0!==I.length){var H=I[0].rect.element,P=H.marginTop+H.marginBottom,$=H.width+(H.marginLeft+H.marginRight),ne=H.height+P,j=Math.round(v/$);if(1===j){var Re=0,ae=0;I.forEach(function(q,te){if(T){var re=te-T;ae=-2===re?.25*-P:-1===re?.75*-P:0===re?.75*P:1===re?.25*P:0}g&&(q.translateX=null,q.translateY=null),q.markedForRemoval||ll(q,0,Re+ae),Re+=(q.rect.element.height+P)*(q.markedForRemoval?q.opacity:1)})}else{var Ve=0,xe=0;I.forEach(function(q,te){te===T&&(S=1),te===C&&(k+=1),q.markedForRemoval&&q.opacity<.5&&(N-=1);var re=te+k+S+N,z=re%j,ee=Math.floor(re/j),oe=z*$,je=ee*ne,ke=Math.sign(oe-Ve),se=Math.sign(je-xe);Ve=oe,xe=je,!q.markedForRemoval&&(g&&(q.translateX=null,q.translateY=null),ll(q,oe,je,ke,se))})}}},tag:"ul",name:"list",didWriteView:function(s){var a=s.root;a.childViews.filter(function(c){return c.markedForRemoval&&0===c.opacity&&c.resting}).forEach(function(c){c._destroy(),a.removeChildView(c)})},filterFrameActionsForChild:function(s,a){return a.filter(function(c){return!c.data||!c.data.id||s.id===c.data.id})},mixins:{apis:["dragCoordinates"]}}),Jo=Ft({DID_DRAG:function(s){var a=s.root,c=s.props,f=s.action;!a.query("GET_ITEM_INSERT_LOCATION_FREEDOM")||(c.dragCoordinates={left:f.position.scopeLeft-a.ref.list.rect.element.left,top:f.position.scopeTop-(a.rect.outer.top+a.rect.element.marginTop+a.rect.element.scrollTop)})},DID_END_DRAG:function(s){s.props.dragCoordinates=null}}),hl=ht({create:function(s){var a=s.root,c=s.props;a.ref.list=a.appendChildView(a.createChildView(yi)),c.dragCoordinates=null,c.overflowing=!1},write:function(s){var a=s.root,c=s.props;if(Jo({root:a,props:c,actions:s.actions}),a.ref.list.dragCoordinates=c.dragCoordinates,c.overflowing&&!c.overflow&&(c.overflowing=!1,a.element.dataset.state="",a.height=null),c.overflow){var g=Math.round(c.overflow);g!==a.height&&(c.overflowing=!0,a.element.dataset.state="overflow",a.height=g)}},name:"list-scroller",mixins:{apis:["overflow","dragCoordinates"],styles:["height","translateY"],animations:{translateY:"spring"}}}),dn=function(s,a,c){c?Ie(s,a,arguments.length>3&&void 0!==arguments[3]?arguments[3]:""):s.removeAttribute(a)},Ei=function(s){var a=s.root,c=s.action;!a.query("GET_ALLOW_SYNC_ACCEPT_ATTRIBUTE")||dn(a.element,"accept",!!c.value,c.value?c.value.join(","):"")},es=function(s){dn(s.root.element,"multiple",s.action.value)},ts=function(s){dn(s.root.element,"webkitdirectory",s.action.value)},_i=function(s){var a=s.root,c=a.query("GET_DISABLED"),f=a.query("GET_ALLOW_BROWSE");dn(a.element,"disabled",c||!f)},ro=function(s){var a=s.root;s.action.value?0===a.query("GET_TOTAL_ITEMS")&&dn(a.element,"required",!0):dn(a.element,"required",!1)},pl=function(s){var c=s.action;dn(s.root.element,"capture",!!c.value,!0===c.value?"":c.value)},Ra=function(s){var a=s.root,c=a.element;a.query("GET_TOTAL_ITEMS")>0?(dn(c,"required",!1),dn(c,"name",!1)):(dn(c,"name",!0,a.query("GET_NAME")),a.query("GET_CHECK_VALIDITY")&&c.setCustomValidity(""),a.query("GET_REQUIRED")&&dn(c,"required",!0))},ml=ht({tag:"input",name:"browser",ignoreRect:!0,ignoreRectUpdate:!0,attributes:{type:"file"},create:function(s){var a=s.root,c=s.props;a.element.id="filepond--browser-"+c.id,Ie(a.element,"name",a.query("GET_NAME")),Ie(a.element,"aria-controls","filepond--assistant-"+c.id),Ie(a.element,"aria-labelledby","filepond--drop-label-"+c.id),Ei({root:a,action:{value:a.query("GET_ACCEPTED_FILE_TYPES")}}),es({root:a,action:{value:a.query("GET_ALLOW_MULTIPLE")}}),ts({root:a,action:{value:a.query("GET_ALLOW_DIRECTORIES_ONLY")}}),_i({root:a}),ro({root:a,action:{value:a.query("GET_REQUIRED")}}),pl({root:a,action:{value:a.query("GET_CAPTURE_METHOD")}}),a.ref.handleChange=function(f){if(a.element.value){var g=Array.from(a.element.files).map(function(y){return y._relativePath=y.webkitRelativePath,y});setTimeout(function(){c.onload(g),function(s){if(s&&""!==s.value){try{s.value=""}catch(g){}if(s.value){var a=In("form"),c=s.parentNode,f=s.nextSibling;a.appendChild(s),a.reset(),f?c.insertBefore(s,f):c.appendChild(s)}}}(a.element)},250)}},a.element.addEventListener("change",a.ref.handleChange)},destroy:function(s){var a=s.root;a.element.removeEventListener("change",a.ref.handleChange)},write:Ft({DID_LOAD_ITEM:Ra,DID_REMOVE_ITEM:Ra,DID_THROW_ITEM_INVALID:function(s){var a=s.root;!a.query("GET_CHECK_VALIDITY")||a.element.setCustomValidity(a.query("GET_LABEL_INVALID_FIELD"))},DID_SET_DISABLED:_i,DID_SET_ALLOW_BROWSE:_i,DID_SET_ALLOW_DIRECTORIES_ONLY:ts,DID_SET_ALLOW_MULTIPLE:es,DID_SET_ACCEPTED_FILE_TYPES:Ei,DID_SET_CAPTURE_METHOD:pl,DID_SET_REQUIRED:ro})}),Oa_ENTER=13,Oa_SPACE=32,yl=function(s,a){s.innerHTML=a;var c=s.querySelector(".filepond--label-action");return c&&Ie(c,"tabindex","0"),a},ns=ht({name:"drop-label",ignoreRect:!0,create:function(s){var a=s.root,c=s.props,f=In("label");Ie(f,"for","filepond--browser-"+c.id),Ie(f,"id","filepond--drop-label-"+c.id),Ie(f,"aria-hidden","true"),a.ref.handleKeyDown=function(g){g.keyCode!==Oa_ENTER&&g.keyCode!==Oa_SPACE||(g.preventDefault(),a.ref.label.click())},a.ref.handleClick=function(g){g.target===f||f.contains(g.target)||a.ref.label.click()},f.addEventListener("keydown",a.ref.handleKeyDown),a.element.addEventListener("click",a.ref.handleClick),yl(f,c.caption),a.appendChild(f),a.ref.label=f},destroy:function(s){var a=s.root;a.ref.label.addEventListener("keydown",a.ref.handleKeyDown),a.element.removeEventListener("click",a.ref.handleClick)},write:Ft({DID_SET_LABEL_IDLE:function(s){yl(s.root.ref.label,s.action.value)}}),mixins:{styles:["opacity","translateX","translateY"],animations:{opacity:{type:"tween",duration:150},translateX:"spring",translateY:"spring"}}}),io=ht({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}}}}),Pa=Ft({DID_DRAG:function(s){var a=s.root,c=s.action;a.ref.blob?(a.ref.blob.translateX=c.position.scopeLeft,a.ref.blob.translateY=c.position.scopeTop,a.ref.blob.scaleX=1,a.ref.blob.scaleY=1,a.ref.blob.opacity=1):function(s){var a=s.root;a.ref.blob=a.appendChildView(a.createChildView(io,{opacity:0,scaleX:2.5,scaleY:2.5,translateX:.5*a.rect.element.width,translateY:.5*a.rect.element.height}))}({root:a})},DID_DROP:function(s){var a=s.root;!a.ref.blob||(a.ref.blob.scaleX=2.5,a.ref.blob.scaleY=2.5,a.ref.blob.opacity=0)},DID_END_DRAG:function(s){var a=s.root;!a.ref.blob||(a.ref.blob.opacity=0)}}),Na=ht({ignoreRect:!0,ignoreRectUpdate:!0,name:"drip",write:function(s){var a=s.root,f=s.actions;Pa({root:a,props:s.props,actions:f});var g=a.ref.blob;0===f.length&&g&&0===g.opacity&&(a.removeChildView(g),a.ref.blob=null)}}),yr=function(s,a){return s.ref.fields[a]},vr=function(s){s.query("GET_ACTIVE_ITEMS").forEach(function(a){!s.ref.fields[a.id]||s.element.appendChild(s.ref.fields[a.id])})},Fa=function(s){return vr(s.root)},xg=Ft({DID_SET_DISABLED:function(s){var a=s.root;a.element.disabled=a.query("GET_DISABLED")},DID_ADD_ITEM:function(s){var a=s.root,c=s.action,f=In("input");f.type="hidden",f.name=a.query("GET_NAME"),f.disabled=a.query("GET_DISABLED"),a.ref.fields[c.id]=f,vr(a)},DID_LOAD_ITEM:function(s){var c=s.action,f=yr(s.root,c.id);!f||null===c.serverFileReference||(f.value=c.serverFileReference)},DID_REMOVE_ITEM:function(s){var a=s.root,c=s.action,f=yr(a,c.id);!f||(f.parentNode.removeChild(f),delete a.ref.fields[c.id])},DID_DEFINE_VALUE:function(s){var a=s.root,c=s.action,f=yr(a,c.id);!f||(null===c.value?f.removeAttribute("value"):f.value=c.value,vr(a))},DID_REORDER_ITEMS:Fa,DID_SORT_ITEMS:Fa}),kg=ht({tag:"fieldset",name:"data",create:function(s){return s.root.ref.fields={}},write:xg,ignoreRect:!0}),Vg=["jpg","jpeg","png","gif","bmp","webp","svg","tiff"],jg=["css","csv","html","txt"],Hg={zip:"zip|compressed",epub:"application/epub+zip"},yf=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return s=s.toLowerCase(),Vg.includes(s)?"image/"+("jpg"===s?"jpeg":"svg"===s?"svg+xml":s):jg.includes(s)?"text/"+s:Hg[s]||""},zr=function(s){return new Promise(function(a,c){var f=is(s);if(f.length&&!Ug(s))return a(f);vt(s).then(a)})},Ug=function(s){return!!s.files&&s.files.length>0},vt=function(s){return new Promise(function(a,c){var f=(s.items?Array.from(s.items):[]).filter(function(g){return xa(g)}).map(function(g){return oo(g)});f.length?Promise.all(f).then(function(g){var y=[];g.forEach(function(v){y.push.apply(y,v)}),a(y.filter(function(v){return v}).map(function(v){return v._relativePath||(v._relativePath=v.webkitRelativePath),v}))}).catch(console.error):a(s.files?Array.from(s.files):[])})},xa=function(s){if(Tn(s)){var a=rs(s);if(a)return a.isFile||a.isDirectory}return"file"===s.kind},oo=function(s){return new Promise(function(a,c){fn(s)?Gg(rs(s)).then(a).catch(c):a([s.getAsFile()])})},Gg=function(s){return new Promise(function(a,c){var f=[],g=0,y=0,v=function(){0===y&&0===g&&a(f)};!function I(T){g++;var C=T.createReader();!function N(){C.readEntries(function(k){if(0===k.length)return g--,void v();k.forEach(function(H){H.isDirectory?I(H):(y++,H.file(function(P){var B=vf(P);H.fullPath&&(B._relativePath=H.fullPath),f.push(B),y--,v()}))}),N()},c)}()}(s)})},vf=function(s){if(s.type.length)return s;var a=s.lastModifiedDate,c=s.name;return(s=s.slice(0,s.size,yf(fa(s.name)))).name=c,s.lastModifiedDate=a,s},fn=function(s){return Tn(s)&&(rs(s)||{}).isDirectory},Tn=function(s){return"webkitGetAsEntry"in s},rs=function(s){return s.webkitGetAsEntry()},is=function(s){var a=[];try{if((a=_l(s)).length)return a;a=so(s)}catch(c){}return a},so=function(s){var a=s.getData("url");return"string"==typeof a&&a.length?[a]:[]},_l=function(s){var a=s.getData("text/html");if("string"==typeof a&&a.length){var c=a.match(/src\s*=\s*"(.+?)"/);if(c)return[c[1]]}return[]},os=[],qr=function(s){return{pageLeft:s.pageX,pageTop:s.pageY,scopeLeft:s.offsetX||s.layerX,scopeTop:s.offsetY||s.layerY}},zg=function(s){var a=os.find(function(f){return f.element===s});if(a)return a;var c=Dl(s);return os.push(c),c},Dl=function(s){var a=[],c={dragenter:Il,dragover:Ef,dragleave:Df,drop:_f},f={};Ee(c,function(y,v){f[y]=v(s,a),s.addEventListener(y,f[y],!1)});var g={element:s,addListener:function(v){return a.push(v),function(){a.splice(a.indexOf(v),1),0===a.length&&(os.splice(os.indexOf(g),1),Ee(c,function(_){s.removeEventListener(_,f[_],!1)}))}}};return g},ao=function(s,a){var c=function(s){return"getRootNode"in s?s.getRootNode():document}(a),f=function(s,a){return"elementFromPoint"in s||(s=document),s.elementFromPoint(a.x,a.y)}(c,{x:s.pageX-window.pageXOffset,y:s.pageY-window.pageYOffset});return f===a||a.contains(f)},Wr=null,ka=function(s,a){try{s.dropEffect=a}catch(c){}},Il=function(s,a){return function(c){c.preventDefault(),Wr=c.target,a.forEach(function(f){var y=f.onenter;ao(c,f.element)&&(f.state="enter",y(qr(c)))})}},Ef=function(s,a){return function(c){c.preventDefault();var f=c.dataTransfer;zr(f).then(function(g){var y=!1;a.some(function(v){var _=v.filterElement,I=v.element,T=v.onenter,C=v.onexit,S=v.ondrag,N=v.allowdrop;ka(f,"copy");var k=N(g);if(k)if(ao(c,I)){if(y=!0,null===v.state)return v.state="enter",void T(qr(c));if(v.state="over",_&&!k)return void ka(f,"none");S(qr(c))}else _&&!y&&ka(f,"none"),v.state&&(v.state=null,C(qr(c)));else ka(f,"none")})})}},_f=function(s,a){return function(c){c.preventDefault(),zr(c.dataTransfer).then(function(g){a.forEach(function(y){var v=y.filterElement,_=y.element,I=y.ondrop,T=y.onexit,C=y.allowdrop;if(y.state=null,!v||ao(c,_)){if(!C(g))return T(qr(c));I(qr(c),g)}})})}},Df=function(s,a){return function(c){Wr===c.target&&a.forEach(function(f){var g=f.onexit;f.state=null,g(qr(c))})}},If=function(s,a,c){s.classList.add("filepond--hopper");var y=c.filterItems,v=void 0===y?function(S){return S}:y,_=function(s,a,c){var f=zg(a),g={element:s,filterElement:c,state:null,ondrop:function(){},onenter:function(){},ondrag:function(){},onexit:function(){},onload:function(){},allowdrop:function(){}};return g.destroy=f.addListener(g),g}(s,c.catchesDropsOnPage?document.documentElement:s,c.requiresDropOnElement),I="",T="";_.allowdrop=function(S){return a(v(S))},_.ondrop=function(S,N){var k=v(N);a(k)?(T="drag-drop",C.onload(k,S)):C.ondragend(S)},_.ondrag=function(S){C.ondrag(S)},_.onenter=function(S){T="drag-over",C.ondragstart(S)},_.onexit=function(S){T="drag-exit",C.ondragend(S)};var C={updateHopperState:function(){I!==T&&(s.dataset.hopperState=T,I=T)},onload:function(){},ondragstart:function(){},ondrag:function(){},ondragend:function(){},destroy:function(){_.destroy()}};return C},Ba=!1,Yr=[],ss=function(s){var a=document.activeElement;if(a&&/textarea|input/i.test(a.nodeName)){for(var c=!1,f=a;f!==document.body;){if(f.classList.contains("filepond--root")){c=!0;break}f=f.parentNode}if(!c)return}zr(s.clipboardData).then(function(g){!g.length||Yr.forEach(function(y){return y(g)})})},uo=function(){var s=function(f){a.onload(f)},a={destroy:function(){!function(s){U(Yr,Yr.indexOf(s)),0===Yr.length&&(document.removeEventListener("paste",ss),Ba=!1)}(s)},onload:function(){}};return function(s){Yr.includes(s)||(Yr.push(s),!Ba&&(Ba=!0,document.addEventListener("paste",ss)))}(s),a},lo=null,Tl=null,ja=[],us=function(s,a){s.element.textContent=a},bl=function(s,a,c){var f=s.query("GET_TOTAL_ITEMS");us(s,c+" "+a+", "+f+" "+s.query(1===f?"GET_LABEL_FILE_COUNT_SINGULAR":"GET_LABEL_FILE_COUNT_PLURAL")),clearTimeout(Tl),Tl=setTimeout(function(){!function(s){s.element.textContent=""}(s)},1500)},wi=function(s){return s.element.parentNode.contains(document.activeElement)},Ha=function(s){var a=s.root,g=a.query("GET_ITEM",s.action.id).filename,y=a.query("GET_LABEL_FILE_PROCESSING_ABORTED");us(a,g+" "+y)},ls=function(s){var a=s.root,c=s.action,f=a.query("GET_ITEM",c.id);us(a,c.status.main+" "+f.filename+" "+c.status.sub)},Ua=ht({create:function(s){var a=s.root;a.element.id="filepond--assistant-"+s.props.id,Ie(a.element,"role","status"),Ie(a.element,"aria-live","polite"),Ie(a.element,"aria-relevant","additions")},ignoreRect:!0,ignoreRectUpdate:!0,write:Ft({DID_LOAD_ITEM:function(s){var a=s.root,c=s.action;if(wi(a)){a.element.textContent="";var f=a.query("GET_ITEM",c.id);ja.push(f.filename),clearTimeout(lo),lo=setTimeout(function(){bl(a,ja.join(", "),a.query("GET_LABEL_FILE_ADDED")),ja.length=0},750)}},DID_REMOVE_ITEM:function(s){var a=s.root,c=s.action;wi(a)&&bl(a,c.item.filename,a.query("GET_LABEL_FILE_REMOVED"))},DID_COMPLETE_ITEM_PROCESSING:function(s){var a=s.root,g=a.query("GET_ITEM",s.action.id).filename,y=a.query("GET_LABEL_FILE_PROCESSING_COMPLETE");us(a,g+" "+y)},DID_ABORT_ITEM_PROCESSING:Ha,DID_REVERT_ITEM_PROCESSING:Ha,DID_THROW_ITEM_REMOVE_ERROR:ls,DID_THROW_ITEM_LOAD_ERROR:ls,DID_THROW_ITEM_INVALID:ls,DID_THROW_ITEM_PROCESSING_ERROR:ls}),tag:"span",name:"assistant"}),bi=function(s){return s.replace(new RegExp((arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-")+".","g"),function(c){return c.charAt(1).toUpperCase()})},Cl=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:16,c=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],f=Date.now(),g=null;return function(){for(var y=arguments.length,v=new Array(y),_=0;_<y;_++)v[_]=arguments[_];clearTimeout(g);var I=Date.now()-f,T=function(){f=Date.now(),s.apply(void 0,v)};I<a?c||(g=setTimeout(T,a-I)):T()}},cs=function(s){return s.preventDefault()},Al=function(s){var a=s.ref.list.childViews[0].childViews[0];return a?{top:a.rect.element.marginTop,bottom:a.rect.element.marginBottom}:{top:0,bottom:0}},fs=function(s){var a=0,c=0,f=s.ref.list,g=f.childViews[0],y=g.childViews.filter(function(ne){return ne.rect.element.height}),v=s.query("GET_ACTIVE_ITEMS").map(function(ne){return y.find(function(j){return j.id===ne.id})}).filter(function(ne){return ne});if(0===v.length)return{visual:a,bounds:c};var _=g.rect.element.width,I=Sa(g,v,f.dragCoordinates),T=v[0].rect.element,C=T.marginTop+T.marginBottom,N=T.width+(T.marginLeft+T.marginRight),k=T.height+C,H=void 0!==I&&I>=0?1:0,P=v.find(function(ne){return ne.markedForRemoval&&ne.opacity<.45})?-1:0,B=v.length+H+P,$=Math.round(_/N);return 1===$?v.forEach(function(ne){var j=ne.rect.element.height+C;c+=j,a+=j*ne.opacity}):(c=Math.ceil(B/$)*k,a=c),{visual:a,bounds:c}},bf=function(s){var a=s.ref.measureHeight||null;return{cappedHeight:parseInt(s.style.maxHeight,10)||null,fixedHeight:0===a?null:a}},$a=function(s,a){var c=s.query("GET_ALLOW_REPLACE"),f=s.query("GET_ALLOW_MULTIPLE"),g=s.query("GET_TOTAL_ITEMS"),y=s.query("GET_MAX_FILES"),v=a.length;return!f&&v>1||!!(oi(y=f||c?y:1)&&g+v>y)&&(s.dispatch("DID_THROW_MAX_FILES",{source:a,error:ut("warning",0,"Max files")}),!0)},za=function(s,a,c){var f=s.childViews[0];return Sa(f,a,{left:c.scopeLeft-f.rect.element.left,top:c.scopeTop-(s.rect.outer.top+s.rect.element.marginTop+s.rect.element.scrollTop)})},co=function(s){var a=s.query("GET_ALLOW_DROP"),c=s.query("GET_DISABLED"),f=a&&!c;if(f&&!s.ref.hopper){var g=If(s.element,function(y){if($a(s,y))return!1;var v=s.query("GET_BEFORE_DROP_FILE")||function(){return!0};return!s.query("GET_DROP_VALIDATION")||y.every(function(I){return st("ALLOW_HOPPER_ITEM",I,{query:s.query}).every(function(T){return!0===T})&&v(I)})},{filterItems:function(v){var _=s.query("GET_IGNORED_FILES");return v.filter(function(I){return!Gr(I)||!_.includes(I.name.toLowerCase())})},catchesDropsOnPage:s.query("GET_DROP_ON_PAGE"),requiresDropOnElement:s.query("GET_DROP_ON_ELEMENT")});g.onload=function(y,v){var I=s.ref.list.childViews[0].childViews.filter(function(C){return C.rect.element.height}),T=s.query("GET_ACTIVE_ITEMS").map(function(C){return I.find(function(S){return S.id===C.id})}).filter(function(C){return C});s.dispatch("ADD_ITEMS",{items:y,index:za(s.ref.list,T,v),interactionMethod:mn_DROP}),s.dispatch("DID_DROP",{position:v}),s.dispatch("DID_END_DRAG",{position:v})},g.ondragstart=function(y){s.dispatch("DID_START_DRAG",{position:y})},g.ondrag=Cl(function(y){s.dispatch("DID_DRAG",{position:y})}),g.ondragend=function(y){s.dispatch("DID_END_DRAG",{position:y})},s.ref.hopper=g,s.ref.drip=s.appendChildView(s.createChildView(Na))}else!f&&s.ref.hopper&&(s.ref.hopper.destroy(),s.ref.hopper=null,s.removeChildView(s.ref.drip))},qa=function(s,a){var c=s.query("GET_ALLOW_BROWSE"),f=s.query("GET_DISABLED"),g=c&&!f;g&&!s.ref.browser?s.ref.browser=s.appendChildView(s.createChildView(ml,Object.assign({},a,{onload:function(v){if($a(s,v))return!1;s.dispatch("ADD_ITEMS",{items:v,index:-1,interactionMethod:mn_BROWSE})}})),0):!g&&s.ref.browser&&(s.removeChildView(s.ref.browser),s.ref.browser=null)},Ml=function(s){var a=s.query("GET_ALLOW_PASTE"),c=s.query("GET_DISABLED"),f=a&&!c;f&&!s.ref.paster?(s.ref.paster=uo(),s.ref.paster.onload=function(g){s.dispatch("ADD_ITEMS",{items:g,index:-1,interactionMethod:mn_PASTE})}):!f&&s.ref.paster&&(s.ref.paster.destroy(),s.ref.paster=null)},Sf=Ft({DID_SET_ALLOW_BROWSE:function(s){qa(s.root,s.props)},DID_SET_ALLOW_DROP:function(s){co(s.root)},DID_SET_ALLOW_PASTE:function(s){Ml(s.root)},DID_SET_DISABLED:function(s){var a=s.root,c=s.props;co(a),Ml(a),qa(a,c),a.query("GET_DISABLED")?a.element.dataset.disabled="disabled":a.element.removeAttribute("data-disabled")}}),Si=ht({name:"root",read:function(s){var a=s.root;a.ref.measure&&(a.ref.measureHeight=a.ref.measure.offsetHeight)},create:function(s){var a=s.root,c=s.props,f=a.query("GET_ID");f&&(a.element.id=f);var g=a.query("GET_CLASS_NAME");g&&g.split(" ").filter(function(_){return _.length}).forEach(function(_){a.element.classList.add(_)}),a.ref.label=a.appendChildView(a.createChildView(ns,Object.assign({},c,{translateY:null,caption:a.query("GET_LABEL_IDLE")}))),a.ref.list=a.appendChildView(a.createChildView(hl,{translateY:null})),a.ref.panel=a.appendChildView(a.createChildView(eo,{name:"panel-root"})),a.ref.assistant=a.appendChildView(a.createChildView(Ua,Object.assign({},c))),a.ref.data=a.appendChildView(a.createChildView(kg,Object.assign({},c))),a.ref.measure=In("div"),a.ref.measure.style.height="100%",a.element.appendChild(a.ref.measure),a.ref.bounds=null,a.query("GET_STYLES").filter(function(_){return!Ln(_.value)}).map(function(_){a.element.dataset[_.name]=_.value}),a.ref.widthPrevious=null,a.ref.widthUpdated=Cl(function(){a.ref.updateHistory=[],a.dispatch("DID_RESIZE_ROOT")},250),a.ref.previousAspectRatio=null,a.ref.updateHistory=[];var y=window.matchMedia("(pointer: fine) and (hover: hover)").matches,v="PointerEvent"in window;a.query("GET_ALLOW_REORDER")&&v&&!y&&(a.element.addEventListener("touchmove",cs,{passive:!1}),a.element.addEventListener("gesturestart",cs))},write:function(s){var a=s.root,f=s.actions;if(Sf({root:a,props:s.props,actions:f}),f.filter(function(_e){return/^DID_SET_STYLE_/.test(_e.type)}).filter(function(_e){return!Ln(_e.data.value)}).map(function(_e){var Kn=_e.data,_r=bi(_e.type.substr(8).toLowerCase(),"_");a.element.dataset[_r]=Kn.value,a.invalidateLayout()}),!a.rect.element.hidden){a.rect.element.width!==a.ref.widthPrevious&&(a.ref.widthPrevious=a.rect.element.width,a.ref.widthUpdated());var g=a.ref.bounds;g||(g=a.ref.bounds=bf(a),a.element.removeChild(a.ref.measure),a.ref.measure=null);var y=a.ref,v=y.hopper,_=y.label,I=y.list,T=y.panel;v&&v.updateHopperState();var C=a.query("GET_PANEL_ASPECT_RATIO"),S=a.query("GET_ALLOW_MULTIPLE"),N=a.query("GET_TOTAL_ITEMS"),H=N===(S?a.query("GET_MAX_FILES")||1e6:1),P=f.find(function(_e){return"DID_ADD_ITEM"===_e.type});if(H&&P){var B=P.data.interactionMethod;_.opacity=0,S?_.translateY=-40:B===mn_API?_.translateX=40:_.translateY=B===mn_BROWSE?40:30}else H||(_.opacity=1,_.translateX=0,_.translateY=0);var $=Al(a),ne=fs(a),j=_.rect.element.height,Re=!S||H?0:j,ae=H?I.rect.element.marginTop:0,Ve=0===N?0:I.rect.element.marginBottom,xe=Re+ae+ne.visual+Ve,q=Re+ae+ne.bounds+Ve;if(I.translateY=Math.max(0,Re-I.rect.element.marginTop)-$.top,C){var te=a.rect.element.width,re=te*C;C!==a.ref.previousAspectRatio&&(a.ref.previousAspectRatio=C,a.ref.updateHistory=[]);var z=a.ref.updateHistory;z.push(te);if(z.length>4)for(var oe=z.length,je=oe-10,ke=0,se=oe;se>=je;se--)if(z[se]===z[se-2]&&ke++,ke>=2)return;T.scalable=!1,T.height=re;var x=re-Re-(Ve-$.bottom)-(H?ae:0);I.overflow=ne.visual>x?x:null,a.height=re}else if(g.fixedHeight){T.scalable=!1;var A=g.fixedHeight-Re-(Ve-$.bottom)-(H?ae:0);I.overflow=ne.visual>A?A:null}else if(g.cappedHeight){var Q=xe>=g.cappedHeight,fe=Math.min(g.cappedHeight,xe);T.scalable=!0,T.height=Q?fe:fe-$.top-$.bottom;var ge=fe-Re-(Ve-$.bottom)-(H?ae:0);I.overflow=xe>g.cappedHeight&&ne.visual>ge?ge:null,a.height=Math.min(g.cappedHeight,q-$.top-$.bottom)}else{var Ce=N>0?$.top+$.bottom:0;T.scalable=!0,T.height=Math.max(j,xe-Ce),a.height=Math.max(j,q-Ce)}}},destroy:function(s){var a=s.root;a.ref.paster&&a.ref.paster.destroy(),a.ref.hopper&&a.ref.hopper.destroy(),a.element.removeEventListener("touchmove",cs),a.element.removeEventListener("gesturestart",cs)},mixins:{styles:["height"]}}),fo=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=null,c=qt(),f=Nn(ta(c),[Nd,Yu(c)],[hr,ve(c)]);f.dispatch("SET_OPTIONS",{options:s});var g=function(){document.hidden||f.dispatch("KICK")};document.addEventListener("visibilitychange",g);var y=null,v=!1,_=!1,I=null,T=null,C=function(){v||(v=!0),clearTimeout(y),y=setTimeout(function(){v=!1,I=null,T=null,_&&(_=!1,f.dispatch("DID_STOP_RESIZE"))},500)};window.addEventListener("resize",C);var S=Si(f,{id:Y()}),N=!1,k=!1,H={_read:function(){v&&(T=window.innerWidth,I||(I=T),!_&&T!==I&&(f.dispatch("DID_START_RESIZE"),_=!0)),k&&N&&(N=null===S.element.offsetParent),!N&&(S._read(),k=S.rect.element.hidden)},_write:function(x){var A=f.processActionQueue().filter(function(Q){return!/^SET_/.test(Q.type)});N&&!A.length||(ne(A),N=S._write(x,A,_),Br(f.query("GET_ITEMS")),N&&f.processDispatchQueue())}},P=function(x){return function(A){var Q={type:x};if(!A)return Q;if(A.hasOwnProperty("error")&&(Q.error=A.error?Object.assign({},A.error):null),A.status&&(Q.status=Object.assign({},A.status)),A.file&&(Q.output=A.file),A.source)Q.file=A.source;else if(A.item||A.id){var fe=A.item?A.item:f.query("GET_ITEM",A.id);Q.file=fe?Be(fe):null}return A.items&&(Q.items=A.items.map(Be)),/progress/.test(x)&&(Q.progress=A.progress),A.hasOwnProperty("origin")&&A.hasOwnProperty("target")&&(Q.origin=A.origin,Q.target=A.target),Q}},B={DID_DESTROY:P("destroy"),DID_INIT:P("init"),DID_THROW_MAX_FILES:P("warning"),DID_INIT_ITEM:P("initfile"),DID_START_ITEM_LOAD:P("addfilestart"),DID_UPDATE_ITEM_LOAD_PROGRESS:P("addfileprogress"),DID_LOAD_ITEM:P("addfile"),DID_THROW_ITEM_INVALID:[P("error"),P("addfile")],DID_THROW_ITEM_LOAD_ERROR:[P("error"),P("addfile")],DID_THROW_ITEM_REMOVE_ERROR:[P("error"),P("removefile")],DID_PREPARE_OUTPUT:P("preparefile"),DID_START_ITEM_PROCESSING:P("processfilestart"),DID_UPDATE_ITEM_PROCESS_PROGRESS:P("processfileprogress"),DID_ABORT_ITEM_PROCESSING:P("processfileabort"),DID_COMPLETE_ITEM_PROCESSING:P("processfile"),DID_COMPLETE_ITEM_PROCESSING_ALL:P("processfiles"),DID_REVERT_ITEM_PROCESSING:P("processfilerevert"),DID_THROW_ITEM_PROCESSING_ERROR:[P("error"),P("processfile")],DID_REMOVE_ITEM:P("removefile"),DID_UPDATE_ITEMS:P("updatefiles"),DID_ACTIVATE_ITEM:P("activatefile"),DID_REORDER_ITEMS:P("reorderfiles")},$=function(x){var A=Object.assign({pond:ke},x);delete A.type,S.element.dispatchEvent(new CustomEvent("FilePond:"+x.type,{detail:A,bubbles:!0,cancelable:!0,composed:!0}));var Q=[];x.hasOwnProperty("error")&&Q.push(x.error),x.hasOwnProperty("file")&&Q.push(x.file);var fe=["type","error","file"];Object.keys(x).filter(function(Ce){return!fe.includes(Ce)}).forEach(function(Ce){return Q.push(x[Ce])}),ke.fire.apply(ke,[x.type].concat(Q));var ge=f.query("GET_ON"+x.type.toUpperCase());ge&&ge.apply(void 0,Q)},ne=function(x){!x.length||x.filter(function(A){return B[A.type]}).forEach(function(A){var Q=B[A.type];(Array.isArray(Q)?Q:[Q]).forEach(function(fe){"DID_INIT_ITEM"===A.type?$(fe(A.data)):setTimeout(function(){$(fe(A.data))},0)})})},j=function(x){return f.dispatch("SET_OPTIONS",{options:x})},Re=function(x){return f.query("GET_ACTIVE_ITEM",x)},ae=function(x){return new Promise(function(A,Q){f.dispatch("REQUEST_ITEM_PREPARE",{query:x,success:function(ge){A(ge)},failure:function(ge){Q(ge)}})})},Ve=function(x){var A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise(function(Q,fe){te([{source:x,options:A}],{index:A.index}).then(function(ge){return Q(ge&&ge[0])}).catch(fe)})},xe=function(x){return x.file&&x.id},q=function(x,A){return"object"==typeof x&&!xe(x)&&!A&&(A=x,x=void 0),f.dispatch("REMOVE_ITEM",Object.assign({},A,{query:x})),null===f.query("GET_ACTIVE_ITEM",x)},te=function(){for(var x=arguments.length,A=new Array(x),Q=0;Q<x;Q++)A[Q]=arguments[Q];return new Promise(function(fe,ge){var Ce=[],_e={};if(Ao(A[0]))Ce.push.apply(Ce,A[0]),Object.assign(_e,A[1]||{});else{var Oe=A[A.length-1];"object"==typeof Oe&&!(Oe instanceof Blob)&&Object.assign(_e,A.pop()),Ce.push.apply(Ce,A)}f.dispatch("ADD_ITEMS",{items:Ce,index:_e.index,interactionMethod:mn_API,success:fe,failure:ge})})},re=function(){return f.query("GET_ACTIVE_ITEMS")},z=function(x){return new Promise(function(A,Q){f.dispatch("REQUEST_ITEM_PROCESSING",{query:x,success:function(ge){A(ge)},failure:function(ge){Q(ge)}})})},ee=function(){for(var x=arguments.length,A=new Array(x),Q=0;Q<x;Q++)A[Q]=arguments[Q];var fe=Array.isArray(A[0])?A[0]:A,ge=fe.length?fe:re();return Promise.all(ge.map(ae))},oe=function(){for(var x=arguments.length,A=new Array(x),Q=0;Q<x;Q++)A[Q]=arguments[Q];var fe=Array.isArray(A[0])?A[0]:A;if(!fe.length){var ge=re().filter(function(Ce){return!(Ce.status===K.IDLE&&Ce.origin===yt.LOCAL)&&Ce.status!==K.PROCESSING&&Ce.status!==K.PROCESSING_COMPLETE&&Ce.status!==K.PROCESSING_REVERT_ERROR});return Promise.all(ge.map(z))}return Promise.all(fe.map(z))},je=function(){for(var x=arguments.length,A=new Array(x),Q=0;Q<x;Q++)A[Q]=arguments[Q];var ge,fe=Array.isArray(A[0])?A[0]:A;"object"==typeof fe[fe.length-1]?ge=fe.pop():Array.isArray(A[0])&&(ge=A[1]);var Ce=re();return fe.length?fe.map(function(Oe){return ri(Oe)?Ce[Oe]?Ce[Oe].id:null:Oe}).filter(function(Oe){return Oe}).map(function(Oe){return q(Oe,ge)}):Promise.all(Ce.map(function(Oe){return q(Oe,ge)}))},ke=Object.assign({},Ke(),{},H,{},na(f,c),{setOptions:j,addFile:Ve,addFiles:te,getFile:Re,processFile:z,prepareFile:ae,removeFile:q,moveFile:function(x,A){return f.dispatch("MOVE_ITEM",{query:x,index:A})},getFiles:re,processFiles:oe,removeFiles:je,prepareFiles:ee,sort:function(x){return f.dispatch("SORT",{compare:x})},browse:function(){var x=S.element.querySelector("input[type=file]");x&&x.click()},destroy:function(){ke.fire("destroy",S.element),f.dispatch("ABORT_ALL"),S._destroy(),window.removeEventListener("resize",C),document.removeEventListener("visibilitychange",g),f.dispatch("DID_DESTROY")},insertBefore:function(x){return Hu(S.element,x)},insertAfter:function(x){return Uu(S.element,x)},appendTo:function(x){return x.appendChild(S.element)},replaceElement:function(x){Hu(S.element,x),x.parentNode.removeChild(x),a=x},restoreElement:function(){!a||(Uu(a,S.element),S.element.parentNode.removeChild(S.element),a=null)},isAttachedTo:function(x){return S.element===x||a===x},element:{get:function(){return S.element}},status:{get:function(){return f.query("GET_STATUS")}}});return f.dispatch("DID_INIT"),Ge(ke)},Rl=function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a={};return Ee(qt(),function(f,g){a[f]=g[0]}),fo(Object.assign({},a,{},s))},Ol=function(s){return bi(s.replace(/^data-/,""))},Cf=function h(s,a){Ee(a,function(c,f){Ee(s,function(g,y){var v=new RegExp(c);if(v.test(g)&&(delete s[g],!1!==f)){if(Lt(f))return void(s[f]=y);var I=f.group;wt(f)&&!s[I]&&(s[I]={}),s[I][function(s){return s.charAt(0).toLowerCase()+s.slice(1)}(g.replace(v,""))]=y}}),f.mapping&&h(s[f.group],f.mapping)})},Yg=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=[];Ee(s.attributes,function(g){c.push(s.attributes[g])});var f=c.filter(function(g){return g.name}).reduce(function(g,y){var v=Ie(s,y.name);return g[Ol(y.name)]=v===y.name||v,g},{});return Cf(f,a),f},Af=function(s){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c={"^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};st("SET_ATTRIBUTE_TO_OPTION_MAP",c);var f=Object.assign({},a),g=Yg("FIELDSET"===s.nodeName?s.querySelector("input[type=file]"):s,c);Object.keys(g).forEach(function(v){wt(g[v])?(wt(f[v])||(f[v]={}),Object.assign(f[v],g[v])):f[v]=g[v]}),f.files=(a.files||[]).concat(Array.from(s.querySelectorAll("input:not([type=file])")).map(function(v){return{source:v.value,options:{type:v.dataset.type}}}));var y=Rl(f);return s.files&&Array.from(s.files).forEach(function(v){y.addFile(v)}),y.replaceElement(s),y},Mf=function(){return pn(arguments.length<=0?void 0:arguments[0])?Af.apply(void 0,arguments):Rl.apply(void 0,arguments)},Rf=["fire","_read","_write"],Pl=function(s){var a={};return zt(s,a,Rf),a},Qg=function(s,a){return s.replace(/(?:{([a-zA-Z]+)})/g,function(c,f){return a[f]})},tn=function(s){var a=new Blob(["(",s.toString(),")()"],{type:"application/javascript"}),c=URL.createObjectURL(a),f=new Worker(c);return{transfer:function(y,v){},post:function(y,v,_){var I=Y();f.onmessage=function(T){T.data.id===I&&v(T.data.message)},f.postMessage({id:I,message:y},_)},terminate:function(){f.terminate(),URL.revokeObjectURL(c)}}},Of=function(s){return new Promise(function(a,c){var f=new Image;f.onload=function(){a(f)},f.onerror=function(g){c(g)},f.src=s})},Nl=function(s,a){var c=s.slice(0,s.size,s.type);return c.lastModifiedDate=s.lastModifiedDate,c.name=a,c},Pf=function(s){return Nl(s,s.name)},Wa=[],Ht=function(s){Wa.includes(s)||(Wa.push(s),function(s){Object.assign(li,s)}(s({addFilter:$i,utils:{Type:L,forin:Ee,isString:Lt,isFile:Gr,toNaturalFileSize:Me,replaceInString:Qg,getExtensionFromFilename:fa,getFilenameWithoutExtension:Hd,guesstimateMimeType:yf,getFileFromBlob:zi,getFilenameFromURL:jo,createRoute:Ft,createWorker:tn,createView:ht,createItemAPI:Be,loadImage:Of,copyFile:Pf,renameFile:Nl,createBlob:xd,applyFilterChain:Jt,text:Z,getNumericAspectRatioFromString:_n},views:{fileActionButton:F}}).options))},hs=(h=Gt()&&!("[object OperaMini]"===Object.prototype.toString.call(window.operamini))&&"visibilityState"in document&&"Promise"in window&&"slice"in Blob.prototype&&"URL"in window&&"createObjectURL"in window.URL&&"performance"in window&&("supports"in(window.CSS||{})||/MSIE|Trident/.test(window.navigator.userAgent)),function(){return h}),Er={apps:[]},Qr=function(){};if(J.Status={},J.FileStatus={},J.FileOrigin={},J.OptionTypes={},J.create=Qr,J.destroy=Qr,J.parse=Qr,J.find=Qr,J.registerPlugin=Qr,J.getOptions=Qr,J.setOptions=Qr,hs()){!function(s,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:60,f="__framePainter";if(window[f])return window[f].readers.push(s),void window[f].writers.push(a);window[f]={readers:[s],writers:[a]};var g=window[f],y=1e3/c,v=null,_=null,I=null,T=null,C=function(){document.hidden?(I=function(){return window.setTimeout(function(){return S(performance.now())},y)},T=function(){return window.clearTimeout(_)}):(I=function(){return window.requestAnimationFrame(S)},T=function(){return window.cancelAnimationFrame(_)})};document.addEventListener("visibilitychange",function(){T&&T(),C(),S(performance.now())});var S=function N(k){_=I(N),v||(v=k);var H=k-v;H<=y||(v=k-H%y,g.readers.forEach(function(P){return P()}),g.writers.forEach(function(P){return P(k)}))};C(),S(performance.now())}(function(){Er.apps.forEach(function(h){return h._read()})},function(h){Er.apps.forEach(function(s){return s._write(h)})});var Ka=function h(){document.dispatchEvent(new CustomEvent("FilePond:loaded",{detail:{supported:hs,create:J.create,destroy:J.destroy,parse:J.parse,find:J.find,registerPlugin:J.registerPlugin,setOptions:J.setOptions}})),document.removeEventListener("DOMContentLoaded",h)};"loading"!==document.readyState?setTimeout(function(){return Ka()},0):document.addEventListener("DOMContentLoaded",Ka);var kl=function(){return Ee(qt(),function(s,a){J.OptionTypes[s]=a[1]})};J.Status=Object.assign({},dr),J.FileOrigin=Object.assign({},yt),J.FileStatus=Object.assign({},K),J.OptionTypes={},kl(),J.create=function(){var s=Mf.apply(void 0,arguments);return s.on("destroy",J.destroy),Er.apps.push(s),Pl(s)},J.destroy=function(s){var a=Er.apps.findIndex(function(f){return f.isAttachedTo(s)});return a>=0&&(Er.apps.splice(a,1)[0].restoreElement(),!0)},J.parse=function(s){return Array.from(s.querySelectorAll(".filepond")).filter(function(f){return!Er.apps.find(function(g){return g.isAttachedTo(f)})}).map(function(f){return J.create(f)})},J.find=function(s){var a=Er.apps.find(function(c){return c.isAttachedTo(s)});return a?Pl(a):null},J.registerPlugin=function(){for(var s=arguments.length,a=new Array(s),c=0;c<s;c++)a[c]=arguments[c];a.forEach(Ht),kl()},J.getOptions=function(){var s={};return Ee(qt(),function(a,c){s[a]=c[0]}),s},J.setOptions=function(s){return wt(s)&&(Er.apps.forEach(function(a){a.setOptions(s)}),function(s){Ee(s,function(a,c){!li[a]||(li[a][0]=qe(c,li[a][0],li[a][1]))})}(s)),J.getOptions()}}J.supported=hs,Object.defineProperty(J,"__esModule",{value:!0})}(Je)}},lg={};function Pn(ft){var Je=lg[ft];if(void 0!==Je)return Je.exports;var J=lg[ft]={exports:{}};return xD[ft].call(J.exports,J,J.exports,Pn),J.exports}Pn.n=ft=>{var Je=ft&&ft.__esModule?()=>ft.default:()=>ft;return Pn.d(Je,{a:Je}),Je},Pn.d=(ft,Je)=>{for(var J in Je)Pn.o(Je,J)&&!Pn.o(ft,J)&&Object.defineProperty(ft,J,{enumerable:!0,get:Je[J]})},Pn.o=(ft,Je)=>Object.prototype.hasOwnProperty.call(ft,Je),(()=>{"use strict";function ft(t){return"function"==typeof t}let Je=!1;const J={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else Je&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Je=t},get useDeprecatedSynchronousErrorHandling(){return Je}};function pn(t){setTimeout(()=>{throw t},0)}const Nn={closed:!0,next(t){},error(t){if(J.useDeprecatedSynchronousErrorHandling)throw t;pn(t)},complete(){}},Bi=Array.isArray||(t=>t&&"number"==typeof t.length);function Ee(t){return null!==t&&"object"==typeof t}const Ie=(()=>{function t(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return t.prototype=Object.create(Error.prototype),t})();class Ae{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:i,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof Ae)n.remove(this);else if(null!==n)for(let u=0;u<n.length;++u)n[u].remove(this);if(ft(i)){r&&(this._unsubscribe=void 0);try{i.call(this)}catch(u){e=u instanceof Ie?At(u.errors):[u]}}if(Bi(o)){let u=-1,l=o.length;for(;++u<l;){const d=o[u];if(Ee(d))try{d.unsubscribe()}catch(p){e=e||[],p instanceof Ie?e=e.concat(At(p.errors)):e.push(p)}}}if(e)throw new Ie(e)}add(e){let n=e;if(!e)return Ae.EMPTY;switch(typeof e){case"function":n=new Ae(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof Ae)){const o=n;n=new Ae,n._subscriptions=[o]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:r}=n;if(null===r)n._parentOrParents=this;else if(r instanceof Ae){if(r===this)return n;n._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return n;r.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n}remove(e){const n=this._subscriptions;if(n){const r=n.indexOf(e);-1!==r&&n.splice(r,1)}}}var t;function At(t){return t.reduce((e,n)=>e.concat(n instanceof Ie?n.errors:n),[])}Ae.EMPTY=((t=new Ae).closed=!0,t);const Ut="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class et extends Ae{constructor(e,n,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Nn;break;case 1:if(!e){this.destination=Nn;break}if("object"==typeof e){e instanceof et?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new sn(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new sn(this,e,n,r)}}[Ut](){return this}static create(e,n,r){const i=new et(e,n,r);return i.syncErrorThrowable=!1,i}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class sn extends et{constructor(e,n,r,i){super(),this._parentSubscriber=e;let o,u=this;ft(n)?o=n:n&&(o=n.next,r=n.error,i=n.complete,n!==Nn&&(u=Object.create(n),ft(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=o,this._error=r,this._complete=i}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:n}=this;J.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:r}=J;if(this._error)r&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)r?(n.syncErrorValue=e,n.syncErrorThrown=!0):pn(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;pn(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const n=()=>this._complete.call(this._context);J.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,n){try{e.call(this._context,n)}catch(r){if(this.unsubscribe(),J.useDeprecatedSynchronousErrorHandling)throw r;pn(r)}}__tryOrSetError(e,n,r){if(!J.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,r)}catch(i){return J.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=i,e.syncErrorThrown=!0,!0):(pn(i),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Gt="function"==typeof Symbol&&Symbol.observable||"@@observable";function Fn(t){return t}let tt=(()=>{class t{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,i){const{operator:o}=this,u=function gn(t,e,n){if(t){if(t instanceof et)return t;if(t[Ut])return t[Ut]()}return t||e||n?new et(t,e,n):new et(Nn)}(n,r,i);if(u.add(o?o.call(u,this.source):this.source||J.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),J.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u}_trySubscribe(n){try{return this._subscribe(n)}catch(r){J.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=r),function ni(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof et?n:null}return!0}(n)?n.error(r):console.warn(r)}}forEach(n,r){return new(r=zs(r))((i,o)=>{let u;u=this.subscribe(l=>{try{n(l)}catch(d){o(d),u&&u.unsubscribe()}},o,i)})}_subscribe(n){const{source:r}=this;return r&&r.subscribe(n)}[Gt](){return this}pipe(...n){return 0===n.length?this:function Nr(t){return 0===t.length?Fn:1===t.length?t[0]:function(n){return t.reduce((r,i)=>i(r),n)}}(n)(this)}toPromise(n){return new(n=zs(n))((r,i)=>{let o;this.subscribe(u=>o=u,u=>i(u),()=>r(o))})}}return t.create=e=>new t(e),t})();function zs(t){if(t||(t=J.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const ii=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class Fu extends Ae{constructor(e,n){super(),this.subject=e,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,n=e.observers;if(this.subject=null,!n||0===n.length||e.isStopped||e.closed)return;const r=n.indexOf(this.subscriber);-1!==r&&n.splice(r,1)}}class Jc extends et{constructor(e){super(e),this.destination=e}}let So=(()=>{class t extends tt{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Ut](){return new Jc(this)}lift(n){const r=new Lu(this,this);return r.operator=n,r}next(n){if(this.closed)throw new ii;if(!this.isStopped){const{observers:r}=this,i=r.length,o=r.slice();for(let u=0;u<i;u++)o[u].next(n)}}error(n){if(this.closed)throw new ii;this.hasError=!0,this.thrownError=n,this.isStopped=!0;const{observers:r}=this,i=r.length,o=r.slice();for(let u=0;u<i;u++)o[u].error(n);this.observers.length=0}complete(){if(this.closed)throw new ii;this.isStopped=!0;const{observers:n}=this,r=n.length,i=n.slice();for(let o=0;o<r;o++)i[o].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(n){if(this.closed)throw new ii;return super._trySubscribe(n)}_subscribe(n){if(this.closed)throw new ii;return this.hasError?(n.error(this.thrownError),Ae.EMPTY):this.isStopped?(n.complete(),Ae.EMPTY):(this.observers.push(n),new Fu(this,n))}asObservable(){const n=new tt;return n.source=this,n}}return t.create=(e,n)=>new Lu(e,n),t})();class Lu extends So{constructor(e,n){super(),this.destination=e,this.source=n}next(e){const{destination:n}=this;n&&n.next&&n.next(e)}error(e){const{destination:n}=this;n&&n.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:n}=this;return n?this.source.subscribe(e):Ae.EMPTY}}function qs(t){return t&&"function"==typeof t.schedule}function Ws(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new Ys(t,e))}}class Ys{constructor(e,n){this.project=e,this.thisArg=n}call(e,n){return n.subscribe(new ed(e,this.project,this.thisArg))}}class ed extends et{constructor(e,n,r){super(e),this.project=n,this.count=0,this.thisArg=r||this}_next(e){let n;try{n=this.project.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(n)}}const xu=t=>e=>{for(let n=0,r=t.length;n<r&&!e.closed;n++)e.next(t[n]);e.complete()},Co=function nd(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),ku=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Bu(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const Vu=t=>{if(t&&"function"==typeof t[Gt])return(t=>e=>{const n=t[Gt]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if(ku(t))return xu(t);if(Bu(t))return(t=>e=>(t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,pn),e))(t);if(t&&"function"==typeof t[Co])return(t=>e=>{const n=t[Co]();for(;;){let r;try{r=n.next()}catch(i){return e.error(i),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const n=`You provided ${Ee(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function Qs(t,e){return new tt(n=>{const r=new Ae;let i=0;return r.add(e.schedule(function(){i!==t.length?(n.next(t[i++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function Ln(t,e){return e?function Ao(t,e){if(null!=t){if(function Hu(t){return t&&"function"==typeof t[Gt]}(t))return function ju(t,e){return new tt(n=>{const r=new Ae;return r.add(e.schedule(()=>{const i=t[Gt]();r.add(i.subscribe({next(o){r.add(e.schedule(()=>n.next(o)))},error(o){r.add(e.schedule(()=>n.error(o)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(Bu(t))return function ht(t,e){return new tt(n=>{const r=new Ae;return r.add(e.schedule(()=>t.then(i=>{r.add(e.schedule(()=>{n.next(i),r.add(e.schedule(()=>n.complete()))}))},i=>{r.add(e.schedule(()=>n.error(i)))}))),r})}(t,e);if(ku(t))return Qs(t,e);if(function Uu(t){return t&&"function"==typeof t[Co]}(t)||"string"==typeof t)return function Ft(t,e){if(!t)throw new Error("Iterable cannot be null");return new tt(n=>{const r=new Ae;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(e.schedule(()=>{i=t[Co](),r.add(e.schedule(function(){if(n.closed)return;let o,u;try{const l=i.next();o=l.value,u=l.done}catch(l){return void n.error(l)}u?n.complete():(n.next(o),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof tt?t:new tt(Vu(t))}class Gu extends et{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class $u extends et{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Zs(t,e){if(!e.closed)return t instanceof tt?t.subscribe(e):Vu(t)(e)}function Lt(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(Lt((i,o)=>Ln(t(i,o)).pipe(Ws((u,l)=>e(i,u,o,l))),n)):("number"==typeof e&&(n=e),r=>r.lift(new zu(t,n)))}class zu{constructor(e,n=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=n}call(e,n){return n.subscribe(new Mo(e,this.project,this.concurrent))}}class Mo extends $u{constructor(e,n,r=Number.POSITIVE_INFINITY){super(e),this.project=n,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let n;const r=this.index++;try{n=this.project(e,r)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(n)}_innerSub(e){const n=new Gu(this),r=this.destination;r.add(n);const i=Zs(e,n);i!==n&&r.add(i)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function oi(t=Number.POSITIVE_INFINITY){return Lt(Fn,t)}function Xs(t,e){return e?Qs(t,e):new tt(xu(t))}function Fr(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return qs(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof tt?t[0]:oi(e)(Xs(t,n))}function qu(){return function(e){return e.lift(new Wu(e))}}class Wu{constructor(e){this.connectable=e}call(e,n){const{connectable:r}=this;r._refCount++;const i=new ad(e,r),o=n.subscribe(i);return i.closed||(i.connection=r.connect()),o}}class ad extends et{constructor(e,n){super(e),this.connectable=n}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const n=e._refCount;if(n<=0)return void(this.connection=null);if(e._refCount=n-1,n>1)return void(this.connection=null);const{connection:r}=this,i=e._connection;this.connection=null,i&&(!r||i===r)&&i.unsubscribe()}}class ud extends tt{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new Ae,e.add(this.source.subscribe(new cd(this.getSubject(),this))),e.closed&&(this._connection=null,e=Ae.EMPTY)),e}refCount(){return qu()(this)}}const ld=(()=>{const t=ud.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class cd extends Jc{constructor(e,n){super(e),this.connectable=n}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const n=e._connection;e._refCount=0,e._subject=null,e._connection=null,n&&n.unsubscribe()}}}class fd{constructor(e,n){this.subjectFactory=e,this.selector=n}call(e,n){const{selector:r}=this,i=this.subjectFactory(),o=r(i).subscribe(e);return o.add(n.subscribe(i)),o}}function hd(){return new So}function qe(t){for(let e in t)if(t[e]===qe)return e;throw Error("Could not find renamed property on target object.")}function $e(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map($e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function ta(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Ro=qe({__forward_ref__:qe});function na(t){return t.__forward_ref__=na,t.toString=function(){return $e(this())},t}function ve(t){return function Yu(t){return"function"==typeof t&&t.hasOwnProperty(Ro)&&t.__forward_ref__===na}(t)?t():t}class Y extends Error{constructor(e,n){super(function Vi(t,e){return`NG0${Math.abs(t)}${e?": "+e:""}`}(e,n)),this.code=e}}function Mt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():function de(t){return"string"==typeof t?t:null==t?"":String(t)}(t)}function ra(t,e){const n=e?` in ${e}`:"";throw new Y(-201,`No provider for ${Mt(t)} found${n}`)}function un(t,e){null==t&&function ze(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}(e,t,null,"!=")}function Ye(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ur(t){return{providers:t.providers||[],imports:t.imports||[]}}function ji(t){return Ed(t,aa)||Ed(t,Ku)}function Ed(t,e){return t.hasOwnProperty(e)?t[e]:null}function _d(t){return t&&(t.hasOwnProperty(ua)||t.hasOwnProperty(Dd))?t[ua]:null}const aa=qe({\u0275prov:qe}),ua=qe({\u0275inj:qe}),Ku=qe({ngInjectableDef:qe}),Dd=qe({ngInjectorDef:qe});var me=(()=>((me=me||{})[me.Default=0]="Default",me[me.Host=1]="Host",me[me.Self=2]="Self",me[me.SkipSelf=4]="SkipSelf",me[me.Optional=8]="Optional",me))();let No;function yn(t){const e=No;return No=t,e}function Id(t,e,n){const r=ji(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&me.Optional?null:void 0!==e?e:void ra($e(t),"Injector")}function Lr(t){return{toString:t}.toString()}var xn=(()=>((xn=xn||{})[xn.OnPush=0]="OnPush",xn[xn.Default=1]="Default",xn))(),vn=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(vn||(vn={})),vn))();const pg="undefined"!=typeof globalThis&&globalThis,gg="undefined"!=typeof window&&window,Td="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,We=pg||"undefined"!=typeof global&&global||gg||Td,si={},Qe=[],Fo=qe({\u0275cmp:qe}),Hi=qe({\u0275dir:qe}),Xu=qe({\u0275pipe:qe}),Ju=qe({\u0275mod:qe}),kn=qe({\u0275fac:qe}),Lo=qe({__NG_ELEMENT_ID__:qe});let mg=0;function ca(t){return Lr(()=>{const n={},r={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===xn.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||Qe,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||vn.Emulated,id:"c",styles:t.styles||Qe,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,o=t.features,u=t.pipes;return r.id+=mg++,r.inputs=Rd(t.inputs,n),r.outputs=Rd(t.outputs),o&&o.forEach(l=>l(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(Cd):null,r.pipeDefs=u?()=>("function"==typeof u?u():u).map(Ad):null,r})}function Cd(t){return Rt(t)||function xr(t){return t[Hi]||null}(t)}function Ad(t){return function lr(t){return t[Xu]||null}(t)}const Md={};function ai(t){return Lr(()=>{const e={type:t.type,bootstrap:t.bootstrap||Qe,declarations:t.declarations||Qe,imports:t.imports||Qe,exports:t.exports||Qe,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(Md[t.id]=t.type),e})}function Rd(t,e){if(null==t)return si;const n={};for(const r in t)if(t.hasOwnProperty(r)){let i=t[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,e&&(e[i]=o)}return n}function Rt(t){return t[Fo]||null}function ln(t,e){const n=t[Ju]||null;if(!n&&!0===e)throw new Error(`Type ${$e(t)} does not have '\u0275mod' property.`);return n}function _n(t){return Array.isArray(t)&&"object"==typeof t[1]}function at(t){return Array.isArray(t)&&!0===t[1]}function dr(t){return 0!=(8&t.flags)}function Bo(t){return 2==(2&t.flags)}function Vo(t){return 1==(1&t.flags)}function Dn(t){return null!==t.template}function Od(t){return 0!=(512&t[2])}function Hr(t,e){return t.hasOwnProperty(kn)?t[kn]:null}class tl{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function ci(){return Uo}function Uo(t){return t.type.prototype.ngOnChanges&&(t.setInput=nl),kd}function kd(){const t=ut(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===si)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function nl(t,e,n,r){const i=ut(t)||function Ur(t,e){return t[fr]=e}(t,{previous:si,current:null}),o=i.current||(i.current={}),u=i.previous,l=this.declaredInputs[n],d=u[l];o[l]=new tl(d&&d.currentValue,e,u===si),t[r]=e}ci.ngInherit=!0;const fr="__ngSimpleChanges__";function ut(t){return t[fr]||null}let $o;function it(t){return!!t.listen}const Gr={createRenderer:(t,e)=>function ma(){return void 0!==$o?$o:"undefined"!=typeof document?document:void 0}()};function pt(t){for(;Array.isArray(t);)t=t[0];return t}function Qt(t,e){return pt(e[t.index])}function di(t,e){return t.data[e]}function kt(t,e){const n=e[t];return _n(n)?n:n[0]}function ya(t){return 4==(4&t[2])}function Qi(t){return 128==(128&t[2])}function hr(t,e){return null==e?null:t[e]}function zo(t){t[18]=0}function In(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const Z={lFrame:wa(null),bindingsEnabled:!0};function Ea(){return Z.bindingsEnabled}function F(){return Z.lFrame.lView}function Me(){return Z.lFrame.tView}function gt(){let t=_a();for(;null!==t&&64===t.type;)t=t.parent;return t}function _a(){return Z.lFrame.currentTNode}function Bn(t,e){const n=Z.lFrame;n.currentTNode=t,n.isParent=e}function qo(){return Z.lFrame.isParent}function gi(t,e){const n=Z.lFrame;n.bindingIndex=n.bindingRootIndex=t,Vt(e)}function Vt(t){Z.lFrame.currentDirectiveIndex=t}function Xi(){return Z.lFrame.currentQueryIndex}function Ta(t){Z.lFrame.currentQueryIndex=t}function Xd(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function sl(t,e,n){if(n&me.SkipSelf){let i=e,o=t;for(;!(i=i.parent,null!==i||n&me.Host||(i=Xd(o),null===i||(o=o[15],10&i.type))););if(null===i)return!1;e=i,t=o}const r=Z.lFrame=al();return r.currentTNode=e,r.lView=t,!0}function Ji(t){const e=al(),n=t[1];Z.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function al(){const t=Z.lFrame,e=null===t?null:t.child;return null===e?wa(t):e}function wa(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function Yo(){const t=Z.lFrame;return Z.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const $r=Yo;function Qo(){const t=Yo();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function pr(t){Z.lFrame.selectedIndex=t}function eo(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const o=t.data[n].type.prototype,{ngAfterContentInit:u,ngAfterContentChecked:l,ngAfterViewInit:d,ngAfterViewChecked:p,ngOnDestroy:m}=o;u&&(t.contentHooks||(t.contentHooks=[])).push(-n,u),l&&((t.contentHooks||(t.contentHooks=[])).push(n,l),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,l)),d&&(t.viewHooks||(t.viewHooks=[])).push(-n,d),p&&((t.viewHooks||(t.viewHooks=[])).push(n,p),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,p)),null!=m&&(t.destroyHooks||(t.destroyHooks=[])).push(n,m)}}function Ko(t,e,n){ba(t,e,3,n)}function to(t,e,n,r){(3&t[2])===n&&ba(t,e,n,r)}function Zo(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function ba(t,e,n,r){const o=null!=r?r:-1,u=e.length-1;let l=0;for(let d=void 0!==r?65535&t[18]:0;d<u;d++)if("number"==typeof e[d+1]){if(l=e[d],null!=r&&l>=r)break}else e[d]<0&&(t[18]+=65536),(l<o||-1==o)&&(af(t,n,e,d),t[18]=(4294901760&t[18])+d+2),d++}function af(t,e,n,r){const i=n[r]<0,o=n[r+1],l=t[i?-n[r]:n[r]];if(i){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{o.call(l)}finally{}}}else try{o.call(l)}finally{}}class no{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function mi(t,e,n){const r=it(t);let i=0;for(;i<n.length;){const o=n[i];if("number"==typeof o){if(0!==o)break;i++;const u=n[i++],l=n[i++],d=n[i++];r?t.setAttribute(e,l,d,u):e.setAttributeNS(u,l,d)}else{const u=o,l=n[++i];Aa(u)?r&&t.setProperty(e,u,l):r?t.setAttribute(e,u,l):e.setAttribute(u,l),i++}}return i}function cl(t){return 3===t||4===t||6===t}function Aa(t){return 64===t.charCodeAt(0)}function Xo(t,e){if(null!==e&&0!==e.length)if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const i=e[r];"number"==typeof i?n=i:0===n||dl(t,n,i,null,-1===n||2===n?e[++r]:null)}}return t}function dl(t,e,n,r,i){let o=0,u=t.length;if(-1===e)u=-1;else for(;o<t.length;){const l=t[o++];if("number"==typeof l){if(l===e){u=-1;break}if(l>e){u=o-1;break}}}for(;o<t.length;){const l=t[o];if("number"==typeof l)break;if(l===n){if(null===r)return void(null!==i&&(t[o+1]=i));if(r===t[o+1])return void(t[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==u&&(t.splice(u,0,e),o=u+1),t.splice(o++,0,n),null!==r&&t.splice(o++,0,r),null!==i&&t.splice(o++,0,i)}function fl(t){return-1!==t}function yi(t){return 32767&t}function vi(t,e){let n=function cf(t){return t>>16}(t),r=e;for(;n>0;)r=r[15],n--;return r}let Ma=!0;function Jo(t){const e=Ma;return Ma=t,e}let df=0;function Ei(t,e){const n=ts(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,es(r.data,t),es(e,null),es(r.blueprint,null));const i=_i(t,e),o=t.injectorIndex;if(fl(i)){const u=yi(i),l=vi(i,e),d=l[1].data;for(let p=0;p<8;p++)e[o+p]=l[u+p]|d[u+p]}return e[o+8]=i,o}function es(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ts(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function _i(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;null!==i;){const o=i[1],u=o.type;if(r=2===u?o.declTNode:1===u?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function ro(t,e,n){!function ff(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Lo)&&(r=n[Lo]),null==r&&(r=n[Lo]=df++);const i=255&r;e.data[t+(i>>5)]|=1<<i}(t,e,n)}function Ra(t,e,n){if(n&me.Optional)return t;ra(e,"NodeInjector")}function gl(t,e,n,r){if(n&me.Optional&&void 0===r&&(r=null),0==(n&(me.Self|me.Host))){const i=t[9],o=yn(void 0);try{return i?i.get(e,r,n&me.Optional):Id(e,r,n&me.Optional)}finally{yn(o)}}return Ra(r,e,n)}function ml(t,e,n,r=me.Default,i){if(null!==t){const o=function pf(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(Lo)?t[Lo]:void 0;return"number"==typeof e?e>=0?255&e:hf:e}(n);if("function"==typeof o){if(!sl(e,t,r))return r&me.Host?Ra(i,n,r):gl(e,n,r,i);try{const u=o(r);if(null!=u||r&me.Optional)return u;ra(n)}finally{$r()}}else if("number"==typeof o){let u=null,l=ts(t,e),d=-1,p=r&me.Host?e[16][6]:null;for((-1===l||r&me.SkipSelf)&&(d=-1===l?_i(t,e):e[l+8],-1!==d&&El(r,!1)?(u=e[1],l=yi(d),e=vi(d,e)):l=-1);-1!==l;){const m=e[1];if(vl(o,l,m.data)){const E=yl(l,e,n,u,r,p);if(E!==Oa)return E}d=e[l+8],-1!==d&&El(r,e[1].data[l+8]===p)&&vl(o,l,e)?(u=m,l=yi(d),e=vi(d,e)):l=-1}}}return gl(e,n,r,i)}const Oa={};function hf(){return new Di(gt(),F())}function yl(t,e,n,r,i,o){const u=e[1],l=u.data[t+8],m=ns(l,u,n,null==r?Bo(l)&&Ma:r!=u&&0!=(3&l.type),i&me.Host&&o===l);return null!==m?io(e,u,m,l):Oa}function ns(t,e,n,r,i){const o=t.providerIndexes,u=e.data,l=1048575&o,d=t.directiveStart,m=o>>20,D=i?l+m:t.directiveEnd;for(let w=r?l:l+m;w<D;w++){const b=u[w];if(w<d&&n===b||w>=d&&b.type===n)return w}if(i){const w=u[d];if(w&&Dn(w)&&w.type===n)return d}return null}function io(t,e,n,r){let i=t[n];const o=e.data;if(function uf(t){return t instanceof no}(i)){const u=i;u.resolving&&function cg(t,e){const n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new Y(-200,`Circular dependency in DI detected for ${t}${n}`)}(Mt(o[n]));const l=Jo(u.canSeeViewProviders);u.resolving=!0;const d=u.injectImpl?yn(u.injectImpl):null;sl(t,r,me.Default);try{i=t[n]=u.factory(void 0,o,t,r),e.firstCreatePass&&n>=r.directiveStart&&function sf(t,e,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:o}=e.type.prototype;if(r){const u=Uo(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,u),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,u)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==d&&yn(d),Jo(l),u.resolving=!1,$r()}}return i}function vl(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function El(t,e){return!(t&me.Self||t&me.Host&&e)}class Di{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return ml(this._tNode,this._lView,e,r,n)}}class Fe{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=Ye({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}function fn(t,e){void 0===e&&(e=t);for(let n=0;n<t.length;n++){let r=t[n];Array.isArray(r)?(e===t&&(e=t.slice(0,n)),fn(r,e)):e!==t&&e.push(r)}return e}function Tn(t,e){t.forEach(n=>Array.isArray(n)?Tn(n,e):e(n))}function rs(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function is(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}const uo={},lo="ngTempTokenPath",ja=/\n/gm,wl="__source",bl=qe({provide:String,useValue:qe});let wi;function Sl(t){const e=wi;return wi=t,e}function Tf(t,e=me.Default){if(void 0===wi)throw new Y(203,"");return null===wi?Id(t,void 0,e):wi.get(t,e&me.Optional?null:void 0,e)}function Se(t,e=me.Default){return(function la(){return No}()||Tf)(ve(t),e)}const ls=Se;function Ua(t){const e=[];for(let n=0;n<t.length;n++){const r=ve(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Y(900,"");let i,o=me.Default;for(let u=0;u<r.length;u++){const l=r[u],d=Cl(l);"number"==typeof d?-1===d?i=l.token:o|=d:i=l}e.push(Se(i,o))}else e.push(Se(r))}return e}function Cl(t){return t.__NG_DI_FLAG__}var tn=(()=>((tn=tn||{})[tn.Important=1]="Important",tn[tn.DashCase=2]="DashCase",tn))();const Ll="__ngContext__";function Ot(t,e){t[Ll]=e}function Qa(t){const e=function ho(t){return t[Ll]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function a(t,e){return undefined(t,e)}function g(t){const e=t[3];return at(e)?e[3]:e}function _(t){return T(t[13])}function I(t){return T(t[4])}function T(t){for(;null!==t&&!at(t);)t=t[4];return t}function S(t,e,n,r,i){if(null!=r){let o,u=!1;at(r)?o=r:_n(r)&&(u=!0,r=r[0]);const l=pt(r);0===t&&null!==n?null==i?ke(e,n,l):je(e,n,l,i||null,!0):1===t&&null!==n?je(e,n,l,i||null,!0):2===t?function ps(t,e,n){const r=A(t,e);r&&function x(t,e,n,r){it(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,l,u):3===t&&e.destroyNode(l),null!=o&&function jl(t,e,n,r,i){const o=n[7];o!==pt(n)&&S(e,t,r,o,i);for(let l=10;l<n.length;l++){const d=n[l];po(d[1],d,t,e,r,o)}}(e,t,o,n,i)}}function P(t,e,n){if(it(t))return t.createElement(e,n);{const r=null!==n?function Wi(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(n):null;return null===r?t.createElement(e):t.createElementNS(r,e)}}function Ve(t,e){const n=t[9],r=n.indexOf(e),i=e[3];1024&e[2]&&(e[2]&=-1025,In(i,-1)),n.splice(r,1)}function xe(t,e){if(t.length<=10)return;const n=10+e,r=t[n];if(r){const i=r[17];null!==i&&i!==t&&Ve(i,r),e>0&&(t[n-1][4]=r[4]);const o=is(t,10+e);!function B(t,e){po(t,e,e[11],2,null,null),e[0]=null,e[6]=null}(r[1],r);const u=o[19];null!==u&&u.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function q(t,e){if(!(256&e[2])){const n=e[11];it(n)&&n.destroyNode&&po(t,e,n,3,null,null),function j(t){let e=t[13];if(!e)return te(t[1],t);for(;e;){let n=null;if(_n(e))n=e[13];else{const r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)_n(e)&&te(e[1],e),e=e[3];null===e&&(e=t),_n(e)&&te(e[1],e),n=e&&e[4]}e=n}}(e)}}function te(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function z(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r<n.length;r+=2){const i=e[n[r]];if(!(i instanceof no)){const o=n[r+1];if(Array.isArray(o))for(let u=0;u<o.length;u+=2){const l=i[o[u]],d=o[u+1];try{d.call(l)}finally{}}else try{o.call(i)}finally{}}}}(t,e),function re(t,e){const n=t.cleanup,r=e[7];let i=-1;if(null!==n)for(let o=0;o<n.length-1;o+=2)if("string"==typeof n[o]){const u=n[o+1],l="function"==typeof u?u(e):pt(e[u]),d=r[i=n[o+2]],p=n[o+3];"boolean"==typeof p?l.removeEventListener(n[o],d,p):p>=0?r[i=p]():r[i=-p].unsubscribe(),o+=2}else{const u=r[i=n[o+1]];n[o].call(u)}if(null!==r){for(let o=i+1;o<r.length;o++)r[o]();e[7]=null}}(t,e),1===e[1].type&&it(e[11])&&e[11].destroy();const n=e[17];if(null!==n&&at(e[3])){n!==e[3]&&Ve(n,e);const r=e[19];null!==r&&r.detachView(t)}}}function ee(t,e,n){return function oe(t,e,n){let r=e;for(;null!==r&&40&r.type;)r=(e=r).parent;if(null===r)return n[0];if(2&r.flags){const i=t.data[r.directiveStart].encapsulation;if(i===vn.None||i===vn.Emulated)return null}return Qt(r,n)}(t,e.parent,n)}function je(t,e,n,r,i){it(t)?t.insertBefore(e,n,r,i):e.insertBefore(n,r,i)}function ke(t,e,n){it(t)?t.appendChild(e,n):e.appendChild(n)}function se(t,e,n,r,i){null!==r?je(t,e,n,r,i):ke(t,e,n)}function A(t,e){return it(t)?t.parentNode(e):e.parentNode}let Ce=function ge(t,e,n){return 40&t.type?Qt(t,n):null};function Kn(t,e,n,r){const i=ee(t,r,e),o=e[11],l=function fe(t,e,n){return Ce(t,e,n)}(r.parent||e[6],r,e);if(null!=i)if(Array.isArray(n))for(let d=0;d<n.length;d++)se(o,i,n[d],l,!1);else se(o,i,n,l,!1)}function _r(t,e){if(null!==e){const n=e.type;if(3&n)return Qt(e,t);if(4&n)return Za(-1,t[e.index]);if(8&n){const r=e.child;if(null!==r)return _r(t,r);{const i=t[e.index];return at(i)?Za(-1,i):pt(i)}}if(32&n)return a(e,t)()||pt(t[e.index]);{const r=Bl(t,e);return null!==r?Array.isArray(r)?r[0]:_r(g(t[16]),r):_r(t,e.next)}}return null}function Bl(t,e){return null!==e?t[16][6].projection[e.projection]:null}function Za(t,e){const n=10+t+1;if(n<e.length){const r=e[n],i=r[1].firstChild;if(null!==i)return _r(r,i)}return e[7]}function Xa(t,e,n,r,i,o,u){for(;null!=n;){const l=r[n.index],d=n.type;if(u&&0===e&&(l&&Ot(pt(l),r),n.flags|=4),64!=(64&n.flags))if(8&d)Xa(t,e,n.child,r,i,o,!1),S(e,t,i,l,o);else if(32&d){const p=a(n,r);let m;for(;m=p();)S(e,t,i,m,o);S(e,t,i,l,o)}else 16&d?Vl(t,e,r,n,i,o):S(e,t,i,l,o);n=u?n.projectionNext:n.next}}function po(t,e,n,r,i,o){Xa(n,r,t.firstChild,e,i,o,!1)}function Vl(t,e,n,r,i,o){const u=n[16],d=u[6].projection[r.projection];if(Array.isArray(d))for(let p=0;p<d.length;p++)S(e,t,i,d[p],o);else Xa(t,e,d,u[3],i,o,!0)}function Ja(t,e,n){it(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function eu(t,e,n){it(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function Hf(t){return t.ngOriginalError}function EI(t,...e){t.error(...e)}class ou{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e),r=function vI(t){return t&&t.ngErrorLogger||EI}(e);r(this._console,"ERROR",e),n&&r(this._console,"ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&Hf(e);for(;n&&Hf(n);)n=Hf(n);return n||null}}const SI=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(We))();function Tr(t){return t instanceof Function?t():t}function cm(t,e,n){let r=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const o=e.length;if(i+o===r||t.charCodeAt(i+o)<=32)return i}n=i+1}}const dm="ng-template";function RI(t,e,n){let r=0;for(;r<t.length;){let i=t[r++];if(n&&"class"===i){if(i=t[r],-1!==cm(i.toLowerCase(),e,0))return!0}else if(1===i){for(;r<t.length&&"string"==typeof(i=t[r++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function fm(t){return 4===t.type&&t.value!==dm}function OI(t,e,n){return e===(4!==t.type||n?t.value:dm)}function PI(t,e,n){let r=4;const i=t.attrs||[],o=function LI(t){for(let e=0;e<t.length;e++)if(cl(t[e]))return e;return t.length}(i);let u=!1;for(let l=0;l<e.length;l++){const d=e[l];if("number"!=typeof d){if(!u)if(4&r){if(r=2|1&r,""!==d&&!OI(t,d,n)||""===d&&1===e.length){if(Jn(r))return!1;u=!0}}else{const p=8&r?d:e[++l];if(8&r&&null!==t.attrs){if(!RI(t.attrs,p,n)){if(Jn(r))return!1;u=!0}continue}const E=NI(8&r?"class":d,i,fm(t),n);if(-1===E){if(Jn(r))return!1;u=!0;continue}if(""!==p){let D;D=E>o?"":i[E+1].toLowerCase();const w=8&r?D:null;if(w&&-1!==cm(w,p,0)||2&r&&p!==D){if(Jn(r))return!1;u=!0}}}}else{if(!u&&!Jn(r)&&!Jn(d))return!1;if(u&&Jn(d))continue;u=!1,r=d|1&r}}return Jn(r)||u}function Jn(t){return 0==(1&t)}function NI(t,e,n,r){if(null===e)return-1;let i=0;if(r||!n){let o=!1;for(;i<e.length;){const u=e[i];if(u===t)return i;if(3===u||6===u)o=!0;else{if(1===u||2===u){let l=e[++i];for(;"string"==typeof l;)l=e[++i];continue}if(4===u)break;if(0===u){i+=4;continue}}i+=o?1:2}return-1}return function xI(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const r=t[n];if("number"==typeof r)return-1;if(r===e)return n;n++}return-1}(e,t)}function hm(t,e,n=!1){for(let r=0;r<e.length;r++)if(PI(t,e[r],n))return!0;return!1}function pm(t,e){return t?":not("+e.trim()+")":e}function BI(t){let e=t[0],n=1,r=2,i="",o=!1;for(;n<t.length;){let u=t[n];if("string"==typeof u)if(2&r){const l=t[++n];i+="["+u+(l.length>0?'="'+l+'"':"")+"]"}else 8&r?i+="."+u:4&r&&(i+=" "+u);else""!==i&&!Jn(u)&&(e+=pm(o,i),i=""),r=u,o=o||!Jn(r);n++}return""!==i&&(e+=pm(o,i)),e}const ye={};function Sm(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],o=n[r+1];if(-1!==o){const u=t.data[o];Ta(i),u.contentQueries(2,e[o],o)}}}function su(t,e,n,r,i,o,u,l,d,p){const m=e.blueprint.slice();return m[0]=i,m[2]=140|r,zo(m),m[3]=m[15]=t,m[8]=n,m[10]=u||t&&t[10],m[11]=l||t&&t[11],m[12]=d||t&&t[12]||null,m[9]=p||t&&t[9]||null,m[6]=o,m[16]=2==e.type?t[16]:m,m}function ms(t,e,n,r,i){let o=t.data[e];if(null===o)o=function Jf(t,e,n,r,i){const o=_a(),u=qo(),d=t.data[e]=function rT(t,e,n,r,i,o){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:o,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,u?o:o&&o.parent,n,e,r,i);return null===t.firstChild&&(t.firstChild=d),null!==o&&(u?null==o.child&&null!==d.parent&&(o.child=d):null===o.next&&(o.next=d)),d}(t,e,n,r,i),function Zi(){return Z.lFrame.inI18n}()&&(o.flags|=64);else if(64&o.type){o.type=n,o.value=r,o.attrs=i;const u=function hi(){const t=Z.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();o.injectorIndex=null===u?-1:u.injectorIndex}return Bn(o,!0),o}function ys(t,e,n,r){if(0===n)return-1;const i=e.length;for(let o=0;o<n;o++)e.push(r),t.blueprint.push(r),t.data.push(null);return i}function au(t,e,n){Ji(e);try{const r=t.viewQuery;null!==r&&uh(1,r,n);const i=t.template;null!==i&&Cm(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Sm(t,e),t.staticViewQueries&&uh(2,t.viewQuery,n);const o=t.components;null!==o&&function eT(t,e){for(let n=0;n<e.length;n++)DT(t,e[n])}(e,o)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[2]&=-5,Qo()}}function vs(t,e,n,r){const i=e[2];if(256!=(256&i)){Ji(e);try{zo(e),function il(t){return Z.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==n&&Cm(t,e,n,2,r);const u=3==(3&i);if(u){const p=t.preOrderCheckHooks;null!==p&&Ko(e,p,null)}else{const p=t.preOrderHooks;null!==p&&to(e,p,0,null),Zo(e,0)}if(function ET(t){for(let e=_(t);null!==e;e=I(e)){if(!e[2])continue;const n=e[9];for(let r=0;r<n.length;r++){const i=n[r],o=i[3];0==(1024&i[2])&&In(o,1),i[2]|=1024}}}(e),function vT(t){for(let e=_(t);null!==e;e=I(e))for(let n=10;n<e.length;n++){const r=e[n],i=r[1];Qi(r)&&vs(i,r,i.template,r[8])}}(e),null!==t.contentQueries&&Sm(t,e),u){const p=t.contentCheckHooks;null!==p&&Ko(e,p)}else{const p=t.contentHooks;null!==p&&to(e,p,1),Zo(e,1)}!function XI(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const i=n[r];if(i<0)pr(~i);else{const o=i,u=n[++r],l=n[++r];gi(u,o),l(2,e[o])}}}finally{pr(-1)}}(t,e);const l=t.components;null!==l&&function JI(t,e){for(let n=0;n<e.length;n++)_T(t,e[n])}(e,l);const d=t.viewQuery;if(null!==d&&uh(2,d,r),u){const p=t.viewCheckHooks;null!==p&&Ko(e,p)}else{const p=t.viewHooks;null!==p&&to(e,p,2),Zo(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,In(e[3],-1))}finally{Qo()}}}function tT(t,e,n,r){const i=e[10],u=ya(e);try{!u&&i.begin&&i.begin(),u&&au(t,e,r),vs(t,e,n,r)}finally{!u&&i.end&&i.end()}}function Cm(t,e,n,r,i){const o=function jt(){return Z.lFrame.selectedIndex}(),u=2&r;try{pr(-1),u&&e.length>20&&function gm(t,e,n,r){if(!r)if(3==(3&e[2])){const o=t.preOrderCheckHooks;null!==o&&Ko(e,o,n)}else{const o=t.preOrderHooks;null!==o&&to(e,o,0,n)}pr(n)}(t,e,20,!1),n(r,i)}finally{pr(o)}}function Mm(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Wl(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Wl(t,e,n,r,i,o,u,l,d,p){const m=20+r,E=m+i,D=function nT(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:ye);return n}(m,E),w="function"==typeof p?p():p;return D[1]={type:t,blueprint:D,template:n,queries:null,viewQuery:l,declTNode:e,data:D.slice().fill(null,m),bindingStartIndex:m,expandoStartIndex:E,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof u?u():u,firstChild:null,schemas:d,consts:w,incompleteFirstPass:!1}}function Pm(t,e,n,r){const i=Um(e);null===n?i.push(r):(i.push(n),t.firstCreatePass&&Gm(t).push(r,i.length-1))}function Nm(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const i=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,i):n[r]=[e,i]}return n}function Lm(t,e,n,r,i,o){const u=o.hostBindings;if(u){let l=t.hostBindingOpCodes;null===l&&(l=t.hostBindingOpCodes=[]);const d=~e.index;(function lT(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(l)!=d&&l.push(d),l.push(r,i,u)}}function xm(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function km(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function pT(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;Dn(e)&&(n[""]=t)}}function Bm(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Vm(t,e,n,r,i){t.data[r]=i;const o=i.factory||(i.factory=Hr(i.type)),u=new no(o,Dn(i),null);t.blueprint[r]=u,n[r]=u,Lm(t,e,0,r,ys(t,n,i.hostVars,ye),i)}function gT(t,e,n){const r=Qt(e,t),i=Mm(n),o=t[10],u=Yl(t,su(t,i,null,n.onPush?64:16,r,e,o,o.createRenderer(r,n),null,null));t[e.index]=u}function mT(t,e,n,r,i,o){const u=o[e];if(null!==u){const l=r.setInput;for(let d=0;d<u.length;){const p=u[d++],m=u[d++],E=u[d++];null!==l?r.setInput(n,E,p,m):n[m]=E}}}function yT(t,e){let n=null,r=0;for(;r<e.length;){const i=e[r];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,t[i],e[r+1])),r+=2}else r+=2;else r+=4}return n}function _T(t,e){const n=kt(e,t);if(Qi(n)){const r=n[1];80&n[2]?vs(r,n,r.template,n[8]):n[5]>0&&ih(n)}}function ih(t){for(let r=_(t);null!==r;r=I(r))for(let i=10;i<r.length;i++){const o=r[i];if(1024&o[2]){const u=o[1];vs(u,o,u.template,o[8])}else o[5]>0&&ih(o)}const n=t[1].components;if(null!==n)for(let r=0;r<n.length;r++){const i=kt(n[r],t);Qi(i)&&i[5]>0&&ih(i)}}function DT(t,e){const n=kt(e,t),r=n[1];(function IT(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])})(r,n),au(r,n,n[8])}function Yl(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function oh(t){for(;t;){t[2]|=64;const e=g(t);if(Od(t)&&!e)return t;t=e}return null}function Hm(t){!function sh(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=Qa(n),i=r[1];tT(i,r,i.template,n)}}(t[8])}function uh(t,e,n){Ta(0),e(t,n)}const wT=(()=>Promise.resolve(null))();function Um(t){return t[7]||(t[7]=[])}function Gm(t){return t.cleanup||(t.cleanup=[])}function zm(t,e){const n=t[9],r=n?n.get(ou,null):null;r&&r.handleError(e)}function qm(t,e,n,r,i){for(let o=0;o<n.length;){const u=n[o++],l=n[o++],d=e[u],p=t.data[u];null!==p.setInput?p.setInput(d,i,r,l):d[l]=i}}function Ql(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,o=0;if(null!==e)for(let u=0;u<e.length;u++){const l=e[u];"number"==typeof l?o=l:1==o?i=ta(i,l):2==o&&(r=ta(r,l+": "+e[++u]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}const lh=new Fe("INJECTOR",-1);class Wm{get(e,n=uo){if(n===uo){const r=new Error(`NullInjectorError: No provider for ${$e(e)}!`);throw r.name="NullInjectorError",r}return n}}const ch=new Fe("Set Injector scope."),uu={},CT={};let dh;function Ym(){return void 0===dh&&(dh=new Wm),dh}function Qm(t,e=null,n=null,r){const i=Km(t,e,n,r);return i._resolveInjectorDefTypes(),i}function Km(t,e=null,n=null,r){return new AT(t,n,e||Ym(),r)}class AT{constructor(e,n,r,i=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const o=[];n&&Tn(n,l=>this.processProvider(l,e,n)),Tn([e],l=>this.processInjectorType(l,[],o)),this.records.set(lh,Es(void 0,this));const u=this.records.get(ch);this.scope=null!=u?u.value:null,this.source=i||("object"==typeof e?null:$e(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,n=uo,r=me.Default){this.assertNotDestroyed();const i=Sl(this),o=yn(void 0);try{if(!(r&me.SkipSelf)){let l=this.records.get(e);if(void 0===l){const d=function xT(t){return"function"==typeof t||"object"==typeof t&&t instanceof Fe}(e)&&ji(e);l=d&&this.injectableDefInScope(d)?Es(fh(e),uu):null,this.records.set(e,l)}if(null!=l)return this.hydrate(e,l)}return(r&me.Self?Ym():this.parent).get(e,n=r&me.Optional&&n===uo?null:n)}catch(u){if("NullInjectorError"===u.name){if((u[lo]=u[lo]||[]).unshift($e(e)),i)throw u;return function wf(t,e,n,r){const i=t[lo];throw e[wl]&&i.unshift(e[wl]),t.message=function cs(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=$e(e);if(Array.isArray(e))i=e.map($e).join(" -> ");else if("object"==typeof e){let o=[];for(let u in e)if(e.hasOwnProperty(u)){let l=e[u];o.push(u+":"+("string"==typeof l?JSON.stringify(l):$e(l)))}i=`{${o.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(ja,"\n ")}`}("\n"+t.message,i,n,r),t.ngTokenPath=i,t[lo]=null,t}(u,e,"R3InjectorError",this.source)}throw u}finally{yn(o),Sl(i)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((r,i)=>e.push($e(i))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Y(205,!1)}processInjectorType(e,n,r){if(!(e=ve(e)))return!1;let i=_d(e);const o=null==i&&e.ngModule||void 0,u=void 0===o?e:o,l=-1!==r.indexOf(u);if(void 0!==o&&(i=_d(o)),null==i)return!1;if(null!=i.imports&&!l){let m;r.push(u);try{Tn(i.imports,E=>{this.processInjectorType(E,n,r)&&(void 0===m&&(m=[]),m.push(E))})}finally{}if(void 0!==m)for(let E=0;E<m.length;E++){const{ngModule:D,providers:w}=m[E];Tn(w,b=>this.processProvider(b,D,w||Qe))}}this.injectorDefTypes.add(u);const d=Hr(u)||(()=>new u);this.records.set(u,Es(d,uu));const p=i.providers;if(null!=p&&!l){const m=e;Tn(p,E=>this.processProvider(E,m,p))}return void 0!==o&&void 0!==e.providers}processProvider(e,n,r){let i=_s(e=ve(e))?e:ve(e&&e.provide);const o=function RT(t,e,n){return Xm(t)?Es(void 0,t.useValue):Es(function Zm(t,e,n){let r;if(_s(t)){const i=ve(t);return Hr(i)||fh(i)}if(Xm(t))r=()=>ve(t.useValue);else if(function PT(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...Ua(t.deps||[]));else if(function OT(t){return!(!t||!t.useExisting)}(t))r=()=>Se(ve(t.useExisting));else{const i=ve(t&&(t.useClass||t.provide));if(!function FT(t){return!!t.deps}(t))return Hr(i)||fh(i);r=()=>new i(...Ua(t.deps))}return r}(t),uu)}(e);if(_s(e)||!0!==e.multi)this.records.get(i);else{let u=this.records.get(i);u||(u=Es(void 0,uu,!0),u.factory=()=>Ua(u.multi),this.records.set(i,u)),i=e,u.multi.push(e)}this.records.set(i,o)}hydrate(e,n){return n.value===uu&&(n.value=CT,n.value=n.factory()),"object"==typeof n.value&&n.value&&function LT(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(e){if(!e.providedIn)return!1;const n=ve(e.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function fh(t){const e=ji(t),n=null!==e?e.factory:Hr(t);if(null!==n)return n;if(t instanceof Fe)throw new Y(204,!1);if(t instanceof Function)return function MT(t){const e=t.length;if(e>0)throw function so(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}(e,"?"),new Y(204,!1);const n=function fg(t){const e=t&&(t[aa]||t[Ku]);if(e){const n=function hg(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Y(204,!1)}function Es(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Xm(t){return null!==t&&"object"==typeof t&&bl in t}function _s(t){return"function"==typeof t}let jn=(()=>{class t{static create(n,r){var i;if(Array.isArray(n))return Qm({name:""},r,n,"");{const o=null!==(i=n.name)&&void 0!==i?i:"";return Qm({name:o},n.parent,n.providers,o)}}}return t.THROW_IF_NOT_FOUND=uo,t.NULL=new Wm,t.\u0275prov=Ye({token:t,providedIn:"any",factory:()=>Se(lh)}),t.__NG_ELEMENT_ID__=-1,t})();function $T(t,e){eo(Qa(t)[1],gt())}let Kl=null;function Ds(){if(!Kl){const t=We.Symbol;if(t&&t.iterator)Kl=t.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<e.length;++n){const r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Kl=r)}}}return Kl}function be(t,e=me.Default){const n=F();return null===n?Se(t,e):ml(gt(),n,ve(t),e)}function Dh(t,e,n){const r=F();return function Kt(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}(r,function pi(){return Z.lFrame.bindingIndex++}(),e)&&function bn(t,e,n,r,i,o,u,l){const d=Qt(e,n);let m,p=e.inputs;!l&&null!=p&&(m=p[r])?(qm(t,n,m,r,i),Bo(e)&&function sT(t,e){const n=kt(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3&e.type&&(r=function oT(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(r),i=null!=u?u(i,e.value||"",r):i,it(o)?o.setProperty(d,r,i):Aa(r)||(d.setProperty?d.setProperty(r,i):d[r]=i))}(Me(),function nt(){const t=Z.lFrame;return di(t.tView,t.selectedIndex)}(),r,t,e,r[11],n,!1),Dh}function Ih(t,e,n,r,i){const u=i?"class":"style";qm(t,n,e.inputs[u],u,r)}function du(t,e,n,r){const i=F(),o=Me(),u=20+t,l=i[11],d=i[u]=P(l,e,function of(){return Z.lFrame.currentNamespace}()),p=o.firstCreatePass?function bw(t,e,n,r,i,o,u){const l=e.consts,p=ms(e,t,2,i,hr(l,o));return function nh(t,e,n,r){let i=!1;if(Ea()){const o=function fT(t,e,n){const r=t.directiveRegistry;let i=null;if(r)for(let o=0;o<r.length;o++){const u=r[o];hm(n,u.selectors,!1)&&(i||(i=[]),ro(Ei(n,e),t,u.type),Dn(u)?(km(t,n),i.unshift(u)):i.push(u))}return i}(t,e,n),u=null===r?null:{"":-1};if(null!==o){i=!0,Bm(n,t.data.length,o.length);for(let m=0;m<o.length;m++){const E=o[m];E.providersResolver&&E.providersResolver(E)}let l=!1,d=!1,p=ys(t,e,o.length,null);for(let m=0;m<o.length;m++){const E=o[m];n.mergedAttrs=Xo(n.mergedAttrs,E.hostAttrs),Vm(t,n,e,p,E),pT(p,E,u),null!==E.contentQueries&&(n.flags|=8),(null!==E.hostBindings||null!==E.hostAttrs||0!==E.hostVars)&&(n.flags|=128);const D=E.type.prototype;!l&&(D.ngOnChanges||D.ngOnInit||D.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),l=!0),!d&&(D.ngOnChanges||D.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),d=!0),p++}!function iT(t,e){const r=e.directiveEnd,i=t.data,o=e.attrs,u=[];let l=null,d=null;for(let p=e.directiveStart;p<r;p++){const m=i[p],E=m.inputs,D=null===o||fm(e)?null:yT(E,o);u.push(D),l=Nm(E,p,l),d=Nm(m.outputs,p,d)}null!==l&&(l.hasOwnProperty("class")&&(e.flags|=16),l.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=u,e.inputs=l,e.outputs=d}(t,n)}u&&function hT(t,e,n){if(e){const r=t.localNames=[];for(let i=0;i<e.length;i+=2){const o=n[e[i+1]];if(null==o)throw new Y(-301,!1);r.push(e[i],o)}}}(n,r,u)}return n.mergedAttrs=Xo(n.mergedAttrs,n.attrs),i}(e,n,p,hr(l,u)),null!==p.attrs&&Ql(p,p.attrs,!1),null!==p.mergedAttrs&&Ql(p,p.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,p),p}(u,o,i,0,e,n,r):o.data[u];Bn(p,!0);const m=p.mergedAttrs;null!==m&&mi(l,d,m);const E=p.classes;null!==E&&eu(l,d,E);const D=p.styles;return null!==D&&Ja(l,d,D),64!=(64&p.flags)&&Kn(o,i,d,p),0===function qd(){return Z.lFrame.elementDepthCount}()&&Ot(d,i),function Wd(){Z.lFrame.elementDepthCount++}(),Vo(p)&&(function eh(t,e,n){!Ea()||(function cT(t,e,n,r){const i=n.directiveStart,o=n.directiveEnd;t.firstCreatePass||Ei(n,e),Ot(r,e);const u=n.initialInputs;for(let l=i;l<o;l++){const d=t.data[l],p=Dn(d);p&&gT(e,n,d);const m=io(e,t,l,n);Ot(m,e),null!==u&&mT(0,l-i,m,d,0,u),p&&(kt(n.index,e)[8]=m)}}(t,e,n,Qt(n,e)),128==(128&n.flags)&&function dT(t,e,n){const r=n.directiveStart,i=n.directiveEnd,u=n.index,l=function Da(){return Z.lFrame.currentDirectiveIndex}();try{pr(u);for(let d=r;d<i;d++){const p=t.data[d],m=e[d];Vt(d),(null!==p.hostBindings||0!==p.hostVars||null!==p.hostAttrs)&&xm(p,m)}}finally{pr(-1),Vt(l)}}(t,e,n))}(o,i,p),function Am(t,e,n){if(dr(e)){const i=e.directiveEnd;for(let o=e.directiveStart;o<i;o++){const u=t.data[o];u.contentQueries&&u.contentQueries(1,n[o],o)}}}(o,p,i)),null!==r&&function th(t,e,n=Qt){const r=e.localNames;if(null!==r){let i=e.index+1;for(let o=0;o<r.length;o+=2){const u=r[o+1],l=-1===u?n(e,t):t[u];t[i++]=l}}}(i,p),du}function fu(){let t=gt();qo()?function Wo(){Z.lFrame.isParent=!1}():(t=t.parent,Bn(t,!1));const e=t;!function Yd(){Z.lFrame.elementDepthCount--}();const n=Me();return n.firstCreatePass&&(eo(n,t),dr(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function lf(t){return 0!=(16&t.flags)}(e)&&Ih(n,e,F(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function ll(t){return 0!=(32&t.flags)}(e)&&Ih(n,e,F(),e.stylesWithoutHost,!1),fu}function Th(t,e,n,r){return du(t,e,n,r),fu(),Th}function Sh(t){return!!t&&"function"==typeof t.then}const Aw=function Ny(t){return!!t&&"function"==typeof t.subscribe};function Ch(t,e,n,r){const i=F(),o=Me(),u=gt();return function Ly(t,e,n,r,i,o,u,l){const d=Vo(r),m=t.firstCreatePass&&Gm(t),E=e[8],D=Um(e);let w=!0;if(3&r.type||l){const O=Qt(r,e),V=l?l(O):O,R=D.length,G=l?ie=>l(pt(ie[r.index])):r.index;if(it(n)){let ie=null;if(!l&&d&&(ie=function Mw(t,e,n,r){const i=t.cleanup;if(null!=i)for(let o=0;o<i.length-1;o+=2){const u=i[o];if(u===n&&i[o+1]===r){const l=e[7],d=i[o+2];return l.length>d?l[d]:null}"string"==typeof u&&(o+=2)}return null}(t,e,i,r.index)),null!==ie)(ie.__ngLastListenerFn__||ie).__ngNextListenerFn__=o,ie.__ngLastListenerFn__=o,w=!1;else{o=Ah(r,e,E,o,!1);const we=n.listen(V,i,o);D.push(o,we),m&&m.push(i,G,R,R+1)}}else o=Ah(r,e,E,o,!0),V.addEventListener(i,o,u),D.push(o),m&&m.push(i,G,R,u)}else o=Ah(r,e,E,o,!1);const b=r.outputs;let M;if(w&&null!==b&&(M=b[i])){const O=M.length;if(O)for(let V=0;V<O;V+=2){const ot=e[M[V]][M[V+1]].subscribe(o),ct=D.length;D.push(o,ot),m&&m.push(i,r.index,ct,-(ct+1))}}}(o,i,i[11],u,t,e,!!n,r),Ch}function xy(t,e,n,r){try{return!1!==n(r)}catch(i){return zm(t,i),!1}}function Ah(t,e,n,r,i){return function o(u){if(u===Function)return r;const l=2&t.flags?kt(t.index,e):e;0==(32&e[2])&&oh(l);let d=xy(e,0,r,u),p=o.__ngNextListenerFn__;for(;p;)d=xy(e,0,p,u)&&d,p=p.__ngNextListenerFn__;return i&&!1===d&&(u.preventDefault(),u.returnValue=!1),d}}const ec="en-US";let Mv=ec;class eE{}class DS{resolveComponentFactory(e){throw function _S(t){const e=Error(`No component factory found for ${$e(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(e)}}let Ls=(()=>{class t{}return t.NULL=new DS,t})();function IS(){return xs(gt(),F())}function xs(t,e){return new yo(Qt(t,e))}let yo=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=IS,t})();function TS(t){return t instanceof yo?t.nativeElement:t}class vu{}let SS=(()=>{class t{}return t.\u0275prov=Ye({token:t,providedIn:"root",factory:()=>null}),t})();class oc{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const CS=new oc("13.4.0"),Bh={};function sc(t,e,n,r,i=!1){for(;null!==n;){const o=e[n.index];if(null!==o&&r.push(pt(o)),at(o))for(let l=10;l<o.length;l++){const d=o[l],p=d[1].firstChild;null!==p&&sc(d[1],d,p,r)}const u=n.type;if(8&u)sc(t,e,n.child,r);else if(32&u){const l=a(n,e);let d;for(;d=l();)r.push(d)}else if(16&u){const l=Bl(e,n);if(Array.isArray(l))r.push(...l);else{const d=g(e[16]);sc(d[1],d,l,r,!0)}}n=i?n.projectionNext:n.next}return r}class Eu{constructor(e,n){this._lView=e,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,n=e[1];return sc(n,e,n.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(at(e)){const n=e[8],r=n?n.indexOf(this):-1;r>-1&&(xe(e,r),is(n,r))}this._attachedToViewContainer=!1}q(this._lView[1],this._lView)}onDestroy(e){Pm(this._lView[1],this._lView,null,e)}markForCheck(){oh(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function ah(t,e,n){const r=e[10];r.begin&&r.begin();try{vs(t,e,t.template,n)}catch(i){throw zm(e,i),i}finally{r.end&&r.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new Y(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ne(t,e){po(t,e,e[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Y(902,"");this._appRef=e}}class AS extends Eu{constructor(e){super(e),this._view=e}detectChanges(){Hm(this._view)}checkNoChanges(){}get context(){return null}}class rE extends Ls{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const n=Rt(e);return new Vh(n,this.ngModule)}}function iE(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}class Vh extends eE{constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=function VI(t){return t.map(BI).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return iE(this.componentDef.inputs)}get outputs(){return iE(this.componentDef.outputs)}create(e,n,r,i){const o=(i=i||this.ngModule)?function RS(t,e){return{get:(n,r,i)=>{const o=t.get(n,Bh,i);return o!==Bh||r===Bh?o:e.get(n,r,i)}}}(e,i.injector):e,u=o.get(vu,Gr),l=o.get(SS,null),d=u.createRenderer(null,this.componentDef),p=this.componentDef.selectors[0][0]||"div",m=r?function Om(t,e,n){if(it(t))return t.selectRootElement(e,n===vn.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(d,r,this.componentDef.encapsulation):P(u.createRenderer(null,this.componentDef),p,function MS(t){const e=t.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(p)),E=this.componentDef.onPush?576:528,D=function ly(t,e){return{components:[],scheduler:t||SI,clean:wT,playerHandler:e||null,flags:0}}(),w=Wl(0,null,null,1,0,null,null,null,null,null),b=su(null,w,D,E,null,null,u,d,l,o);let M,O;Ji(b);try{const V=function ay(t,e,n,r,i,o){const u=n[1];n[20]=t;const d=ms(u,20,2,"#host",null),p=d.mergedAttrs=e.hostAttrs;null!==p&&(Ql(d,p,!0),null!==t&&(mi(i,t,p),null!==d.classes&&eu(i,t,d.classes),null!==d.styles&&Ja(i,t,d.styles)));const m=r.createRenderer(t,e),E=su(n,Mm(e),null,e.onPush?64:16,n[20],d,r,m,o||null,null);return u.firstCreatePass&&(ro(Ei(d,n),u,e.type),km(u,d),Bm(d,n.length,1)),Yl(n,E),n[20]=E}(m,this.componentDef,b,u,d);if(m)if(r)mi(d,m,["ng-version",CS.full]);else{const{attrs:R,classes:G}=function jI(t){const e=[],n=[];let r=1,i=2;for(;r<t.length;){let o=t[r];if("string"==typeof o)2===i?""!==o&&e.push(o,t[++r]):8===i&&n.push(o);else{if(!Jn(i))break;i=o}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);R&&mi(d,m,R),G&&G.length>0&&eu(d,m,G.join(" "))}if(O=di(w,20),void 0!==n){const R=O.projection=[];for(let G=0;G<this.ngContentSelectors.length;G++){const ie=n[G];R.push(null!=ie?Array.from(ie):null)}}M=function uy(t,e,n,r,i){const o=n[1],u=function uT(t,e,n){const r=gt();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Vm(t,r,e,ys(t,e,1,null),n));const i=io(e,t,r.directiveStart,r);Ot(i,e);const o=Qt(r,e);return o&&Ot(o,e),i}(o,n,e);if(r.components.push(u),t[8]=u,i&&i.forEach(d=>d(u,e)),e.contentQueries){const d=gt();e.contentQueries(1,u,d.directiveStart)}const l=gt();return!o.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(pr(l.index),Lm(n[1],l,0,l.directiveStart,l.directiveEnd,e),xm(e,u)),u}(V,this.componentDef,b,D,[$T]),au(w,b,null)}finally{Qo()}return new PS(this.componentType,M,xs(O,b),b,O)}}class PS extends class ES{}{constructor(e,n,r,i,o){super(),this.location=r,this._rootLView=i,this._tNode=o,this.instance=n,this.hostView=this.changeDetectorRef=new AS(i),this.componentType=e}get injector(){return new Di(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class ks{}const Bs=new Map;class aE extends ks{constructor(e,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new rE(this);const r=ln(e);this._bootstrapComponents=Tr(r.bootstrap),this._r3Injector=Km(e,n,[{provide:ks,useValue:this},{provide:Ls,useValue:this.componentFactoryResolver}],$e(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,n=jn.THROW_IF_NOT_FOUND,r=me.Default){return e===jn||e===ks||e===lh?this:this._r3Injector.get(e,n,r)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class jh extends class FS{}{constructor(e){super(),this.moduleType=e,null!==ln(e)&&function LS(t){const e=new Set;!function n(r){const i=ln(r,!0),o=i.id;null!==o&&(function oE(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${$e(e)} vs ${$e(e.name)}`)}(o,Bs.get(o),r),Bs.set(o,r));const u=Tr(i.imports);for(const l of u)e.has(l)||(e.add(l),n(l))}(t)}(e)}create(e){return new aE(this.moduleType,e)}}function Hh(t){return e=>{setTimeout(t,void 0,e)}}const Ar=class JS extends So{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,r){var i,o,u;let l=e,d=n||(()=>null),p=r;if(e&&"object"==typeof e){const E=e;l=null===(i=E.next)||void 0===i?void 0:i.bind(E),d=null===(o=E.error)||void 0===o?void 0:o.bind(E),p=null===(u=E.complete)||void 0===u?void 0:u.bind(E)}this.__isAsync&&(d=Hh(d),l&&(l=Hh(l)),p&&(p=Hh(p)));const m=super.subscribe({next:l,error:d,complete:p});return e instanceof Ae&&e.add(m),m}};function eC(){return this._results[Ds()]()}class Uh{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=Ds(),r=Uh.prototype;r[n]||(r[n]=eC)}get changes(){return this._changes||(this._changes=new Ar)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,n){return this._results.reduce(e,n)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,n){const r=this;r.dirty=!1;const i=fn(e);(this._changesDetected=!function vf(t,e,n){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let i=t[r],o=e[r];if(n&&(i=n(i),o=n(o)),o!==i)return!1}return!0}(r._results,i,n))&&(r._results=i,r.length=i.length,r.last=i[this.length-1],r.first=i[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}Symbol;let Xr=(()=>{class t{}return t.__NG_ELEMENT_ID__=rC,t})();const tC=Xr,nC=class extends tC{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(e){const n=this._declarationTContainer.tViews,r=su(this._declarationLView,n,e,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(r[19]=o.createEmbeddedView(n)),au(n,r,e),new Eu(r)}};function rC(){return ac(gt(),F())}function ac(t,e){return 4&t.type?new nC(e,t,xs(t,e)):null}let Mr=(()=>{class t{}return t.__NG_ELEMENT_ID__=iC,t})();function iC(){return gE(gt(),F())}const oC=Mr,hE=class extends oC{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return xs(this._hostTNode,this._hostLView)}get injector(){return new Di(this._hostTNode,this._hostLView)}get parentInjector(){const e=_i(this._hostTNode,this._hostLView);if(fl(e)){const n=vi(e,this._hostLView),r=yi(e);return new Di(n[1].data[r+8],n)}return new Di(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=pE(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,n,r){const i=e.createEmbeddedView(n||{});return this.insert(i,r),i}createComponent(e,n,r,i,o){const u=e&&!function oo(t){return"function"==typeof t}(e);let l;if(u)l=n;else{const E=n||{};l=E.index,r=E.injector,i=E.projectableNodes,o=E.ngModuleRef}const d=u?e:new Vh(Rt(e)),p=r||this.parentInjector;if(!o&&null==d.ngModule){const D=(u?p:this.parentInjector).get(ks,null);D&&(o=D)}const m=d.create(p,i,void 0,o);return this.insert(m.hostView,l),m}insert(e,n){const r=e._lView,i=r[1];if(function cn(t){return at(t[3])}(r)){const m=this.indexOf(e);if(-1!==m)this.detach(m);else{const E=r[3],D=new hE(E,E[6],E[3]);D.detach(D.indexOf(e))}}const o=this._adjustIndex(n),u=this._lContainer;!function Re(t,e,n,r){const i=10+r,o=n.length;r>0&&(n[i-1][4]=e),r<o-10?(e[4]=n[i],rs(n,10+r,e)):(n.push(e),e[4]=null),e[3]=n;const u=e[17];null!==u&&n!==u&&function ae(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(u,e);const l=e[19];null!==l&&l.insertView(t),e[2]|=128}(i,r,u,o);const l=Za(o,u),d=r[11],p=A(d,u[7]);return null!==p&&function $(t,e,n,r,i,o){r[0]=i,r[6]=e,po(t,r,n,1,i,o)}(i,u[6],d,r,p,l),e.attachToViewContainerRef(),rs(Gh(u),o,e),e}move(e,n){return this.insert(e,n)}indexOf(e){const n=pE(this._lContainer);return null!==n?n.indexOf(e):-1}remove(e){const n=this._adjustIndex(e,-1),r=xe(this._lContainer,n);r&&(is(Gh(this._lContainer),n),q(r[1],r))}detach(e){const n=this._adjustIndex(e,-1),r=xe(this._lContainer,n);return r&&null!=is(Gh(this._lContainer),n)?new Eu(r):null}_adjustIndex(e,n=0){return null==e?this.length+n:e}};function pE(t){return t[8]}function Gh(t){return t[8]||(t[8]=[])}function gE(t,e){let n;const r=e[t.index];if(at(r))n=r;else{let i;if(8&t.type)i=pt(r);else{const o=e[11];i=o.createComment("");const u=Qt(t,e);je(o,A(o,u),i,function Q(t,e){return it(t)?t.nextSibling(e):e.nextSibling}(o,u),!1)}e[t.index]=n=function jm(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}(r,e,i,t),Yl(e,n)}return new hE(n,t,e)}class $h{constructor(e){this.queryList=e,this.matches=null}clone(){return new $h(this.queryList)}setDirty(){this.queryList.setDirty()}}class zh{constructor(e=[]){this.queries=e}createEmbeddedView(e){const n=e.queries;if(null!==n){const r=null!==e.contentQueries?e.contentQueries[0]:n.length,i=[];for(let o=0;o<r;o++){const u=n.getByIndex(o);i.push(this.queries[u.indexInDeclarationView].clone())}return new zh(i)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let n=0;n<this.queries.length;n++)null!==TE(e,n).matches&&this.queries[n].setDirty()}}class mE{constructor(e,n,r=null){this.predicate=e,this.flags=n,this.read=r}}class qh{constructor(e=[]){this.queries=e}elementStart(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].elementStart(e,n)}elementEnd(e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementEnd(e)}embeddedTView(e){let n=null;for(let r=0;r<this.length;r++){const i=null!==n?n.length:0,o=this.getByIndex(r).embeddedTView(e,i);o&&(o.indexInDeclarationView=r,null!==n?n.push(o):n=[o])}return null!==n?new qh(n):null}template(e,n){for(let r=0;r<this.queries.length;r++)this.queries[r].template(e,n)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class Wh{constructor(e,n=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}elementStart(e,n){this.isApplyingToNode(n)&&this.matchTNode(e,n)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,n){this.elementStart(e,n)}embeddedTView(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new Wh(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const n=this._declarationNodeIndex;let r=e.parent;for(;null!==r&&8&r.type&&r.index!==n;)r=r.parent;return n===(null!==r?r.index:-1)}return this._appliesToNextNode}matchTNode(e,n){const r=this.metadata.predicate;if(Array.isArray(r))for(let i=0;i<r.length;i++){const o=r[i];this.matchTNodeWithReadOption(e,n,uC(n,o)),this.matchTNodeWithReadOption(e,n,ns(n,e,o,!1,!1))}else r===Xr?4&n.type&&this.matchTNodeWithReadOption(e,n,-1):this.matchTNodeWithReadOption(e,n,ns(n,e,r,!1,!1))}matchTNodeWithReadOption(e,n,r){if(null!==r){const i=this.metadata.read;if(null!==i)if(i===yo||i===Mr||i===Xr&&4&n.type)this.addMatch(n.index,-2);else{const o=ns(n,e,i,!1,!1);null!==o&&this.addMatch(n.index,o)}else this.addMatch(n.index,r)}}addMatch(e,n){null===this.matches?this.matches=[e,n]:this.matches.push(e,n)}}function uC(t,e){const n=t.localNames;if(null!==n)for(let r=0;r<n.length;r+=2)if(n[r]===e)return n[r+1];return null}function cC(t,e,n,r){return-1===n?function lC(t,e){return 11&t.type?xs(t,e):4&t.type?ac(t,e):null}(e,t):-2===n?function dC(t,e,n){return n===yo?xs(e,t):n===Xr?ac(e,t):n===Mr?gE(e,t):void 0}(t,e,r):io(t,t[1],n,e)}function yE(t,e,n,r){const i=e[19].queries[r];if(null===i.matches){const o=t.data,u=n.matches,l=[];for(let d=0;d<u.length;d+=2){const p=u[d];l.push(p<0?null:cC(e,o[p],u[d+1],n.metadata.read))}i.matches=l}return i.matches}function Yh(t,e,n,r){const i=t.queries.getByIndex(n),o=i.matches;if(null!==o){const u=yE(t,e,i,n);for(let l=0;l<o.length;l+=2){const d=o[l];if(d>0)r.push(u[l/2]);else{const p=o[l+1],m=e[-d];for(let E=10;E<m.length;E++){const D=m[E];D[17]===D[3]&&Yh(D[1],D,p,r)}if(null!==m[9]){const E=m[9];for(let D=0;D<E.length;D++){const w=E[D];Yh(w[1],w,p,r)}}}}}return r}function vE(t){const e=F(),n=Me(),r=Xi();Ta(r+1);const i=TE(n,r);if(t.dirty&&ya(e)===(2==(2&i.metadata.flags))){if(null===i.matches)t.reset([]);else{const o=i.crossesNgTemplate?Yh(n,e,r,[]):yE(n,e,i,r);t.reset(o,TS),t.notifyOnChanges()}return!0}return!1}function EE(t,e,n){const r=Me();r.firstCreatePass&&(function IE(t,e,n){null===t.queries&&(t.queries=new qh),t.queries.track(new Wh(e,n))}(r,new mE(t,e,n),-1),2==(2&e)&&(r.staticViewQueries=!0)),function DE(t,e,n){const r=new Uh(4==(4&n));Pm(t,e,r,r.destroy),null===e[19]&&(e[19]=new zh),e[19].queries.push(new $h(r))}(r,F(),e)}function TE(t,e){return t.queries.getByIndex(e)}function cc(...t){}const jE=new Fe("Application Initializer");let ep=(()=>{class t{constructor(n){this.appInits=n,this.resolve=cc,this.reject=cc,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const o=this.appInits[i]();if(Sh(o))n.push(o);else if(Aw(o)){const u=new Promise((l,d)=>{o.subscribe({complete:l,error:d})});n.push(u)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return t.\u0275fac=function(n){return new(n||t)(Se(jE,8))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Tu=new Fe("AppId",{providedIn:"root",factory:function HE(){return`${tp()}${tp()}${tp()}`}});function tp(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const UE=new Fe("Platform Initializer"),GE=new Fe("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),PC=new Fe("appBootstrapListener"),Oi=new Fe("LocaleId",{providedIn:"root",factory:()=>ls(Oi,me.Optional|me.SkipSelf)||function NC(){return"undefined"!=typeof $localize&&$localize.locale||ec}()}),kC=(()=>Promise.resolve(0))();function np(t){"undefined"==typeof Zone?kC.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Pt{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ar(!1),this.onMicrotaskEmpty=new Ar(!1),this.onStable=new Ar(!1),this.onError=new Ar(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function BC(){let t=We.requestAnimationFrame,e=We.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function HC(t){const e=()=>{!function jC(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(We,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,ip(t),t.isCheckStableRunning=!0,rp(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),ip(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,o,u,l)=>{try{return $E(t),n.invokeTask(i,o,u,l)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===o.type||t.shouldCoalesceRunChangeDetection)&&e(),zE(t)}},onInvoke:(n,r,i,o,u,l,d)=>{try{return $E(t),n.invoke(i,o,u,l,d)}finally{t.shouldCoalesceRunChangeDetection&&e(),zE(t)}},onHasTask:(n,r,i,o)=>{n.hasTask(i,o),r===i&&("microTask"==o.change?(t._hasPendingMicrotasks=o.microTask,ip(t),rp(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:(n,r,i,o)=>(n.handleError(i,o),t.runOutsideAngular(()=>t.onError.emit(o)),!1)})}(i)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Pt.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Pt.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,i){const o=this._inner,u=o.scheduleEventTask("NgZoneEvent: "+i,e,VC,cc,cc);try{return o.runTask(u,n,r)}finally{o.cancelTask(u)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}}const VC={};function rp(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function ip(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function $E(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function zE(t){t._nesting--,rp(t)}class UC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ar,this.onMicrotaskEmpty=new Ar,this.onStable=new Ar,this.onError=new Ar}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,i){return e.apply(n,r)}}let op=(()=>{class t{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Pt.assertNotInAngularZone(),np(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())np(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let o=-1;r&&r>0&&(o=setTimeout(()=>{this._callbacks=this._callbacks.filter(u=>u.timeoutId!==o),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:o,updateCb:i})}whenStable(n,r,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,i){return[]}}return t.\u0275fac=function(n){return new(n||t)(Se(Pt))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})(),GC=(()=>{class t{constructor(){this._applications=new Map,sp.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return sp.findTestabilityInTree(this,n,r)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=Ye({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();class $C{addToWindow(e){}findTestabilityInTree(e,n,r){return null}}let sp=new $C,vo=null;const qE=new Fe("AllowMultipleToken"),WE=new Fe("PlatformOnDestroy");function YE(t,e,n=[]){const r=`Platform: ${e}`,i=new Fe(r);return(o=[])=>{let u=ap();if(!u||u.injector.get(qE,!1)){const l=[...n,...o,{provide:i,useValue:!0}];t?t(l):function YC(t){if(vo&&!vo.get(qE,!1))throw new Y(400,"");vo=t;const e=t.get(QE),n=t.get(UE,null);n&&n.forEach(r=>r())}(function KC(t=[],e){return jn.create({name:e,providers:[{provide:ch,useValue:"platform"},{provide:WE,useValue:()=>vo=null},...t]})}(l,r))}return function QC(t){const e=ap();if(!e)throw new Y(401,"");return e}()}}function ap(){var t;return null!==(t=null==vo?void 0:vo.get(QE))&&void 0!==t?t:null}let QE=(()=>{class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const l=function ZC(t,e){let n;return n="noop"===t?new UC:("zone.js"===t?void 0:t)||new Pt({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),d=[{provide:Pt,useValue:l}];return l.run(()=>{const p=jn.create({providers:d,parent:this.injector,name:n.moduleType.name}),m=n.create(p),E=m.injector.get(ou,null);if(!E)throw new Y(402,"");return l.runOutsideAngular(()=>{const D=l.onError.subscribe({next:w=>{E.handleError(w)}});m.onDestroy(()=>{lp(this._modules,m),D.unsubscribe()})}),function XC(t,e,n){try{const r=n();return Sh(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(E,l,()=>{const D=m.injector.get(ep);return D.runInitializers(),D.donePromise.then(()=>(function Tb(t){un(t,"Expected localeId to be defined"),"string"==typeof t&&(Mv=t.toLowerCase().replace(/_/g,"-"))}(m.injector.get(Oi,ec)||ec),this._moduleDoBootstrap(m),m))})})}bootstrapModule(n,r=[]){const i=KE({},r);return function qC(t,e,n){const r=new jh(n);return Promise.resolve(r)}(0,0,n).then(o=>this.bootstrapModuleFactory(o,i))}_moduleDoBootstrap(n){const r=n.injector.get(up);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new Y(403,"");n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Y(404,"");this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(WE,null);null==n||n(),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(n){return new(n||t)(Se(jn))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function KE(t,e){return Array.isArray(e)?e.reduce(KE,t):Object.assign(Object.assign({},t),e)}let up=(()=>{class t{constructor(n,r,i,o){this._zone=n,this._injector=r,this._exceptionHandler=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const u=new tt(d=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{d.next(this._stable),d.complete()})}),l=new tt(d=>{let p;this._zone.runOutsideAngular(()=>{p=this._zone.onStable.subscribe(()=>{Pt.assertNotInAngularZone(),np(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,d.next(!0))})})});const m=this._zone.onUnstable.subscribe(()=>{Pt.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{d.next(!1)}))});return()=>{p.unsubscribe(),m.unsubscribe()}});this.isStable=Fr(u,l.pipe(function pd(){return t=>qu()(function Js(t,e){return function(r){let i;if(i="function"==typeof t?t:function(){return t},"function"==typeof e)return r.lift(new fd(i,e));const o=Object.create(r,ld);return o.source=r,o.subjectFactory=i,o}}(hd)(t))}()))}bootstrap(n,r){if(!this._initStatus.done)throw new Y(405,"");let i;i=n instanceof eE?n:this._injector.get(Ls).resolveComponentFactory(n),this.componentTypes.push(i.componentType);const o=function WC(t){return t.isBoundToModule}(i)?void 0:this._injector.get(ks),l=i.create(jn.NULL,[],r||i.selector,o),d=l.location.nativeElement,p=l.injector.get(op,null),m=p&&l.injector.get(GC);return p&&m&&m.registerApplication(d,p),l.onDestroy(()=>{this.detachView(l.hostView),lp(this.components,l),m&&m.unregisterApplication(d)}),this._loadComponent(l),l}tick(){if(this._runningTick)throw new Y(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;lp(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(PC,[]).concat(this._bootstrapListeners).forEach(i=>i(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(n){return new(n||t)(Se(Pt),Se(jn),Se(ou),Se(ep))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function lp(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let XE=!0,t_=(()=>{class t{}return t.__NG_ELEMENT_ID__=t0,t})();function t0(t){return function n0(t,e,n){if(Bo(t)&&!n){const r=kt(t.index,e);return new Eu(r,r)}return 47&t.type?new Eu(e[16],e):null}(gt(),F(),16==(16&t))}const m0=YE(null,"core",[]);let y0=(()=>{class t{constructor(n){}}return t.\u0275fac=function(n){return new(n||t)(Se(up))},t.\u0275mod=ai({type:t}),t.\u0275inj=ur({}),t})(),pc=null;function bu(){return pc}const Un=new Fe("DocumentToken");let M_=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ai({type:t}),t.\u0275inj=ur({}),t})();class Mp extends class mM extends class _0{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function E0(t){pc||(pc=t)}(new Mp)}onAndCancel(e,n,r){return e.addEventListener(n,r,!1),()=>{e.removeEventListener(n,r,!1)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=function yM(){return Mu=Mu||document.querySelector("base"),Mu?Mu.getAttribute("href"):null}();return null==n?null:function vM(t){Sc=Sc||document.createElement("a"),Sc.setAttribute("href",t);const e=Sc.pathname;return"/"===e.charAt(0)?e:`/${e}`}(n)}resetBaseElement(){Mu=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function sA(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const r=n.indexOf("="),[i,o]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===e)return decodeURIComponent(o)}return null}(document.cookie,e)}}let Sc,Mu=null;const O_=new Fe("TRANSITION_ID"),_M=[{provide:jE,useFactory:function EM(t,e,n){return()=>{n.get(ep).donePromise.then(()=>{const r=bu(),i=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let o=0;o<i.length;o++)r.remove(i[o])})}},deps:[O_,Un,jn],multi:!0}];class Rp{static init(){!function zC(t){sp=t}(new Rp)}addToWindow(e){We.getAngularTestability=(r,i=!0)=>{const o=e.findTestabilityInTree(r,i);if(null==o)throw new Error("Could not find testability for element.");return o},We.getAllAngularTestabilities=()=>e.getAllTestabilities(),We.getAllAngularRootElements=()=>e.getAllRootElements(),We.frameworkStabilizers||(We.frameworkStabilizers=[]),We.frameworkStabilizers.push(r=>{const i=We.getAllAngularTestabilities();let o=i.length,u=!1;const l=function(d){u=u||d,o--,0==o&&r(u)};i.forEach(function(d){d.whenStable(l)})})}findTestabilityInTree(e,n,r){if(null==n)return null;const i=e.getTestability(n);return null!=i?i:r?bu().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null}}let DM=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();const Cc=new Fe("EventManagerPlugins");let Ac=(()=>{class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>i.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}addGlobalEventListener(n,r,i){return this._findPluginFor(r).addGlobalEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const i=this._plugins;for(let o=0;o<i.length;o++){const u=i[o];if(u.supports(n))return this._eventNameToPlugin.set(n,u),u}throw new Error(`No event manager plugin found for event ${n}`)}}return t.\u0275fac=function(n){return new(n||t)(Se(Cc),Se(Pt))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();class P_{constructor(e){this._doc=e}addGlobalEventListener(e,n,r){const i=bu().getGlobalEventTarget(this._doc,e);if(!i)throw new Error(`Unsupported event target ${i} for event ${n}`);return this.addEventListener(i,n,r)}}let N_=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})(),Ru=(()=>{class t extends N_{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,i){n.forEach(o=>{const u=this._doc.createElement("style");u.textContent=o,i.push(r.appendChild(u))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(F_),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(n,i,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(F_))}}return t.\u0275fac=function(n){return new(n||t)(Se(Un))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();function F_(t){bu().remove(t)}const Op={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Pp=/%COMP%/g;function Mc(t,e,n){for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?Mc(t,i,n):(i=i.replace(Pp,t),n.push(i))}return n}function k_(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Rc=(()=>{class t{constructor(n,r,i){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Np(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case vn.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new CM(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(n),i}case 1:case vn.ShadowDom:return new AM(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const i=Mc(r.id,r.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(n){return new(n||t)(Se(Ac),Se(Ru),Se(Tu))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();class Np{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,n){return n?document.createElementNS(Op[n]||n,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,n){e.appendChild(n)}insertBefore(e,n,r){e&&e.insertBefore(n,r)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,i){if(i){n=i+":"+n;const o=Op[i];o?e.setAttributeNS(o,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){const i=Op[r];i?e.removeAttributeNS(i,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,i){i&(tn.DashCase|tn.Important)?e.style.setProperty(n,r,i&tn.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&tn.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e[n]=r}setValue(e,n){e.nodeValue=n}listen(e,n,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,k_(r)):this.eventManager.addEventListener(e,n,k_(r))}}class CM extends Np{constructor(e,n,r,i){super(e),this.component=r;const o=Mc(i+"-"+r.id,r.styles,[]);n.addStyles(o),this.contentAttr=function wM(t){return"_ngcontent-%COMP%".replace(Pp,t)}(i+"-"+r.id),this.hostAttr=function bM(t){return"_nghost-%COMP%".replace(Pp,t)}(i+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,n){const r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}}class AM extends Np{constructor(e,n,r,i){super(e),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const o=Mc(i.id,i.styles,[]);for(let u=0;u<o.length;u++){const l=document.createElement("style");l.textContent=o[u],this.shadowRoot.appendChild(l)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(this.nodeOrShadowRoot(e),n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let MM=(()=>{class t extends P_{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}}return t.\u0275fac=function(n){return new(n||t)(Se(Un))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();const V_=["alt","control","meta","shift"],OM={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},j_={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},PM={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let NM=(()=>{class t extends P_{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,i){const o=t.parseEventName(r),u=t.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>bu().onAndCancel(n,o.domEventName,u))}static parseEventName(n){const r=n.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const o=t._normalizeKey(r.pop());let u="";if(V_.forEach(d=>{const p=r.indexOf(d);p>-1&&(r.splice(p,1),u+=d+".")}),u+=o,0!=r.length||0===o.length)return null;const l={};return l.domEventName=i,l.fullKey=u,l}static getEventFullKey(n){let r="",i=function FM(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&j_.hasOwnProperty(e)&&(e=j_[e]))}return OM[e]||e}(n);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),V_.forEach(o=>{o!=i&&PM[o](n)&&(r+=o+".")}),r+=i,r}static eventCallback(n,r,i){return o=>{t.getEventFullKey(o)===n&&i.runGuarded(()=>r(o))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return t.\u0275fac=function(n){return new(n||t)(Se(Un))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();const BM=YE(m0,"browser",[{provide:GE,useValue:"browser"},{provide:UE,useValue:function LM(){Mp.makeCurrent(),Rp.init()},multi:!0},{provide:Un,useFactory:function kM(){return function jd(t){$o=t}(document),document},deps:[]}]),VM=[{provide:ch,useValue:"root"},{provide:ou,useFactory:function xM(){return new ou},deps:[]},{provide:Cc,useClass:MM,multi:!0,deps:[Un,Pt,GE]},{provide:Cc,useClass:NM,multi:!0,deps:[Un]},{provide:Rc,useClass:Rc,deps:[Ac,Ru,Tu]},{provide:vu,useExisting:Rc},{provide:N_,useExisting:Ru},{provide:Ru,useClass:Ru,deps:[Un]},{provide:op,useClass:op,deps:[Pt]},{provide:Ac,useClass:Ac,deps:[Cc,Pt]},{provide:class pM{},useClass:DM,deps:[]}];let H_=(()=>{class t{constructor(n){if(n)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(n){return{ngModule:t,providers:[{provide:Tu,useValue:n.appId},{provide:O_,useExisting:Tu},_M]}}}return t.\u0275fac=function(n){return new(n||t)(Se(t,12))},t.\u0275mod=ai({type:t}),t.\u0275inj=ur({providers:VM,imports:[M_,y0]}),t})();"undefined"!=typeof window&&window;class KM extends Ae{constructor(e,n){super()}schedule(e,n=0){return this}}class ZM extends KM{constructor(e,n){super(e,n),this.scheduler=e,this.work=n,this.pending=!1}schedule(e,n=0){if(this.closed)return this;this.state=e;const r=this.id,i=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(i,r,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(i,this.id,n),this}requestAsyncId(e,n,r=0){return setInterval(e.flush.bind(e,this),r)}recycleAsyncId(e,n,r=0){if(null!==r&&this.delay===r&&!1===this.pending)return n;clearInterval(n)}execute(e,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const r=this._execute(e,n);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,n){let i,r=!1;try{this.work(e)}catch(o){r=!0,i=!!o&&o||new Error(o)}if(r)return this.unsubscribe(),i}_unsubscribe(){const e=this.id,n=this.scheduler,r=n.actions,i=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&r.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(n,e,null)),this.delay=null}}let $_=(()=>{class t{constructor(n,r=t.now){this.SchedulerAction=n,this.now=r}schedule(n,r=0,i){return new this.SchedulerAction(this,n).schedule(i,r)}}return t.now=()=>Date.now(),t})();class Ni extends $_{constructor(e,n=$_.now){super(e,()=>Ni.delegate&&Ni.delegate!==this?Ni.delegate.now():n()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,n=0,r){return Ni.delegate&&Ni.delegate!==this?Ni.delegate.schedule(e,n,r):super.schedule(e,n,r)}flush(e){const{actions:n}=this;if(this.active)return void n.push(e);let r;this.active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=n.shift());if(this.active=!1,r){for(;e=n.shift();)e.unsubscribe();throw r}}}const eR=new class JM extends Ni{}(class XM extends ZM{constructor(e,n){super(e,n),this.scheduler=e,this.work=n}schedule(e,n=0){return n>0?super.schedule(e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)}execute(e,n){return n>0||this.closed?super.execute(e,n):this._execute(e,n)}requestAsyncId(e,n,r=0){return null!==r&&r>0||null===r&&this.delay>0?super.requestAsyncId(e,n,r):e.flush(this)}}),tR=new tt(t=>t.complete());function sR({error:t,subscriber:e}){e.error(t)}class zn{constructor(e,n,r){this.kind=e,this.value=n,this.error=r,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,n,r){switch(this.kind){case"N":return e&&e(this.value);case"E":return n&&n(this.error);case"C":return r&&r()}}accept(e,n,r){return e&&"function"==typeof e.next?this.observe(e):this.do(e,n,r)}toObservable(){switch(this.kind){case"N":return function iR(...t){let e=t[t.length-1];return qs(e)?(t.pop(),Qs(t,e)):Xs(t)}(this.value);case"E":return function oR(t,e){return new tt(e?n=>e.schedule(sR,0,{error:t,subscriber:n}):n=>n.error(t))}(this.error);case"C":return function nR(t){return t?function rR(t){return new tt(e=>t.schedule(()=>e.complete()))}(t):tR}()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new zn("N",e):zn.undefinedValueNotification}static createError(e){return new zn("E",void 0,e)}static createComplete(){return zn.completeNotification}}zn.completeNotification=new zn("C"),zn.undefinedValueNotification=new zn("N",void 0);class Oc extends et{constructor(e,n,r=0){super(e),this.scheduler=n,this.delay=r}static dispatch(e){const{notification:n,destination:r}=e;n.observe(r),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Oc.dispatch,this.delay,new uR(e,this.destination)))}_next(e){this.scheduleMessage(zn.createNext(e))}_error(e){this.scheduleMessage(zn.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(zn.createComplete()),this.unsubscribe()}}class uR{constructor(e,n){this.notification=e,this.destination=n}}class lR extends So{constructor(e=Number.POSITIVE_INFINITY,n=Number.POSITIVE_INFINITY,r){super(),this.scheduler=r,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new cR(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;let u;if(this.closed)throw new ii;if(this.isStopped||this.hasError?u=Ae.EMPTY:(this.observers.push(e),u=new Fu(this,e)),i&&e.add(e=new Oc(e,i)),n)for(let l=0;l<o&&!e.closed;l++)e.next(r[l]);else for(let l=0;l<o&&!e.closed;l++)e.next(r[l].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),u}_getNow(){return(this.scheduler||eR).now()}_trimBufferThenGetEvents(){const e=this._getNow(),n=this._bufferSize,r=this._windowTime,i=this._events,o=i.length;let u=0;for(;u<o&&!(e-i[u].time<r);)u++;return o>n&&(u=Math.max(u,o-n)),u>0&&i.splice(0,u),i}}class cR{constructor(e,n){this.time=e,this.value=n}}function z_(t,e){return"function"==typeof e?n=>n.pipe(z_((r,i)=>Ln(t(r,i)).pipe(Ws((o,u)=>e(r,o,i,u))))):n=>n.lift(new dR(t))}class dR{constructor(e){this.project=e}call(e,n){return n.subscribe(new fR(e,this.project))}}class fR extends $u{constructor(e,n){super(e),this.project=n,this.index=0}_next(e){let n;const r=this.index++;try{n=this.project(e,r)}catch(i){return void this.destination.error(i)}this._innerSub(n)}_innerSub(e){const n=this.innerSubscription;n&&n.unsubscribe();const r=new Gu(this),i=this.destination;i.add(r),this.innerSubscription=Zs(e,r),this.innerSubscription!==r&&i.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const Pc={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if("undefined"==typeof window)return Pc.schedule(t,0);if(void 0===window.requestAnimationFrame)return Pc.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};let Lp;function DR(t,e,n){let r=n;return function pR(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((i,o)=>!("*"===i||!function mR(t,e){if(!Lp){const n=Element.prototype;Lp=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return t.nodeType===Node.ELEMENT_NODE&&Lp.call(t,e)}(t,i)||(r=o,0))),r}class TR{constructor(e,n){this.componentFactory=n.get(Ls).resolveComponentFactory(e)}create(e){return new wR(this.componentFactory,e)}}class wR{constructor(e,n){this.componentFactory=e,this.injector=n,this.eventEmitters=new lR(1),this.events=this.eventEmitters.pipe(z_(r=>Fr(...r))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:r})=>r)),this.ngZone=this.injector.get(Pt),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Pc.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,n){this.runInZone(()=>{null!==this.componentRef?function yR(t,e){return t===e||t!=t&&e!=e}(n,this.getInputValue(e))&&(void 0!==n||!this.unchangedInputs.has(e))||(this.recordInputChange(e,n),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=n,this.scheduleDetectChanges()):this.initialInputValues.set(e,n)})}initializeComponent(e){const n=jn.create({providers:[],parent:this.injector}),r=function _R(t,e){const n=t.childNodes,r=e.map(()=>[]);let i=-1;e.some((o,u)=>"*"===o&&(i=u,!0));for(let o=0,u=n.length;o<u;++o){const l=n[o],d=DR(l,e,i);-1!==d&&r[d].push(l)}return r}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(n,r,e),this.viewChangeDetectorRef=this.componentRef.injector.get(t_),this.implementsOnChanges=function gR(t){return"function"==typeof t}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(up).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const n=this.componentFactory.outputs.map(({propName:r,templateName:i})=>e.instance[r].pipe(Ws(u=>({name:i,value:u}))));this.eventEmitters.next(n)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const n=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(n)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Pc.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,n){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const r=this.inputChanges[e];if(r)return void(r.currentValue=n);const i=this.unchangedInputs.has(e),o=i?void 0:this.getInputValue(e);this.inputChanges[e]=new tl(o,n,i)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class bR extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class q_{}const ei="*";function W_(t,e=null){return{type:2,steps:t,options:e}}function Y_(t){return{type:6,styles:t,offset:null}}function Q_(t){Promise.resolve(null).then(t)}class Ou{constructor(e=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Q_(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class K_{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let n=0,r=0,i=0;const o=this.players.length;0==o?Q_(()=>this._onFinish()):this.players.forEach(u=>{u.onDone(()=>{++n==o&&this._onFinish()}),u.onDestroy(()=>{++r==o&&this._onDestroy()}),u.onStart(()=>{++i==o&&this._onStart()})}),this.totalTime=this.players.reduce((u,l)=>Math.max(u,l.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const n=e*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(i)})}getPosition(){const e=this.players.reduce((n,r)=>null===n||r.totalTime>n.totalTime?r:n,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}const Le=!1;function Z_(t){return new Y(3e3,Le)}function aO(){return"undefined"!=typeof window&&void 0!==window.document}function kp(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Fi(t){switch(t.length){case 0:return new Ou;case 1:return t[0];default:return new K_(t)}}function X_(t,e,n,r,i={},o={}){const u=[],l=[];let d=-1,p=null;if(r.forEach(m=>{const E=m.offset,D=E==d,w=D&&p||{};Object.keys(m).forEach(b=>{let M=b,O=m[b];if("offset"!==b)switch(M=e.normalizePropertyName(M,u),O){case"!":O=i[b];break;case ei:O=o[b];break;default:O=e.normalizeStyleValue(b,M,O,u)}w[M]=O}),D||l.push(w),p=w,d=E}),u.length)throw function KR(t){return new Y(3502,Le)}();return l}function Bp(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&Vp(n,"start",t)));break;case"done":t.onDone(()=>r(n&&Vp(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&Vp(n,"destroy",t)))}}function Vp(t,e,n){const r=n.totalTime,o=jp(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),u=t._data;return null!=u&&(o._data=u),o}function jp(t,e,n,r,i="",o=0,u){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!u}}function Sn(t,e,n){let r;return t instanceof Map?(r=t.get(e),r||t.set(e,r=n)):(r=t[e],r||(r=t[e]=n)),r}function J_(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Hp=(t,e)=>!1,eD=(t,e,n)=>[],tD=null;function Up(t){const e=t.parentNode||t.host;return e===tD?null:e}(kp()||"undefined"!=typeof Element)&&(aO()?(tD=(()=>document.documentElement)(),Hp=(t,e)=>{for(;e;){if(e===t)return!0;e=Up(e)}return!1}):Hp=(t,e)=>t.contains(e),eD=(t,e,n)=>{if(n)return Array.from(t.querySelectorAll(e));const r=t.querySelector(e);return r?[r]:[]});let _o=null,nD=!1;function rD(t){_o||(_o=function lO(){return"undefined"!=typeof document?document.body:null}()||{},nD=!!_o.style&&"WebkitAppearance"in _o.style);let e=!0;return _o.style&&!function uO(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in _o.style,!e&&nD&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in _o.style)),e}const iD=Hp,oD=eD;let sD=(()=>{class t{validateStyleProperty(n){return rD(n)}matchesElement(n,r){return!1}containsElement(n,r){return iD(n,r)}getParentElement(n){return Up(n)}query(n,r,i){return oD(n,r,i)}computeStyle(n,r,i){return i||""}animate(n,r,i,o,u,l=[],d){return new Ou(i,o)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})(),Gp=(()=>{class t{}return t.NOOP=new sD,t})();const $p="ng-enter",Fc="ng-leave",Lc="ng-trigger",xc=".ng-trigger",uD="ng-animating",zp=".ng-animating";function Do(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:qp(parseFloat(e[1]),e[2])}function qp(t,e){return"s"===e?1e3*t:t}function kc(t,e,n){return t.hasOwnProperty("duration")?t:function fO(t,e,n){let i,o=0,u="";if("string"==typeof t){const l=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return e.push(Z_()),{duration:0,delay:0,easing:""};i=qp(parseFloat(l[1]),l[2]);const d=l[3];null!=d&&(o=qp(parseFloat(d),l[4]));const p=l[5];p&&(u=p)}else i=t;if(!n){let l=!1,d=e.length;i<0&&(e.push(function AR(){return new Y(3100,Le)}()),l=!0),o<0&&(e.push(function MR(){return new Y(3101,Le)}()),l=!0),l&&e.splice(d,0,Z_())}return{duration:i,delay:o,easing:u}}(t,e,n)}function js(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function Li(t,e,n={}){if(e)for(let r in t)n[r]=t[r];else js(t,n);return n}function cD(t,e,n){return n?e+":"+n+";":""}function dD(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style.item(n);e+=cD(0,r,t.style.getPropertyValue(r))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=cD(0,gO(n),t.style[n]));t.setAttribute("style",e)}function Rr(t,e,n){t.style&&(Object.keys(e).forEach(r=>{const i=Yp(r);n&&!n.hasOwnProperty(r)&&(n[r]=t.style[i]),t.style[i]=e[r]}),kp()&&dD(t))}function Io(t,e){t.style&&(Object.keys(e).forEach(n=>{const r=Yp(n);t.style[r]=""}),kp()&&dD(t))}function Pu(t){return Array.isArray(t)?1==t.length?t[0]:W_(t):t}const Wp=new RegExp("{{\\s*(.+?)\\s*}}","g");function fD(t){let e=[];if("string"==typeof t){let n;for(;n=Wp.exec(t);)e.push(n[1]);Wp.lastIndex=0}return e}function Bc(t,e,n){const r=t.toString(),i=r.replace(Wp,(o,u)=>{let l=e[u];return e.hasOwnProperty(u)||(n.push(function OR(t){return new Y(3003,Le)}()),l=""),l.toString()});return i==r?t:i}function Vc(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const pO=/-+([a-z0-9])/g;function Yp(t){return t.replace(pO,(...e)=>e[1].toUpperCase())}function gO(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Cn(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw function PR(t){return new Y(3004,Le)}()}}function hD(t,e){return window.getComputedStyle(t)[e]}function DO(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(r=>function IO(t,e,n){if(":"==t[0]){const d=function TO(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r)<parseFloat(n);default:return e.push(function qR(t){return new Y(3016,Le)}()),"* => *"}}(t,n);if("function"==typeof d)return void e.push(d);t=d}const r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(function zR(t){return new Y(3015,Le)}()),e;const i=r[1],o=r[2],u=r[3];e.push(pD(i,u));"<"==o[0]&&!("*"==i&&"*"==u)&&e.push(pD(u,i))}(r,n,e)):n.push(t),n}const Gc=new Set(["true","1"]),$c=new Set(["false","0"]);function pD(t,e){const n=Gc.has(t)||$c.has(t),r=Gc.has(e)||$c.has(e);return(i,o)=>{let u="*"==t||t==i,l="*"==e||e==o;return!u&&n&&"boolean"==typeof i&&(u=i?Gc.has(t):$c.has(t)),!l&&r&&"boolean"==typeof o&&(l=o?Gc.has(e):$c.has(e)),u&&l}}const wO=new RegExp("s*:selfs*,?","g");function Qp(t,e,n,r){return new bO(t).build(e,n,r)}class bO{constructor(e){this._driver=e}build(e,n,r){const i=new AO(n);this._resetContextStyleTimingState(i);const o=Cn(this,Pu(e),i);return i.unsupportedCSSPropertiesFound.size&&i.unsupportedCSSPropertiesFound.keys(),o}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,n){let r=n.queryCount=0,i=n.depCount=0;const o=[],u=[];return"@"==e.name.charAt(0)&&n.errors.push(function FR(){return new Y(3006,Le)}()),e.definitions.forEach(l=>{if(this._resetContextStyleTimingState(n),0==l.type){const d=l,p=d.name;p.toString().split(/\s*,\s*/).forEach(m=>{d.name=m,o.push(this.visitState(d,n))}),d.name=p}else if(1==l.type){const d=this.visitTransition(l,n);r+=d.queryCount,i+=d.depCount,u.push(d)}else n.errors.push(function LR(){return new Y(3007,Le)}())}),{type:7,name:e.name,states:o,transitions:u,queryCount:r,depCount:i,options:null}}visitState(e,n){const r=this.visitStyle(e.styles,n),i=e.options&&e.options.params||null;if(r.containsDynamicStyles){const o=new Set,u=i||{};r.styles.forEach(l=>{if(zc(l)){const d=l;Object.keys(d).forEach(p=>{fD(d[p]).forEach(m=>{u.hasOwnProperty(m)||o.add(m)})})}}),o.size&&(Vc(o.values()),n.errors.push(function xR(t,e){return new Y(3008,Le)}()))}return{type:0,name:e.name,style:r,options:i?{params:i}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;const r=Cn(this,Pu(e.animation),n);return{type:1,matchers:DO(e.expr,n.errors),animation:r,queryCount:n.queryCount,depCount:n.depCount,options:To(e.options)}}visitSequence(e,n){return{type:2,steps:e.steps.map(r=>Cn(this,r,n)),options:To(e.options)}}visitGroup(e,n){const r=n.currentTime;let i=0;const o=e.steps.map(u=>{n.currentTime=r;const l=Cn(this,u,n);return i=Math.max(i,n.currentTime),l});return n.currentTime=i,{type:3,steps:o,options:To(e.options)}}visitAnimate(e,n){const r=function RO(t,e){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Kp(kc(t,e).duration,0,"");const n=t;if(n.split(/\s+/).some(o=>"{"==o.charAt(0)&&"{"==o.charAt(1))){const o=Kp(0,0,"");return o.dynamic=!0,o.strValue=n,o}const i=kc(n,e);return Kp(i.duration,i.delay,i.easing)}(e.timings,n.errors);n.currentAnimateTimings=r;let i,o=e.styles?e.styles:Y_({});if(5==o.type)i=this.visitKeyframes(o,n);else{let u=e.styles,l=!1;if(!u){l=!0;const p={};r.easing&&(p.easing=r.easing),u=Y_(p)}n.currentTime+=r.duration+r.delay;const d=this.visitStyle(u,n);d.isEmptyStep=l,i=d}return n.currentAnimateTimings=null,{type:4,timings:r,style:i,options:null}}visitStyle(e,n){const r=this._makeStyleAst(e,n);return this._validateStyleAst(r,n),r}_makeStyleAst(e,n){const r=[];Array.isArray(e.styles)?e.styles.forEach(u=>{"string"==typeof u?u==ei?r.push(u):n.errors.push(function kR(t){return new Y(3002,Le)}()):r.push(u)}):r.push(e.styles);let i=!1,o=null;return r.forEach(u=>{if(zc(u)){const l=u,d=l.easing;if(d&&(o=d,delete l.easing),!i)for(let p in l)if(l[p].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:r,easing:o,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,n){const r=n.currentAnimateTimings;let i=n.currentTime,o=n.currentTime;r&&o>0&&(o-=r.duration+r.delay),e.styles.forEach(u=>{"string"!=typeof u&&Object.keys(u).forEach(l=>{if(!this._driver.validateStyleProperty(l))return delete u[l],void n.unsupportedCSSPropertiesFound.add(l);const d=n.collectedStyles[n.currentQuerySelector],p=d[l];let m=!0;p&&(o!=i&&o>=p.startTime&&i<=p.endTime&&(n.errors.push(function BR(t,e,n,r,i){return new Y(3010,Le)}()),m=!1),o=p.startTime),m&&(d[l]={startTime:o,endTime:i}),n.options&&function hO(t,e,n){const r=e.params||{},i=fD(t);i.length&&i.forEach(o=>{r.hasOwnProperty(o)||n.push(function RR(t){return new Y(3001,Le)}())})}(u[l],n.options,n.errors)})})}visitKeyframes(e,n){const r={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function VR(){return new Y(3011,Le)}()),r;let o=0;const u=[];let l=!1,d=!1,p=0;const m=e.steps.map(V=>{const R=this._makeStyleAst(V,n);let G=null!=R.offset?R.offset:function MO(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(n=>{if(zc(n)&&n.hasOwnProperty("offset")){const r=n;e=parseFloat(r.offset),delete r.offset}});else if(zc(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(R.styles),ie=0;return null!=G&&(o++,ie=R.offset=G),d=d||ie<0||ie>1,l=l||ie<p,p=ie,u.push(ie),R});d&&n.errors.push(function jR(){return new Y(3012,Le)}()),l&&n.errors.push(function HR(){return new Y(3200,Le)}());const E=e.steps.length;let D=0;o>0&&o<E?n.errors.push(function UR(){return new Y(3202,Le)}()):0==o&&(D=1/(E-1));const w=E-1,b=n.currentTime,M=n.currentAnimateTimings,O=M.duration;return m.forEach((V,R)=>{const G=D>0?R==w?1:D*R:u[R],ie=G*O;n.currentTime=b+M.delay+ie,M.duration=ie,this._validateStyleAst(V,n),V.offset=G,r.styles.push(V)}),r}visitReference(e,n){return{type:8,animation:Cn(this,Pu(e.animation),n),options:To(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:9,options:To(e.options)}}visitAnimateRef(e,n){return{type:10,animation:this.visitReference(e.animation,n),options:To(e.options)}}visitQuery(e,n){const r=n.currentQuerySelector,i=e.options||{};n.queryCount++,n.currentQuery=e;const[o,u]=function SO(t){const e=!!t.split(/\s*,\s*/).find(n=>":self"==n);return e&&(t=t.replace(wO,"")),t=t.replace(/@\*/g,xc).replace(/@\w+/g,n=>xc+"-"+n.substr(1)).replace(/:animating/g,zp),[t,e]}(e.selector);n.currentQuerySelector=r.length?r+" "+o:o,Sn(n.collectedStyles,n.currentQuerySelector,{});const l=Cn(this,Pu(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:u,animation:l,originalSelector:e.selector,options:To(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push(function GR(){return new Y(3013,Le)}());const r="full"===e.timings?{duration:0,delay:0,easing:"full"}:kc(e.timings,n.errors,!0);return{type:12,animation:Cn(this,Pu(e.animation),n),timings:r,options:null}}}class AO{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function zc(t){return!Array.isArray(t)&&"object"==typeof t}function To(t){return t?(t=js(t)).params&&(t.params=function CO(t){return t?js(t):null}(t.params)):t={},t}function Kp(t,e,n){return{duration:t,delay:e,easing:n}}function Zp(t,e,n,r,i,o,u=null,l=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:u,subTimeline:l}}class qc{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,n){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...n)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const NO=new RegExp(":enter","g"),LO=new RegExp(":leave","g");function Xp(t,e,n,r,i,o={},u={},l,d,p=[]){return(new xO).buildKeyframes(t,e,n,r,i,o,u,l,d,p)}class xO{buildKeyframes(e,n,r,i,o,u,l,d,p,m=[]){p=p||new qc;const E=new Jp(e,n,p,i,o,m,[]);E.options=d,E.currentTimeline.setStyles([u],null,E.errors,d),Cn(this,r,E);const D=E.timelines.filter(w=>w.containsAnimation());if(Object.keys(l).length){let w;for(let b=D.length-1;b>=0;b--){const M=D[b];if(M.element===n){w=M;break}}w&&!w.allowOnlyTimelineStyles()&&w.setStyles([l],null,E.errors,d)}return D.length?D.map(w=>w.buildKeyframes()):[Zp(n,[],[],[],0,0,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){const r=n.subInstructions.get(n.element);if(r){const i=n.createSubContext(e.options),o=n.currentTimeline.currentTime,u=this._visitSubInstructions(r,i,i.options);o!=u&&n.transformIntoNewTimeline(u)}n.previousNode=e}visitAnimateRef(e,n){const r=n.createSubContext(e.options);r.transformIntoNewTimeline(),this.visitReference(e.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=e}_visitSubInstructions(e,n,r){let o=n.currentTimeline.currentTime;const u=null!=r.duration?Do(r.duration):null,l=null!=r.delay?Do(r.delay):null;return 0!==u&&e.forEach(d=>{const p=n.appendInstructionToTimeline(d,u,l);o=Math.max(o,p.duration+p.delay)}),o}visitReference(e,n){n.updateOptions(e.options,!0),Cn(this,e.animation,n),n.previousNode=e}visitSequence(e,n){const r=n.subContextCount;let i=n;const o=e.options;if(o&&(o.params||o.delay)&&(i=n.createSubContext(o),i.transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Wc);const u=Do(o.delay);i.delayNextStep(u)}e.steps.length&&(e.steps.forEach(u=>Cn(this,u,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){const r=[];let i=n.currentTimeline.currentTime;const o=e.options&&e.options.delay?Do(e.options.delay):0;e.steps.forEach(u=>{const l=n.createSubContext(e.options);o&&l.delayNextStep(o),Cn(this,u,l),i=Math.max(i,l.currentTimeline.currentTime),r.push(l.currentTimeline)}),r.forEach(u=>n.currentTimeline.mergeTimelineCollectedStyles(u)),n.transformIntoNewTimeline(i),n.previousNode=e}_visitTiming(e,n){if(e.dynamic){const r=e.strValue;return kc(n.params?Bc(r,n.params,n.errors):r,n.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,n){const r=n.currentAnimateTimings=this._visitTiming(e.timings,n),i=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),i.snapshotCurrentStyles());const o=e.style;5==o.type?this.visitKeyframes(o,n):(n.incrementTime(r.duration),this.visitStyle(o,n),i.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){const r=n.currentTimeline,i=n.currentAnimateTimings;!i&&r.getCurrentStyleProperties().length&&r.forwardFrame();const o=i&&i.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(o):r.setStyles(e.styles,o,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){const r=n.currentAnimateTimings,i=n.currentTimeline.duration,o=r.duration,l=n.createSubContext().currentTimeline;l.easing=r.easing,e.styles.forEach(d=>{l.forwardTime((d.offset||0)*o),l.setStyles(d.styles,d.easing,n.errors,n.options),l.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(l),n.transformIntoNewTimeline(i+o),n.previousNode=e}visitQuery(e,n){const r=n.currentTimeline.currentTime,i=e.options||{},o=i.delay?Do(i.delay):0;o&&(6===n.previousNode.type||0==r&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Wc);let u=r;const l=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,n.errors);n.currentQueryTotal=l.length;let d=null;l.forEach((p,m)=>{n.currentQueryIndex=m;const E=n.createSubContext(e.options,p);o&&E.delayNextStep(o),p===n.element&&(d=E.currentTimeline),Cn(this,e.animation,E),E.currentTimeline.applyStylesToKeyframe(),u=Math.max(u,E.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(u),d&&(n.currentTimeline.mergeTimelineCollectedStyles(d),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){const r=n.parentContext,i=n.currentTimeline,o=e.timings,u=Math.abs(o.duration),l=u*(n.currentQueryTotal-1);let d=u*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":d=l-d;break;case"full":d=r.currentStaggerTime}const m=n.currentTimeline;d&&m.delayNextStep(d);const E=m.currentTime;Cn(this,e.animation,n),n.previousNode=e,r.currentStaggerTime=i.currentTime-E+(i.startTime-r.currentTimeline.startTime)}}const Wc={};class Jp{constructor(e,n,r,i,o,u,l,d){this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=o,this.errors=u,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Wc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=d||new Yc(this._driver,n,0),l.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;const r=e;let i=this.options;null!=r.duration&&(i.duration=Do(r.duration)),null!=r.delay&&(i.delay=Do(r.delay));const o=r.params;if(o){let u=i.params;u||(u=this.options.params={}),Object.keys(o).forEach(l=>{(!n||!u.hasOwnProperty(l))&&(u[l]=Bc(o[l],u,this.errors))})}}_copyOptions(){const e={};if(this.options){const n=this.options.params;if(n){const r=e.params={};Object.keys(n).forEach(i=>{r[i]=n[i]})}}return e}createSubContext(e=null,n,r){const i=n||this.element,o=new Jp(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}transformIntoNewTimeline(e){return this.previousNode=Wc,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,r){const i={duration:null!=n?n:e.duration,delay:this.currentTimeline.currentTime+(null!=r?r:0)+e.delay,easing:""},o=new kO(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(o),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,r,i,o,u){let l=[];if(i&&l.push(this.element),e.length>0){e=(e=e.replace(NO,"."+this._enterClassName)).replace(LO,"."+this._leaveClassName);let p=this._driver.query(this.element,e,1!=r);0!==r&&(p=r<0?p.slice(p.length+r,p.length):p.slice(0,r)),l.push(...p)}return!o&&0==l.length&&u.push(function $R(t){return new Y(3014,Le)}()),l}}class Yc{constructor(e,n,r,i){this._driver=e,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,n){return this.applyStylesToKeyframe(),new Yc(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,n){this._localTimelineStyles[e]=n,this._globalTimelineStyles[e]=n,this._styleSummary[e]={time:this.currentTime,value:n}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(n=>{this._backFill[n]=this._globalTimelineStyles[n]||ei,this._currentKeyframe[n]=ei}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,i){n&&(this._previousKeyframe.easing=n);const o=i&&i.params||{},u=function BO(t,e){const n={};let r;return t.forEach(i=>{"*"===i?(r=r||Object.keys(e),r.forEach(o=>{n[o]=ei})):Li(i,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(u).forEach(l=>{const d=Bc(u[l],o,r);this._pendingStyles[l]=d,this._localTimelineStyles.hasOwnProperty(l)||(this._backFill[l]=this._globalTimelineStyles.hasOwnProperty(l)?this._globalTimelineStyles[l]:ei),this._updateStyle(l,d)})}applyStylesToKeyframe(){const e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(r=>{this._currentKeyframe[r]=e[r]}),Object.keys(this._localTimelineStyles).forEach(r=>{this._currentKeyframe.hasOwnProperty(r)||(this._currentKeyframe[r]=this._localTimelineStyles[r])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const n=this._localTimelineStyles[e];this._pendingStyles[e]=n,this._updateStyle(e,n)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let n in this._currentKeyframe)e.push(n);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(n=>{const r=this._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&this._updateStyle(n,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((l,d)=>{const p=Li(l,!0);Object.keys(p).forEach(m=>{const E=p[m];"!"==E?e.add(m):E==ei&&n.add(m)}),r||(p.offset=d/this.duration),i.push(p)});const o=e.size?Vc(e.values()):[],u=n.size?Vc(n.values()):[];if(r){const l=i[0],d=js(l);l.offset=0,d.offset=1,i=[l,d]}return Zp(this.element,i,o,u,this.duration,this.startTime,this.easing,!1)}}class kO extends Yc{constructor(e,n,r,i,o,u,l=!1){super(e,n,u.delay),this.keyframes=r,this.preStyleProps=i,this.postStyleProps=o,this._stretchStartingKeyframe=l,this.timings={duration:u.duration,delay:u.delay,easing:u.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:n,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&n){const o=[],u=r+n,l=n/u,d=Li(e[0],!1);d.offset=0,o.push(d);const p=Li(e[0],!1);p.offset=yD(l),o.push(p);const m=e.length-1;for(let E=1;E<=m;E++){let D=Li(e[E],!1);D.offset=yD((n+D.offset*r)/u),o.push(D)}r=u,n=0,i="",e=o}return Zp(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}function yD(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class eg{}class VO extends eg{normalizePropertyName(e,n){return Yp(e)}normalizeStyleValue(e,n,r,i){let o="";const u=r.toString().trim();if(jO[n]&&0!==r&&"0"!==r)if("number"==typeof r)o="px";else{const l=r.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&i.push(function NR(t,e){return new Y(3005,Le)}())}return u+o}}const jO=(()=>function HO(t){const e={};return t.forEach(n=>e[n]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function vD(t,e,n,r,i,o,u,l,d,p,m,E,D){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:u,timelines:l,queriedElements:d,preStyleProps:p,postStyleProps:m,totalTime:E,errors:D}}const tg={};class ED{constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,i){return function UO(t,e,n,r,i){return t.some(o=>o(e,n,r,i))}(this.ast.matchers,e,n,r,i)}buildStyles(e,n,r){const i=this._stateStyles["*"],o=this._stateStyles[e],u=i?i.buildStyles(n,r):{};return o?o.buildStyles(n,r):u}build(e,n,r,i,o,u,l,d,p,m){const E=[],D=this.ast.options&&this.ast.options.params||tg,b=this.buildStyles(r,l&&l.params||tg,E),M=d&&d.params||tg,O=this.buildStyles(i,M,E),V=new Set,R=new Map,G=new Map,ie="void"===i,we={params:Object.assign(Object.assign({},D),M)},ot=m?[]:Xp(e,n,this.ast.animation,o,u,b,O,we,p,E);let ct=0;if(ot.forEach(Mn=>{ct=Math.max(Mn.duration+Mn.delay,ct)}),E.length)return vD(n,this._triggerName,r,i,ie,b,O,[],[],R,G,ct,E);ot.forEach(Mn=>{const Rn=Mn.element,Us=Sn(R,Rn,{});Mn.preStyleProps.forEach(sr=>Us[sr]=!0);const ti=Sn(G,Rn,{});Mn.postStyleProps.forEach(sr=>ti[sr]=!0),Rn!==n&&V.add(Rn)});const An=Vc(V.values());return vD(n,this._triggerName,r,i,ie,b,O,ot,An,R,G,ct)}}class GO{constructor(e,n,r){this.styles=e,this.defaultParams=n,this.normalizer=r}buildStyles(e,n){const r={},i=js(this.defaultParams);return Object.keys(e).forEach(o=>{const u=e[o];null!=u&&(i[o]=u)}),this.styles.styles.forEach(o=>{if("string"!=typeof o){const u=o;Object.keys(u).forEach(l=>{let d=u[l];d.length>1&&(d=Bc(d,i,n));const p=this.normalizer.normalizePropertyName(l,n);d=this.normalizer.normalizeStyleValue(l,p,d,n),r[p]=d})}}),r}}class zO{constructor(e,n,r){this.name=e,this.ast=n,this._normalizer=r,this.transitionFactories=[],this.states={},n.states.forEach(i=>{this.states[i.name]=new GO(i.style,i.options&&i.options.params||{},r)}),_D(this.states,"true","1"),_D(this.states,"false","0"),n.transitions.forEach(i=>{this.transitionFactories.push(new ED(e,i,this.states))}),this.fallbackTransition=function qO(t,e,n){return new ED(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(u,l)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,n,r,i){return this.transitionFactories.find(u=>u.match(e,n,r,i))||null}matchStyles(e,n,r){return this.fallbackTransition.buildStyles(e,n,r)}}function _D(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const WO=new qc;class YO{constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}register(e,n){const r=[],o=Qp(this._driver,n,r,[]);if(r.length)throw function ZR(t){return new Y(3503,Le)}();this._animations[e]=o}_buildPlayer(e,n,r){const i=e.element,o=X_(0,this._normalizer,0,e.keyframes,n,r);return this._driver.animate(i,o,e.duration,e.delay,e.easing,[],!0)}create(e,n,r={}){const i=[],o=this._animations[e];let u;const l=new Map;if(o?(u=Xp(this._driver,n,o,$p,Fc,{},{},r,WO,i),u.forEach(m=>{const E=Sn(l,m.element,{});m.postStyleProps.forEach(D=>E[D]=null)})):(i.push(function XR(){return new Y(3300,Le)}()),u=[]),i.length)throw function JR(t){return new Y(3504,Le)}();l.forEach((m,E)=>{Object.keys(m).forEach(D=>{m[D]=this._driver.computeStyle(E,D,ei)})});const p=Fi(u.map(m=>{const E=l.get(m.element);return this._buildPlayer(m,{},E)}));return this._playersById[e]=p,p.onDestroy(()=>this.destroy(e)),this.players.push(p),p}destroy(e){const n=this._getPlayer(e);n.destroy(),delete this._playersById[e];const r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(e){const n=this._playersById[e];if(!n)throw function eO(t){return new Y(3301,Le)}();return n}listen(e,n,r,i){const o=jp(n,"","","");return Bp(this._getPlayer(e),r,o,i),()=>{}}command(e,n,r,i){if("register"==r)return void this.register(e,i[0]);if("create"==r)return void this.create(e,n,i[0]||{});const o=this._getPlayer(e);switch(r){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e)}}}const DD="ng-animate-queued",ng="ng-animate-disabled",JO=[],ID={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},eP={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},qn="__ng_removed";class rg{constructor(e,n=""){this.namespaceId=n;const r=e&&e.hasOwnProperty("value");if(this.value=function iP(t){return null!=t?t:null}(r?e.value:e),r){const o=js(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const n=e.params;if(n){const r=this.options.params;Object.keys(n).forEach(i=>{null==r[i]&&(r[i]=n[i])})}}}const Nu="void",ig=new rg(Nu);class tP{constructor(e,n,r){this.id=e,this.hostElement=n,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Wn(n,this._hostClassName)}listen(e,n,r,i){if(!this._triggers.hasOwnProperty(n))throw function tO(t,e){return new Y(3302,Le)}();if(null==r||0==r.length)throw function nO(t){return new Y(3303,Le)}();if(!function oP(t){return"start"==t||"done"==t}(r))throw function rO(t,e){return new Y(3400,Le)}();const o=Sn(this._elementListeners,e,[]),u={name:n,phase:r,callback:i};o.push(u);const l=Sn(this._engine.statesByElement,e,{});return l.hasOwnProperty(n)||(Wn(e,Lc),Wn(e,Lc+"-"+n),l[n]=ig),()=>{this._engine.afterFlush(()=>{const d=o.indexOf(u);d>=0&&o.splice(d,1),this._triggers[n]||delete l[n]})}}register(e,n){return!this._triggers[e]&&(this._triggers[e]=n,!0)}_getTrigger(e){const n=this._triggers[e];if(!n)throw function iO(t){return new Y(3401,Le)}();return n}trigger(e,n,r,i=!0){const o=this._getTrigger(n),u=new og(this.id,n,e);let l=this._engine.statesByElement.get(e);l||(Wn(e,Lc),Wn(e,Lc+"-"+n),this._engine.statesByElement.set(e,l={}));let d=l[n];const p=new rg(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&d&&p.absorbOptions(d.options),l[n]=p,d||(d=ig),p.value!==Nu&&d.value===p.value){if(!function uP(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let i=0;i<n.length;i++){const o=n[i];if(!e.hasOwnProperty(o)||t[o]!==e[o])return!1}return!0}(d.params,p.params)){const M=[],O=o.matchStyles(d.value,d.params,M),V=o.matchStyles(p.value,p.params,M);M.length?this._engine.reportError(M):this._engine.afterFlush(()=>{Io(e,O),Rr(e,V)})}return}const D=Sn(this._engine.playersByElement,e,[]);D.forEach(M=>{M.namespaceId==this.id&&M.triggerName==n&&M.queued&&M.destroy()});let w=o.matchTransition(d.value,p.value,e,p.params),b=!1;if(!w){if(!i)return;w=o.fallbackTransition,b=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:w,fromState:d,toState:p,player:u,isFallbackTransition:b}),b||(Wn(e,DD),u.onStart(()=>{Hs(e,DD)})),u.onDone(()=>{let M=this.players.indexOf(u);M>=0&&this.players.splice(M,1);const O=this._engine.playersByElement.get(e);if(O){let V=O.indexOf(u);V>=0&&O.splice(V,1)}}),this.players.push(u),D.push(u),u}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((n,r)=>{delete n[e]}),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const n=this._engine.playersByElement.get(e);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,n){const r=this._engine.driver.query(e,xc,!0);r.forEach(i=>{if(i[qn])return;const o=this._engine.fetchNamespacesByElement(i);o.size?o.forEach(u=>u.triggerLeaveAnimation(i,n,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,n,r,i){const o=this._engine.statesByElement.get(e),u=new Map;if(o){const l=[];if(Object.keys(o).forEach(d=>{if(u.set(d,o[d].value),this._triggers[d]){const p=this.trigger(e,d,Nu,i);p&&l.push(p)}}),l.length)return this._engine.markElementAsRemoved(this.id,e,!0,n,u),r&&Fi(l).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const n=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(n&&r){const i=new Set;n.forEach(o=>{const u=o.name;if(i.has(u))return;i.add(u);const d=this._triggers[u].fallbackTransition,p=r[u]||ig,m=new rg(Nu),E=new og(this.id,u,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:u,transition:d,fromState:p,toState:m,player:E,isFallbackTransition:!0})})}}removeNode(e,n){const r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),this.triggerLeaveAnimation(e,n,!0))return;let i=!1;if(r.totalAnimations){const o=r.players.length?r.playersByQueriedElement.get(e):[];if(o&&o.length)i=!0;else{let u=e;for(;u=u.parentNode;)if(r.statesByElement.get(u)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)r.markElementAsRemoved(this.id,e,!1,n);else{const o=e[qn];(!o||o===ID)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,n))}}insertNode(e,n){Wn(e,this._hostClassName)}drainQueuedTransitions(e){const n=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const o=r.element,u=this._elementListeners.get(o);u&&u.forEach(l=>{if(l.name==r.triggerName){const d=jp(o,r.triggerName,r.fromState.value,r.toState.value);d._data=e,Bp(r.player,l.phase,d,l.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):n.push(r)}),this._queue=[],n.sort((r,i)=>{const o=r.transition.ast.depCount,u=i.transition.ast.depCount;return 0==o||0==u?o-u:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let n=!1;return this._elementListeners.has(e)&&(n=!0),n=!!this._queue.find(r=>r.element===e)||n,n}}class nP{constructor(e,n,r){this.bodyNode=e,this.driver=n,this._normalizer=r,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(i,o)=>{}}_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,n){const r=new tP(e,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,n){const r=this._namespaceList,i=this.namespacesByHostElement,o=r.length-1;if(o>=0){let u=!1;if(void 0!==this.driver.getParentElement){let l=this.driver.getParentElement(n);for(;l;){const d=i.get(l);if(d){const p=r.indexOf(d);r.splice(p+1,0,e),u=!0;break}l=this.driver.getParentElement(l)}}else for(let l=o;l>=0;l--)if(this.driver.containsElement(r[l].hostElement,n)){r.splice(l+1,0,e),u=!0;break}u||r.unshift(e)}else r.push(e);return i.set(n,e),e}register(e,n){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,n)),r}registerTrigger(e,n,r){let i=this._namespaceLookup[e];i&&i.register(n,r)&&this.totalAnimations++}destroy(e,n){if(!e)return;const r=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[e];const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1)}),this.afterFlushAnimationsDone(()=>r.destroy(n))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const n=new Set,r=this.statesByElement.get(e);if(r){const i=Object.keys(r);for(let o=0;o<i.length;o++){const u=r[i[o]].namespaceId;if(u){const l=this._fetchNamespace(u);l&&n.add(l)}}}return n}trigger(e,n,r,i){if(Qc(n)){const o=this._fetchNamespace(e);if(o)return o.trigger(n,r,i),!0}return!1}insertNode(e,n,r,i){if(!Qc(n))return;const o=n[qn];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;const u=this.collectedLeaveElements.indexOf(n);u>=0&&this.collectedLeaveElements.splice(u,1)}if(e){const u=this._fetchNamespace(e);u&&u.insertNode(n,r)}i&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Wn(e,ng)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Hs(e,ng))}removeNode(e,n,r,i){if(Qc(n)){const o=e?this._fetchNamespace(e):null;if(o?o.removeNode(n,i):this.markElementAsRemoved(e,n,!1,i),r){const u=this.namespacesByHostElement.get(n);u&&u.id!==e&&u.removeNode(n,i)}}else this._onRemovalComplete(n,i)}markElementAsRemoved(e,n,r,i,o){this.collectedLeaveElements.push(n),n[qn]={namespaceId:e,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1,previousTriggersValues:o}}listen(e,n,r,i,o){return Qc(n)?this._fetchNamespace(e).listen(n,r,i,o):()=>{}}_buildInstruction(e,n,r,i,o){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,i,e.fromState.options,e.toState.options,n,o)}destroyInnerAnimations(e){let n=this.driver.query(e,xc,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,zp,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){const n=this.playersByElement.get(e);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){const n=this.playersByQueriedElement.get(e);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return Fi(this.players).onDone(()=>e());e()})}processLeaveNode(e){var n;const r=e[qn];if(r&&r.setForRemoval){if(e[qn]=ID,r.namespaceId){this.destroyInnerAnimations(e);const i=this._fetchNamespace(r.namespaceId);i&&i.clearElementCache(e)}this._onRemovalComplete(e,r.setForRemoval)}(null===(n=e.classList)||void 0===n?void 0:n.contains(ng))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(e=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)Wn(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{n=this._flushAnimations(r,e)}finally{for(let i=0;i<r.length;i++)r[i]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],n.length?Fi(n).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(e){throw function oO(t){return new Y(3402,Le)}()}_flushAnimations(e,n){const r=new qc,i=[],o=new Map,u=[],l=new Map,d=new Map,p=new Map,m=new Set;this.disabledNodes.forEach(X=>{m.add(X);const ue=this.driver.query(X,".ng-animate-queued",!0);for(let he=0;he<ue.length;he++)m.add(ue[he])});const E=this.bodyNode,D=Array.from(this.statesByElement.keys()),w=bD(D,this.collectedEnterElements),b=new Map;let M=0;w.forEach((X,ue)=>{const he=$p+M++;b.set(ue,he),X.forEach(Ue=>Wn(Ue,he))});const O=[],V=new Set,R=new Set;for(let X=0;X<this.collectedLeaveElements.length;X++){const ue=this.collectedLeaveElements[X],he=ue[qn];he&&he.setForRemoval&&(O.push(ue),V.add(ue),he.hasAnimation?this.driver.query(ue,".ng-star-inserted",!0).forEach(Ue=>V.add(Ue)):R.add(ue))}const G=new Map,ie=bD(D,Array.from(V));ie.forEach((X,ue)=>{const he=Fc+M++;G.set(ue,he),X.forEach(Ue=>Wn(Ue,he))}),e.push(()=>{w.forEach((X,ue)=>{const he=b.get(ue);X.forEach(Ue=>Hs(Ue,he))}),ie.forEach((X,ue)=>{const he=G.get(ue);X.forEach(Ue=>Hs(Ue,he))}),O.forEach(X=>{this.processLeaveNode(X)})});const we=[],ot=[];for(let X=this._namespaceList.length-1;X>=0;X--)this._namespaceList[X].drainQueuedTransitions(n).forEach(he=>{const Ue=he.player,Nt=he.element;if(we.push(Ue),this.collectedEnterElements.length){const on=Nt[qn];if(on&&on.setForMove){if(on.previousTriggersValues&&on.previousTriggersValues.has(he.triggerName)){const wo=on.previousTriggersValues.get(he.triggerName),ki=this.statesByElement.get(he.element);ki&&ki[he.triggerName]&&(ki[he.triggerName].value=wo)}return void Ue.destroy()}}const Or=!E||!this.driver.containsElement(E,Nt),On=G.get(Nt),xi=b.get(Nt),dt=this._buildInstruction(he,r,xi,On,Or);if(dt.errors&&dt.errors.length)return void ot.push(dt);if(Or)return Ue.onStart(()=>Io(Nt,dt.fromStyles)),Ue.onDestroy(()=>Rr(Nt,dt.toStyles)),void i.push(Ue);if(he.isFallbackTransition)return Ue.onStart(()=>Io(Nt,dt.fromStyles)),Ue.onDestroy(()=>Rr(Nt,dt.toStyles)),void i.push(Ue);const LD=[];dt.timelines.forEach(on=>{on.stretchStartingKeyframe=!0,this.disabledNodes.has(on.element)||LD.push(on)}),dt.timelines=LD,r.append(Nt,dt.timelines),u.push({instruction:dt,player:Ue,element:Nt}),dt.queriedElements.forEach(on=>Sn(l,on,[]).push(Ue)),dt.preStyleProps.forEach((on,wo)=>{const ki=Object.keys(on);if(ki.length){let bo=d.get(wo);bo||d.set(wo,bo=new Set),ki.forEach(ug=>bo.add(ug))}}),dt.postStyleProps.forEach((on,wo)=>{const ki=Object.keys(on);let bo=p.get(wo);bo||p.set(wo,bo=new Set),ki.forEach(ug=>bo.add(ug))})});if(ot.length){const X=[];ot.forEach(ue=>{X.push(function sO(t,e){return new Y(3505,Le)}())}),we.forEach(ue=>ue.destroy()),this.reportError(X)}const ct=new Map,An=new Map;u.forEach(X=>{const ue=X.element;r.has(ue)&&(An.set(ue,ue),this._beforeAnimationBuild(X.player.namespaceId,X.instruction,ct))}),i.forEach(X=>{const ue=X.element;this._getPreviousPlayers(ue,!1,X.namespaceId,X.triggerName,null).forEach(Ue=>{Sn(ct,ue,[]).push(Ue),Ue.destroy()})});const Mn=O.filter(X=>CD(X,d,p)),Rn=new Map;wD(Rn,this.driver,R,p,ei).forEach(X=>{CD(X,d,p)&&Mn.push(X)});const ti=new Map;w.forEach((X,ue)=>{wD(ti,this.driver,new Set(X),d,"!")}),Mn.forEach(X=>{const ue=Rn.get(X),he=ti.get(X);Rn.set(X,Object.assign(Object.assign({},ue),he))});const sr=[],Gs=[],$s={};u.forEach(X=>{const{element:ue,player:he,instruction:Ue}=X;if(r.has(ue)){if(m.has(ue))return he.onDestroy(()=>Rr(ue,Ue.toStyles)),he.disabled=!0,he.overrideTotalTime(Ue.totalTime),void i.push(he);let Nt=$s;if(An.size>1){let On=ue;const xi=[];for(;On=On.parentNode;){const dt=An.get(On);if(dt){Nt=dt;break}xi.push(On)}xi.forEach(dt=>An.set(dt,Nt))}const Or=this._buildAnimation(he.namespaceId,Ue,ct,o,ti,Rn);if(he.setRealPlayer(Or),Nt===$s)sr.push(he);else{const On=this.playersByElement.get(Nt);On&&On.length&&(he.parentPlayer=Fi(On)),i.push(he)}}else Io(ue,Ue.fromStyles),he.onDestroy(()=>Rr(ue,Ue.toStyles)),Gs.push(he),m.has(ue)&&i.push(he)}),Gs.forEach(X=>{const ue=o.get(X.element);if(ue&&ue.length){const he=Fi(ue);X.setRealPlayer(he)}}),i.forEach(X=>{X.parentPlayer?X.syncPlayerEvents(X.parentPlayer):X.destroy()});for(let X=0;X<O.length;X++){const ue=O[X],he=ue[qn];if(Hs(ue,Fc),he&&he.hasAnimation)continue;let Ue=[];if(l.size){let Or=l.get(ue);Or&&Or.length&&Ue.push(...Or);let On=this.driver.query(ue,zp,!0);for(let xi=0;xi<On.length;xi++){let dt=l.get(On[xi]);dt&&dt.length&&Ue.push(...dt)}}const Nt=Ue.filter(Or=>!Or.destroyed);Nt.length?sP(this,ue,Nt):this.processLeaveNode(ue)}return O.length=0,sr.forEach(X=>{this.players.push(X),X.onDone(()=>{X.destroy();const ue=this.players.indexOf(X);this.players.splice(ue,1)}),X.play()}),sr}elementContainsData(e,n){let r=!1;const i=n[qn];return i&&i.setForRemoval&&(r=!0),this.playersByElement.has(n)&&(r=!0),this.playersByQueriedElement.has(n)&&(r=!0),this.statesByElement.has(n)&&(r=!0),this._fetchNamespace(e).elementContainsData(n)||r}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,r,i,o){let u=[];if(n){const l=this.playersByQueriedElement.get(e);l&&(u=l)}else{const l=this.playersByElement.get(e);if(l){const d=!o||o==Nu;l.forEach(p=>{p.queued||!d&&p.triggerName!=i||u.push(p)})}}return(r||i)&&(u=u.filter(l=>!(r&&r!=l.namespaceId||i&&i!=l.triggerName))),u}_beforeAnimationBuild(e,n,r){const o=n.element,u=n.isRemovalTransition?void 0:e,l=n.isRemovalTransition?void 0:n.triggerName;for(const d of n.timelines){const p=d.element,m=p!==o,E=Sn(r,p,[]);this._getPreviousPlayers(p,m,u,l,n.toState).forEach(w=>{const b=w.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),w.destroy(),E.push(w)})}Io(o,n.fromStyles)}_buildAnimation(e,n,r,i,o,u){const l=n.triggerName,d=n.element,p=[],m=new Set,E=new Set,D=n.timelines.map(b=>{const M=b.element;m.add(M);const O=M[qn];if(O&&O.removedBeforeQueried)return new Ou(b.duration,b.delay);const V=M!==d,R=function aP(t){const e=[];return SD(t,e),e}((r.get(M)||JO).map(ct=>ct.getRealPlayer())).filter(ct=>!!ct.element&&ct.element===M),G=o.get(M),ie=u.get(M),we=X_(0,this._normalizer,0,b.keyframes,G,ie),ot=this._buildPlayer(b,we,R);if(b.subTimeline&&i&&E.add(M),V){const ct=new og(e,l,M);ct.setRealPlayer(ot),p.push(ct)}return ot});p.forEach(b=>{Sn(this.playersByQueriedElement,b.element,[]).push(b),b.onDone(()=>function rP(t,e,n){let r;if(t instanceof Map){if(r=t.get(e),r){if(r.length){const i=r.indexOf(n);r.splice(i,1)}0==r.length&&t.delete(e)}}else if(r=t[e],r){if(r.length){const i=r.indexOf(n);r.splice(i,1)}0==r.length&&delete t[e]}return r}(this.playersByQueriedElement,b.element,b))}),m.forEach(b=>Wn(b,uD));const w=Fi(D);return w.onDestroy(()=>{m.forEach(b=>Hs(b,uD)),Rr(d,n.toStyles)}),E.forEach(b=>{Sn(i,b,[]).push(w)}),w}_buildPlayer(e,n,r){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,r):new Ou(e.duration,e.delay)}}class og{constructor(e,n,r){this.namespaceId=e,this.triggerName=n,this.element=r,this._player=new Ou,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(n=>{this._queuedCallbacks[n].forEach(r=>Bp(e,n,void 0,r))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const n=this._player;n.triggerCallback&&e.onStart(()=>n.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,n){Sn(this._queuedCallbacks,e,[]).push(n)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const n=this._player;n.triggerCallback&&n.triggerCallback(e)}}function Qc(t){return t&&1===t.nodeType}function TD(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function wD(t,e,n,r,i){const o=[];n.forEach(d=>o.push(TD(d)));const u=[];r.forEach((d,p)=>{const m={};d.forEach(E=>{const D=m[E]=e.computeStyle(p,E,i);(!D||0==D.length)&&(p[qn]=eP,u.push(p))}),t.set(p,m)});let l=0;return n.forEach(d=>TD(d,o[l++])),u}function bD(t,e){const n=new Map;if(t.forEach(l=>n.set(l,[])),0==e.length)return n;const i=new Set(e),o=new Map;function u(l){if(!l)return 1;let d=o.get(l);if(d)return d;const p=l.parentNode;return d=n.has(p)?p:i.has(p)?1:u(p),o.set(l,d),d}return e.forEach(l=>{const d=u(l);1!==d&&n.get(d).push(l)}),n}function Wn(t,e){var n;null===(n=t.classList)||void 0===n||n.add(e)}function Hs(t,e){var n;null===(n=t.classList)||void 0===n||n.remove(e)}function sP(t,e,n){Fi(n).onDone(()=>t.processLeaveNode(e))}function SD(t,e){for(let n=0;n<t.length;n++){const r=t[n];r instanceof K_?SD(r.players,e):e.push(r)}}function CD(t,e,n){const r=n.get(t);if(!r)return!1;let i=e.get(t);return i?r.forEach(o=>i.add(o)):e.set(t,r),n.delete(t),!0}class Kc{constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,o)=>{},this._transitionEngine=new nP(e,n,r),this._timelineEngine=new YO(e,n,r),this._transitionEngine.onRemovalComplete=(i,o)=>this.onRemovalComplete(i,o)}registerTrigger(e,n,r,i,o){const u=e+"-"+i;let l=this._triggerCache[u];if(!l){const d=[],m=Qp(this._driver,o,d,[]);if(d.length)throw function QR(t,e){return new Y(3404,Le)}();l=function $O(t,e,n){return new zO(t,e,n)}(i,m,this._normalizer),this._triggerCache[u]=l}this._transitionEngine.registerTrigger(n,i,l)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,r,i){this._transitionEngine.insertNode(e,n,r,i)}onRemove(e,n,r,i){this._transitionEngine.removeNode(e,n,i||!1,r)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,r,i){if("@"==r.charAt(0)){const[o,u]=J_(r);this._timelineEngine.command(o,n,u,i)}else this._transitionEngine.trigger(e,n,r,i)}listen(e,n,r,i,o){if("@"==r.charAt(0)){const[u,l]=J_(r);return this._timelineEngine.listen(u,n,l,o)}return this._transitionEngine.listen(e,n,r,i,o)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let cP=(()=>{class t{constructor(n,r,i){this._element=n,this._startStyles=r,this._endStyles=i,this._state=0;let o=t.initialStylesByElement.get(n);o||t.initialStylesByElement.set(n,o={}),this._initialStyles=o}start(){this._state<1&&(this._startStyles&&Rr(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Rr(this._element,this._initialStyles),this._endStyles&&(Rr(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Io(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Io(this._element,this._endStyles),this._endStyles=null),Rr(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function sg(t){let e=null;const n=Object.keys(t);for(let r=0;r<n.length;r++){const i=n[r];dP(i)&&(e=e||{},e[i]=t[i])}return e}function dP(t){return"display"===t||"position"===t}class AD{constructor(e,n,r,i){this.element=e,this.keyframes=n,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,n,r){return e.animate(n,r)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const n=this._finalKeyframe;Object.keys(n).forEach(r=>{"offset"!=r&&(e[r]=this._finished?n[r]:hD(this.element,r))})}this.currentSnapshot=e}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class fP{validateStyleProperty(e){return rD(e)}matchesElement(e,n){return!1}containsElement(e,n){return iD(e,n)}getParentElement(e){return Up(e)}query(e,n,r){return oD(e,n,r)}computeStyle(e,n,r){return window.getComputedStyle(e)[n]}animate(e,n,r,i,o,u=[]){const d={duration:r,delay:i,fill:0==i?"both":"forwards"};o&&(d.easing=o);const p={},m=u.filter(D=>D instanceof AD);(function mO(t,e){return 0===t||0===e})(r,i)&&m.forEach(D=>{let w=D.currentSnapshot;Object.keys(w).forEach(b=>p[b]=w[b])}),n=function yO(t,e,n){const r=Object.keys(n);if(r.length&&e.length){let o=e[0],u=[];if(r.forEach(l=>{o.hasOwnProperty(l)||u.push(l),o[l]=n[l]}),u.length)for(var i=1;i<e.length;i++){let l=e[i];u.forEach(function(d){l[d]=hD(t,d)})}}return e}(e,n=n.map(D=>Li(D,!1)),p);const E=function lP(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=sg(e[0]),e.length>1&&(r=sg(e[e.length-1]))):e&&(n=sg(e)),n||r?new cP(t,n,r):null}(e,n);return new AD(e,n,d,E)}}let hP=(()=>{class t extends q_{constructor(n,r){super(),this._nextAnimationId=0,this._renderer=n.createRenderer(r.body,{id:"0",encapsulation:vn.None,styles:[],data:{animation:[]}})}build(n){const r=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(n)?W_(n):n;return MD(this._renderer,null,r,"register",[i]),new pP(r,this._renderer)}}return t.\u0275fac=function(n){return new(n||t)(Se(vu),Se(Un))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();class pP extends class CR{}{constructor(e,n){super(),this._id=e,this._renderer=n}create(e,n){return new gP(this._id,e,n||{},this._renderer)}}class gP{constructor(e,n,r,i){this.id=e,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(e,n){return this._renderer.listen(this.element,`@@${this.id}:${e}`,n)}_command(e,...n){return MD(this._renderer,this.element,this.id,e,n)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(e){this._command("setPosition",e)}getPosition(){var e,n;return null!==(n=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==n?n:0}}function MD(t,e,n,r,i){return t.setProperty(e,`@@${n}:${r}`,i)}const RD="@.disabled";let mP=(()=>{class t{constructor(n,r,i){this.delegate=n,this.engine=r,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(o,u)=>{const l=null==u?void 0:u.parentNode(o);l&&u.removeChild(l,o)}}createRenderer(n,r){const o=this.delegate.createRenderer(n,r);if(!(n&&r&&r.data&&r.data.animation)){let m=this._rendererCache.get(o);return m||(m=new OD("",o,this.engine),this._rendererCache.set(o,m)),m}const u=r.id,l=r.id+"-"+this._currentId;this._currentId++,this.engine.register(l,n);const d=m=>{Array.isArray(m)?m.forEach(d):this.engine.registerTrigger(u,l,n,m.name,m)};return r.data.animation.forEach(d),new yP(this,l,o,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(n,r,i){n>=0&&n<this._microtaskId?this._zone.run(()=>r(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(o=>{const[u,l]=o;u(l)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([r,i]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(n){return new(n||t)(Se(vu),Se(Kc),Se(Pt))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();class OD{constructor(e,n,r){this.namespaceId=e,this.delegate=n,this.engine=r,this.destroyNode=this.delegate.destroyNode?i=>n.destroyNode(i):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,n){this.delegate.appendChild(e,n),this.engine.onInsert(this.namespaceId,n,e,!1)}insertBefore(e,n,r,i=!0){this.delegate.insertBefore(e,n,r),this.engine.onInsert(this.namespaceId,n,e,i)}removeChild(e,n,r){this.engine.onRemove(this.namespaceId,n,this.delegate,r)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,r,i){this.delegate.setAttribute(e,n,r,i)}removeAttribute(e,n,r){this.delegate.removeAttribute(e,n,r)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,r,i){this.delegate.setStyle(e,n,r,i)}removeStyle(e,n,r){this.delegate.removeStyle(e,n,r)}setProperty(e,n,r){"@"==n.charAt(0)&&n==RD?this.disableAnimations(e,!!r):this.delegate.setProperty(e,n,r)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,r){return this.delegate.listen(e,n,r)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}}class yP extends OD{constructor(e,n,r,i){super(n,r,i),this.factory=e,this.namespaceId=n}setProperty(e,n,r){"@"==n.charAt(0)?"."==n.charAt(1)&&n==RD?this.disableAnimations(e,r=void 0===r||!!r):this.engine.process(this.namespaceId,e,n.substr(1),r):this.delegate.setProperty(e,n,r)}listen(e,n,r){if("@"==n.charAt(0)){const i=function vP(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(e);let o=n.substr(1),u="";return"@"!=o.charAt(0)&&([o,u]=function EP(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(o)),this.engine.listen(this.namespaceId,i,o,u,l=>{this.factory.scheduleListenerCallback(l._data||-1,r,l)})}return this.delegate.listen(e,n,r)}}let _P=(()=>{class t extends Kc{constructor(n,r,i){super(n.body,r,i)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(n){return new(n||t)(Se(Un),Se(Gp),Se(eg))},t.\u0275prov=Ye({token:t,factory:t.\u0275fac}),t})();const PD=new Fe("AnimationModuleType"),ND=[{provide:q_,useClass:hP},{provide:eg,useFactory:function DP(){return new VO}},{provide:Kc,useClass:_P},{provide:vu,useFactory:function IP(t,e,n){return new mP(t,e,n)},deps:[Rc,Kc,Pt]}],FD=[{provide:Gp,useFactory:()=>new fP},{provide:PD,useValue:"BrowserAnimations"},...ND],TP=[{provide:Gp,useClass:sD},{provide:PD,useValue:"NoopAnimations"},...ND];let wP=(()=>{class t{static withConfig(n){return{ngModule:t,providers:n.disableAnimations?TP:FD}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ai({type:t}),t.\u0275inj=ur({providers:FD,imports:[H_]}),t})();var bP=Pn(452),SP=Pn.n(bP),CP=Pn(212),AP=Pn.n(CP),Xc=Pn(917);const MP=(0,Xc.supported)(),RP=["id","name","class","multiple","required","disabled","capture","accept"],OP=["setOptions","on","off","onOnce","appendTo","insertAfter","insertBefore","isAttachedTo","replaceElement","restoreElement","destroy"],ag=["oninit","onwarning","onerror","onactivatefile","onaddfilestart","onaddfileprogress","onaddfile","onprocessfilestart","onprocessfileprogress","onprocessfileabort","onprocessfilerevert","onprocessfile","onprocessfiles","onremovefile","onpreparefile","onupdatefiles"];let PP=(()=>{class t{constructor(n,r){this.options={},this.handleEvent=null,this.root=n,this.zone=r,ag.forEach(i=>{this[i]=new Ar})}ngAfterViewInit(){const n=this.root.nativeElement.querySelector("input"),r=this.root.nativeElement.attributes;RP.forEach(i=>{const o=r[i]?r[i].value:this.options[i];!o||n.setAttribute(i,o)}),MP&&(this.handleEvent=i=>{this[`on${i.type.split(":")[1]}`].emit(Object.assign({},i.detail))},ag.forEach(i=>{this.root.nativeElement.addEventListener(`FilePond:${i.substr(2)}`,this.handleEvent)}),this.zone.runOutsideAngular(()=>{this.pond=(0,Xc.create)(n,Object.assign({},this.options,{files:this.files}))}),Object.keys(this.pond).filter(i=>-1===OP.indexOf(i)).forEach(i=>{this[i]=this.pond[i]}))}ngOnChanges(n){if(n.firstChange||!this.pond)return;const r=n.options?n.options.currentValue:this.options;n.files&&JSON.stringify(n.files.previousValue)!==JSON.stringify(n.files.currentValue)&&(r.files=n.files.currentValue),this.pond.setOptions(r)}ngOnDestroy(){!this.pond||(ag.forEach(n=>{this.root.nativeElement.removeEventListener(`FilePond:${n.substr(2)}`,this.handleEvent)}),this.pond.destroy())}}return t.\u0275fac=function(n){return new(n||t)(be(yo),be(Pt))},t.\u0275cmp=ca({type:t,selectors:[["file-pond"]],inputs:{options:"options",files:"files"},outputs:{oninit:"oninit",onwarning:"onwarning",onerror:"onerror",onactivatefile:"onactivatefile",onaddfilestart:"onaddfilestart",onaddfileprogress:"onaddfileprogress",onaddfile:"onaddfile",onprocessfilestart:"onprocessfilestart",onprocessfileprogress:"onprocessfileprogress",onprocessfileabort:"onprocessfileabort",onprocessfilerevert:"onprocessfilerevert",onprocessfile:"onprocessfile",onprocessfiles:"onprocessfiles",onremovefile:"onremovefile",onpreparefile:"onpreparefile",onupdatefiles:"onupdatefiles"},features:[ci],decls:2,vars:0,consts:[[1,"filepond--wrapper"],["type","file"]],template:function(n,r){1&n&&(du(0,"div",0),Th(1,"input",1),fu())},styles:[""],encapsulation:2}),t})(),NP=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ai({type:t}),t.\u0275inj=ur({imports:[[M_]]}),t})();const FP=["myPond"];let LP=(()=>{class t{constructor(){this.initialFiles=[],this.pondOptions={instantUpload:!0,allowDownloadByUrl:!0,server:{process:(n,r,i,o,u,l,d)=>(this.onUpload(null,[{fieldName:n,file:r,fileName:r.name}]).then(p=>o(p)).catch(p=>u(p)),{abort:()=>{d()}}),revert:(n,r,i)=>{this.onRemoveUploaded({fileId:n}).then(o=>r()).catch(o=>i(o))}}}}pondInit(){for(const n of this.initialFiles)this.myPond.addFile(n.id,{type:"limbo",file:{name:n.fileName,size:n.length},metadata:{url:n.downloadUrl}})}ngOnChanges(n){this.pondOptions=Object.assign(Object.assign({},this.pondOptions),{allowMultiple:!!this.allowMultiple})}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=ca({type:t,selectors:[["drayman-file-uploader-internal"]],viewQuery:function(n,r){if(1&n&&EE(FP,5),2&n){let i;vE(i=function _E(){return function hC(t,e){return t[19].queries[e].queryList}(F(),Xi())}())&&(r.myPond=i.first)}},inputs:{onUpload:"onUpload",onRemoveUploaded:"onRemoveUploaded",allowMultiple:"allowMultiple",initialFiles:"initialFiles"},features:[ci],decls:2,vars:1,consts:[["aria-label","File uploader",3,"options","oninit"],["myPond",""]],template:function(n,r){1&n&&(du(0,"file-pond",0,1),Ch("oninit",function(){return r.pondInit()}),fu()),2&n&&Dh("options",r.pondOptions)},directives:[PP],styles:[""]}),t})();(0,Xc.registerPlugin)(AP()),(0,Xc.registerPlugin)(SP());let xP=(()=>{class t{constructor(n){this.injector=n}ngDoBootstrap(){const n=function SR(t,e){const n=function ER(t,e){return e.get(Ls).resolveComponentFactory(t).inputs}(t,e.injector),r=e.strategyFactory||new TR(t,e.injector),i=function vR(t){const e={};return t.forEach(({propName:n,templateName:r})=>{e[function hR(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(r)]=n}),e}(n);class o extends bR{constructor(l){super(),this.injector=l}get ngElementStrategy(){if(!this._ngElementStrategy){const l=this._ngElementStrategy=r.create(this.injector||e.injector);n.forEach(({propName:d})=>{if(!this.hasOwnProperty(d))return;const p=this[d];delete this[d],l.setInputValue(d,p)})}return this._ngElementStrategy}attributeChangedCallback(l,d,p,m){this.ngElementStrategy.setInputValue(i[l],p)}connectedCallback(){let l=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),l=!0),this.ngElementStrategy.connect(this),l||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(l=>{const d=new CustomEvent(l.name,{detail:l.value});this.dispatchEvent(d)})}}return o.observedAttributes=Object.keys(i),n.forEach(({propName:u})=>{Object.defineProperty(o.prototype,u,{get(){return this.ngElementStrategy.getInputValue(u)},set(l){this.ngElementStrategy.setInputValue(u,l)},configurable:!0,enumerable:!0})}),o}(LP,{injector:this.injector});customElements.define("drayman-file-uploader",n)}}return t.\u0275fac=function(n){return new(n||t)(Se(jn))},t.\u0275mod=ai({type:t}),t.\u0275inj=ur({imports:[[H_,wP,NP]]}),t})();(function e0(){XE=!1})(),BM().bootstrapModule(xP).catch(t=>console.error(t))})()})();