1import{$ as to,$a as IF,$b as at,$c as Ar,A as eo,Aa as Je,Ab as $v,Ac as Qn,Ad as tB,Ba as Cc,Bb as RF,Bc as Fr,Bd as AC,Ca as Sc,Cb as Gv,Cc as Mt,Cd as Ci,Da as nf,Db as dt,Dc as kt,Dd as MC,E as tf,Ea as Jp,Eb as It,Ec as UF,Ed as kC,Fa as Vr,Fb as He,Fc as tg,Fd as rB,G as Yt,Gb as nd,Gc as SC,Gd as nB,H as Xp,Ha as vF,Hb as Lt,Hc as cf,Hd as cr,I as la,Ia as af,Ib as OF,Ic as rg,Id as PC,Ja as Dr,Jb as St,Jc as Zt,Jd as iB,Kc as DC,Kd as Jv,L as Dl,La as En,Lb as EC,Lc as zi,Ld as aB,M as rf,Ma as Pn,Mb as FF,Mc as gr,N as mC,Na as _C,Nb as Wv,Nc as Oa,O as Hr,Oa as mt,Ob as qv,Oc as rs,Od as RC,Pa as Zp,Pb as TC,Pd as OC,Qa as _F,Qb as of,R as pC,Ra as Zu,Rb as BF,Rd as e_,S as Ec,Sa as bF,Sb as CC,Sc as zF,Sd as t_,T as Tc,Ta as hn,Tb as NF,Tc as jF,Td as FC,U as gC,Ua as Hv,Ub as Ml,Uc as HF,V as uF,Va as eg,Vc as $F,W as yC,Wa as bC,Wc as GF,X as dF,Xa as wC,Xc as WF,Y as hF,Ya as ed,Yc as kl,Z as vC,Za as sf,Zb as Or,Zc as Kv,_ as jv,_a as wF,a as ai,aa as xi,ab as xF,b as aF,ba as dn,bb as EF,bc as st,bd as qF,c as Ot,ca as fF,cb as TF,cc as lf,cd as Ti,d as uC,da as lr,db as CF,dc as LF,dd as KF,e as Yp,eb as SF,ec as Dc,ed as Yv,f as Ye,fa as Qp,fb as es,fc as Ac,g as Ii,ga as mF,gb as ts,gc as fe,gd as Xv,h as sF,ha as bt,hb as td,hc as Se,i as oF,ia as Ju,ib as DF,ic as Ae,j as lF,ja as Al,jb as AF,jc as ot,ka as si,kb as IC,kc as id,kd as YF,l as Zs,la as G,lc as ad,ld as XF,m as Uv,ma as wt,mb as te,mc as Ma,n as dC,na as pF,nb as rd,nc as ka,nd as uf,o as hC,oa as me,ob as MF,oc as Pa,od as QF,p as Bi,pa as ee,pb as kF,pc as ua,pd as JF,q as Xe,qa as A,qb as xC,qc as da,qd as Yr,r as Xu,ra as Li,rb as Rt,rc as Mc,rd as ro,s as Qu,sa as gF,sb as Qe,sc as VF,sd as Pl,t as cF,ta as Ei,tb as Yn,tc as Es,td as Qv,u as ft,ua as Le,ub as Aa,uc as Xn,v as ef,va as Vi,vb as ca,vc as Gt,w as Ni,wa as Ui,wb as Rr,wd as ZF,x as fC,xa as yF,xb as Ce,xc as ge,xd as ng,y as zv,yb as PF,yc as Ra,yd as eB,z as xc,za as X,zb as Rn,zc as _r}from"./chunk-6BBVMZFQ.js";import{a as Zv,b as sB,c as oB,d as lB}from"./chunk-MOHNRJGN.js";import{a as de,b as rr,d as dG,e as hG,f as Fe,g as m}from"./chunk-RA2WU32H.js";var A$=dG((wv,wO)=>{"use strict";(function(r,e){typeof wv=="object"&&typeof wO=="object"?wO.exports=e():typeof define=="function"&&define.amd?define([],e):typeof wv=="object"?wv.AOS=e():r.AOS=e()})(wv,function(){return(function(r){function e(n){if(t[n])return t[n].exports;var i=t[n]={exports:{},id:n,loaded:!1};return r[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var t={};return e.m=r,e.c=t,e.p="dist/",e(0)})([function(r,e,t){"use strict";function n(D){return D&&D.__esModule?D:{default:D}}var i=Object.assign||function(D){for(var R=1;R<arguments.length;R++){var De=arguments[R];for(var ve in De)Object.prototype.hasOwnProperty.call(De,ve)&&(D[ve]=De[ve])}return D},a=t(1),s=(n(a),t(6)),o=n(s),l=t(7),c=n(l),u=t(8),d=n(u),f=t(9),p=n(f),g=t(10),y=n(g),v=t(11),T=n(v),C=t(14),x=n(C),B=[],q=!1,V={offset:120,delay:0,easing:"ease",duration:400,disable:!1,once:!1,startEvent:"DOMContentLoaded",throttleDelay:99,debounceDelay:50,disableMutationObserver:!1},b=function(){var D=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(D&&(q=!0),q)return B=(0,T.default)(B,V),(0,y.default)(B,V.once),B},E=function(){B=(0,x.default)(),b()},I=function(){B.forEach(function(D,R){D.node.removeAttribute("data-aos"),D.node.removeAttribute("data-aos-easing"),D.node.removeAttribute("data-aos-duration"),D.node.removeAttribute("data-aos-delay")})},S=function(D){return D===!0||D==="mobile"&&p.default.mobile()||D==="phone"&&p.default.phone()||D==="tablet"&&p.default.tablet()||typeof D=="function"&&D()===!0},k=function(D){V=i(V,D),B=(0,x.default)();var R=document.all&&!window.atob;return S(V.disable)||R?I():(V.disableMutationObserver||d.default.isSupported()||(console.info(` 2 aos: MutationObserver is not supported on this browser, 3 code mutations observing has been disabled. 4 You may have to call "refreshHard()" by yourself. 5 `),V.disableMutationObserver=!0),document.querySelector("body").setAttribute("data-aos-easing",V.easing),document.querySelector("body").setAttribute("data-aos-duration",V.duration),document.querySelector("body").setAttribute("data-aos-delay",V.delay),V.startEvent==="DOMContentLoaded"&&["complete","
5interactive"].indexOf(document.readyState)>-1?b(!0):V.startEvent==="load"?window.addEventListener(V.startEvent,function(){b(!0)}):document.addEventListener(V.startEvent,function(){b(!0)}),window.addEventListener("resize",(0,c.default)(b,V.debounceDelay,!0)),window.addEventListener("orientationchange",(0,c.default)(b,V.debounceDelay,!0)),window.addEventListener("scroll",(0,o.default)(function(){(0,y.default)(B,V.once)},V.throttleDelay)),V.disableMutationObserver||d.default.ready("[data-aos]",E),B)};r.exports={init:k,refresh:b,refreshHard:E}},function(r,e){},,,,,function(r,e){(function(t){"use strict";function n(S,k,D){function R(N){var Et=j,gt=K;return j=K=void 0,be=N,H=S.apply(gt,Et)}function De(N){return be=N,ne=setTimeout($e,k),we?R(N):H}function ve(N){var Et=N-_e,gt=N-be,Jt=k-Et;return ce?E(Jt,W-gt):Jt}function rt(N){var Et=N-_e,gt=N-be;return _e===void 0||Et>=k||Et<0||ce&>>=W}function $e(){var N=I();return rt(N)?vt(N):void(ne=setTimeout($e,ve(N)))}function vt(N){return ne=void 0,et&&j?R(N):(j=K=void 0,H)}function Be(){ne!==void 0&&clearTimeout(ne),be=0,j=_e=K=ne=void 0}function Ze(){return ne===void 0?H:vt(I())}function le(){var N=I(),Et=rt(N);if(j=arguments,K=this,_e=N,Et){if(ne===void 0)return De(_e);if(ce)return ne=setTimeout($e,k),R(_e)}return ne===void 0&&(ne=setTimeout($e,k)),H}var j,K,W,H,ne,_e,be=0,we=!1,ce=!1,et=!0;if(typeof S!="function")throw new TypeError(u);return k=l(k)||0,a(D)&&(we=!!D.leading,ce="maxWait"in D,W=ce?b(l(D.maxWait)||0,k):W,et="trailing"in D?!!D.trailing:et),le.cancel=Be,le.flush=Ze,le}function i(S,k,D){var R=!0,De=!0;if(typeof S!="function")throw new TypeError(u);return a(D)&&(R="leading"in D?!!D.leading:R,De="trailing"in D?!!D.trailing:De),n(S,k,{leading:R,maxWait:k,trailing:De})}function a(S){var k=typeof S>"u"?"undefined":c(S);return!!S&&(k=="object"||k=="function")}function s(S){return!!S&&(typeof S>"u"?"undefined":c(S))=="object"}function o(S){return(typeof S>"u"?"undefined":c(S))=="symbol"||s(S)&&V.call(S)==f}function l(S){if(typeof S=="number")return S;if(o(S))return d;if(a(S)){var k=typeof S.valueOf=="function"?S.valueOf():S;S=a(k)?k+"":k}if(typeof S!="string")return S===0?S:+S;S=S.replace(p,"");var D=y.test(S);return D||v.test(S)?T(S.slice(2),D?2:8):g.test(S)?d:+S}var c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(S){return typeof S}:function(S){return S&&typeof Symbol=="function"&&S.constructor===Symbol&&S!==Symbol.prototype?"symbol":typeof S},u="Expected a function",d=NaN,f="[object Symbol]",p=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,y=/^0b[01]+$/i,v=/^0o[0-7]+$/i,T=parseInt,C=(typeof t>"u"?"undefined":c(t))=="object"&&t&&t.Object===Object&&t,x=(typeof self>"u"?"undefined":c(self))=="object"&&self&&self.Object===Object&&self,B=C||x||Function("return this")(),q=Object.prototype,V=q.toString,b=Math.max,E=Math.min,I=function(){return B.Date.now()};r.exports=i}).call(e,(function(){return this})())},function(r,e){(function(t){"use strict";function n(I,S,k){function D(et){var N=le,Et=j;return le=j=void 0,_e=et,W=I.apply(Et,N)}function R(et){return _e=et,H=setTimeout(rt,S),be?D(et):W}function De(et){var N=et-ne,Et=et-_e,gt=S-N;return we?b(gt,K-Et):gt}function ve(et){var N=et-ne,Et=et-_e;return ne===void 0||N>=S||N<0||we&&Et>=K}function rt(){var et=E();return ve(et)?$e(et):void(H=setTimeout(rt,De(et)))}function $e(et){return H=void 0,ce&&le?D(et):(le=j=void 0,W)}function vt(){H!==void 0&&clearTimeout(H),_e=0,le=ne=j=H=void 0}function Be(){return H===void 0?W:$e(E())}function Ze(){var et=E(),N=ve(et);if(le=arguments,j=this,ne=et,N){if(H===void 0)return R(ne);if(we)return H=setTimeout(rt,S),D(ne)}return H===void 0&&(H=setTimeout(rt,S)),W}var le,j,K,W,H,ne,_e=0,be=!1,we=!1,ce=!0;if(typeof I!="function")throw new TypeError(c);return S=o(S)||0,i(k)&&(be=!!k.leading,we="maxWait"in k,K=we?V(o(k.maxWait)||0,S):K,ce="trailing"in k?!!k.trailing:ce),Ze.cancel=vt,Ze.flush=Be,Ze}function i(I){var S=typeof I>"u"?"undefined":l(I);return!!I&&(S=="object"||S=="function")}function a(I){return!!I&&(typeof I>"u"?"undefined":l(I))=="object"}function s(I){return(typeof I>"u"?"undefined":l(I))=="symbol"||a(I)&&q.call(I)==d}function o(I){if(typeof I=="number")return I;if(s(I))return u;if(i(I)){var S=typeof I.valueOf=="function"?I.valueOf():I;I=i(S)?S+"":S}if(typeof I!="string")return I===0?I:+I;I=I.replace(f,"");var k=g.test(I);
5return k||y.test(I)?v(I.slice(2),k?2:8):p.test(I)?u:+I}var l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(I){return typeof I}:function(I){return I&&typeof Symbol=="function"&&I.constructor===Symbol&&I!==Symbol.prototype?"symbol":typeof I},c="Expected a function",u=NaN,d="[object Symbol]",f=/^\s+|\s+$/g,p=/^[-+]0x[0-9a-f]+$/i,g=/^0b[01]+$/i,y=/^0o[0-7]+$/i,v=parseInt,T=(typeof t>"u"?"undefined":l(t))=="object"&&t&&t.Object===Object&&t,C=(typeof self>"u"?"undefined":l(self))=="object"&&self&&self.Object===Object&&self,x=T||C||Function("return this")(),B=Object.prototype,q=B.toString,V=Math.max,b=Math.min,E=function(){return x.Date.now()};r.exports=n}).call(e,(function(){return this})())},function(r,e){"use strict";function t(l){var c=void 0,u=void 0,d=void 0;for(c=0;c<l.length;c+=1)if(u=l[c],u.dataset&&u.dataset.aos||(d=u.children&&t(u.children)))return!0;return!1}function n(){return window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver}function i(){return!!n()}function a(l,c){var u=window.document,d=n(),f=new d(s);o=c,f.observe(u.documentElement,{childList:!0,subtree:!0,removedNodes:!0})}function s(l){l&&l.forEach(function(c){var u=Array.prototype.slice.call(c.addedNodes),d=Array.prototype.slice.call(c.removedNodes),f=u.concat(d);if(t(f))return o()})}Object.defineProperty(e,"__esModule",{value:!0});var o=function(){};e.default={isSupported:i,ready:a}},function(r,e){"use strict";function t(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")}function n(){return navigator.userAgent||navigator.vendor||window.opera||""}Object.defineProperty(e,"__esModule",{value:!0});var i=(function(){function u(d,f){for(var p=0;p<f.length;p++){var g=f[p];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(d,g.key,g)}}return function(d,f,p){return f&&u(d.prototype,f),p&&u(d,p),d}})(),a=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i,s=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,o=/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i,l=/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|
5sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i,c=(function(){function u(){t(this,u)}return i(u,[{key:"phone",value:function(){var d=n();return!(!a.test(d)&&!s.test(d.substr(0,4)))}},{key:"mobile",value:function(){var d=n();return!(!o.test(d)&&!l.test(d.substr(0,4)))}},{key:"tablet",value:function(){return this.mobile()&&!this.phone()}}]),u})();e.default=new c},function(r,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=function(i,a,s){var o=i.node.getAttribute("data-aos-once");a>i.position?i.node.classList.add("aos-animate"):typeof o<"u"&&(o==="false"||!s&&o!=="true")&&i.node.classList.remove("aos-animate")},n=function(i,a){var s=window.pageYOffset,o=window.innerHeight;i.forEach(function(l,c){t(l,o+s,a)})};e.default=n},function(r,e,t){"use strict";function n(o){return o&&o.__esModule?o:{default:o}}Object.defineProperty(e,"__esModule",{value:!0});var i=t(12),a=n(i),s=function(o,l){return o.forEach(function(c,u){c.node.classList.add("aos-init"),c.position=(0,a.default)(c.node,l.offset)}),o};e.default=s},function(r,e,t){"use strict";function n(o){return o&&o.__esModule?o:{default:o}}Object.defineProperty(e,"__esModule",{value:!0});var i=t(13),a=n(i),s=function(o,l){var c=0,u=0,d=window.innerHeight,f={offset:o.getAttribute("data-aos-offset"),anchor:o.getAttribute("data-aos-anchor"),anchorPlacement:o.getAttribute("data-aos-anchor-placement")};switch(f.offset&&!isNaN(f.offset)&&(u=parseInt(f.offset)),f.anchor&&document.querySelectorAll(f.anchor)&&(o=document.querySelectorAll(f.anchor)[0]),c=(0,a.default)(o).top,f.anchorPlacement){case"top-bottom":break;case"center-bottom":c+=o.offsetHeight/2;break;case"bottom-bottom":c+=o.offsetHeight;break;case"top-center":c+=d/2;break;case"bottom-center":c+=d/2+o.offsetHeight;break;case"center-center":c+=d/2+o.offsetHeight/2;break;case"top-top":c+=d;break;case"bottom-top":c+=o.offsetHeight+d;break;case"center-top":c+=o.offsetHeight/2+d}return f.anchorPlacement||f.offset||isNaN(l)||(u=l),c+u};e.default=s},function(r,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=function(n){for(var i=0,a=0;n&&!isNaN(n.offsetLeft)&&!isNaN(n.offsetTop);)i+=n.offsetLeft-(n.tagName!="BODY"?n.scrollLeft:0),a+=n.offsetTop-(n.tagName!="BODY"?n.scrollTop:0),n=n.offsetParent;return{top:a,left:i}};e.default=t},function(r,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=function(n){return n=n||document.querySelectorAll("[data-aos]"),Array.prototype.map.call(n,function(i){return{node:i}})};e.default=t}])})});var cB=()=>{};var hB=function(r){let e=[],t=0;for(let n=0;n<r.length;n++){let i=r.charCodeAt(n);i<128?e[t++]=i:i<2048?(e[t++]=i>>6|192,e[t++]=i&63|128):(i&64512)===55296&&n+1<r.length&&(r.charCodeAt(n+1)&64512)===56320?(i=65536+((i&1023)<<10)+(r.charCodeAt(++n)&1023),e[t++]=i>>18|240,e[t++]=i>>12&63|128,e[t++]=i>>6&63|128,e[t++]=i&63|128):(e[t++]=i>>12|224,e[t++]=i>>6&63|128,e[t++]=i&63|128)}return e},fG=function(r){let e=[],t=0,n=0;for(;t<r.length;){let i=r[t++];if(i<128)e[n++]=String.fromCharCode(i);else if(i>191&&i<224){let a=r[t++];e[n++]=String.fromCharCode((i&31)<<6|a&63)}else if(i>239&&i<365){let a=r[t++],s=r[t++],o=r[t++],l=((i&7)<<18|(a&63)<<12|(s&63)<<6|o&63)-65536;e[n++]=String.fromCharCode(55296+(l>>10)),e[n++]=String.fromCharCode(56320+(l&1023))}else{let a=r[t++],s=r[t++];e[n++]=String.fromCharCode((i&15)<<12|(a&63)<<6|s&63)}}return e.join("")},r_={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(r,e){if(!Array.isArray(r))throw Error("encodeByteArray takes an array as a parameter");this.init_();let t=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,n=[];for(let i=0;i<r.length;i+=3){let a=r[i],s=i+1<r.length,o=s?r[i+1]:0,l=i+2<r.length,c=l?r[i+2]:0,u=a>>2,d=(a&3)<<4|o>>4,f=(o&15)<<2|c>>6,p=c&63;l||(p=64,s||(f=64)),n.push(t[u],t[d],t[f],t[p])}return n.join("")},encodeString(r,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(r):this.encodeByteArray(hB(r),e)},decodeString(r,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(r):fG(this.decodeStringToByteArray(r,e))},decodeStringToByteArray(r,e){this.init_();let t=e?this.charToByteMapWebSafe_:this.charToByteMap_,n=[];for(let i=0;i<r.length;){let a=t[r.charAt(i++)],o=i<r.length?t[r.charAt(i)]:0;++i;let c=i<r.length?t[r.charAt(i)]:64;++i;let d=i<r.length?t[r.charAt(i)]:64;if(++i,a==null||o==null||c==null||d==null)throw new NC;let f=a<<2|o>>4;if(n.push(f),c!==64){let p=o<<4&240|c>>2;if(n.push(p),d!==64){let g=c<<6&192|d;n.push(g)}}}return n},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let r=0;r<this.ENCODED_VALS.length;r++)this.byteToCharMap_[r]=this.ENCODED_VALS.charAt(r),this.charToByteMap_[this.byteToCharMap_[r]]=r,this.byteToCharMapWebSafe_[r]=this.ENCODED_VALS_WEBSAFE.charAt(r),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[r]]=r,r>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(r)]=r,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(r)]=r)}}}
vendor: 5,077 bytes, lines 5-13
5,NC=class extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}},mG=function(r){let e=hB(r);return r_.encodeByteArray(e,!0)},ag=function(r){return mG(r).replace(/\./g,"")},n_=function(r){try{return r_.decodeString(r,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function VC(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}var pG=()=>VC().__FIREBASE_DEFAULTS__,gG=()=>{if(typeof process>"u"||typeof process.env>"u")return;let r=process.env.__FIREBASE_DEFAULTS__;if(r)return JSON.parse(r)},yG=()=>{if(typeof document>"u")return;let r;try{r=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}let e=r&&n_(r[1]);return e&&JSON.parse(e)},i_=()=>{try{return cB()||pG()||gG()||yG()}catch(r){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${r}`);return}},UC=r=>{var e,t;return(t=(e=i_())===null||e===void 0?void 0:e.emulatorHosts)===null||t===void 0?void 0:t[r]},sg=r=>{let e=UC(r);if(!e)return;let t=e.lastIndexOf(":");if(t<=0||t+1===e.length)throw new Error(`Invalid host ${e} with no separate hostname and port!`);let n=parseInt(e.substring(t+1),10);return e[0]==="["?[e.substring(1,t-1),n]:[e.substring(0,t),n]},zC=()=>{var r;return(r=i_())===null||r===void 0?void 0:r.config},jC=r=>{var e;return(e=i_())===null||e===void 0?void 0:e[`_${r}`]};var sd=class{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(t):e(t,n))}}};function ns(r){try{return(r.startsWith("http://")||r.startsWith("https://")?new URL(r).hostname:r).endsWith(".cloudworkstations.dev")}catch{return!1}}function kc(r){return m(this,null,function*(){return(yield fetch(r,{credentials:"include"})).ok})}function HC(r,e){if(r.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');let t={alg:"none",type:"JWT"},n=e||"demo-project",i=r.iat||0,a=r.sub||r.user_id;if(!a)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");let s=Object.assign({iss:`https://securetoken.google.com/${n}`,aud:n,iat:i,exp:i+3600,auth_time:i,sub:a,user_id:a,firebase:{sign_in_provider:"custom",identities:{}}},r);return[ag(JSON.stringify(t)),ag(JSON.stringify(s)),""].join(".")}var ig={};function vG(){let r={prod:[],emulator:[]};for(let e of Object.keys(ig))ig[e]?r.emulator.push(e):r.prod.push(e);return r}function _G(r){let e=document.getElementById(r),t=!1;return e||(e=document.createElement("div"),e.setAttribute("id",r),t=!0),{created:t,element:e}}var uB=!1;function od(r,e){if(typeof window>"u"||typeof document>"u"||!ns(window.location.host)||ig[r]===e||ig[r]||uB)return;ig[r]=e;function t(f){return`__firebase__banner__${f}`}let n="__firebase__banner",a=vG().prod.length>0;function s(){let f=document.getElementById(n);f&&f.remove()}function o(f){f.style.display="flex",f.style.background="#7faaf0",f.style.position="fixed",f.style.bottom="5px",f.style.left="5px",f.style.padding=".5em",f.style.borderRadius="5px",f.style.alignItems="center"}function l(f,p){f.setAttribute("width","24"),f.setAttribute("id",p),f.setAttribute("height","24"),f.setAttribute("viewBox","0 0 24 24"),f.setAttribute("fill","none"),f.style.marginLeft="-6px"}function c(){let f=document.createElement("span");return f.style.cursor="pointer",f.style.marginLeft="16px",f.style.fontSize="24px",f.innerHTML=" ×",f.onclick=()=>{uB=!0,s()},f}function u(f,p){f.setAttribute("id",p),f.innerText="Learn more",f.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",f.setAttribute("target","__blank"),f.style.paddingLeft="5px",f.style.textDecoration="underline"}function d(){let f=_G(n),p=t("text"),g=document.getElementById(p)||document.createElement("span"),y=t("learnmore"),v=document.getElementById(y)||document.createElement("a"),T=t("preprendIcon"),C=document.getElementById(T)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(f.created){let x=f.element;o(x),u(v,y);let B=c();l(C,T),x.append(C,g,v,B),document.body.appendChild(x)}a?(g.innerText="Preview backend disconnected.",C.innerHTML=`<g clip-path="url(#clip0_6013_33858)"> 6<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/> 7</g> 8<defs> 9<clipPath id="clip0_6013_33858"> 10<rect width="24" height="24" fill="white"/> 11</clipPath> 12</defs>`):(C.innerHTML=`<g clip-path="url(#clip0_6083_34804)"> 13<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444
1312.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/> 14</g> 15<defs> 16<clipPath id="clip0_6083_34804"> 17<rect width="24" height="24" fill="white"/> 18</clipPath> 19</defs>`,g.innerText="Preview backend running in this workspace."),g.setAttribute("id",p)}document.readyState==="loading"?window.addEventListener("DOMContentLoaded",d):d()}function oi(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function fB(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(oi())}function bG(){var r;let e=(r=i_())===null||r===void 0?void 0:r.forceEnvironment;if(e==="node")return!0;if(e==="browser")return!1;try{return Object.prototype.toString.call(global.process)==="[object process]"}catch{return!1}}function mB(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function pB(){let r=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof r=="object"&&r.id!==void 0}function gB(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function yB(){let r=oi();return r.indexOf("MSIE ")>=0||r.indexOf("Trident/")>=0}function vB(){return!bG()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function ld(){try{return typeof indexedDB=="object"}catch{return!1}}function a_(){return new Promise((r,e)=>{try{let t=!0,n="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(n);i.onsuccess=()=>{i.result.close(),t||self.indexedDB.deleteDatabase(n),r(!0)},i.onupgradeneeded=()=>{t=!1},i.onerror=()=>{var a;e(((a=i.error)===null||a===void 0?void 0:a.message)||"")}}catch(t){e(t)}})}function _B(){return!(typeof navigator>"u"||!navigator.cookieEnabled)}var wG="FirebaseError",Tn=class r extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name=wG,Object.setPrototypeOf(this,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,ha.prototype.create)}},ha=class{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){let n=t[0]||{},i=`${this.service}/${e}`,a=this.errors[e],s=a?IG(a,n):"Error",o=`${this.serviceName}: ${s} (${i}).`;return new Tn(i,o,n)}};function IG(r,e){return r.replace(xG,(t,n)=>{let i=e[n];return i!=null?String(i):`<${n}?>`})}var xG=/\{\$([^}]+)}/g;function bB(r){for(let e in r)if(Object.prototype.hasOwnProperty.call(r,e))return!1;return!0}function no(r,e){if(r===e)return!0;let t=Object.keys(r),n=Object.keys(e);for(let i of t){if(!n.includes(i))return!1;let a=r[i],s=e[i];if(dB(a)&&dB(s)){if(!no(a,s))return!1}else if(a!==s)return!1}for(let i of n)if(!t.includes(i))return!1;return!0}function dB(r){return r!==null&&typeof r=="object"}function cd(r){let e=[];
vendor: 11,114 bytes, line 19
19for(let[t,n]of Object.entries(r))Array.isArray(n)?n.forEach(i=>{e.push(encodeURIComponent(t)+"="+encodeURIComponent(i))}):e.push(encodeURIComponent(t)+"="+encodeURIComponent(n));return e.length?"&"+e.join("&"):""}function df(r){let e={};return r.replace(/^\?/,"").split("&").forEach(n=>{if(n){let[i,a]=n.split("=");e[decodeURIComponent(i)]=decodeURIComponent(a)}}),e}function hf(r){let e=r.indexOf("?");if(!e)return"";let t=r.indexOf("#",e);return r.substring(e,t>0?t:void 0)}function wB(r,e){let t=new LC(r,e);return t.subscribe.bind(t)}var LC=class{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(n=>{this.error(n)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,n){let i;if(e===void 0&&t===void 0&&n===void 0)throw new Error("Missing Observer.");EG(e,["next","error","complete"])?i=e:i={next:e,error:t,complete:n},i.next===void 0&&(i.next=BC),i.error===void 0&&(i.error=BC),i.complete===void 0&&(i.complete=BC);let a=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?i.error(this.finalError):i.complete()}catch{}}),this.observers.push(i),a}unsubscribeOne(e){this.observers===void 0||this.observers[e]===void 0||(delete this.observers[e],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>{if(this.observers!==void 0&&this.observers[e]!==void 0)try{t(this.observers[e])}catch(n){typeof console<"u"&&console.error&&console.error(n)}})}close(e){this.finalized||(this.finalized=!0,e!==void 0&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}};function EG(r,e){if(typeof r!="object"||r===null)return!1;for(let t of e)if(t in r&&typeof r[t]=="function")return!0;return!1}function BC(){}var TG=1e3,CG=2,SG=14400*1e3,DG=.5;function AG(r,e=TG,t=CG){let n=e*Math.pow(t,r),i=Math.round(DG*n*(Math.random()-.5)*2);return Math.min(SG,n+i)}function At(r){return r&&r._delegate?r._delegate:r}var Xr=class{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}};var ud="[DEFAULT]";var $C=class{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let n=new sd;if(this.instancesDeferred.set(t,n),this.isInitialized(t)||this.shouldAutoInitialize())try{let i=this.getOrInitializeService({instanceIdentifier:t});i&&n.resolve(i)}catch{}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;let n=this.normalizeInstanceIdentifier(e?.identifier),i=(t=e?.optional)!==null&&t!==void 0?t:!1;if(this.isInitialized(n)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:n})}catch(a){if(i)return null;throw a}else{if(i)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(kG(e))try{this.getOrInitializeService({instanceIdentifier:ud})}catch{}for(let[t,n]of this.instancesDeferred.entries()){let i=this.normalizeInstanceIdentifier(t);try{let a=this.getOrInitializeService({instanceIdentifier:i});n.resolve(a)}catch{}}}}clearInstance(e=ud){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}delete(){return m(this,null,function*(){let e=Array.from(this.instances.values());yield Promise.all([...e.filter(t=>"INTERNAL"in t).map(t=>t.INTERNAL.delete()),...e.filter(t=>"_delete"in t).map(t=>t._delete())])})}isComponentSet(){return this.component!=null}isInitialized(e=ud){return this.instances.has(e)}getOptions(e=ud){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let i=this.getOrInitializeService({instanceIdentifier:n,options:t});for(let[a,s]of this.instancesDeferred.entries()){let o=this.normalizeInstanceIdentifier(a);n===o&&s.resolve(i)}return i}onInit(e,t){var n;let i=this.normalizeInstanceIdentifier(t),a=(n=this.onInitCallbacks.get(i))!==null&&n!==void 0?n:new Set;a.add(e),this.onInitCallbacks.set(i,a);let s=this.instances.get(i);return s&&e(s,i),()=>{a.delete(e)}}invokeOnInitCallbacks(e,t){let n=this.onInitCallbacks.get(t);if(n)for(let i of n)try{i(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:MG(e),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch{}return n||null}normalizeInstanceIdentifier(e=ud){return this.component?this.component.multipleInstances?e:ud:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}};function MG(r){return r===ud?void 0:r}function kG(r){return r.instantiationMode==="EAGER"}var s_=class{constructor(e){this.name=e,this.providers=new Map}addComponent(e){let t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let t=new $C(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}};var PG=[],Wt=(function(r){return r[r.DEBUG=0]="DEBUG",r[r.VERBOSE=1]="VERBOSE",r[r.INFO=2]="INFO",r[r.WARN=3]="WARN",r[r.ERROR=4]="ERROR",r[r.SILENT=5]="SILENT",r})(Wt||{}),RG={debug:Wt.DEBUG,verbose:Wt.VERBOSE,info:Wt.INFO,warn:Wt.WARN,error:Wt.ERROR,silent:Wt.SILENT},OG=Wt.INFO,FG={[Wt.DEBUG]:"log",[Wt.VERBOSE]:"log",[Wt.INFO]:"info",[Wt.WARN]:"warn",[Wt.ERROR]:"error"},BG=(r,e,...t)=>{if(e<r.logLevel)return;let n=new Date().toISOString(),i=FG[e];if(i)console[i](`[${n}] ${r.name}:`,...t);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)},Ts=class{constructor(e){this.name=e,this._logLevel=OG,this._logHandler=BG,this._userLogHandler=null,PG.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Wt))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?RG[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,Wt.DEBUG,...e),this._logHandler(this,Wt.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Wt.VERBOSE,...e),this._logHandler(this,Wt.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Wt.INFO,...e),this._logHandler(this,Wt.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Wt.WARN,...e),this._logHandler(this,Wt.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Wt.ERROR,...e),this._logHandler(this,Wt.ERROR,...e)}};var WC=class{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(t=>{if(NG(t)){let n=t.getImmediate();return`${n.library}/${n.version}`}else return null}).filter(t=>t).join(" ")}};function NG(r){let e=r.getComponent();return e?.type==="VERSION"}var qC="@firebase/app",IB="0.13.2";var Rl=new Ts("@firebase/app"),LG="@firebase/app-compat",VG="@firebase/analytics-compat",UG="@firebase/analytics",zG="@firebase/app-check-compat",jG="@firebase/app-check",HG="@firebase/auth",$G="@firebase/auth-compat",GG="@firebase/database",WG="@firebase/data-connect",qG="@firebase/database-compat",KG="@firebase/functions",YG="@firebase/functions-compat",XG="@firebase/installations",QG="@firebase/installations-compat",JG="@firebase/messaging",ZG="@firebase/messaging-compat",e7="@firebase/performance",t7="@firebase/performance-compat",r7="@firebase/remote-config",n7="@firebase/remote-config-compat",i7="@firebase/storage",a7="@firebase/storage-compat",s7="@firebase/firestore",o7="@firebase/ai",l7="@firebase/firestore-compat",c7="firebase",u7="11.10.0";var KC="[DEFAULT]",d7={[qC]:"fire-core",[LG]:"fire-core-compat",[UG]:"fire-analytics",[VG]:"fire-analytics-compat",[jG]:"fire-app-check",[zG]:"fire-app-check-compat",[HG]:"fire-auth",[$G]:"fire-auth-compat",[GG]:"fire-rtdb",[WG]:"fire-data-connect",[qG]:"fire-rtdb-compat",[KG]:"fire-fn",[YG]:"fire-fn-compat",[XG]:"fire-iid",[QG]:"fire-iid-compat",[JG]:"fire-fcm",[ZG]:"fire-fcm-compat",[e7]:"fire-perf",[t7]:"fire-perf-compat",[r7]:"fire-rc",[n7]:"fire-rc-compat",[i7]:"fire-gcs",[a7]:"fire-gcs-compat",[s7]:"fire-fst",[l7]:"fire-fst-compat",[o7]:"fire-vertex","fire-js":"fire-js",[c7]:"fire-js-all"};var og=new Map,h7=new Map,YC=new Map;function xB(r,e){try{r.container.addComponent(e)}catch(t){Rl.debug(`Component ${e.name} failed to register with FirebaseApp ${r.name}`,t)}}function On(r){let e=r.name;if(YC.has(e))return Rl.debug(`There were multiple attempts to register component ${e}.`),!1;YC.set(e,r);for(let t of og.values())xB(t,r);for(let t of h7.values())xB(t,r);return!0}function fa(r,e){let t=r.container.getProvider("heartbeat").getImmediate({optional:!0});return t&&t.triggerHeartbeat(),r.container.getProvider(e)}function Cn(r){return r==null?!1:r.settings!==void 0}var f7={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invali
19d-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},Pc=new ha("app","Firebase",f7);var XC=class{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new Xr("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw Pc.create("app-deleted",{appName:this._name})}};var Fo=u7;function ZC(r,e={}){let t=r;typeof e!="object"&&(e={name:e});let n=Object.assign({name:KC,automaticDataCollectionEnabled:!0},e),i=n.name;if(typeof i!="string"||!i)throw Pc.create("bad-app-name",{appName:String(i)});if(t||(t=zC()),!t)throw Pc.create("no-options");let a=og.get(i);if(a){if(no(t,a.options)&&no(n,a.config))return a;throw Pc.create("duplicate-app",{appName:i})}let s=new s_(i);for(let l of YC.values())s.addComponent(l);let o=new XC(t,n,s);return og.set(i,o),o}function Fa(r=KC){let e=og.get(r);if(!e&&r===KC&&zC())return ZC();if(!e)throw Pc.create("no-app",{appName:r});return e}function o_(){return Array.from(og.values())}function jt(r,e,t){var n;let i=(n=d7[r])!==null&&n!==void 0?n:r;t&&(i+=`-${t}`);let a=i.match(/\s|\//),s=e.match(/\s|\//);if(a||s){let o=[`Unable to register library "${i}" with version "${e}":`];a&&o.push(`library name "${i}" contains illegal characters (whitespace or "/")`),a&&s&&o.push("and"),s&&o.push(`version name "${e}" contains illegal characters (whitespace or "/")`),Rl.warn(o.join(" "));return}On(new Xr(`${i}-version`,()=>({library:i,version:e}),"VERSION"))}var m7="firebase-heartbeat-database",p7=1,lg="firebase-heartbeat-store",GC=null;function SB(){return GC||(GC=Zv(m7,p7,{upgrade:(r,e)=>{switch(e){case 0:try{r.createObjectStore(lg)}catch(t){console.warn(t)}}}}).catch(r=>{throw Pc.create("idb-open",{originalErrorMessage:r.message})})),GC}function g7(r){return m(this,null,function*(){try{let t=(yield SB()).transaction(lg),n=yield t.objectStore(lg).get(DB(r));return yield t.done,n}catch(e){if(e instanceof Tn)Rl.warn(e.message);else{let t=Pc.create("idb-get",{originalErrorMessage:e?.message});Rl.warn(t.message)}}})}function EB(r,e){return m(this,null,function*(){try{let n=(yield SB()).transaction(lg,"readwrite");yield n.objectStore(lg).put(e,DB(r)),yield n.done}catch(t){if(t instanceof Tn)Rl.warn(t.message);else{let n=Pc.create("idb-set",{originalErrorMessage:t?.message});Rl.warn(n.message)}}})}function DB(r){return`${r.name}!${r.options.appId}`}var y7=1024,v7=30,QC=class{constructor(e){this.container=e,this._heartbeatsCache=null;let t=this.container.getProvider("app").getImmediate();this._storage=new JC(t),this._heartbeatsCachePromise=this._storage.read().then(n=>(this._heartbeatsCache=n,n))}triggerHeartbeat(){return m(this,null,function*(){var e,t;try{let i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),a=TB();if(((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null&&(this._heartbeatsCache=yield this._heartbeatsCachePromise,((t=this._heartbeatsCache)===null||t===void 0?void 0:t.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===a||this._heartbeatsCache.heartbeats.some(s=>s.date===a))return;if(this._heartbeatsCache.heartbeats.push({date:a,agent:i}),this._heartbeatsCache.heartbeats.length>v7){let s=b7(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(s,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(n){Rl.warn(n)}})}getHeartbeatsHeader(){return m(this,null,function*(){var e;try{if(this._heartbeatsCache===null&&(yield this._heartbeatsCachePromise),((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";let t=TB(),{heartbeatsToSend:n,unsentEntries:i}=_7(this._heartbeatsCache.heartbeats),a=ag(JSON.stringify({version:2,heartbeats:n}));return this._heartbeatsCache.lastSentHeartbeatDate=t,i.length>0?(this._heartbeatsCache.heartbeats=i,yield this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),a}catch(t){return Rl.warn(t),""}})}};function TB(){return new Date().toISOString().substring(0,10)}function _7(r,e=y7){let t=[],n=r.slice();for(let i of r){let a=t.find(s=>
vendor: 9,733 bytes, line 19
19s.agent===i.agent);if(a){if(a.dates.push(i.date),CB(t)>e){a.dates.pop();break}}else if(t.push({agent:i.agent,dates:[i.date]}),CB(t)>e){t.pop();break}n=n.slice(1)}return{heartbeatsToSend:t,unsentEntries:n}}var JC=class{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return m(this,null,function*(){return ld()?a_().then(()=>!0).catch(()=>!1):!1})}read(){return m(this,null,function*(){if(yield this._canUseIndexedDBPromise){let t=yield g7(this.app);return t?.heartbeats?t:{heartbeats:[]}}else return{heartbeats:[]}})}overwrite(e){return m(this,null,function*(){var t;if(yield this._canUseIndexedDBPromise){let i=yield this.read();return EB(this.app,{lastSentHeartbeatDate:(t=e.lastSentHeartbeatDate)!==null&&t!==void 0?t:i.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return})}add(e){return m(this,null,function*(){var t;if(yield this._canUseIndexedDBPromise){let i=yield this.read();return EB(this.app,{lastSentHeartbeatDate:(t=e.lastSentHeartbeatDate)!==null&&t!==void 0?t:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...e.heartbeats]})}else return})}};function CB(r){return ag(JSON.stringify({version:2,heartbeats:r})).length}function b7(r){if(r.length===0)return-1;let e=0,t=r[0].date;for(let n=1;n<r.length;n++)r[n].date<t&&(t=r[n].date,e=n);return e}function w7(r){On(new Xr("platform-logger",e=>new WC(e),"PRIVATE")),On(new Xr("heartbeat",e=>new QC(e),"PRIVATE")),jt(qC,IB,r),jt(qC,IB,"esm2017"),jt("fire-js","")}w7("");var I7="firebase",x7="11.10.0";jt(I7,x7,"app");function yIe(r,e){let t=e?.injector??A(X),n=new sF(1),i=Pl(()=>{let a;try{a=r()}catch(s){Yr(()=>n.error(s));return}Yr(()=>n.next(a))},{injector:t,manualCleanup:!0});return t.get(Cc).onDestroy(()=>{i.destroy(),n.complete()}),n.asObservable()}function AB(r){r===void 0&&(r=A(X));let e=r.get(af);return t=>new Ot(n=>{let i=e.add(),a=!1;function s(){a||(i(),a=!0)}let o=t.subscribe({next:l=>{n.next(l),s()},complete:()=>{n.complete(),s()},error:l=>{n.error(l),s()}});return o.add(()=>{n.unsubscribe(),s()}),o})}var Ba=new Qp("ANGULARFIRE2_VERSION");function io(r,e,t){if(e){if(e.length===1)return e[0];let a=e.filter(s=>s.app===t);if(a.length===1)return a[0]}return t.container.getProvider(r).getImmediate({optional:!0})}var Cs=(r,e)=>{let t=e?[e]:o_(),n=[];return t.forEach(i=>{i.container.getProvider(r).instances.forEach(s=>{n.includes(s)||n.push(s)})}),n},ff=(function(r){return r[r.SILENT=0]="SILENT",r[r.WARN=1]="WARN",r[r.VERBOSE=2]="VERBOSE",r})(ff||{}),MB=AC()&&typeof Zone<"u"?ff.WARN:ff.SILENT;var l_=class{zone;delegate;constructor(e,t=lF){this.zone=e,this.delegate=t}now(){return this.delegate.now()}schedule(e,t,n){let i=this.zone,a=function(s){i?i.runGuarded(()=>{e.apply(this,[s])}):e.apply(this,[s])};return this.delegate.schedule(a,t,n)}},Na=(()=>{class r{outsideAngular;insideAngular;constructor(){let t=A(Qe);this.outsideAngular=t.runOutsideAngular(()=>new l_(typeof Zone>"u"?void 0:Zone.current)),this.insideAngular=t.run(()=>new l_(typeof Zone>"u"?void 0:Zone.current,oF))}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),kB=!1;function E7(r,e){!kB&&(MB>ff.SILENT||AC())&&(kB=!0,console.warn("Calling Firebase APIs outside of an Injection context may destabilize your application leading to subtle change-detection and hydration bugs. Find more at https://github.com/angular/angularfire/blob/main/docs/zones.md")),MB>=e&&console.warn(`Firebase API called outside injection context: ${r.name}`)}function T7(r){let e=A(Qe,{optional:!0});return e?e.runOutsideAngular(()=>r()):r()}function dd(r){let e=A(Qe,{optional:!0});return e?e.run(()=>r()):r()}var C7=(r,e,t)=>(...n)=>(e&&setTimeout(e,0),Le(t,()=>dd(()=>r.apply(void 0,n)))),ht=(r,e,t)=>(t||=e?ff.WARN:ff.VERBOSE,function(){let n,i=arguments,a,s,o;try{a=A(Na),s=A(af),o=A(Ei)}catch{return E7(r,t),r.apply(this,i)}for(let c=0;c<arguments.length;c++)typeof i[c]=="function"&&(e&&(n||=dd(()=>s.add())),i[c]=C7(i[c],n,o));let l=T7(()=>r.apply(this,i));return e?l instanceof Ot?l.pipe(hC(a.outsideAngular),dC(a.insideAngular),AB(o)):l instanceof Promise?dd(()=>{let c=s.add();return new Promise((u,d)=>{l.then(f=>Le(o,()=>dd(()=>u(f))),f=>Le(o,()=>dd(()=>d(f)))).finally(c)})}):typeof l=="function"&&n?function(){return setTimeout(n,0),l.apply(this,arguments)}:dd(()=>l):l instanceof Ot?l.pipe(hC(a.outsideAngular),dC(a.insideAngular)):dd(()=>l)});var ma=class{constructor(e){return e}},is=class{constructor(){return o_()}};function S7(r){return r&&r.length===1?r[0]:new ma(Fa())}var e1=new me("angularfire2._apps"),D7={provide:ma,useFactory:S7,deps:[[new Dr,e1]]},A7={provide:is,deps:[[new Dr,e1]]};function M7(r){return(e,t)=>{let n=t.get(hn);jt("angularfire",Ba.full,"core"),jt("angularfire",Ba.full,"app"),jt("angular",mF.full,n.toString());let i=e.runOutsideAngular(()=>r(t));return new ma(i)}}function BIe(r,...e){return Li([D7,A7,{provide:e1,useFactory:M7(r),multi:!0,deps:[Qe,X,Na,...e]}])}var PB=ht(Fa,!0);var NIe=ht(ZC,!0);var FB=null;function La(){return FB}function t1(r){FB??=r}var cg=class{},pa=(()=>{class r{historyGo(t){throw new Error("")}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:()=>A(BB),providedIn:"platform"})}return r})(),r1=new me(""),BB=(()=>{class r extends pa{_location;_history;_doc=A(Je);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return La().getBaseHref(this._doc)}onPopState(t){let n=La().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",t,!1),()=>n.removeEventListener("popstate",t)}onHashChange(t){let n=La().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",t,!1),()=>n.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,n,i){this._history.pushState(t,n,i)}replaceState(t,n,i){this._history.replaceState(t,n,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:()=>new r,providedIn:"platform"})}return r})();function c_(r,e){return r?e?r.endsWith("/")?e.startsWith("/")?r+e.slice(1):r+e:e.startsWith("/")?r+e:`${r}/${e}`:r:e}function RB(r){let e=r.search(/#|\?|$/);return r[e-1]==="/"?r.slice(0,e-1)+r.slice(e):r}function ao(r){return r&&r[0]!=="?"?`?${r}`:r}var so=(()=>{class r{historyGo(t){throw new Error("")}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:()=>A(d_),providedIn:"root"})}return r})(),u_=new me(""),d_=(()=>{class r extends so{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??A(Je).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return c_(this._baseHref,t)}path(t=!1){let n=this._platformLocation.pathname+ao(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${n}${i}`:n}pushState(t,n,i,a){let s=this.prepareExternalUrl(i+ao(a));this._platformLocation.pushState(t,n,s)}replaceState(t,n,i,a){let s=this.prepareExternalUrl(i+ao(a));this._platformLocation.replaceState(t,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(n){return new(n||r)(ee(pa),ee(u_,8))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Bo=(()=>{class r{_subject=new Ye;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;let n=this._locationStrategy.getBaseHref();this._basePath=R7(RB(OB(n))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,n=""){return this.path()==this.normalize(t+ao(n))}normalize(t){return r.stripTrailingSlash(P7(this._basePath,OB(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,n="",i=null){this._locationStrategy.pushState(i,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ao(n)),i)}replaceState(t,n="",i=null){this._locationStrategy.replaceState(i,"",t,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ao(n)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",n){this._urlChangeListeners.forEac
vendor: 8,832 bytes, line 19
19h(i=>i(t,n))}subscribe(t,n,i){return this._subject.subscribe({next:t,error:n??void 0,complete:i??void 0})}static normalizeQueryParams=ao;static joinWithSlash=c_;static stripTrailingSlash=RB;static \u0275fac=function(n){return new(n||r)(ee(so))};static \u0275prov=G({token:r,factory:()=>k7(),providedIn:"root"})}return r})();function k7(){return new Bo(ee(so))}function P7(r,e){if(!r||!e.startsWith(r))return e;let t=e.substring(r.length);return t===""||["/",";","?","#"].includes(t[0])?t:e}function OB(r){return r.replace(/\/index.html$/,"")}function R7(r){if(new RegExp("^(https?:)?//").test(r)){let[,t]=r.split(/\/\/[^\/]+/);return t}return r}var c1=(()=>{class r extends so{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(t,n){super(),this._platformLocation=t,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(t){let n=c_(this._baseHref,t);return n.length>0?"#"+n:n}pushState(t,n,i,a){let s=this.prepareExternalUrl(i+ao(a))||this._platformLocation.pathname;this._platformLocation.pushState(t,n,s)}replaceState(t,n,i,a){let s=this.prepareExternalUrl(i+ao(a))||this._platformLocation.pathname;this._platformLocation.replaceState(t,n,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(n){return new(n||r)(ee(pa),ee(u_,8))};static \u0275prov=G({token:r,factory:r.\u0275fac})}return r})();var ji=(function(r){return r[r.Format=0]="Format",r[r.Standalone=1]="Standalone",r})(ji||{}),Mr=(function(r){return r[r.Narrow=0]="Narrow",r[r.Abbreviated=1]="Abbreviated",r[r.Wide=2]="Wide",r[r.Short=3]="Short",r})(Mr||{}),Va=(function(r){return r[r.Short=0]="Short",r[r.Medium=1]="Medium",r[r.Long=2]="Long",r[r.Full=3]="Full",r})(Va||{}),Fl={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function jB(r){return Es(r)[Xn.LocaleId]}function HB(r,e,t){let n=Es(r),i=[n[Xn.DayPeriodsFormat],n[Xn.DayPeriodsStandalone]],a=Ss(i,e);return Ss(a,t)}function $B(r,e,t){let n=Es(r),i=[n[Xn.DaysFormat],n[Xn.DaysStandalone]],a=Ss(i,e);return Ss(a,t)}function GB(r,e,t){let n=Es(r),i=[n[Xn.MonthsFormat],n[Xn.MonthsStandalone]],a=Ss(i,e);return Ss(a,t)}function WB(r,e){let n=Es(r)[Xn.Eras];return Ss(n,e)}function ug(r,e){let t=Es(r);return Ss(t[Xn.DateFormat],e)}function dg(r,e){let t=Es(r);return Ss(t[Xn.TimeFormat],e)}function hg(r,e){let n=Es(r)[Xn.DateTimeFormat];return Ss(n,e)}function fg(r,e){let t=Es(r),n=t[Xn.NumberSymbols][e];if(typeof n>"u"){if(e===Fl.CurrencyDecimal)return t[Xn.NumberSymbols][Fl.Decimal];if(e===Fl.CurrencyGroup)return t[Xn.NumberSymbols][Fl.Group]}return n}function qB(r){if(!r[Xn.ExtraData])throw new bt(2303,!1)}function KB(r){let e=Es(r);return qB(e),(e[Xn.ExtraData][2]||[]).map(n=>typeof n=="string"?n1(n):[n1(n[0]),n1(n[1])])}function YB(r,e,t){let n=Es(r);qB(n);let i=[n[Xn.ExtraData][0],n[Xn.ExtraData][1]],a=Ss(i,e)||[];return Ss(a,t)||[]}function Ss(r,e){for(let t=e;t>-1;t--)if(typeof r[t]<"u")return r[t];throw new bt(2304,!1)}function n1(r){let[e,t]=r.split(":");return{hours:+e,minutes:+t}}var O7=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,h_={},F7=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function XB(r,e,t,n){let i=$7(r);e=Ol(t,e)||e;let s=[],o;for(;e;)if(o=F7.exec(e),o){s=s.concat(o.slice(1));let u=s.pop();if(!u)break;e=u}else{s.push(e);break}let l=i.getTimezoneOffset();n&&(l=JB(n,l),i=H7(i,n));let c="";return s.forEach(u=>{let d=z7(u);c+=d?d(i,t,l):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function y_(r,e,t){let n=new Date(0);return n.setFullYear(r,e,t),n.setHours(0,0,0),n}function Ol(r,e){let t=jB(r);if(h_[t]??={},h_[t][e])return h_[t][e];let n="";switch(e){case"shortDate":n=ug(r,Va.Short);break;case"mediumDate":n=ug(r,Va.Medium);break;case"longDate":n=ug(r,Va.Long);break;case"fullDate":n=ug(r,Va.Full);break;case"shortTime":n=dg(r,Va.Short);break;case"mediumTime":n=dg(r,Va.Medium);break;case"longTime":n=dg(r,Va.Long);break;case"fullTime":n=dg(r,Va.Full);break;case"short":let i=Ol(r,"shortTime"),a=Ol(r,"shortDate");n=f_(hg(r,Va.Short),[i,a]);break;case"medium":let s=Ol(r,"mediumTime"),o=Ol(r,"mediumDate");n=f_(hg(r,Va.Medium),[s,o]);break;case"long":let l=Ol(r,"longTime"),c=Ol(r,"longDate");n=f_(hg(r,Va.Long),[l,c]);break;case"full":let u=Ol(r,"fullTime"),d=Ol(r,"fullDate");n=f_(hg(r,Va.Full),[u,d]);break}return n&&(h_[t][e]=n),n}function f_(r,e){return e&&(r=r.replace(/\{([^}]+)}/g,function(t,n){return e!=null&&n in e?e[n]:t})),r}function oo(r,e,t="-",n,i){let a="";(r<0||i&&r<=0)&&(i?r=-r+1:(r=-r,a=t));let s=String(r);for(;s.length<e;)s="0"+s;return n&&(s=s.slice(s.length-e)),a+s}function B7(r,e){return oo(r,3).substring(0,e)}function Fn(r,e,t=0,n=!1,i=!1){return function(a,s){let o=N7(r,a);if((t>0||o>-t)&&(o+=t),r===3)o===0&&t===-12&&(o=12);else if(r===6)return B7(o,e);let l=fg(s,Fl.MinusSign);return oo(o,e,l,n,i)}}function N7(r,e){switch(r){case 0:return e.getFullYear();case 1:return e.getMonth();case 2:return e.getDate();case 3:return e.getHours();case 4:return e.getMinutes();case 5:return e.getSeconds();case 6:return e.getMilliseconds();case 7:return e.getDay();default:throw new bt(2301,!1)}}function Ur(r,e,t=ji.Format,n=!1){return function(i,a){return L7(i,a,r,e,t,n)}}function L7(r,e,t,n,i,a){switch(t){case 2:return GB(e,i,n)[r.getMonth()];case 1:return $B(e,i,n)[r.getDay()];case 0:let s=r.getHours(),o=r.getMinutes();if(a){let c=KB(e),u=YB(e,i,n),d=c.findIndex(f=>{if(Array.isArray(f)){let[p,g]=f,y=s>=p.hours&&o>=p.minutes,v=s<g.hours||s===g.hours&&o<g.minutes;if(p.hours<g.hours){if(y&&v)return!0}else if(y||v)return!0}else if(f.hours===s&&f.minutes===o)return!0;return!1});if(d!==-1)return u[d]}return HB(e,i,n)[s<12?0:1];case 3:return WB(e,n)[r.getFullYear()<=0?0:1];default:let l=t;throw new bt(2302,!1)}}function m_(r){return function(e,t,n){let i=-1*n,a=fg(t,Fl.MinusSign),s=i>0?Math.floor(i/60):Math.ceil(i/60);switch(r){case 0:return(i>=0?"+":"")+oo(s,2,a)+oo(Math.abs(i%60),2,a);case 1:return"GMT"+(i>=0?"+":"")+oo(s,1,a);case 2:return"GMT"+(i>=0?"+":"")+oo(s,2,a)+":"+oo(Math.abs(i%60),2,a);case 3:return n===0?"Z":(i>=0?"+":"")+oo(s,2,a)+":"+oo(Math.abs(i%60),2,a);default:throw new bt(2310,!1)}}}var V7=0,g_=4;function U7(r){let e=y_(r,V7,1).getDay();return y_(r,0,1+(e<=g_?g_:g_+7)-e)}function QB(r){let e=r.getDay(),t=e===0?-3:g_-e;return y_(r.getFullYear(),r.getMonth(),r.getDate()+t)}function i1(r,e=!1){return function(t,n){let i;if(e){let a=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,s=t.getDate();i=1+Math.floor((s+a)/7)}else{let a=QB(t),s=U7(a.getFullYear()),o=a.getTime()-s.getTime();i=1+Math.round(o/6048e5)}return oo(i,r,fg(n,Fl.MinusSign))}}function p_(r,e=!1){return function(t,n){let a=QB(t).getFullYear();return oo(a,r,fg(n,Fl.MinusSign),e)}}var a1={};function z7(r){if(a1[r])return a1[r];let e;switch(r){case"G":case"GG":case"GGG":e=Ur(3,Mr.Abbreviated);break;case"GGGG":e=Ur(3,Mr.Wide);break;case"GGGGG":e=Ur(3,Mr.Narrow);break;case"y":e=Fn(0,1,0,!1,!0);break;case"yy":e=Fn(0,2,0,!0,!0);break;case"yyy":e=Fn(0,3,0,!1,!0);break;case"yyyy":e=Fn(0,4,0,!1,!0);break;case"Y":e=p_(1);break;case"YY":e=p_(2,!0);break;case"YYY":e=p_(3);break;case"YYYY":e=p_(4);break;case"M":case"L":e=Fn(1,1,1);break;case"MM":case"LL":e=Fn(1,2,1);break;case"MMM":e=Ur(2,Mr.Abbreviated);break;case"MMMM":e=Ur(2,Mr.Wide);break;case"MMMMM":e=Ur(2,Mr.Narrow);break;case"LLL":e=Ur(2,Mr.Abbreviated,ji.Standalone);break;case"LLLL":e=Ur(2,Mr.Wide,ji.Standalone);break;case"LLLLL":e=Ur(2,Mr.Narrow,ji.Standalone);break;case"w":e=i1(1);break;case"ww":e=i1(2);break;case"W":e=i1(1,!0);break;case"d":e=Fn(2,1);break;case"dd":e=Fn(2,2);break;case"c":case"cc":e=Fn(7,1);break;case"ccc":e=Ur(1,Mr.Abbreviated,ji.Standalone);break;case"cccc":e=Ur(1,Mr.Wide,ji.Standalone);break;case"ccccc":e=Ur(1,Mr.Narrow,ji.Standalone);break;case"cccccc":e=Ur(1,Mr.Short,ji.Standalone);break;case"E":case"EE":case"EEE":e=Ur(1,Mr.Abbreviated);break;case"EEEE":e=Ur(1,Mr.Wide);break;case"EEEEE":e=Ur(1,Mr.Narrow);break;case"EEEEEE":e=Ur(1,Mr.Short);break;case"a":case"aa":case"aaa":e=Ur(0,Mr.Abbreviated);break;case"aaaa":e=Ur(0,Mr.Wide);break;case"aaaaa":e=Ur(0,Mr.Narrow);break;
vendor: 4,892 bytes, line 19
19case"b":case"bb":case"bbb":e=Ur(0,Mr.Abbreviated,ji.Standalone,!0);break;case"bbbb":e=Ur(0,Mr.Wide,ji.Standalone,!0);break;case"bbbbb":e=Ur(0,Mr.Narrow,ji.Standalone,!0);break;case"B":case"BB":case"BBB":e=Ur(0,Mr.Abbreviated,ji.Format,!0);break;case"BBBB":e=Ur(0,Mr.Wide,ji.Format,!0);break;case"BBBBB":e=Ur(0,Mr.Narrow,ji.Format,!0);break;case"h":e=Fn(3,1,-12);break;case"hh":e=Fn(3,2,-12);break;case"H":e=Fn(3,1);break;case"HH":e=Fn(3,2);break;case"m":e=Fn(4,1);break;case"mm":e=Fn(4,2);break;case"s":e=Fn(5,1);break;case"ss":e=Fn(5,2);break;case"S":e=Fn(6,1);break;case"SS":e=Fn(6,2);break;case"SSS":e=Fn(6,3);break;case"Z":case"ZZ":case"ZZZ":e=m_(0);break;case"ZZZZZ":e=m_(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=m_(1);break;case"OOOO":case"ZZZZ":case"zzzz":e=m_(2);break;default:return null}return a1[r]=e,e}function JB(r,e){r=r.replace(/:/g,"");let t=Date.parse("Jan 01, 1970 00:00:00 "+r)/6e4;return isNaN(t)?e:t}function j7(r,e){return r=new Date(r.getTime()),r.setMinutes(r.getMinutes()+e),r}function H7(r,e,t){let i=r.getTimezoneOffset(),a=JB(e,i);return j7(r,-1*(a-i))}function $7(r){if(NB(r))return r;if(typeof r=="number"&&!isNaN(r))return new Date(r);if(typeof r=="string"){if(r=r.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(r)){let[i,a=1,s=1]=r.split("-").map(o=>+o);return y_(i,a-1,s)}let t=parseFloat(r);if(!isNaN(r-t))return new Date(t);let n;if(n=r.match(O7))return G7(n)}let e=new Date(r);if(!NB(e))throw new bt(2311,!1);return e}function G7(r){let e=new Date(0),t=0,n=0,i=r[8]?e.setUTCFullYear:e.setFullYear,a=r[8]?e.setUTCHours:e.setHours;r[9]&&(t=Number(r[9]+r[10]),n=Number(r[9]+r[11])),i.call(e,Number(r[1]),Number(r[2])-1,Number(r[3]));let s=Number(r[4]||0)-t,o=Number(r[5]||0)-n,l=Number(r[6]||0),c=Math.floor(parseFloat("0."+(r[7]||0))*1e3);return a.call(e,s,o,l,c),e}function NB(r){return r instanceof Date&&!isNaN(r.valueOf())}var s1=/\s+/,LB=[],u1=(()=>{class r{_ngEl;_renderer;initialClasses=LB;rawClass;stateMap=new Map;constructor(t,n){this._ngEl=t,this._renderer=n}set klass(t){this.initialClasses=t!=null?t.trim().split(s1):LB}set ngClass(t){this.rawClass=typeof t=="string"?t.trim().split(s1):t}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(let n of t)this._updateState(n,!0);else if(t!=null)for(let n of Object.keys(t))this._updateState(n,!!t[n]);this._applyStateDiff()}_updateState(t,n){let i=this.stateMap.get(t);i!==void 0?(i.enabled!==n&&(i.changed=!0,i.enabled=n),i.touched=!0):this.stateMap.set(t,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let t of this.stateMap){let n=t[0],i=t[1];i.changed?(this._toggleClass(n,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),i.touched=!1}}_toggleClass(t,n){t=t.trim(),t.length>0&&t.split(s1).forEach(i=>{n?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static \u0275fac=function(n){return new(n||r)(Ce(mt),Ce(Rr))};static \u0275dir=He({type:r,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return r})();var v_=class{$implicit;ngForOf;index;count;constructor(e,t,n,i){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},ZB=(()=>{class r{_viewContainer;_template;_differs;set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(t,n,i){this._viewContainer=t,this._template=n,this._differs=i}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){let t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){let n=this._viewContainer;t.forEachOperation((i,a,s)=>{if(i.previousIndex==null)n.createEmbeddedView(this._template,new v_(i.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)n.remove(a===null?void 0:a);else if(a!==null){let o=n.get(a);n.move(o,s),VB(o,i)}});for(let i=0,a=n.length;i<a;i++){let o=n.get(i).context;o.index=i,o.count=a,o.ngForOf=this._ngForOf}t.forEachIdentityChange(i=>{let a=n.get(i.currentIndex);VB(a,i)})}static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||r)(Ce(Rn),Ce(Aa),Ce(MC))};static \u0275dir=He({type:r,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return r})();function VB(r,e){r.context.$implicit=e.item}var W7=(()=>{class r{_viewContainer;_context=new __;_thenTemplateRef=null;_elseTemplateRef=null;
19_thenViewRef=null;_elseViewRef=null;constructor(t,n){this._viewContainer=t,this._thenTemplateRef=n}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){UB(t,!1),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){UB(t,!1),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(t,n){return!0}static \u0275fac=function(n){return new(n||r)(Ce(Rn),Ce(Aa))};static \u0275dir=He({type:r,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return r})(),__=class{$implicit=null;ngIf=null};function UB(r,e){if(r&&!r.createEmbeddedView)throw new bt(2020,!1)}var b_=class{_viewContainerRef;_templateRef;_created=!1;constructor(e,t){this._viewContainerRef=e,this._templateRef=t}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}},d1=(()=>{class r{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(t){this._ngSwitch=t,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews.push(t)}_matchCase(t){let n=t===this._ngSwitch;return this._lastCasesMatched||=n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(t){if(this._defaultViews.length>0&&t!==this._defaultUsed){this._defaultUsed=t;for(let n of this._defaultViews)n.enforceState(t)}}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return r})(),q7=(()=>{class r{ngSwitch;_view;ngSwitchCase;constructor(t,n,i){this.ngSwitch=i,i._addCase(),this._view=new b_(t,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(n){return new(n||r)(Ce(Rn),Ce(Aa),Ce(d1,9))};static \u0275dir=He({type:r,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return r})(),K7=(()=>{class r{constructor(t,n,i){i._addDefault(new b_(t,n))}static \u0275fac=function(n){return new(n||r)(Ce(Rn),Ce(Aa),Ce(d1,9))};static \u0275dir=He({type:r,selectors:[["","ngSwitchDefault",""]]})}return r})();var h1=(()=>{class r{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(t,n,i){this._ngEl=t,this._differs=n,this._renderer=i}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){let t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,n){let[i,a]=t.split("."),s=i.indexOf("-")===-1?void 0:rd.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,a?`${n}${a}`:n,s):this._renderer.removeStyle(this._ngEl.nativeElement,i,s)}_applyChanges(t){t.forEachRemovedItem(n=>this._setStyle(n.key,null)),t.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),t.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||r)(Ce(mt),Ce(kC),Ce(Rr))};static \u0275dir=He({type:r,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return r})(),mg=(()=>{class r{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,n,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,i):!1,get:(t,n,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,i)}})}static \u0275fac=function(n){return new(n||r)(Ce(Rn))};static \u0275dir=He({type:r,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[En]})}return r})();function f1(r,e){return new bt(2100,!1)}var o1=class{createSubscription(e,t,n){return Yr(()=>e.subscribe({next:t,error:n}))}dispose(e){Yr(()=>e.unsubscribe())}},l1=class{createSubscription(e,t,n){return e.then(i=>t?.(i),i=>n?.(i)),{unsubscribe:()=>{t=null,n=null}}}dispose(e){e.unsubscribe()}},Y7=new l1,X7=new o1,Q7=(()=>{class r{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=A(nf);constructor(t){this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,n=>this._updateLatestValue(t,n),n=>this.applicationErrorHandler(n))}_selectStrategy(t){if(of(t))return Y7;if(BF(t))return X7;throw f1(r,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,n){t===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||r)(Ce(Ci,16))};static \u0275pipe=nd({name:"async",type:r,pure:!1})}return r})();var J7=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u
190EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,Z7=(()=>{class r{transform(t){if(t==null)return null;if(typeof t!="string")throw f1(r,t);return t.replace(J7,n=>n[0].toUpperCase()+n.slice(1).toLowerCase())}static \u0275fac=function(n){return new(n||r)};static \u0275pipe=nd({name:"titlecase",type:r,pure:!0})}return r})();var eW="mediumDate",e2=new me(""),t2=new me(""),tW=(()=>{class r{locale;defaultTimezone;defaultOptions;constructor(t,n,i){this.locale=t,this.defaultTimezone=n,this.defaultOptions=i}transform(t,n,i,a){if(t==null||t===""||t!==t)return null;try{let s=n??this.defaultOptions?.dateFormat??eW,o=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;
19return XB(t,s,a||this.locale,o)}catch(s){throw f1(r,s.message)}}static \u0275fac=function(n){return new(n||r)(Ce(JF,16),Ce(e2,24),Ce(t2,24))};static \u0275pipe=nd({name:"date",type:r,pure:!0})}return r})();function rW(r,e){return{key:r,value:e}}var nW=(()=>{class r{differs;constructor(t){this.differs=t}differ;keyValues=[];compareFn=zB;transform(t,n=zB){if(!t||!(t instanceof Map)&&typeof t!="object")return null;this.differ??=this.differs.find(t).create();let i=this.differ.diff(t),a=n!==this.compareFn;return i&&(this.keyValues=[],i.forEachItem(s=>{this.keyValues.push(rW(s.key,s.currentValue))})),(i||a)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||r)(Ce(kC,16))};static \u0275pipe=nd({name:"keyvalue",type:r,pure:!1})}return r})();function zB(r,e){let t=r.key,n=e.key;if(t===n)return 0;if(t==null)return 1;if(n==null)return-1;if(typeof t=="string"&&typeof n=="string")return t<n?-1:1;if(typeof t=="number"&&typeof n=="number")return t-n;if(typeof t=="boolean"&&typeof n=="boolean")return t<n?-1:1;let i=String(t),a=String(n);return i==a?0:i<a?-1:1}var m1=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({})}return r})();function pg(r,e){e=encodeURIComponent(e);for(let t of r.split(";")){let n=t.indexOf("="),[i,a]=n==-1?[t,""]:[t.slice(0,n),t.slice(n+1)];if(i.trim()===e)return decodeURIComponent(a)}return null}var hd=class{};function Kxe(r,e,t){return VF(r,e,t)}var g1="browser",aW="server";function Si(r){return r===g1}function Yxe(r){return r===aW}var No=(()=>{class r{static \u0275prov=G({token:r,providedIn:"root",factory:()=>new p1(A(Je),window)})}return r})(),p1=class{document;window;offset=()=>[0,0];constructor(e,t){this.document=e,this.window=t}setOffset(e){Array.isArray(e)?this.offset=()=>e:this.offset=e}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(e,t){this.window.scrollTo(rr(de({},t),{left:e[0],top:e[1]}))}scrollToAnchor(e,t){let n=sW(this.document,e);n&&(this.scrollToElement(n,t),n.focus())}setHistoryScrollRestoration(e){try{this.window.history.scrollRestoration=e}catch{console.warn(Ju(2400,!1))}}scrollToElement(e,t){let n=e.getBoundingClientRect(),i=n.left+this.window.pageXOffset,a=n.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(rr(de({},t),{left:i-s[0],top:a-s[1]}))}};function sW(r,e){let t=r.getElementById(e)||r.getElementsByName(e)[0];if(t)return t;if(typeof r.createTreeWalker=="function"&&r.body&&typeof r.body.attachShadow=="function"){let n=r.createTreeWalker(r.body,NodeFilter.SHOW_ELEMENT),i=n.currentNode;for(;i;){let a=i.shadowRoot;if(a){let s=a.getElementById(e)||a.querySelector(`[name="${e}"]`);if(s)return s}i=n.nextNode()}}return null}var oW=new Map,lW={activated:!1,tokenObservers:[]},cW={initialized:!1,enabled:!1};function lo(r){return oW.get(r)||Object.assign({},lW)}function a2(){return cW}var uW="https://content-firebaseappcheck.googleapis.com/v1";var dW="exchangeDebugToken",r2={OFFSET_DURATION:300*1e3,RETRIAL_MIN_WAIT:30*1e3,RETRIAL_MAX_WAIT:960*1e3},sEe=1440*60*1e3;var _1=class{constructor(e,t,n,i,a){if(this.operation=e,this.retryPolicy=t,this.getWaitDuration=n,this.lowerBound=i,this.upperBound=a,this.pending=null,this.nextErrorWaitInterval=i,i>a)throw new Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}process(e){return m(this,null,function*(){this.stop();try{this.pending=new sd,this.pending.promise.catch(t=>{}),yield hW(this.getNextRun(e)),this.pending.resolve(),yield this.pending.promise,this.pending=new sd,this.pending.promise.catch(t=>{}),yield this.operation(),this.pending.resolve(),yield this.pending.promise,this.process(!0).catch(()=>{})}catch(t){this.retryPolicy(t)?this.process(!1).catch(()=>{}):this.stop()}})}getNextRun(e){if(e)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{let t=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),t}}};function hW(r){return new Promise(e=>{setTimeout(e,r)})}
vendor: 13,523 bytes, lines 19-21
19var fW={"already-initialized":"You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.","initial-throttle":"{$httpStatus} error. Attempts allowed again after {$time}",throttled:"Requests throttled due to previous {$httpStatus} error. Attempts allowed again after {$time}"},Rc=new ha("appCheck","AppCheck",fW);function s2(r){if(!lo(r).activated)throw Rc.create("use-before-activation",{appName:r.name})}function o2(n,i){return m(this,arguments,function*({url:r,body:e},t){let a={"Content-Type":"application/json"},s=t.getImmediate({optional:!0});if(s){let p=yield s.getHeartbeatsHeader();p&&(a["X-Firebase-Client"]=p)}let o={method:"POST",body:JSON.stringify(e),headers:a},l;try{l=yield fetch(r,o)}catch(p){throw Rc.create("fetch-network-error",{originalErrorMessage:p?.message})}if(l.status!==200)throw Rc.create("fetch-status-error",{httpStatus:l.status});let c;try{c=yield l.json()}catch(p){throw Rc.create("fetch-parse-error",{originalErrorMessage:p?.message})}let u=c.ttl.match(/^([\d.]+)(s)$/);if(!u||!u[2]||isNaN(Number(u[1])))throw Rc.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${c.ttl}`});let d=Number(u[1])*1e3,f=Date.now();return{token:c.token,expireTimeMillis:f+d,issuedAtTimeMillis:f}})}function l2(r,e){let{projectId:t,appId:n,apiKey:i}=r.options;return{url:`${uW}/projects/${t}/apps/${n}:${dW}?key=${i}`,body:{debug_token:e}}}var mW="firebase-app-check-database",pW=1,b1="firebase-app-check-store";var w_=null;function gW(){return w_||(w_=new Promise((r,e)=>{try{let t=indexedDB.open(mW,pW);t.onsuccess=n=>{r(n.target.result)},t.onerror=n=>{var i;e(Rc.create("storage-open",{originalErrorMessage:(i=n.target.error)===null||i===void 0?void 0:i.message}))},t.onupgradeneeded=n=>{let i=n.target.result;switch(n.oldVersion){case 0:i.createObjectStore(b1,{keyPath:"compositeKey"})}}}catch(t){e(Rc.create("storage-open",{originalErrorMessage:t?.message}))}}),w_)}function yW(r,e){return vW(_W(r),e)}function vW(r,e){return m(this,null,function*(){let n=(yield gW()).transaction(b1,"readwrite"),a=n.objectStore(b1).put({compositeKey:r,value:e});return new Promise((s,o)=>{a.onsuccess=l=>{s()},n.onerror=l=>{var c;o(Rc.create("storage-set",{originalErrorMessage:(c=l.target.error)===null||c===void 0?void 0:c.message}))}})})}function _W(r){return`${r.options.appId}-${r.name}`}var yg=new Ts("@firebase/app-check");function y1(r,e){return ld()?yW(r,e).catch(t=>{yg.warn(`Failed to write token to IndexedDB. Error: ${t}`)}):Promise.resolve()}function c2(){return a2().enabled}function u2(){return m(this,null,function*(){let r=a2();if(r.enabled&&r.token)return r.token.promise;throw Error(` 20 Can't get debug token in production mode. 21 `)})}var bW={error:"UNKNOWN_ERROR"};function wW(r){return r_.encodeString(JSON.stringify(r),!1)}function w1(r,e=!1,t=!1){return m(this,null,function*(){let n=r.app;s2(n);let i=lo(n),a=i.token,s;if(a&&!vg(a)&&(i.token=void 0,a=void 0),!a){let c=yield i.cachedTokenPromise;c&&(vg(c)?a=c:yield y1(n,void 0))}if(!e&&a&&vg(a))return{token:a.token};let o=!1;if(c2())try{i.exchangeTokenPromise||(i.exchangeTokenPromise=o2(l2(n,yield u2()),r.heartbeatServiceProvider).finally(()=>{i.exchangeTokenPromise=void 0}),o=!0);let c=yield i.exchangeTokenPromise;return yield y1(n,c),i.token=c,{token:c.token}}catch(c){return c.code==="appCheck/throttled"||c.code==="appCheck/initial-throttle"?yg.warn(c.message):t&&yg.error(c),v1(c)}try{i.exchangeTokenPromise||(i.exchangeTokenPromise=i.provider.getToken().finally(()=>{i.exchangeTokenPromise=void 0}),o=!0),a=yield lo(n).exchangeTokenPromise}catch(c){c.code==="appCheck/throttled"||c.code==="appCheck/initial-throttle"?yg.warn(c.message):t&&yg.error(c),s=c}let l;return a?s?vg(a)?l={token:a.token,internalError:s}:l=v1(s):(l={token:a.token},i.token=a,yield y1(n,a)):l=v1(s),o&&TW(n,l),l})}function IW(r){return m(this,null,function*(){let e=r.app;s2(e);let{provider:t}=lo(e);if(c2()){let n=yield u2(),{token:i}=yield o2(l2(e,n),r.heartbeatServiceProvider);return{token:i}}else{let{token:n}=yield t.getToken();return{token:n}}})}function xW(r,e,t,n){let{app:i}=r,a=lo(i),s={next:t,error:n,type:e};if(a.tokenObservers=[...a.tokenObservers,s],a.token&&vg(a.token)){let o=a.token;Promise.resolve().then(()=>{t({token:o.token}),n2(r)}).catch(()=>{})}a.cachedTokenPromise.then(()=>n2(r))}function d2(r,e){let t=lo(r),n=t.tokenObservers.filter(i=>i.next!==e);n.length===0&&t.tokenRefresher&&t.tokenRefresher.isRunning()&&t.tokenRefresher.stop(),t.tokenObservers=n}function n2(r){let{app:e}=r,t=lo(e),n=t.tokenRefresher;n||(n=EW(r),t.tokenRefresher=n),!n.isRunning()&&t.isTokenAutoRefreshEnabled&&n.start()}function EW(r){let{app:e}=r;return new _1(()=>m(null,null,function*(){let t=lo(e),n;if(t.token?n=yield w1(r,!0):n=yield w1(r),n.error)throw n.error;if(n.internalError)throw n.internalError}),()=>!0,()=>{let t=lo(e);if(t.token){let n=t.token.issuedAtTimeMillis+(t.token.expireTimeMillis-t.token.issuedAtTimeMillis)*.5+3e5,i=t.token.expireTimeMillis-300*1e3;return n=Math.min(n,i),Math.max(0,n-Date.now())}else return 0},r2.RETRIAL_MIN_WAIT,r2.RETRIAL_MAX_WAIT)}function TW(r,e){let t=lo(r).tokenObservers;for(let n of t)try{n.type==="EXTERNAL"&&e.error!=null?n.error(e.error):n.next(e)}catch{}}function vg(r){return r.expireTimeMillis-Date.now()>0}function v1(r){return{token:wW(bW),error:r}}var I1=class{constructor(e,t){this.app=e,this.heartbeatServiceProvider=t}_delete(){let{tokenObservers:e}=lo(this.app);for(let t of e)d2(this.app,t.next);return Promise.resolve()}};function CW(r,e){return new I1(r,e)}function SW(r){return{getToken:e=>w1(r,e),getLimitedUseToken:()=>IW(r),addTokenListener:e=>xW(r,"INTERNAL",e),removeTokenListener:e=>d2(r.app,e)}}var DW="@firebase/app-check",AW="0.10.1";var MW="app-check",i2="app-check-internal";function kW(){On(new Xr(MW,r=>{let e=r.getProvider("app").getImmediate(),t=r.getProvider("heartbeat");return CW(e,t)},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((r,e,t)=>{r.getProvider(i2).initialize()})),On(new Xr(i2,r=>{let e=r.getProvider("app-check").getImmediate();return SW(e)},"PUBLIC").setInstantiationMode("EXPLICIT")),jt(DW,AW)}kW();var PW="app-check";var Lo=class{constructor(){return Cs(PW)}};var RW=["localhost","0.0.0.0","127.0.0.1"],_Ee=typeof window<"u"&&RW.includes(window.location.hostname);function k2(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}var P2=k2,R2=new ha("auth","Firebase",k2());var D_=new Ts("@firebase/auth");function OW(r,...e){D_.logLevel<=Wt.WARN&&D_.warn(`Auth (${Fo}): ${r}`,...e)}function E_(r,...e){D_.logLevel<=Wt.ERROR&&D_.error(`Auth (${Fo}): ${r}`,...e)}function za(r,...e){throw tS(r,...e)}function Ua(r,...e){return tS(r,...e)}function eS(r,e,t){let n=Object.assign(Object.assign({},P2()),{[e]:t});return new ha("auth","Firebase",n).create(e,{appName:r.name})}function co(r){return eS(r,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function FW(r,e,t){let n=t;if(!(e instanceof n))throw n.name!==e.constructor.name&&za(r,"argument-error"),eS(r,"argument-error",`Type of ${e.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function tS(r,...e){if(typeof r!="string"){let t=e[0],n=[...e.slice(1)];return n[0]&&(n[0].appName=r.name),r._errorFactory.create(t,...n)}return R2.create(r,...e)}function Ue(r,e,...t){if(!r)throw tS(e,...t)}function Vo(r){let e="INTERNAL ASSERTION FAILED: "+r;throw E_(e),new Error(e)}function Nl(r,e){r||Vo(e)}function D1(){var r;return typeof self<"u"&&((r=self.location)===null||r===void 0?void 0:r.href)||""}function O2(){return h2()==="http:"||h2()==="https:"}function h2(){var r;return typeof self<"u"&&((r=self.location)===null||r===void 0?void 0:r.protocol)||null}function BW(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(O2()||pB()||"connection"in navigator)?navigator.onLine:!0}function NW(){if(typeof navigator>"u")return null;let r=navigator;return r.languages&&r.languages[0]||r.language||null}var md=class{constructor(e,t){this.shortDelay=e,this.longDelay=t,Nl(t>e,"Short delay should be less than long delay!"),this.isMobile=fB()||gB()}get(){return BW()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}};function rS(r,e){Nl(r.emulator,"Emulator should always be set here");let{url:t}=r.emulator;return e?`${t}${e.startsWith("/")?e.slice(1):e}`:t}var A_=class{static initialize(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;Vo("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;Vo("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;Vo("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}};var LW={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};var VW=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],UW=new md(3e4,6e4);function fn(r,e){return r.tenantId&&!e.tenantId?Object.assign(Object.assign({},e),{tenantId:r.tenantId}):e}function Nn(a,s,o,l){return m(this,arguments,function*(r,e,t,n,i={}){return F2(r,i,()=>m(null,null,function*(){let c={},u={};
21n&&(e==="GET"?u=n:c={body:JSON.stringify(n)});let d=cd(Object.assign({key:r.config.apiKey},u)).slice(1),f=yield r._getAdditionalHeaders();f["Content-Type"]="application/json",r.languageCode&&(f["X-Firebase-Locale"]=r.languageCode);let p=Object.assign({method:e,headers:f},c);return mB()||(p.referrerPolicy="no-referrer"),r.emulatorConfig&&ns(r.emulatorConfig.host)&&(p.credentials="include"),A_.fetch()(yield B2(r,r.config.apiHost,t,d),p)}))})}function F2(r,e,t){return m(this,null,function*(){r._canInitEmulator=!1;let n=Object.assign(Object.assign({},LW),e);try{let i=new A1(r),a=yield Promise.race([t(),i.promise]);i.clearNetworkTimeout();let s=yield a.json();if("needConfirmation"in s)throw bg(r,"account-exists-with-different-credential",s);if(a.ok&&!("errorMessage"in s))return s;{let o=a.ok?s.errorMessage:s.error.message,[l,c]=o.split(" : ");if(l==="FEDERATED_USER_ID_ALREADY_LINKED")throw bg(r,"credential-already-in-use",s);if(l==="EMAIL_EXISTS")throw bg(r,"email-already-in-use",s);if(l==="USER_DISABLED")throw bg(r,"user-disabled",s);let u=n[l]||l.toLowerCase().replace(/[_\s]+/g,"-");if(c)throw eS(r,u,c);za(r,u)}}catch(i){if(i instanceof Tn)throw i;za(r,"network-request-failed",{message:String(i)})}})}function Ll(a,s,o,l){return m(this,arguments,function*(r,e,t,n,i={}){let c=yield Nn(r,e,t,n,i);return"mfaPendingCredential"in c&&za(r,"multi-factor-auth-required",{_serverResponse:c}),c})}function B2(r,e,t,n){return m(this,null,function*(){let i=`${e}${t}?${n}`,a=r,s=a.config.emulator?rS(r.config,i):`${r.config.apiScheme}://${i}`;return VW.includes(t)&&(yield a._persistenceManagerAvailable,a._getPersistenceType()==="COOKIE")?a._getPersistence()._getFinalTarget(s).toString():s})}function zW(r){switch(r){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}var A1=class{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((t,n)=>{this.timer=setTimeout(()=>n(Ua(this.auth,"network-request-failed")),UW.get())})}};function bg(r,e,t){let n={appName:r.name};t.email&&(n.email=t.email),t.phoneNumber&&(n.phoneNumber=t.phoneNumber);let i=Ua(r,e,n);return i.customData._tokenResponse=t,i}function f2(r){return r!==void 0&&r.getResponse!==void 0}function m2(r){return r!==void 0&&r.enterprise!==void 0}var M_=class{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],e.recaptchaKey===void 0)throw new Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||this.recaptchaEnforcementState.length===0)return null;for(let t of this.recaptchaEnforcementState)if(t.provider&&t.provider===e)return zW(t.enforcementState);return null}isProviderEnabled(e){return this.getProviderEnforcementState(e)==="ENFORCE"||this.getProviderEnforcementState(e)==="AUDIT"}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PROVIDER")}};function jW(r){return m(this,null,function*(){return(yield Nn(r,"GET","/v1/recaptchaParams")).recaptchaSiteKey||""})}function N2(r,e){return m(this,null,function*(){return Nn(r,"GET","/v2/recaptchaConfig",fn(r,e))})}function HW(r,e){return m(this,null,function*(){return Nn(r,"POST","/v1/accounts:delete",e)})}function k_(r,e){return m(this,null,function*(){return Nn(r,"POST","/v1/accounts:lookup",e)})}function wg(r){if(r)try{let e=new Date(Number(r));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}function nS(r,e=!1){return m(this,null,function*(){let t=At(r),n=yield t.getIdToken(e),i=iS(n);Ue(i&&i.exp&&i.auth_time&&i.iat,t.auth,"internal-error");let a=typeof i.firebase=="object"?i.firebase:void 0,s=a?.sign_in_provider;return{claims:i,token:n,authTime:wg(x1(i.auth_time)),issuedAtTime:wg(x1(i.iat)),expirationTime:wg(x1(i.exp)),signInProvider:s||null,signInSecondFactor:a?.sign_in_second_factor||null}})}function x1(r){return Number(r)*1e3}function iS(r){let[e,t,n]=r.split(".");if(e===void 0||t===void 0||n===void 0)return E_("JWT malformed, contained fewer than 3 sections"),null;try{let i=n_(t);return i?JSON.parse(i):(E_("Failed to decode base64 JWT payload"),null)}catch(i){return E_("Caught error parsing JWT payload as JSON",i?.toString()),null}}function p2(r){let e=iS(r);return Ue(e,"internal-error"),Ue(typeof e.exp<"u","internal-error"),Ue(typeof e.iat
vendor: 20,588 bytes, line 21
21<"u","internal-error"),Number(e.exp)-Number(e.iat)}function Bc(r,e,t=!1){return m(this,null,function*(){if(t)return e;try{return yield e}catch(n){throw n instanceof Tn&&$W(n)&&r.auth.currentUser===r&&(yield r.auth.signOut()),n}})}function $W({code:r}){return r==="auth/user-disabled"||r==="auth/user-token-expired"}var M1=class{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(e){var t;if(e){let n=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),n}else{this.errorBackoff=3e4;let i=((t=this.user.stsTokenManager.expirationTime)!==null&&t!==void 0?t:0)-Date.now()-3e5;return Math.max(0,i)}}schedule(e=!1){if(!this.isRunning)return;let t=this.getInterval(e);this.timerId=setTimeout(()=>m(this,null,function*(){yield this.iteration()}),t)}iteration(){return m(this,null,function*(){try{yield this.user.getIdToken(!0)}catch(e){e?.code==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()})}};var Tg=class{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=wg(this.lastLoginAt),this.creationTime=wg(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}};function P_(r){return m(this,null,function*(){var e;let t=r.auth,n=yield r.getIdToken(),i=yield Bc(r,k_(t,{idToken:n}));Ue(i?.users.length,t,"internal-error");let a=i.users[0];r._notifyReloadListener(a);let s=!((e=a.providerUserInfo)===null||e===void 0)&&e.length?L2(a.providerUserInfo):[],o=GW(r.providerData,s),l=r.isAnonymous,c=!(r.email&&a.passwordHash)&&!o?.length,u=l?c:!1,d={uid:a.localId,displayName:a.displayName||null,photoURL:a.photoUrl||null,email:a.email||null,emailVerified:a.emailVerified||!1,phoneNumber:a.phoneNumber||null,tenantId:a.tenantId||null,providerData:o,metadata:new Tg(a.createdAt,a.lastLoginAt),isAnonymous:u};Object.assign(r,d)})}function aS(r){return m(this,null,function*(){let e=At(r);yield P_(e),yield e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)})}function GW(r,e){return[...r.filter(n=>!e.some(i=>i.providerId===n.providerId)),...e]}function L2(r){return r.map(e=>{var{providerId:t}=e,n=Uv(e,["providerId"]);return{providerId:t,uid:n.rawId||"",displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}})}function WW(r,e){return m(this,null,function*(){let t=yield F2(r,{},()=>m(null,null,function*(){let n=cd({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:i,apiKey:a}=r.config,s=yield B2(r,i,"/v1/token",`key=${a}`),o=yield r._getAdditionalHeaders();o["Content-Type"]="application/x-www-form-urlencoded";let l={method:"POST",headers:o,body:n};return r.emulatorConfig&&ns(r.emulatorConfig.host)&&(l.credentials="include"),A_.fetch()(s,l)}));return{accessToken:t.access_token,expiresIn:t.expires_in,refreshToken:t.refresh_token}})}function qW(r,e){return m(this,null,function*(){return Nn(r,"POST","/v2/accounts:revokeToken",fn(r,e))})}var Ig=class r{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){Ue(e.idToken,"internal-error"),Ue(typeof e.idToken<"u","internal-error"),Ue(typeof e.refreshToken<"u","internal-error");let t="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):p2(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){Ue(e.length!==0,"internal-error");let t=p2(e);this.updateTokensAndExpiration(e,null,t)}getToken(e,t=!1){return m(this,null,function*(){return!t&&this.accessToken&&!this.isExpired?this.accessToken:(Ue(this.refreshToken,e,"user-token-expired"),this.refreshToken?(yield this.refresh(e,this.refreshToken),this.accessToken):null)})}clearRefreshToken(){this.refreshToken=null}refresh(e,t){return m(this,null,function*(){let{accessToken:n,refreshToken:i,expiresIn:a}=yield WW(e,t);this.updateTokensAndExpiration(n,i,Number(a))})}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+n*1e3}static fromJSON(e,t){let{refreshToken:n,accessToken:i,expirationTime:a}=t,s=new r;return n&&(Ue(typeof n=="string","internal-error",{appName:e}),s.refreshToken=n),i&&(Ue(typeof i=="string","internal-error",{appName:e}),s.accessToken=i),a&&(Ue(typeof a=="number","internal-error",{appName:e}),s.expirationTime=a),s}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new r,this.toJSON())}_performRefresh(){return Vo("not implemented")}};function Oc(r,e){Ue(typeof r=="string"||typeof r>"u","internal-error",{appName:e})}var Fc=class r{constructor(e){var{uid:t,auth:n,stsTokenManager:i}=e,a=Uv(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new M1(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=i,this.accessToken=i.accessToken,this.displayName=a.displayName||null,this.email=a.email||null,this.emailVerified=a.emailVerified||!1,this.phoneNumber=a.phoneNumber||null,this.photoURL=a.photoURL||null,this.isAnonymous=a.isAnonymous||!1,this.tenantId=a.tenantId||null,this.providerData=a.providerData?[...a.providerData]:[],this.metadata=new Tg(a.createdAt||void 0,a.lastLoginAt||void 0)}getIdToken(e){return m(this,null,function*(){let t=yield Bc(this,this.stsTokenManager.getToken(this.auth,e));return Ue(t,this.auth,"internal-error"),this.accessToken!==t&&(this.accessToken=t,yield this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t})}getIdTokenResult(e){return nS(this,e)}reload(){return aS(this)}_assign(e){this!==e&&(Ue(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(t=>Object.assign({},t)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){let t=new r(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return t.metadata._copy(this.metadata),t}_onReload(e){Ue(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(e,t=!1){return m(this,null,function*(){let n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&(yield P_(this)),yield this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)})}delete(){return m(this,null,function*(){if(Cn(this.auth.app))return Promise.reject(co(this.auth));let e=yield this.getIdToken();return yield Bc(this,HW(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()})}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,t){var n,i,a,s,o,l,c,u;let d=(n=t.displayName)!==null&&n!==void 0?n:void 0,f=(i=t.email)!==null&&i!==void 0?i:void 0,p=(a=t.phoneNumber)!==null&&a!==void 0?a:void 0,g=(s=t.photoURL)!==null&&s!==void 0?s:void 0,y=(o=t.tenantId)!==null&&o!==void 0?o:void 0,v=(l=t._redirectEventId)!==null&&l!==void 0?l:void 0,T=(c=t.createdAt)!==null&&c!==void 0?c:void 0,C=(u=t.lastLoginAt)!==null&&u!==void 0?u:void 0,{uid:x,emailVerified:B,isAnonymous:q,providerData:V,stsTokenManager:b}=t;Ue(x&&b,e,"internal-error");let E=Ig.fromJSON(this.name,b);Ue(typeof x=="string",e,"internal-error"),Oc(d,e.name),Oc(f,e.name),Ue(typeof B=="boolean",e,"internal-error"),Ue(typeof q=="boolean",e,"internal-error"),Oc(p,e.name),Oc(g,e.name),Oc(y,e.name),Oc(v,e.name),Oc(T,e.name),Oc(C,e.name);let I=new r({uid:x,auth:e,email:f,emailVerified:B,displayName:d,isAnonymous:q,photoURL:g,phoneNumber:p,tenantId:y,stsTokenManager:E,createdAt:T,lastLoginAt:C});return V&&Array.isArray(V)&&(I.providerData=V.map(S=>Object.assign({},S))),v&&(I._redirectEventId=v),I}static _fromIdTokenResponse(e,t,n=!1){return m(this,null,function*(){let i=new Ig;i.updateFromServerResponse(t);let a=new r({uid:t.localId,auth:e,stsTokenManager:i,isAnonymous:n});return yield P_(a),a})}static _fromGetAccountInfoResponse(e,t,n){return m(this,null,function*(){let i=t.users[0];Ue(i.localId!==void 0,"internal-error");let a=i.providerUserInfo!==void 0?L2(i.providerUserInfo):[],s=!(i.email&&i.passwordHash)&&!a?.length,o=new Ig;o.updateFromIdToken(n);let l=new r({uid:i.localId,auth:e,stsTokenManager:o,isAnonymous:s}),c={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:a,metadata:new Tg(i.createdAt,i.lastLoginAt),isAnonymous:!(i.email&&i.passwordHash)&&!a?.length};return Object.assign(l,c),l})}};var g2=new Map;function Bl(r){Nl(r instanceof Function,"Expected a class definition");let e=g2.get(r);return e?(Nl(e instanceof r,"Instance stored in cache mismatched with class"),e):(e=new r,g2.set(r,e),e)}var KW=(()=>{class r{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return m(this,null,function*(){return!0})}_set(t,n){return m(this,null,function*(){this.storage[t]=n})}_get(t){return m(this,null,function*(){let n=this.storage[t];return n===void 0?null:n})}_remove(t){return m(this,null,function*(){delete this.storage[t]})}_addListener(t,n){}_removeListener(t,n){}}return r.type="NONE",r})(),k1=KW;function T_(r,e,t){return`firebase:${r}:${e}:${t}`}var R_=class r{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;let{config:i,name:a}=this.auth;this.fullUserKey=T_(this.userKey,i.apiKey,a),this.fullPersistenceKey=T_("persistence",i.apiKey,a),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}getCurrentUser(){return m(this,null,function*(){let e=yield this.persistence._get(this.fullUserKey);if(!e)return null;if(typeof e=="string"){let t=yield k_(this.auth,{idToken:e}).catch(()=>{});return t?Fc._fromGetAccountInfoResponse(this.auth,t,e):null}return Fc._fromJSON(this.auth,e)})}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(e){return m(this,null,function*(){if(this.persistence===e)return;let t=yield this.getCurrentUser();if(yield this.removeCurrentUser(),this.persistence=e,t)return this.setCurrentUser(t)})}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(e,t,n="authUser"){return m(this,null,function*(){if(!t.length)return new r(Bl(k1),e,n);let i=(yield Promise.all(t.map(c=>m(null,null,function*(){if(yield c._isAvailable())return c})))).filter(c=>c),a=i[0]||Bl(k1),s=T_(n,e.config.apiKey,e.name),o=null;for(let c of t)try{let u=yield c._get(s);if(u){let d;if(typeof u=="string"){let f=yield k_(e,{idToken:u}).catch(()=>{});if(!f)break;d=yield Fc._fromGetAccountInfoResponse(e,f,u)}else d=Fc._fromJSON(e,u);c!==a&&(o=d),a=c;break}}catch{}let l=i.filter(c=>c._shouldAllowMigration);return!a._shouldAllowMigration||!l.length?new r(a,e,n):(a=l[0],o&&(yield a._set(s,o.toJSON())),yield Promise.all(t.map(c=>m(null,null,function*(){if(c!==a)try{yield c._remove(s)}catch{}}))),new r(a,e,n))})}};function y2(r){let e=r.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(j2(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(V2(e))return"Firefox";if(e.includes("silk/"))return"Silk";if($2(e))return"Blackberry";if(G2(e))return"Webos";if(U2(e))return"Safari";if((e.includes("chrome/")||z2(e))&&!e.includes("edge/"))return"Chrome";if(H2(e))return"Android";{let t=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,n=r.match(t);if(n?.length===2)return n[1]}return"Other"}function V2(r=oi()){return/firefox\//i.test(r)}function U2(r=oi()){let e=r.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function z2(r=oi()){return/crios\//i.test(r)}function j2(r=oi()){return/iemobile/i.test(r)}function H2(r=oi()){return/android/i.test(r)}function $2(r=oi()){return/blackberry/i.test(r)}function G2(r=oi()){return/webos/i.test(r)}function sS(r=oi()){return/iphone|ipad|ipod/i.test(r)||/macintosh/i.test(r)&&/mobile/i.test(r)}function YW(r=oi()){var e;return sS(r)&&!!(!((e=window.navigator)===null||e===void 0)&&e.standalone)}function XW(){return yB()&&document.documentMode===10}function W2(r=oi()){return sS(r)||H2(r)||G2(r)||$2(r)||/windows phone/i.test(r)||j2(r)}function q2(r,e=[]){let t;switch(r){case"Browser":t=y2(oi());break;case"Worker":t=`${y2(oi())}-${r}`;break;default:t=r}let n=e.length?e.join(","):"FirebaseCore-web";return`${t}/JsCore/${Fo}/${n}`}var P1=class{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){let n=a=>new Promise((s,o)=>{try{let l=e(a);s(l)}catch(l){o(l)}});n.onAbort=t,this.queue.push(n);let i=this.queue.length-1;return()=>{this.queue[i]=()=>Promise.resolve()}}runMiddleware(e){return m(this,null,function*(){if(this.auth.currentUser===e)return;let t=[];try{for(let n of this.queue)yield n(e),n.onAbort&&t.push(n.onAbort)}catch(n){t.reverse();for(let i of t)try{i()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:n?.message})}})}};function QW(t){return m(this,arguments,function*(r,e={}){return Nn(r,"GET","/v2/passwordPolicy",fn(r,e))})}var JW=6,R1=class{constructor(e){var t,n,i,a;let s=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(t=s.minPasswordLength)!==null&&t!==void 0?t:JW,s.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=s.maxPasswordLength),s.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=s.containsLowercaseCharacter),s.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=s.containsUppercaseCharacter),s.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=s.containsNumericCharacter),s.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=s.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(i=(n=e.allowedNonAlphanumericCharacters)===null||n===void 0?void 0:n.join(""))!==null&&i!==void 0?i:"",this.forceUpgradeOnSignin=(a=e.forceUpgradeOnSignin)!==null&&a!==void 0?a:!1,this.schemaVersion=e.schemaVersion}validatePassword(e){var t,n,i,a,s,o;let l={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,l),this.validatePasswordCharacterOptions(e,l),l.isValid&&(l.isValid=(t=l.meetsMinPasswordLength)!==null&&t!==void 0?t:!0),l.isValid&&(l.isValid=(n=l.meetsMaxPasswordLength)!==null&&n!==void 0?n:!0),l.isValid&&(l.isValid=(i=l.containsLowercaseLetter)!==null&&i!==void 0?i:!0),l.isValid&&(l.isValid=(a=l.containsUppercaseLetter)!==null&&a!==void 0?a:!0),l.isValid&&(l.isValid=(s=l.containsNumericCharacter)!==null&&s!==void 0?s:!0),l.isValid&&(l.isValid=(o=l.containsNonAlphanumericCharacter)!==null&&o!==void 0?o:!0),l}validatePasswordLengthOptions(e,t){let n=this.customStrengthOptions.minPasswordLength,i=this.customStrengthOptions.maxPasswordLength;n&&(t.meetsMinPasswordLength=e.length>=n),i&&(t.meetsMaxPasswordLength=e.length<=i)}validatePasswordCharacterOptions(e,t){this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);let n;for(let i=0;i<e.length;i++)n=e.charAt(i),this.updatePasswordCharacterOptionsStatuses(t,n>="a"&&n<="z",n>="A"&&n<="Z",n>="0"&&n<="9",this.allowedNonAlphanumericCharacters.includes(n))}updatePasswordCharacterOptionsStatuses(e,t,n,i,a){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=t)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=n)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=i)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=a))}};var O1=class{constructor(e,t,n,i){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=n,this.config=i,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new O_(this),this.idTokenSubscription=new O_(this),this.beforeStateQueue=new P1(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=R2,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=i.sdkClientVersion,this._persistenceManagerAvailable=new Promise(a=>this._resolvePersistenceManagerAvailable=a)}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=Bl(t)),this._initializationPromise=this.queue(()=>m(this,null,function*(){var n,i,a;if(!this._deleted&&(this.persistenceManager=yield R_.create(this,e),(n=this._resolvePersistenceManagerAvailable)===null||n===void 0||n.call(this),!this._deleted)){if(!((i=this._popupRedirectResolver)===null||i===void 0)&&i._shouldInitProactively)try{yield this._popupRedirectResolver._initialize(this)}catch{}yield this.initializeCurrentUser(t),this.lastNotifiedUid=((a=this.currentUser)===null||a===void 0?void 0:a.uid)||null,!this._deleted&&(this._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){return m(this,null,function*(){if(this._deleted)return;let e=yield this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),yield this.currentUser.getIdToken();return}yield this._updateCurrentUser(e,!0)}})}initializeCurrentUserFromIdToken(e){return m(this,null,function*(){try{let t=yield k_(this,{idToken:e}),n=yield Fc._fromGetAccountInfoResponse(this,t,e);yield this.directlySetCurrentUser(n)}catch(t){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",t),yield this.directlySetCurrentUser(null)}})}initializeCurrentUser(e){return m(this,null,function*(){var t;if(Cn(this.app)){let s=this.app.settings.authIdToken;return s?new Promise(o=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(s).then(o,o))}):this.directlySetCurrentUser(null)}let n=yield this.assertedPersistence.getCurrentUser(),i=n,a=!1;if(e&&this.config.authDomain){yield this.getOrInitRedirectPersistenceManager();let s=(t=this.redirectUser)===null||t===void 0?void 0:t._redirectEventId,o=i?._redirectEventId,l=yield this.tryRedirectSignIn(e);(!s||s===o)&&l?.user&&(i=l.user,a=!0)}if(!i)return this.directlySetCurrentUser(null);
21if(!i._redirectEventId){if(a)try{yield this.beforeStateQueue.runMiddleware(i)}catch(s){i=n,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(s))}return i?this.reloadAndSetCurrentUserOrClear(i):this.directlySetCurrentUser(null)}return Ue(this._popupRedirectResolver,this,"argument-error"),yield this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===i._redirectEventId?this.directlySetCurrentUser(i):this.reloadAndSetCurrentUserOrClear(i)})}tryRedirectSignIn(e){return m(this,null,function*(){let t=null;try{t=yield this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{yield this._setRedirectUser(null)}return t})}reloadAndSetCurrentUserOrClear(e){return m(this,null,function*(){try{yield P_(e)}catch(t){if(t?.code!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)})}useDeviceLanguage(){this.languageCode=NW()}_delete(){return m(this,null,function*(){this._deleted=!0})}updateCurrentUser(e){return m(this,null,function*(){if(Cn(this.app))return Promise.reject(co(this));let t=e?At(e):null;return t&&Ue(t.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(t&&t._clone(this))})}_updateCurrentUser(e,t=!1){return m(this,null,function*(){if(!this._deleted)return e&&Ue(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),t||(yield this.beforeStateQueue.runMiddleware(e)),this.queue(()=>m(this,null,function*(){yield this.directlySetCurrentUser(e),this.notifyAuthListeners()}))})}signOut(){return m(this,null,function*(){return Cn(this.app)?Promise.reject(co(this)):(yield this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&(yield this._setRedirectUser(null)),this._updateCurrentUser(null,!0))})}setPersistence(e){return Cn(this.app)?Promise.reject(co(this)):this.queue(()=>m(this,null,function*(){yield this.assertedPersistence.setPersistence(Bl(e))}))}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(e){return m(this,null,function*(){this._getPasswordPolicyInternal()||(yield this._updatePasswordPolicy());let t=this._getPasswordPolicyInternal();return t.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):t.validatePassword(e)})}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){return m(this,null,function*(){let e=yield QW(this),t=new R1(e);this.tenantId===null?this._projectPasswordPolicy=t:this._tenantPasswordPolicies[this.tenantId]=t})}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(e){this._errorFactory=new ha("auth","Firebase",e())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}authStateReady(){return new Promise((e,t)=>{if(this.currentUser)e();else{let n=this.onAuthStateChanged(()=>{n(),e()},t)}})}revokeAccessToken(e){return m(this,null,function*(){if(this.currentUser){let t=yield this.currentUser.getIdToken(),n={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:t};this.tenantId!=null&&(n.tenantId=this.tenantId),yield qW(this,n)}})}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(e=this._currentUser)===null||e===void 0?void 0:e.toJSON()}}_setRedirectUser(e,t){return m(this,null,function*(){let n=yield this.getOrInitRedirectPersistenceManager(t);return e===null?n.removeCurrentUser():n.setCurrentUser(e)})}getOrInitRedirectPersistenceManager(e){return m(this,null,function*(){if(!this.redirectPersistenceManager){let t=e&&Bl(e)||this._popupRedirectResolver;Ue(t,this,"argument-error"),this.redirectPersistenceManager=yield R_.create(this,[Bl(t._redirectPersistence)],"redirectUser"),this.redirectUser=yield this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager})}_redirectUserForId(e){return m(this,null,function*(){var t,n;return this._isInitialized&&(yield this.queue(()=>m(this,null,function*(){}))),((t=this._currentUser)===null||t===void 0?void 0:t._redirectEventId)===e?this._currentUser:((n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId)===e?this.redirectUser:null})}_persistUserIfCurrent(e){return m(this,null,function*(){if(e===this.currentUser)return this.queue(()=>m(this,null,function*(){return this.directlySetCurrentUser(e)}))})}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,t;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);let n=(t=(e=this.currentUser)===null||e===void 0?void 0:e.uid)!==null&&t!==void 0?t:null;this.lastNotifiedUid!==n&&(this.lastNotifiedUid=n,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,n,i){if(this._deleted)return()=>{};let a=typeof t=="function"?t:t.next.bind(t),s=!1,o=this._isInitialized?Promise.resolve():this._initializationPromise;if(Ue(o,this,"internal-error"),o.then(()=>{s||a(this.currentUser)}),typeof t=="function"){let l=e.addObserver(t,n,i);return()=>{s=!0,l()}}else{let l=e.addObserver(t);return()=>{s=!0,l()}}}directlySetCurrentUser(e){return m(this,null,function*(){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?yield this.assertedPersistence.setCurrentUser(e):yield this.assertedPersistence.removeCurrentUser()})}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return Ue(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=q2(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){return m(this,null,function*(){var e;let t={"X-Client-Version":this.clientVersion};this.app.options.appId&&(t["X-Firebase-gmpid"]=this.app.options.appId);let n=yield(e=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getHeartbeatsHeader();n&&(t["X-Firebase-Client"]=n);let i=yield this._getAppCheckToken();return i&&(t["X-Firebase-AppCheck"]=i),t})}_getAppCheckToken(){return m(this,null,function*(){var e;if(Cn(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;let t=yield(e=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getToken();return t?.error&&OW(`Error while retrieving App Check token: ${t.error}`),t?.token})}};function ga(r){return At(r)}var O_=class{constructor(e){this.auth=e,this.observer=null,this.addObserver=wB(t=>this.observer=t)}get next(){return Ue(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}};var Pg={loadJS(){return m(this,null,function*(){throw new Error("Unable to load external scripts")})},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function ZW(r){Pg=r}function oS(r){return Pg.loadJS(r)}function eq(){return Pg.recaptchaV2Script}function tq(){return Pg.recaptchaEnterpriseScript}function rq(){return Pg.gapiScript}function K2(r){return`__${r}${Math.floor(Math.random()*1e6)}`}var nq=500,iq=6e4,I_=1e12,F1=class{constructor(e){this.auth=e,this.counter=I_,this._widgets=new Map}render(e,t){let n=this.counter;return this._widgets.set(n,new L1(e,this.auth.name,t||{})),this.counter++,n}reset(e){var t;let n=e||I_;(t=this._widgets.get(n))===null||t===void 0||t.delete(),this._widgets.delete(n)}getResponse(e){var t;let n=e||I_;return((t=this._widgets.get(n))===null||t===void 0?void 0:t.getResponse())||""}execute(e){return m(this,null,function*(){var t;let n=e||I_;return(t=this._widgets.get(n))===null||t===void 0||t.execute(),""})}},B1=class{constructor(){this.enterprise=new N1}ready(e){e()}execute(e,t){return Promise.resolve("token")}render(e,t){return""}},N1=class{ready(e){e()}execute(e,t){return Promise.resolve("token")}render(e,t){return""}},L1=class{constructor(e,t,n){this.params=n,this.timerId=null,this.deleted=!1,this.responseToken=null,this.clickHandler=()=>{this.execute()};let i=typeof e=="string"?document.getElementById(e):e;Ue(i,"argument-error",{appName:t}),this.container=i,this.isVisible=this.params.size!=="invisible",this.isVisible?this.execute():this.container.addEventListener("click",this.clickHandler)}getResponse(){return this.checkIfDeleted(),this.responseToken}delete(){this.checkIfDeleted(),this.deleted=!0,this.timerId&&(clearTimeout(this.timerId),this.timerId=null),this.container.removeEventListener("click",this.clickHandler)}execute(){this.checkIfDeleted(),!this.timerId&&(this.timerId=window.setTimeout(()=>{this.responseToken=aq(50);let{callback:e,"expired-callback":t}=this.params;if(e)try{e(this.responseToken)}catch{}this.timerId=window.setTimeout(()=>{if(this.timerId=null,this.responseToken=null,t)try{t()}catch{}this.isVisible&&this.execute()},iq)},nq))}checkIfDeleted(){if(this.deleted)throw new Error("reCAPTCHA mock was already deleted!")}};function aq(r){let e=[],t="1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";for(let n=0;n<r;n++)e.push(t.charAt(Math.floor(Math.random()*t.length)));return e.join("")}var sq="recaptcha-enterprise",xg="NO_RECAPTCHA",F_=class{constructor(e){this.type=sq,this.auth=ga(e)}verify(e="verify",t=!1){return m(this,null,function*(){function n(a){return m(this,null,function*(){if(!t){if(a.tenantId==null&&a._agentRecaptchaConfig!=null)return a._agentRecaptchaConfig.siteKey;if(a.tenantId!=null&&a._tenantRecaptchaConfigs[a.tenantId]!==void 0)return a._tenantRecaptchaConfigs[a.tenantId].siteKey}return new Promise((s,o)=>
21m(null,null,function*(){N2(a,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(l=>{if(l.recaptchaKey===void 0)o(new Error("recaptcha Enterprise site key undefined"));else{let c=new M_(l);return a.tenantId==null?a._agentRecaptchaConfig=c:a._tenantRecaptchaConfigs[a.tenantId]=c,s(c.siteKey)}}).catch(l=>{o(l)})}))})}function i(a,s,o){let l=window.grecaptcha;m2(l)?l.enterprise.ready(()=>{l.enterprise.execute(a,{action:e}).then(c=>{s(c)}).catch(()=>{s(xg)})}):o(Error("No reCAPTCHA enterprise script loaded."))}return this.auth.settings.appVerificationDisabledForTesting?new B1().execute("siteKey",{action:"verify"}):new Promise((a,s)=>{n(this.auth).then(o=>{if(!t&&m2(window.grecaptcha))i(o,a,s);else{if(typeof window>"u"){s(new Error("RecaptchaVerifier is only supported in browser"));return}let l=tq();l.length!==0&&(l+=o),oS(l).then(()=>{i(o,a,s)}).catch(c=>{s(c)})}}).catch(o=>{s(o)})})})}};function _g(r,e,t,n=!1,i=!1){return m(this,null,function*(){let a=new F_(r),s;if(i)s=xg;else try{s=yield a.verify(t)}catch{s=yield a.verify(t,!0)}let o=Object.assign({},e);if(t==="mfaSmsEnrollment"||t==="mfaSmsSignIn"){if("phoneEnrollmentInfo"in o){let l=o.phoneEnrollmentInfo.phoneNumber,c=o.phoneEnrollmentInfo.recaptchaToken;Object.assign(o,{phoneEnrollmentInfo:{phoneNumber:l,recaptchaToken:c,captchaResponse:s,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if("phoneSignInInfo"in o){let l=o.phoneSignInInfo.recaptchaToken;Object.assign(o,{phoneSignInInfo:{recaptchaToken:l,captchaResponse:s,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return o}return n?Object.assign(o,{captchaResp:s}):Object.assign(o,{captchaResponse:s}),Object.assign(o,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(o,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),o})}function fd(r,e,t,n,i){return m(this,null,function*(){var a,s;if(i==="EMAIL_PASSWORD_PROVIDER")if(!((a=r._getRecaptchaConfig())===null||a===void 0)&&a.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){let o=yield _g(r,e,t,t==="getOobCode");return n(r,o)}else return n(r,e).catch(o=>m(null,null,function*(){if(o.code==="auth/missing-recaptcha-token"){console.log(`${t} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);let l=yield _g(r,e,t,t==="getOobCode");return n(r,l)}else return Promise.reject(o)}));else if(i==="PHONE_PROVIDER")if(!((s=r._getRecaptchaConfig())===null||s===void 0)&&s.isProviderEnabled("PHONE_PROVIDER")){let o=yield _g(r,e,t);return n(r,o).catch(l=>m(null,null,function*(){var c;if(((c=r._getRecaptchaConfig())===null||c===void 0?void 0:c.getProviderEnforcementState("PHONE_PROVIDER"))==="AUDIT"&&(l.code==="auth/missing-recaptcha-token"||l.code==="auth/invalid-app-credential")){console.log(`Failed to verify with reCAPTCHA Enterprise. Automatically triggering the reCAPTCHA v2 flow to complete the ${t} flow.`);let u=yield _g(r,e,t,!1,!0);return n(r,u)}return Promise.reject(l)}))}else{let o=yield _g(r,e,t,!1,!0);return n(r,o)}else return Promise.reject(i+" provider is not supported.")})}function oq(r){return m(this,null,function*(){let e=ga(r),t=yield N2(e,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}),n=new M_(t);e.tenantId==null?e._agentRecaptchaConfig=n:e._tenantRecaptchaConfigs[e.tenantId]=n,n.isAnyProviderEnabled()&&new F_(e).verify()})}function q_(r,e){let t=fa(r,"auth");if(t.isInitialized()){let i=t.getImmediate(),a=t.getOptions();if(no(a,e??{}))return i;za(i,"already-initialized")}return t.initialize({options:e})}function lq(r,e){let t=e?.persistence||[],n=(Array.isArray(t)?t:[t]).map(Bl);e?.errorMap&&r._updateErrorMap(e.errorMap),r._initializeWithPersistence(n,e?.popupRedirectResolver)}function lS(r,e,t){let n=ga(r);Ue(/^https?:\/\//.test(e),n,"invalid-emulator-scheme");let i=!!t?.disableWarnings,a=Y2(e),{host:s,port:o}=cq(e),l=o===null?"":`:${o}`,c={url:`${a}//${s}${l}/`},u=Object.freeze({host:s,port:o,protocol:a.replace(":",""),options:Object.freeze({disableWarnings:i})});if(!n._canInitEmulator){Ue(n.config.emulator&&n.emulatorConfig,n,"emulator-config-failed"),Ue(no(c,n.config.emulator)&&no(u,n.emulatorConfig),n,"emulator-config-failed");return}n.config.emulator=c,n.emulatorConfig=u,n.settings.appVerificationDisabledForTesting=!0,ns(s)?(kc(`${a}//${s}${l}`),od("Auth",!0)):i||uq()}function Y2(r){let e=r.indexOf(":");return e<0?"":r.substr(0,e+1)}function cq(r){let e=Y2(r),t=/(\/\/)?([^?#/]+)/.exec(r.substr(e.length));if(!t)return{host:"",port:null};let n=t[2].split("@").pop()||"",i=/^(\[[^\]]+\])(:|$)/.exec(n);if(i){let a=i[1];return{host:a,port:v2(n.substr(a.length+1))}}else{let[a,s]=n.split(":");return{host:a,port:v2(s)}}}function v2(r){if(!r)return null;let e=Number(r);return isNaN(e)?null:e}function uq(){function r(){let e=document.createElement("p"),t=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",t.position="fixed",t.width="100%",t.backgroundColor="#ffffff",t.border=".1em solid #000000",t.color="#b50000",t.bottom="0px",t.left="0px",t.margin="0px",t.zIndex="10000",t.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",r):r())}var pd=class{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return Vo("not implemented")}_getIdTokenResponse(e){return Vo("not implemented")}_linkToIdToken(e,t){return Vo("not implemented")}_getReauthenticationResolver(e){return Vo("not implemented")}};function dq(r,e){return m(this,null,function*(){return Nn(r,"POST","/v1/accounts:update",e)})}function hq(r,e){return m(this,null,function*(){return Nn(r,"POST","/v1/accounts:signUp",e)})}function fq(r,e){return m(this,null,function*(){return Ll(r,"POST","/v1/accounts:signInWithPassword",fn(r,e))})}function X2(r,e){return m(this,null,function*(){return Nn(r,"POST","/v1/accounts:sendOobCode",fn(r,e))})}function mq(r,e){return m(this,null,function*(){return X2(r,e)})}function pq(r,e){return m(this,null,function*(){return X2(r,e)})}function gq(r,e){return m(this,null,function*(){return Ll(r,"POST","/v1/accounts:signInWithEmailLink",fn(r,e))})}function yq(r,e){return m(this,null,function*(){return Ll(r,"POST","/v1/accounts:signInWithEmailLink",fn(r,e))})}var Cg=class r extends pd{constructor(e,t,n,i=null){super("password",n),this._email=e,this._password=t,this._tenantId=i}static _fromEmailAndPassword(e,t){return new r(e,t,"password")}static _fromEmailAndCode(e,t,n=null){return new r(e,t,"emailLink",n)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){let t=typeof e=="string"?JSON.parse(e):e;if(t?.email&&t?.password){if(t.signInMethod==="password")return this._fromEmailAndPassword(t.email,t.password);if(t.signInMethod==="emailLink")return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}_getIdTokenResponse(e){return m(this,null,function*(){switch(this.signInMethod){case"password":let t={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return fd(e,t,"signInWithPassword",fq,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return gq(e,{email:this._email,oobCode:this._password});default:za(e,"internal-error")}})}_linkToIdToken(e,t){return m(this,null,function*(){switch(this.signInMethod){case"password":let n={idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return fd(e,n,"signUpPassword",hq,"EMAIL_PASSWORD_PROVIDER");case"emailLink":return yq(e,{idToken:t,email:this._email,oobCode:this._password});default:za(e,"internal-error")}})}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}};function mf(r,e){return m(this,null,function*(){return Ll(r,"POST","/v1/accounts:signInWithIdp",fn(r,e))})}var vq="http://localhost",Sg=class r extends pd{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){let t=new r(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(t.idToken=e.idToken),e.accessToken&&(t.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&
21(t.nonce=e.nonce),e.pendingToken&&(t.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(t.accessToken=e.oauthToken,t.secret=e.oauthTokenSecret):za("argument-error"),t}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){let t=typeof e=="string"?JSON.parse(e):e,{providerId:n,signInMethod:i}=t,a=Uv(t,["providerId","signInMethod"]);if(!n||!i)return null;let s=new r(n,i);return s.idToken=a.idToken||void 0,s.accessToken=a.accessToken||void 0,s.secret=a.secret,s.nonce=a.nonce,s.pendingToken=a.pendingToken||null,s}_getIdTokenResponse(e){let t=this.buildRequest();return mf(e,t)}_linkToIdToken(e,t){let n=this.buildRequest();return n.idToken=t,mf(e,n)}_getReauthenticationResolver(e){let t=this.buildRequest();return t.autoCreate=!1,mf(e,t)}buildRequest(){let e={requestUri:vq,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{let t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=cd(t)}return e}};function _2(r,e){return m(this,null,function*(){return Nn(r,"POST","/v1/accounts:sendVerificationCode",fn(r,e))})}function _q(r,e){return m(this,null,function*(){return Ll(r,"POST","/v1/accounts:signInWithPhoneNumber",fn(r,e))})}function bq(r,e){return m(this,null,function*(){let t=yield Ll(r,"POST","/v1/accounts:signInWithPhoneNumber",fn(r,e));if(t.temporaryProof)throw bg(r,"account-exists-with-different-credential",t);return t})}var wq={USER_NOT_FOUND:"user-not-found"};function Iq(r,e){return m(this,null,function*(){let t=Object.assign(Object.assign({},e),{operation:"REAUTH"});return Ll(r,"POST","/v1/accounts:signInWithPhoneNumber",fn(r,t),wq)})}var Dg=class r extends pd{constructor(e){super("phone","phone"),this.params=e}static _fromVerification(e,t){return new r({verificationId:e,verificationCode:t})}static _fromTokenResponse(e,t){return new r({phoneNumber:e,temporaryProof:t})}_getIdTokenResponse(e){return _q(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return bq(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return Iq(e,this._makeVerificationRequest())}_makeVerificationRequest(){let{temporaryProof:e,phoneNumber:t,verificationId:n,verificationCode:i}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:n,code:i}}toJSON(){let e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(e){typeof e=="string"&&(e=JSON.parse(e));let{verificationId:t,verificationCode:n,phoneNumber:i,temporaryProof:a}=e;return!n&&!t&&!i&&!a?null:new r({verificationId:t,verificationCode:n,phoneNumber:i,temporaryProof:a})}};function xq(r){switch(r){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function Eq(r){let e=df(hf(r)).link,t=e?df(hf(e)).deep_link_id:null,n=df(hf(r)).deep_link_id;return(n?df(hf(n)).link:null)||n||t||e||r}var B_=class r{constructor(e){var t,n,i,a,s,o;let l=df(hf(e)),c=(t=l.apiKey)!==null&&t!==void 0?t:null,u=(n=l.oobCode)!==null&&n!==void 0?n:null,d=xq((i=l.mode)!==null&&i!==void 0?i:null);Ue(c&&u&&d,"argument-error"),this.apiKey=c,this.operation=d,this.code=u,this.continueUrl=(a=l.continueUrl)!==null&&a!==void 0?a:null,this.languageCode=(s=l.lang)!==null&&s!==void 0?s:null,this.tenantId=(o=l.tenantId)!==null&&o!==void 0?o:null}static parseLink(e){let t=Eq(e);try{return new r(t)}catch{return null}}};var Q2=(()=>
21{class r{constructor(){this.providerId=r.PROVIDER_ID}static credential(t,n){return Cg._fromEmailAndPassword(t,n)}static credentialWithLink(t,n){let i=B_.parseLink(n);return Ue(i,"argument-error"),Cg._fromEmailAndCode(t,i.code,i.tenantId)}}r.PROVIDER_ID="password",r.EMAIL_PASSWORD_SIGN_IN_METHOD="password",r.EMAIL_LINK_SIGN_IN_METHOD="emailLink";return r})(),Ag=class{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}};var N_=class extends Ag{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}},Mg=class r extends N_{static credentialFromJSON(e){let t=typeof e=="string"?JSON.parse(e):e;return Ue("providerId"in t&&"signInMethod"in t,"argument-error"),Sg._fromParams(t)}credential(e){return this._credential(Object.assign(Object.assign({},e),{nonce:e.rawNonce}))}_credential(e){return Ue(e.idToken||e.accessToken,"argument-error"),Sg._fromParams(Object.assign(Object.assign({}
21,e),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(e){return r.oauthCredentialFromTaggedObject(e)}static credentialFromError(e){return r.oauthCredentialFromTaggedObject(e.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;let{oauthIdToken:t,oauthAccessToken:n,oauthTokenSecret:i,pendingToken:a,nonce:s,providerId:o}=e;if(!n&&!i&&!t&&!a||!o)return null;try{return new r(o)._credential({idToken:t,accessToken:n,nonce:s,pendingToken:a})}catch{return null}}};function J2(r,e){return m(this,null,function*(){return Ll(r,"POST","/v1/accounts:signUp",fn(r,e))})}var uo=class r{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static _fromIdTokenResponse(e,t,n,i=!1){return m(this,null,function*(){let a=yield Fc._fromIdTokenResponse(e,n,i),s=b2(n);return new r({user:a,providerId:s,_tokenResponse:n,operationType:t})})}static _forOperation(e,t,n){return m(this,null,function*(){yield e._updateTokensIfNecessary(n,!0);let i=b2(n);return new r({user:e,providerId:i,_tokenResponse:n,operationType:t})})}};function b2(r){return r.providerId?r.providerId:"phoneNumber"in r?"phone":null}function cS(r){return m(this,null,function*(){var e;if(Cn(r.app))return Promise.reject(co(r));let t=ga(r);if(yield t._initializationPromise,!((e=t.currentUser)===null||e===void 0)&&e.isAnonymous)return new uo({user:t.currentUser,providerId:null,operationType:"signIn"});let n=yield J2(t,{returnSecureToken:!0}),i=yield uo._fromIdTokenResponse(t,"signIn",n,!0);return yield t._updateCurrentUser(i.user),i})}var V1=class r extends Tn{constructor(e,t,n,i){var a;super(t.code,t.message),this.operationType=n,this.user=i,Object.setPrototypeOf(this,r.prototype),this.customData={appName:e.name,tenantId:(a=e.tenantId)!==null&&a!==void 0?a:void 0,_serverResponse:t.customData._serverResponse,operationType:n}}static _fromErrorAndOperation(e,t,n,i){return new r(e,t,n,i)}};function Z2(r,e,t,n){return(e==="reauthenticate"?t._getReauthenticationResolver(r):t._getIdTokenResponse(r)).catch(a=>{throw a.code==="auth/multi-factor-auth-required"?V1._fromErrorAndOperation(r,a,e,n):a})}function Tq(r,e,t=!1){return m(this,null,function*(){let n=yield Bc(r,e._linkToIdToken(r.auth,yield r.getIdToken()),t);return uo._forOperation(r,"link",n)})}function Cq(r,e,t=!1){return m(this,null,function*(){let{auth:n}=r;if(Cn(n.app))return Promise.reject(co(n));let i="reauthenticate";try{let a=yield Bc(r,Z2(n,i,e,r),t);Ue(a.idToken,n,"internal-error");let s=iS(a.idToken);Ue(s,n,"internal-error");let{sub:o}=s;return Ue(r.uid===o,n,"user-mismatch"),uo._forOperation(r,i,a)}catch(a){throw a?.code==="auth/user-not-found"&&za(n,"user-mismatch"),a}})}function eN(r,e,t=!1){return m(this,null,function*(){if(Cn(r.app))return Promise.reject(co(r));let n="signIn",i=yield Z2(r,n,e),a=yield uo._fromIdTokenResponse(r,n,i);return t||(yield r._updateCurrentUser(a.user)),a})}function uS(r,e){return m(this,null,function*(){return eN(ga(r),e)})}function Sq(r,e){return m(this,null,function*(){return Ll(r,"POST","/v1/accounts:signInWithCustomToken",fn(r,e))})}function dS(r,e){return m(this,null,function*(){if(Cn(r.app))return Promise.reject(co(r));let t=ga(r),n=yield Sq(t,{token:e,returnSecureToken:!0}),i=yield uo._fromIdTokenResponse(t,"signIn",n);return yield t._updateCurrentUser(i.user),i})}var pf=class{constructor(e,t){this.factorId=e,this.uid=t.mfaEnrollmentId,this.enrollmentTime=new Date(t.enrolledAt).toUTCString(),this.displayName=t.displayName}static _fromServerResponse(e,t){return"phoneInfo"in t?U1._fromServerResponse(e,t):"totpInfo"in t?z1._fromServerResponse(e,t):za(e,"internal-error")}},U1=class r extends pf{constructor(e){super("phone",e),this.phoneNumber=e.phoneInfo}static _fromServerResponse(e,t){return new r(t)}},z1=class r extends pf{constructor(e){super("totp",e)}static _fromServerResponse(e,t){return new r(t)}};function tN(r,e,t){var n;Ue(((n=t.url)===null||n===void 0?void 0:n.length)>
210,r,"invalid-continue-uri"),Ue(typeof t.dynamicLinkDomain>"u"||t.dynamicLinkDomain.length>0,r,"invalid-dynamic-link-domain"),Ue(typeof t.linkDomain>"u"||t.linkDomain.length>0,r,"invalid-hosting-link-domain"),e.continueUrl=t.url,e.dynamicLinkDomain=t.dynamicLinkDomain,e.linkDomain=t.linkDomain,e.canHandleCodeInApp=t.handleCodeInApp,t.iOS&&(Ue(t.iOS.bundleId.length>0,r,"missing-ios-bundle-id"),e.iOSBundleId=t.iOS.bundleId),t.android&&(Ue(t.android.packageName.length>0,r,"missing-android-pkg-name"),e.androidInstallApp=t.android.installApp,e.androidMinimumVersionCode=t.android.minimumVersion,e.androidPackageName=t.android.packageName)}function rN(r){return m(this,null,function*(){let e=ga(r);e._getPasswordPolicyInternal()&&(yield e._updatePasswordPolicy())})}function hS(r,e,t){return m(this,null,function*(){let n=ga(r),i={requestType:"PASSWORD_RESET",email:e,clientType:"CLIENT_TYPE_WEB"};t&&tN(n,i,t),yield fd(n,i,"getOobCode",pq,"EMAIL_PASSWORD_PROVIDER")})}function fS(r,e,t){return m(this,null,function*(){if(Cn(r.app))return Promise.reject(co(r));let n=ga(r),s=yield fd(n,{returnSecureToken:!0,email:e,password:t,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",J2,"EMAIL_PASSWORD_PROVIDER").catch(l=>{throw l.code==="auth/password-does-not-meet-requirements"&&rN(r),l}),o=yield uo._fromIdTokenResponse(n,"signIn",s);return yield n._updateCurrentUser(o.user),o})}function mS(r,e,t){return Cn(r.app)?Promise.reject(co(r)):uS(At(r),Q2.credential(e,t)).catch(n=>m(null,null,function*(){throw n.code==="auth/password-does-not-meet-requirements"&&rN(r),n}))}function pS(r,e){return m(this,null,function*(){let t=At(r),i={requestType:"VERIFY_EMAIL",idToken:yield r.getIdToken()};e&&tN(t.auth,i,e);let{email:a}=yield mq(t.auth,i);a!==r.email&&(yield r.reload())})}function gS(r,e){return Dq(At(r),null,e)}function Dq(r,e,t){return m(this,null,function*(){let{auth:n}=r,a={idToken:yield r.getIdToken(),returnSecureToken:!0};e&&(a.email=e),t&&(a.password=t);let s=yield Bc(r,dq(n,a));yield r._updateTokensIfNecessary(s,!0)})}function yS(r,e,t,n){return At(r).onIdTokenChanged(e,t,n)}function vS(r,e,t){return At(r).beforeAuthStateChanged(e,t)}function _S(r,e,t,n){return At(r).onAuthStateChanged(e,t,n)}function bS(r){return At(r).signOut()}var L_=class r{constructor(e,t,n){this.type=e,this.credential=t,this.user=n}static _fromIdtoken(e,t){return new r("enroll",e,t)}static _fromMfaPendingCredential(e){return new r("signin",e)}toJSON(){return{multiFactorSession:{[this.type==="enroll"?"idToken":"pendingCredential"]:this.credential}}}static fromJSON(e){var t,n;if(e?.multiFactorSession){if(!((t=e.multiFactorSession)===null||t===void 0)&&t.pendingCredential)return r._fromMfaPendingCredential(e.multiFactorSession.pendingCredential);if(!((n=e.multiFactorSession)===null||n===void 0)&&n.idToken)return r._fromIdtoken(e.multiFactorSession.idToken)}return null}};var j1=class r{constructor(e,t,n){this.session=e,this.hints=t,this.signInResolver=n}static _fromError(e,t){let n=ga(e),i=t.customData._serverResponse,a=(i.mfaInfo||[]).map(o=>pf._fromServerResponse(n,o));Ue(i.mfaPendingCredential,n,"internal-error");let s=L_._fromMfaPendingCredential(i.mfaPendingCredential);return new r(s,a,o=>m(null,null,function*(){let l=yield o._process(n,s);delete i.mfaInfo,delete i.mfaPendingCredential;let c=Object.assign(Object.assign({},i),{idToken:l.idToken,refreshToken:l.refreshToken});switch(t.operationType){case"signIn":let u=yield uo._fromIdTokenResponse(n,t.operationType,c);return yield n._updateCurrentUser(u.user),u;case"reauthenticate":return Ue(t.user,n,"internal-error"),uo._forOperation(t.user,t.operationType,c);default:za(n,"internal-error")}}))}resolveSignIn(e){return m(this,null,function*(){let t=e;return this.signInResolver(t)})}};function wS(r,e){var t;let n=At(r),i=e;return Ue(e.customData.operationType,n,"argument-error"),Ue((t=i.customData._serverResponse)===null||t===void 0?void 0:t.mfaPendingCredential,n,"argument-error"),j1._fromError(n,i)}function w2(r,e){return Nn(r,"POST","/v2/accounts/mfaEnrollment:start",fn(r,e))}function Aq(r,e){return Nn(r,"POST","/v2/accounts/mfaEnrollment:finalize",fn(r,e))}function Mq(r,e){return Nn(r,"POST","/v2/accounts/mfaEnrollment:start",fn(r,e))}function kq(r,e){return Nn(r,"POST","/v2/accounts/mfaEnrollment:finalize",fn(r,e))}function Pq(r,e){return Nn(r,"POST","/v2/accounts/mfaEnrollment:withdraw",fn(r,e))}
21var H1=class r{constructor(e){this.user=e,this.enrolledFactors=[],e._onReload(t=>{t.mfaInfo&&(this.enrolledFactors=t.mfaInfo.map(n=>pf._fromServerResponse(e.auth,n)))})}static _fromUser(e){return new r(e)}getSession(){return m(this,null,function*(){return L_._fromIdtoken(yield this.user.getIdToken(),this.user)})}enroll(e,t){return m(this,null,function*(){let n=e,i=yield this.getSession(),a=yield Bc(this.user,n._process(this.user.auth,i,t));return yield this.user._updateTokensIfNecessary(a),this.user.reload()})}unenroll(e){return m(this,null,function*(){let t=typeof e=="string"?e:e.uid,n=yield this.user.getIdToken();try{let i=yield Bc(this.user,Pq(this.user.auth,{idToken:n,mfaEnrollmentId:t}));this.enrolledFactors=this.enrolledFactors.filter(({uid:a})=>a!==t),yield this.user._updateTokensIfNecessary(i),yield this.user.reload()}catch(i){throw i}})}},E1=new WeakMap;function IS(r){let e=At(r);return E1.has(e)||E1.set(e,H1._fromUser(e)),E1.get(e)}var V_="__sak";var U_=class{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem(V_,"1"),this.storage.removeItem(V_),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){let t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}};var Rq=1e3,Oq=10,Fq=(()=>{class r extends U_{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(t,n)=>this.onStorageEvent(t,n),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=W2(),this._shouldAllowMigration=!0}forAllChangedKeys(t){for(let n of Object.keys(this.listeners)){let i=this.storage.getItem(n),a=this.localCache[n];i!==a&&t(n,a,i)}}onStorageEvent(t,n=!1){if(!t.key){this.forAllChangedKeys((o,l,c)=>{this.notifyListeners(o,c)});return}let i=t.key;n?this.detachListener():this.stopPolling();let a=()=>{let o=this.storage.getItem(i);!n&&this.localCache[i]===o||this.notifyListeners(i,o)},s=this.storage.getItem(i);XW()&&s!==t.newValue&&t.newValue!==t.oldValue?setTimeout(a,Oq):a()}notifyListeners(t,n){this.localCache[t]=n;let i=this.listeners[t];if(i)for(let a of Array.from(i))a(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((t,n,i)=>{this.onStorageEvent(new StorageEvent("storage",{key:t,oldValue:n,newValue:i}),!0)})},Rq)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(t,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[t]||(this.listeners[t]=new Set,this.localCache[t]=this.storage.getItem(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}_set(t,n){return m(this,null,function*(){yield Fe(r.prototype,this,"_set").call(this,t,n),this.localCache[t]=JSON.stringify(n)})}_get(t){return m(this,null,function*(){let n=yield Fe(r.prototype,this,"_get").call(this,t);return this.localCache[t]=JSON.stringify(n),n})}_remove(t){return m(this,null,function*(){yield Fe(r.prototype,this,"_remove").call(this,t),delete this.localCache[t]})}}return r.type="LOCAL",r})(),K_=Fq;var Bq=(()=>{class r extends U_{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(t,n){}_removeListener(t,n){}}return r.type="SESSION",r})(),xS=Bq;function Nq(r){return Promise.all(r.map(e=>m(null,null,function*(){try{return{fulfilled:!0,value:yield e}}catch(t){return{fulfilled:!1,reason:t}}})))}var Lq=(()=>{class r{constructor(t){this.eventTarget=t,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(t){let n=this.receivers.find(a=>a.isListeningto(t));if(n)return n;let i=new r(t);return this.receivers.push(i),i}isListeningto(t){return this.eventTarget===t}handleEvent(t){return m(this,null,function*(){let n=t,{eventId:i,eventType:a,data:s}=n.data,o=this.handlersMap[a];if(!o?.size)return;n.ports[0].postMessage({status:"ack",eventId:i,eventType:a});let l=Array.from(o).map(u=>m(this,null,function*(){return u(n.origin,s)})),c=yield Nq(l);n.ports[0].postMessage({status:"done",eventId:i,eventType:a,response:c})})}_subscribe(t,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[t]||(this.handlersMap[t]=new Set),this.handlersMap[t].add(n)}_unsubscribe(t,n){this.handlersMap[t]&&n&&this.handlersMap[t].delete(n),(!n||this.handlersMap[t].size===0)&&delete this.handlersMap[t],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}r.receivers=[];return r})();function ES(r="",e=10){let t="";for(let n=0;n<e;n++)t+=Math.floor(Math.random()*10);return r+t}var $1=class{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}_send(e,t,n=50){return m(this,null,function*(){let i=typeof MessageChannel<"u"?new MessageChannel:null;if(!i)throw new Error("connection_unavailable");let a,s;return new Promise((o,l)=>{let c=ES("",20);i.port1.start();let u=setTimeout(()=>{l(new Error("unsupported_event"))},n);s={messageChannel:i,onMessage(d){let f=d;if(f.data.eventId===c)switch(f.data.status){case"ack":clearTimeout(u),a=setTimeout(()=>{l(new Error("timeout"))},3e3);break;case"done":clearTimeout(a),o(f.data.response);break;default:clearTimeout(u),clearTimeout(a),l(new Error("invalid_response"));break}}},this.handlers.add(s),i.port1.addEventListener("message",s.onMessage),this.target.postMessage({eventType:e,eventId:c,data:t},[i.port2])}).finally(()=>{s&&this.removeMessageHandler(s)})})}};function Bn(){return window}
21function Vq(r){Bn().location.href=r}function TS(){return typeof Bn().WorkerGlobalScope<"u"&&typeof Bn().importScripts=="function"}function Uq(){return m(this,null,function*(){if(!navigator?.serviceWorker)return null;try{return(yield navigator.serviceWorker.ready).active}catch{return null}})}function zq(){var r;return((r=navigator?.serviceWorker)===null||r===void 0?void 0:r.controller)||null}function jq(){return TS()?self:null}var nN="firebaseLocalStorageDb",Hq=1,z_="firebaseLocalStorage",iN="fbase_key",gd=class{constructor(e){this.request=e}toPromise(){return new Promise((e,t)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{t(this.request.error)})})}};function Y_(r,e){return r.transaction([z_],e?"readwrite":"readonly").objectStore(z_)}function $q(){let r=indexedDB.deleteDatabase(nN);return new gd(r).toPromise()}function G1(){let r=indexedDB.open(nN,Hq);return new Promise((e,t)=>{r.addEventListener("error",()=>{t(r.error)}),r.addEventListener("upgradeneeded",()=>{let n=r.result;try{n.createObjectStore(z_,{keyPath:iN})}catch(i){t(i)}}),r.addEventListener("success",()=>m(null,null,function*(){let n=r.result;n.objectStoreNames.contains(z_)?e(n):(n.close(),yield $q(),e(yield G1()))}))})}function I2(r,e,t){return m(this,null,function*(){let n=Y_(r,!0).put({[iN]:e,value:t});return new gd(n).toPromise()})}function Gq(r,e){return m(this,null,function*(){let t=Y_(r,!1).get(e),n=yield new gd(t).toPromise();return n===void 0?null:n.value})}function x2(r,e){let t=Y_(r,!0).delete(e);return new gd(t).toPromise()}var Wq=800,qq=3,Kq=(()=>{class r{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}_openDb(){return m(this,null,function*(){return this.db?this.db:(this.db=yield G1(),this.db)})}_withRetries(t){return m(this,null,function*(){let n=0;for(;;)try{let i=yield this._openDb();return yield t(i)}catch(i){if(n++>qq)throw i;this.db&&(this.db.close(),this.db=void 0)}})}initializeServiceWorkerMessaging(){return m(this,null,function*(){return TS()?this.initializeReceiver():this.initializeSender()})}initializeReceiver(){return m(this,null,function*(){this.receiver=Lq._getInstance(jq()),this.receiver._subscribe("keyChanged",(t,n)=>m(this,null,function*(){return{keyProcessed:(yield this._poll()).includes(n.key)}})),this.receiver._subscribe("ping",(t,n)=>m(this,null,function*(){return["keyChanged"]}))})}initializeSender(){return m(this,null,function*(){var t,n;if(this.activeServiceWorker=yield Uq(),!this.activeServiceWorker)return;this.sender=new $1(this.activeServiceWorker);let i=yield this.sender._send("ping",{},800);i&&!((t=i[0])===null||t===void 0)&&t.fulfilled&&!((n=i[0])===null||n===void 0)&&n.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)})}notifyServiceWorker(t){return m(this,null,function*(){if(!(!this.sender||!this.activeServiceWorker||zq()!==this.activeServiceWorker))try{yield this.sender._send("keyChanged",{key:t},this.serviceWorkerReceiverAvailable?800:50)}catch{}})}_isAvailable(){return m(this,null,function*(){try{if(!indexedDB)return!1;let t=yield G1();return yield I2(t,V_,"1"),yield x2(t,V_),!0}catch{}return!1})}_withPendingWrite(t){return m(this,null,function*(){this.pendingWrites++;try{yield t()}finally{this.pendingWrites--}})}_set(t,n){return m(this,null,function*(){return this._withPendingWrite(()=>m(this,null,function*(){return yield this._withRetries(i=>I2(i,t,n)),this.localCache[t]=n,this.notifyServiceWorker(t)}))})}_get(t){return m(this,null,function*(){let n=yield this._withRetries(i=>Gq(i,t));return this.localCache[t]=n,n})}_remove(t){return m(this,null,function*(){return this._withPendingWrite(()=>m(this,null,function*(){return yield this._withRetries(n=>x2(n,t)),delete this.localCache[t],this.notifyServiceWorker(t)}))})}_poll(){return m(this,null,function*(){let t=yield this._withRetries(a=>{let s=Y_(a,!1).getAll();return new gd(s).toPromise()});if(!t)return[];if(this.pendingWrites!==0)return[];let n=[],i=new Set;if(t.length!==0)for(let{fbase_key:a,value:s}of t)i.add(a),JSON.stringify(this.localCache[a])!==JSON.stringify(s)&&(this.notifyListeners(a,s),n.push(a));for(let a of Object.keys(this.localCache))this.localCache[a]&&!i.has(a)&&(this.notifyListeners(a,null),n.push(a));return n})}notifyListeners(t,n){this.localCache[t]=n;let i=this.listeners[t];if(i)for(let a of Array.from(i))a(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>m(this,null,function*(){return this._poll()}),Wq)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(t,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[t]||(this.listeners[t]=new Set,this._get(t)),this.listeners[t].add(n)}_removeListener(t,n){this.listeners[t]&&(this.listeners[t].delete(n),this.listeners[t].size===0&&delete this.listeners[t]),Object.keys(this.listeners).length===0&&this.stopPolling()}}return r.type="LOCAL",r})(),aN=Kq;function E2(r,e){return Nn(r,"POST","/v2/accounts/mfaSignIn:start",fn(r,e))}function Yq(r,e){return Nn(r,"POST","/v2/accounts/mfaSignIn:finalize",fn(r,e))}function Xq(r,e){return Nn(r,"POST","/v2/accounts/mfaSignIn:finalize",fn(r,e))}var T1=K2("rcb"),Qq=new md(3e4,6e4),W1=class{constructor(){var e;this.hostLanguage="",this.counter=0,this.librarySeparatelyLoaded=!!(!((e=Bn().grecaptcha)===null||e===void 0)&&e.render)}load(e,t=""){return Ue(Jq(t),e,"argument-error"),this.shouldResolveImmediately(t)&&f2(Bn().grecaptcha)?Promise.resolve(Bn().grecaptcha):new Promise((n,i)=>{let a=Bn().setTimeout(()=>{i(Ua(e,"network-request-failed"))},Qq.get());Bn()[T1]=()=>{Bn().clearTimeout(a),delete Bn()[T1];let o=Bn().grecaptcha;if(!o||!f2(o)){i(Ua(e,"internal-error"));return}let l=o.render;o.render=(c,u)=>{let d=l(c,u);return this.counter++,d},this.hostLanguage=t,n(o)};let s=`${eq()}?${cd({onload:T1,render:"explicit",hl:t})}`;oS(s).catch(()=>{clearTimeout(a),i(Ua(e,"internal-error"))})})}clearedOneInstance(){this.counter--}shouldResolveImmediately(e){var t;return!!(!((t=Bn().grecaptcha)===null||t===void 0)&&t.render)&&(e===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}};function Jq(r){return r.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(r)}var q1=class{load(e){return m(this,null,function*(){return new F1(e)})}clearedOneInstance(){}};var Eg="recaptcha",Zq={theme:"light",type:"image"},K1=class{constructor(e,t,n=Object.assign({},Zq)){this.parameters=n,this.type=Eg,this.destroyed=!1,this.widgetId=null,this.tokenChangeListeners=new Set,this.renderPromise=null,this.recaptcha=null,this.auth=ga(e),this.isInvisible=this.parameters.size==="invisible",Ue(typeof document<"u",this.auth,"operation-not-supported-in-this-environment");let i=typeof t=="string"?document.getElementById(t):t;Ue(i,this.auth,"argument-error"),this.container=i,this.parameters.callback=this.makeTokenCallback(this.parameters.callback),this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new q1:new W1,this.validateStartingState()}verify(){return m(this,null,function*(){this.assertNotDestroyed();let e=yield this.render(),t=this.getAssertedRecaptcha(),n=t.getResponse(e);return n||new Promise(i=>{let a=s=>{s&&(this.tokenChangeListeners.delete(a),i(s))};this.tokenChangeListeners.add(a),this.isInvisible&&t.execute(e)})})}render(){try{this.assertNotDestroyed()}catch(e){return Promise.reject(e)}return this.renderPromise?this.renderPromise:(this.renderPromise=this.makeRenderPromise().catch(e=>{throw this.renderPromise=null,e}),this.renderPromise)}_reset(){this.assertNotDestroyed(),this.widgetId!==null&&this.getAssertedRecaptcha().reset(this.widgetId)}clear(){this.assertNotDestroyed(),this.destroyed=!0,this._recaptchaLoader.clearedOneInstance(),this.isInvisible||this.container.childNodes.forEac
21h(e=>{this.container.removeChild(e)})}validateStartingState(){Ue(!this.parameters.sitekey,this.auth,"argument-error"),Ue(this.isInvisible||!this.container.hasChildNodes(),this.auth,"argument-error"),Ue(typeof document<"u",this.auth,"operation-not-supported-in-this-environment")}makeTokenCallback(e){return t=>{if(this.tokenChangeListeners.forEach(n=>n(t)),typeof e=="function")e(t);else if(typeof e=="string"){let n=Bn()[e];typeof n=="function"&&n(t)}}}assertNotDestroyed(){Ue(!this.destroyed,this.auth,"internal-error")}makeRenderPromise(){return m(this,null,function*(){if(yield this.init(),!this.widgetId){let e=this.container;if(!this.isInvisible){let t=document.createElement("div");e.appendChild(t),e=t}this.widgetId=this.getAssertedRecaptcha().render(e,this.parameters)}return this.widgetId})}init(){return m(this,null,function*(){Ue(O2()&&!TS(),this.auth,"internal-error"),yield eK(),this.recaptcha=yield this._recaptchaLoader.load(this.auth,this.auth.languageCode||void 0);let e=yield jW(this.auth);Ue(e,this.auth,"internal-error"),this.parameters.sitekey=e})}getAssertedRecaptcha(){return Ue(this.recaptcha,this.auth,"internal-error"),this.recaptcha}};function eK(){let r=null;return new Promise(e=>{if(document.readyState==="complete"){e();return}r=()=>e(),window.addEventListener("load",r)}).catch(e=>{throw r&&window.removeEventListener("load",r),e})}function tK(r,e,t){return m(this,null,function*(){var n;if(!r._getRecaptchaConfig())try{yield oq(r)}catch{console.log("Failed to initialize reCAPTCHA Enterprise config. Triggering the reCAPTCHA v2 verification.")}try{let i;if(typeof e=="string"?i={phoneNumber:e}:i=e,"session"in i){let a=i.session;if("phoneNumber"in i){Ue(a.type==="enroll",r,"internal-error");let s={idToken:a.credential,phoneEnrollmentInfo:{phoneNumber:i.phoneNumber,clientType:"CLIENT_TYPE_WEB"}};return(yield fd(r,s,"mfaSmsEnrollment",(u,d)=>m(null,null,function*(){if(d.phoneEnrollmentInfo.captchaResponse===xg){Ue(t?.type===Eg,u,"argument-error");let f=yield C1(u,d,t);return w2(u,f)}return w2(u,d)}),"PHONE_PROVIDER").catch(u=>Promise.reject(u))).phoneSessionInfo.sessionInfo}else{Ue(a.type==="signin",r,"internal-error");let s=((n=i.multiFactorHint)===null||n===void 0?void 0:n.uid)||i.multiFactorUid;Ue(s,r,"missing-multi-factor-info");let o={mfaPendingCredential:a.credential,mfaEnrollmentId:s,phoneSignInInfo:{clientType:"CLIENT_TYPE_WEB"}};return(yield fd(r,o,"mfaSmsSignIn",(d,f)=>m(null,null,function*(){if(f.phoneSignInInfo.captchaResponse===xg){Ue(t?.type===Eg,d,"argument-error");let p=yield C1(d,f,t);return E2(d,p)}return E2(d,f)}),"PHONE_PROVIDER").catch(d=>Promise.reject(d))).phoneResponseInfo.sessionInfo}}else{let a={phoneNumber:i.phoneNumber,clientType:"CLIENT_TYPE_WEB"};return(yield fd(r,a,"sendVerificationCode",(c,u)=>m(null,null,function*(){if(u.captchaResponse===xg){Ue(t?.type===Eg,c,"argument-error");let d=yield C1(c,u,t);return _2(c,d)}return _2(c,u)}),"PHONE_PROVIDER").catch(c=>Promise.reject(c))).sessionInfo}}finally{t?._reset()}})}function C1(r,e,t){return m(this,null,function*(){Ue(t.type===Eg,r,"argument-error");let n=yield t.verify();Ue(typeof n=="string",r,"argument-error");let i=Object.assign({},e);if("phoneEnrollmentInfo"in i){let a=i.phoneEnrollmentInfo.phoneNumber,s=i.phoneEnrollmentInfo.captchaResponse,o=i.phoneEnrollmentInfo.clientType,l=i.phoneEnrollmentInfo.recaptchaVersion;return Object.assign(i,{phoneEnrollmentInfo:{phoneNumber:a,recaptchaToken:n,captchaResponse:s,clientType:o,recaptchaVersion:l}}),i}else if("phoneSignInInfo"in i){let a=i.phoneSignInInfo.captchaResponse,s=i.phoneSignInInfo.clientType,o=i.phoneSignInInfo.recaptchaVersion;return Object.assign(i,{phoneSignInInfo:{recaptchaToken:n,captchaResponse:a,clientType:s,recaptchaVersion:o}}),i}else return Object.assign(i,{recaptchaToken:n}),i})}var rK=(()=>{class r{constructor(t){this.providerId=r.PROVIDER_ID,this.auth=ga(t)}verifyPhoneNumber(t,n){return tK(this.auth,t,At(n))}static credential(t,n){return Dg._fromVerification(t,n)}static credentialFromResult(t){let n=t;return r.credentialFromTaggedObject(n)}static credentialFromError(t){return r.credentialFromTaggedObject(t.customData||{})}
21static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;let{phoneNumber:n,temporaryProof:i}=t;return n&&i?Dg._fromTokenResponse(n,i):null}}r.PROVIDER_ID="phone",r.PHONE_SIGN_IN_METHOD="phone";return r})();function sN(r,e){return e?Bl(e):(Ue(r._popupRedirectResolver,r,"argument-error"),r._popupRedirectResolver)}var kg=class extends pd{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return mf(e,this._buildIdpRequest())}_linkToIdToken(e,t){return mf(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return mf(e,this._buildIdpRequest())}_buildIdpRequest(e){let t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}};function nK(r){return eN(r.auth,new kg(r),r.bypassAuthState)}function iK(r){let{auth:e,user:t}=r;return Ue(t,e,"internal-error"),Cq(t,new kg(r),r.bypassAuthState)}function aK(r){return m(this,null,function*(){let{auth:e,user:t}=r;return Ue(t,e,"internal-error"),Tq(t,new kg(r),r.bypassAuthState)})}var j_=class{constructor(e,t,n,i,a=!1){this.auth=e,this.resolver=n,this.user=i,this.bypassAuthState=a,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise((e,t)=>m(this,null,function*(){this.pendingPromise={resolve:e,reject:t};try{this.eventManager=yield this.resolver._initialize(this.auth),yield this.onExecution(),this.eventManager.registerConsumer(this)}catch(n){this.reject(n)}}))}onAuthEvent(e){return m(this,null,function*(){let{urlResponse:t,sessionId:n,postBody:i,tenantId:a,error:s,type:o}=e;if(s){this.reject(s);return}let l={auth:this.auth,requestUri:t,sessionId:n,tenantId:a||void 0,postBody:i||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(yield this.getIdpTask(o)(l))}catch(c){this.reject(c)}})}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return nK;case"linkViaPopup":case"linkViaRedirect":return aK;case"reauthViaPopup":case"reauthViaRedirect":return iK;default:za(this.auth,"internal-error")}}resolve(e){Nl(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){Nl(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}};var sK=new md(2e3,1e4);function CS(r,e,t){return m(this,null,function*(){if(Cn(r.app))return Promise.reject(Ua(r,"operation-not-supported-in-this-environment"));let n=ga(r);FW(r,e,Ag);let i=sN(n,t);return new oK(n,"signInViaPopup",e,i).executeNotNull()})}var oK=(()=>{class r extends j_{constructor(t,n,i,a,s){super(t,n,a,s),this.provider=i,this.authWindow=null,this.pollId=null,r.currentPopupAction&&r.currentPopupAction.cancel(),r.currentPopupAction=this}executeNotNull(){return m(this,null,function*(){let t=yield this.execute();return Ue(t,this.auth,"internal-error"),t})}onExecution(){return m(this,null,function*(){Nl(this.filter.length===1,"Popup operations only handle one event");let t=ES();this.authWindow=yield this.resolver._openPopup(this.auth,this.provider,this.filter[0],t),this.authWindow.associatedEvent=t,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(Ua(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()})}get eventId(){var t;return((t=this.authWindow)===null||t===void 0?void 0:t.associatedEvent)||null}cancel(){this.reject(Ua(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,r.currentPopupAction=null}pollUserCancellation(){let t=()=>{var n,i;if(!((i=(n=this.authWindow)===null||n===void 0?void 0:n.window)===null||i===void 0)&&i.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(Ua(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(t,sK.get())};t()}}r.currentPopupAction=null;return r})(),lK="pendingRedirect",C_=new Map,Y1=class r extends j_{constructor(e,t,n=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],t,void 0,n),this.eventId=null}execute(){return m(this,null,function*(){let e=C_.get(this.auth._key());if(!e){try{let n=(yield cK(this.resolver,this.auth))?yield Fe(r.prototype,this,"execute").call(this):null;e=()=>Promise.resolve(n)}catch(t){e=()=>Promise.reject(t)}C_.set(this.auth._key(),e)}return this.bypassAuthState||C_.set(this.auth._key(),()=>Promise.resolve(null)),e()})}
21onAuthEvent(e){return m(this,null,function*(){if(e.type==="signInViaRedirect")return Fe(r.prototype,this,"onAuthEvent").call(this,e);if(e.type==="unknown"){this.resolve(null);return}if(e.eventId){let t=yield this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,Fe(r.prototype,this,"onAuthEvent").call(this,e);this.resolve(null)}})}onExecution(){return m(this,null,function*(){})}cleanUp(){}};function cK(r,e){return m(this,null,function*(){let t=hK(e),n=dK(r);if(!(yield n._isAvailable()))return!1;let i=(yield n._get(t))==="true";return yield n._remove(t),i})}function uK(r,e){C_.set(r._key(),e)}function dK(r){return Bl(r._redirectPersistence)}function hK(r){return T_(lK,r.config.apiKey,r.name)}function fK(r,e,t=!1){return m(this,null,function*(){if(Cn(r.app))return Promise.reject(co(r));let n=ga(r),i=sN(n,e),s=yield new Y1(n,i,t).execute();return s&&!t&&(delete s.user._redirectEventId,yield n._persistUserIfCurrent(s.user),yield n._setRedirectUser(null,e)),s})}var mK=600*1e3,X1=class{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach(n=>{this.isEventForConsumer(e,n)&&(t=!0,this.sendToConsumer(e,n),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!pK(e)||(this.hasHandledPotentialRedirect=!0,t||(this.queuedRedirectEvent=e,t=!0)),t}sendToConsumer(e,t){var n;if(e.error&&!oN(e)){let i=((n=e.error.code)===null||n===void 0?void 0:n.split("auth/")[1])||"internal-error";t.onError(Ua(this.auth,i))}else t.onAuthEvent(e)}isEventForConsumer(e,t){let n=t.eventId===null||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=mK&&this.cachedEventUids.clear(),this.cachedEventUids.has(T2(e))}saveEventToCache(e){this.cachedEventUids.add(T2(e)),this.lastProcessedEventTime=Date.now()}};function T2(r){return[r.type,r.eventId,r.sessionId,r.tenantId].filter(e=>e).join("-")}function oN({type:r,error:e}){return r==="unknown"&&e?.code==="auth/no-auth-event"}function pK(r){switch(r.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return oN(r);default:return!1}}function gK(t){return m(this,arguments,function*(r,e={}){return Nn(r,"GET","/v1/projects",e)})}var yK=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,vK=/^https?/;function _K(r){return m(this,null,function*(){if(r.config.emulator)return;let{authorizedDomains:e}=yield gK(r);for(let t of e)try{if(bK(t))return}catch{}za(r,"unauthorized-domain")})}function bK(r){let e=D1(),{protocol:t,hostname:n}=new URL(e);if(r.startsWith("chrome-extension://")){let s=new URL(r);return s.hostname===""&&n===""?t==="chrome-extension:"&&r.replace("chrome-extension://","")===e.replace("chrome-extension://",""):t==="chrome-extension:"&&s.hostname===n}if(!vK.test(t))return!1;if(yK.test(r))return n===r;let i=r.replace(/\./g,"\\.");return new RegExp("^(.+\\."+i+"|"+i+")$","i").test(n)}var wK=new md(3e4,6e4);function C2(){let r=Bn().___jsl;if(r?.H){for(let e of Object.keys(r.H))if(r.H[e].r=r.H[e].r||[],r.H[e].L=r.H[e].L||[],r.H[e].r=[...r.H[e].L],r.CP)for(let t=0;t<r.CP.length;t++)r.CP[t]=null}}function IK(r){return new Promise((e,t)=>{var n,i,a;function s(){C2(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{C2(),t(Ua(r,"network-request-failed"))},timeout:wK.get()})}if(!((i=(n=Bn().gapi)===null||n===void 0?void 0:n.iframes)===null||i===void 0)&&i.Iframe)e(gapi.iframes.getContext());else if(!((a=Bn().gapi)===null||a===void 0)&&a.load)s();else{let o=K2("iframefcb");return Bn()[o]=()=>{gapi.load?s():t(Ua(r,"network-request-failed"))},oS(`${rq()}?onload=${o}`).catch(l=>t(l))}}).catch(e=>{throw S_=null,e})}var S_=null;function xK(r){return S_=S_||IK(r),S_}var EK=new md(5e3,15e3),TK="__/auth/iframe",CK="emulator/auth/iframe",SK={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},DK=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function AK(r){let e=r.config;Ue(e.authDomain,r,"auth-domain-config-required");let t=e.emulator?rS(e,CK):`https://${r.config.authDomain}/${TK}`,n={apiKey:e.apiKey,appName:r.name,v:Fo},i=DK.get(r.config.apiHost);i&&(n.eid=i);let a=r._getFrameworks();return a.length&&(n.fw=a.join(",")),`${t}?${cd(n).slice(1)}`}function MK(r){return m(this,null,function*(){let e=yield xK(r),t=Bn().gapi;return Ue(t,r,"internal-error"),e.open({where:document.body,url:AK(r),messageHandlersFilter:t.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:SK,dontclear:!0},n=>new Promise((i,a)=>m(null,null,function*(){yield n.restyle({setHideOnLeave:!1});let s=Ua(r,"network-request-failed"),o=Bn().setTimeout(()=>{a(s)},EK.get());function l(){Bn().clearTimeout(o),i(n)}n.ping(l).then(l,()=>{a(s)})})))})}var kK={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},PK=500,RK=600,OK="_blank",FK="http://localhost",H_=class{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}};function BK(r,e,t,n=PK,i=RK){let a=Math.max((window.screen.availHeight-i)/2,0).toString(),s=Math.max((window.screen.availWi
21dth-n)/2,0).toString(),o="",l=Object.assign(Object.assign({},kK),{width:n.toString(),height:i.toString(),top:a,left:s}),c=oi().toLowerCase();t&&(o=z2(c)?OK:t),V2(c)&&(e=e||FK,l.scrollbars="yes");let u=Object.entries(l).reduce((f,[p,g])=>`${f}${p}=${g},`,"");if(YW(c)&&o!=="_self")return NK(e||"",o),new H_(null);let d=window.open(e||"",o,u);Ue(d,r,"popup-blocked");try{d.focus()}catch{}return new H_(d)}function NK(r,e){let t=document.createElement("a");t.href=r,t.target=e;let n=document.createEvent("MouseEvent");n.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),t.dispatchEvent(n)}var LK="__/auth/handler",VK="emulator/auth/handler",UK=encodeURIComponent("fac");function S2(r,e,t,n,i,a){return m(this,null,function*(){Ue(r.config.authDomain,r,"auth-domain-config-required"),Ue(r.config.apiKey,r,"invalid-api-key");let s={apiKey:r.config.apiKey,appName:r.name,authType:t,redirectUrl:n,v:Fo,eventId:i};if(e instanceof Ag){e.setDefaultLanguage(r.languageCode),s.providerId=e.providerId||"",bB(e.getCustomParameters())||(s.customParameters=JSON.stringify(e.getCustomParameters()));for(let[u,d]of Object.entries(a||{}))s[u]=d}if(e instanceof N_){let u=e.getScopes().filter(d=>d!=="");u.length>0&&(s.scopes=u.join(","))}r.tenantId&&(s.tid=r.tenantId);let o=s;for(let u of Object.keys(o))o[u]===void 0&&delete o[u];let l=yield r._getAppCheckToken(),c=l?`#${UK}=${encodeURIComponent(l)}`:"";return`${zK(r)}?${cd(o).slice(1)}${c}`})}function zK({config:r}){return r.emulator?rS(r,VK):`https://${r.authDomain}/${LK}`}var S1="webStorageSupport",Q1=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=xS,this._completeRedirectFn=fK,this._overrideRedirectResult=uK}_openPopup(e,t,n,i){return m(this,null,function*(){var a;Nl((a=this.eventManagers[e._key()])===null||a===void 0?void 0:a.manager,"_initialize() not called before _openPopup()");let s=yield S2(e,t,n,D1(),i);return BK(e,s,ES())})}_openRedirect(e,t,n,i){return m(this,null,function*(){yield this._originValidation(e);let a=yield S2(e,t,n,D1(),i);return Vq(a),new Promise(()=>{})})}_initialize(e){let t=e._key();if(this.eventManagers[t]){let{manager:i,promise:a}=this.eventManagers[t];return i?Promise.resolve(i):(Nl(a,"If manager is not set, promise should be"),a)}let n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch(()=>{delete this.eventManagers[t]}),n}initAndGetManager(e){return m(this,null,function*(){let t=yield MK(e),n=new X1(e);return t.register("authEvent",i=>(Ue(i?.authEvent,e,"invalid-auth-event"),{status:n.onEvent(i.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=t,n})}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(S1,{type:S1},i=>{var a;let s=(a=i?.[0])===null||a===void 0?void 0:a[S1];s!==void 0&&t(!!s),za(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){let t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=_K(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return W2()||U2()||sS()}},lN=Q1,$_=class{constructor(e){this.factorId=e}_process(e,t,n){switch(t.type){case"enroll":return this._finalizeEnroll(e,t.credential,n);case"signin":return this._finalizeSignIn(e,t.credential);default:return Vo("unexpected MultiFactorSessionType")}}},J1=class r extends $_{constructor(e){super("phone"),this.credential=e}static _fromCredential(e){return new r(e)}_finalizeEnroll(e,t,n){return Aq(e,{idToken:t,displayName:n,phoneVerificationInfo:this.credential._makeVerificationRequest()})}_finalizeSignIn(e,t){return Yq(e,{mfaPendingCredential:t,phoneVerificationInfo:this.credential._makeVerificationRequest()})}},jK=(()=>{class r{constructor(){}static assertion(t){return J1._fromCredential(t)}}return r.FACTOR_ID="phone",r})(),HK=(()=>{class r{static assertionForEnrollment(t,n){return G_._fromSecret(t,n)}static assertionForSignIn(t,n){return G_._fromEnrollmentId(t,n)}static generateSecret(t){return m(this,null,function*(){var n;let i=t;Ue(typeof((n=i.user)===null||n===void 0?void 0:n.auth)<"u","internal-error");let a=yield Mq(i.user.auth,{idToken:i.credential,totpEnrollmentInfo:{}});return W_._fromStartTotpMfaEnrollmentResponse(a,i.user.auth)})}}return r.FACTOR_ID="totp",r})(),G_=class r extends $_{constructor(e,t,n){super("totp"),this.otp=e,this.enrollmentId=t,this.secret=n}static _fromSecret(e,t){return new r(t,void 0,e)}static _fromEnrollmentId(e,t){return new r(t,e)}_finalizeEnroll(e,t,n){return m(this,null,function*(){return Ue(typeof this.secret<"u",e,"argument-error"),kq(e,{idToken:t,displayName:n,totpVerificationInfo:this.secret._makeTotpVerificationInfo(this.otp)})})}_finalizeSignIn(e,t){return m(this,null,function*(){Ue(this.enrollmentId!==void 0&&this.otp!==void 0,e,"argument-error");let n={verificationCode:this.otp};return Xq(e,{mfaPendingCredential:t,mfaEnrollmentId:this.enrollmentId,totpVerificationInfo:n})})}}
21,W_=class r{constructor(e,t,n,i,a,s,o){this.sessionInfo=s,this.auth=o,this.secretKey=e,this.hashingAlgorithm=t,this.codeLength=n,this.codeIntervalSeconds=i,this.enrollmentCompletionDeadline=a}static _fromStartTotpMfaEnrollmentResponse(e,t){return new r(e.totpSessionInfo.sharedSecretKey,e.totpSessionInfo.hashingAlgorithm,e.totpSessionInfo.verificationCodeLength,e.totpSessionInfo.periodSec,new Date(e.totpSessionInfo.finalizeEnrollmentTime).toUTCString(),e.totpSessionInfo.sessionInfo,t)}_makeTotpVerificationInfo(e){return{sessionInfo:this.sessionInfo,verificationCode:e}}generateQrCodeUrl(e,t){var n;let i=!1;return(x_(e)||x_(t))&&(i=!0),i&&(x_(e)&&(e=((n=this.auth.currentUser)===null||n===void 0?void 0:n.email)||"unknownuser"),x_(t)&&(t=this.auth.name)),`otpauth://totp/${t}:${e}?secret=${this.secretKey}&issuer=${t}&algorithm=${this.hashingAlgorithm}&digits=${this.codeLength}`}};function x_(r){return typeof r>"u"||r?.length===0}var D2="@firebase/auth",A2="1.10.8";var Z1=class{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),((e=this.auth.currentUser)===null||e===void 0?void 0:e.uid)||null}getToken(e){return m(this,null,function*(){return this.assertAuthConfigured(),yield this.auth._initializationPromise,this.auth.currentUser?{accessToken:yield this.auth.currentUser.getIdToken(e)}:null})}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;let t=this.auth.onIdTokenChanged(n=>{e(n?.stsTokenManager.accessToken||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();let t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){Ue(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}};function $K(r){switch(r){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function GK(r){On(new Xr("auth",(e,{options:t})=>{let n=e.getProvider("app").getImmediate(),i=e.getProvider("heartbeat"),a=e.getProvider("app-check-internal"),{apiKey:s,authDomain:o}=n.options;Ue(s&&!s.includes(":"),"invalid-api-key",{appName:n.name});let l={apiKey:s,authDomain:o,clientPlatform:r,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:q2(r)},c=new O1(n,i,a,l);return lq(c,t),c},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,t,n)=>{e.getProvider("auth-internal").initialize()})),On(new Xr("auth-internal",e=>{let t=ga(e.getProvider("auth").getImmediate());return(n=>new Z1(n))(t)},"PRIVATE").setInstantiationMode("EXPLICIT")),jt(D2,A2,$K(r)),jt(D2,A2,"esm2017")}var WK=300,qK=jC("authIdTokenMaxAge")||WK,M2=null,KK=r=>e=>m(null,null,function*(){let t=e&&(yield e.getIdTokenResult()),n=t&&(new Date().getTime()-Date.parse(t.issuedAtTime))/1e3;if(n&&n>qK)return;let i=t?.token;M2!==i&&(M2=i,yield fetch(r,{method:i?"POST":"DELETE",headers:i?{Authorization:`Bearer ${i}`}:{}}))});function SS(r=Fa()){let e=fa(r,"auth");if(e.isInitialized())return e.getImmediate();let t=q_(r,{popupRedirectResolver:lN,persistence:[aN,K_,xS]}),n=jC("authTokenSyncURL");if(n&&typeof isSecureContext=="boolean"&&isSecureContext){let a=new URL(n,location.origin);if(location.origin===a.origin){let s=KK(a.toString());vS(t,s,()=>s(t.currentUser)),yS(t,o=>s(o))}}let i=UC("auth");return i&&lS(t,`http://${i}`),t}function YK(){var r,e;return(e=(r=document.getElementsByTagName("head"))===null||r===void 0?void 0:r[0])!==null&&e!==void 0?e:document}ZW({loadJS(r){return new Promise((e,t)=>{let n=document.createElement("script");n.setAttribute("src",r),n.onload=e,n.onerror=i=>{let a=Ua("internal-error");a.customData=i,t(a)},n.type="text/javascript",n.charset="UTF-8",YK().appendChild(n)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});GK("Browser");var cN="auth",as=class{constructor(e){return e}},Vl=class{constructor(){return Cs(cN)}};var DS=new me("angularfire2.auth-instances");function MY(r,e){let t=io(cN,r,e);return t&&new as(t)}function kY(r){return(e,t)=>{let n=e.runOutsideAngular(()=>r(t));return new as(n)}}var PY={provide:Vl,deps:[[new Dr,DS]]},RY={provide:as,useFactory:MY,deps:[[new Dr,DS],ma]};function nTe(r,...e){return jt("angularfire",Ba.full,"auth"),Li([RY,PY,{provide:DS,useFactory:kY(r),multi:!0,deps:[Qe,X,Na,is,[new Dr,Lo],...e]}])}var uN=ht(fS,!0,2);var iTe=ht(SS,!0);var aTe=ht(wS,!0);var sTe=ht(q_,!0);
vendor: 23,304 bytes, lines 21-22
21var dN=ht(_S,!0);var hN=ht(pS,!0,2),fN=ht(hS,!0,2);var yd=ht(cS,!0,2);var mN=ht(dS,!0,2),pN=ht(mS,!0,2);var gN=ht(CS,!0,2);var yN=ht(bS,!0,2);var vN=ht(gS,!0,2);var OY="type.googleapis.com/google.protobuf.Int64Value",FY="type.googleapis.com/google.protobuf.UInt64Value";function IN(r,e){let t={};for(let n in r)r.hasOwnProperty(n)&&(t[n]=e(r[n]));return t}function X_(r){if(r==null)return null;if(r instanceof Number&&(r=r.valueOf()),typeof r=="number"&&isFinite(r)||r===!0||r===!1||Object.prototype.toString.call(r)==="[object String]")return r;if(r instanceof Date)return r.toISOString();if(Array.isArray(r))return r.map(e=>X_(e));if(typeof r=="function"||typeof r=="object")return IN(r,e=>X_(e));throw new Error("Data cannot be encoded in JSON: "+r)}function gf(r){if(r==null)return r;if(r["@type"])switch(r["@type"]){case OY:case FY:{let e=Number(r.value);if(isNaN(e))throw new Error("Data cannot be decoded from JSON: "+r);return e}default:throw new Error("Data cannot be decoded from JSON: "+r)}return Array.isArray(r)?r.map(e=>gf(e)):typeof r=="function"||typeof r=="object"?IN(r,e=>gf(e)):r}var PS="functions";var _N={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},ja=class r extends Tn{constructor(e,t,n){super(`${PS}/${e}`,t||""),this.details=n,Object.setPrototypeOf(this,r.prototype)}};function BY(r){if(r>=200&&r<300)return"ok";switch(r){case 0:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 500:return"internal";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}function Q_(r,e){let t=BY(r),n=t,i;try{let a=e&&e.error;if(a){let s=a.status;if(typeof s=="string"){if(!_N[s])return new ja("internal","internal");t=_N[s],n=s}let o=a.message;typeof o=="string"&&(n=o),i=a.details,i!==void 0&&(i=gf(i))}}catch{}return t==="ok"?null:new ja(t,n,i)}var AS=class{constructor(e,t,n,i){this.app=e,this.auth=null,this.messaging=null,this.appCheck=null,this.serverAppAppCheckToken=null,Cn(e)&&e.settings.appCheckToken&&(this.serverAppAppCheckToken=e.settings.appCheckToken),this.auth=t.getImmediate({optional:!0}),this.messaging=n.getImmediate({optional:!0}),this.auth||t.get().then(a=>this.auth=a,()=>{}),this.messaging||n.get().then(a=>this.messaging=a,()=>{}),this.appCheck||i?.get().then(a=>this.appCheck=a,()=>{})}getAuthToken(){return m(this,null,function*(){if(this.auth)try{let e=yield this.auth.getToken();return e?.accessToken}catch{return}})}getMessagingToken(){return m(this,null,function*(){if(!(!this.messaging||!("Notification"in self)||Notification.permission!=="granted"))try{return yield this.messaging.getToken()}catch{return}})}getAppCheckToken(e){return m(this,null,function*(){if(this.serverAppAppCheckToken)return this.serverAppAppCheckToken;if(this.appCheck){let t=e?yield this.appCheck.getLimitedUseToken():yield this.appCheck.getToken();return t.error?null:t.token}return null})}getContext(e){return m(this,null,function*(){let t=yield this.getAuthToken(),n=yield this.getMessagingToken(),i=yield this.getAppCheckToken(e);return{authToken:t,messagingToken:n,appCheckToken:i}})}};var MS="us-central1",NY=/^data: (.*?)(?:\n|$)/;function LY(r){let e=null;return{promise:new Promise((t,n)=>{e=setTimeout(()=>{n(new ja("deadline-exceeded","deadline-exceeded"))},r)}),cancel:()=>{e&&clearTimeout(e)}}}var kS=class{constructor(e,t,n,i,a=MS,s=(...o)=>fetch(...o)){this.app=e,this.fetchImpl=s,this.emulatorOrigin=null,this.contextProvider=new AS(e,t,n,i),this.cancelAllRequests=new Promise(o=>{this.deleteService=()=>Promise.resolve(o())});try{let o=new URL(a);this.customDomain=o.origin+(o.pathname==="/"?"":o.pathname),this.region=MS}catch{this.customDomain=null,this.region=a}}_delete(){return this.deleteService()}_url(e){let t=this.app.options.projectId;return this.emulatorOrigin!==null?`${this.emulatorOrigin}/${t}/${this.region}/${e}`:this.customDomain!==null?`${this.customDomain}/${e}`:`https://${this.region}-${t}.cloudfunctions.net/${e}`}};function VY(r,e,t){let n=ns(e);r.emulatorOrigin=`http${n?"s":""}://${e}:${t}`,n&&(kc(r.emulatorOrigin),od("Functions",!0))}function UY(r,e,t){let n=i=>jY(r,e,i,t||{});return n.stream=(i,a)=>$Y(r,e,i,a),n}function zY(r,e,t,n){return m(this,null,function*(){t["Content-Type"]="application/json";let i;try{i=yield n(r,{method:"POST",body:JSON.stringify(e),headers:t})}catch{return{status:0,json:null}}let a=null;try{a=yield i.json()}catch{}return{status:i.status,json:a}})}function xN(r,e){return m(this,null,function*(){let t={},n=yield r.contextProvider.getContext(e.limitedUseAppCheckTokens);return n.authToken&&(t.Authorization="Bearer "+n.authToken),n.messagingToken&&(t["Firebase-Instance-ID-Token"]=n.messagingToken),n.appCheckToken!==null&&(t["X-Firebase-AppCheck"]=n.appCheckToken),t})}function jY(r,e,t,n){let i=r._url(e);return HY(r,i,t,n)}function HY(r,e,t,n){return m(this,null,function*(){t=X_(t);let i={data:t},a=yield xN(r,n),s=n.timeout||7e4,o=LY(s),l=yield Promise.race([zY(e,i,a,r.fetchImpl),o.promise,r.cancelAllRequests]);if(o.cancel(),!l)throw new ja("cancelled","Firebase Functions instance was deleted.");let c=Q_(l.status,l.json);if(c)throw c;if(!l.json)throw new ja("internal","Response is not valid JSON object.");let u=l.json.data;if(typeof u>"u"&&(u=l.json.result),typeof u>"u")throw new ja("internal","Response is missing data field.");return{data:gf(u)}})}function $Y(r,e,t,n){let i=r._url(e);return GY(r,i,t,n||{})}function GY(r,e,t,n){return m(this,null,function*(){var i;t=X_(t);let a={data:t},s=yield xN(r,n);s["Content-Type"]="application/json",s.Accept="text/event-stream";let o;try{o=yield r.fetchImpl(e,{method:"POST",body:JSON.stringify(a),headers:s,signal:n?.signal})}catch(p){if(p instanceof Error&&p.name==="AbortError"){let y=new ja("cancelled","Request was cancelled.");return{data:Promise.reject(y),stream:{[Symbol.asyncIterator](){return{next(){return Promise.reject(y)}}}}}}let g=Q_(0,null);return{data:Promise.reject(g),stream:{[Symbol.asyncIterator](){return{next(){return Promise.reject(g)}}}}}}let l,c,u=new Promise((p,g)=>{l=p,c=g});(i=n?.signal)===null||i===void 0||i.addEventListener("abort",()=>{let p=new ja("cancelled","Request was cancelled.");c(p)});let d=o.body.getReader(),f=WY(d,l,c,n?.signal);return{stream:{[Symbol.asyncIterator](){let p=f.getReader();return{next(){return m(this,null,function*(){let{value:y,done:v}=yield p.read();return{value:y,done:v}})},return(){return m(this,null,function*(){return yield p.cancel(),{done:!0,value:void 0}})}}}},data:u}})}function WY(r,e,t,n){let i=(s,o)=>{let l=s.match(NY);if(!l)return;let c=l[1];try{let u=JSON.parse(c);if("result"in u){e(gf(u.result));return}if("message"in u){o.enqueue(gf(u.message));return}if("error"in u){let d=Q_(0,u);o.error(d),t(d);return}}catch(u){if(u instanceof ja){o.error(u),t(u);return}}},a=new TextDecoder;return new ReadableStream({start(s){let o="";return l();function l(){return m(this,null,function*(){if(n?.aborted){let c=new ja("cancelled","Request was cancelled");return s.error(c),t(c),Promise.resolve()}try{let{value:c,done:u}=yield r.read();if(u){o.trim()&&i(o.trim(),s),s.close();return}if(n?.aborted){let f=new ja("cancelled","Request was cancelled");s.error(f),t(f),yield r.cancel();return}o+=a.decode(c,{stream:!0});let d=o.split(` 22`);o=d.pop()||"";for(let f of d)f.trim()&&i(f.trim(),s);return l()}catch(c){let u=c instanceof ja?c:Q_(0,null);s.error(u),t(u)}})}},cancel(){return r.cancel()}})}var bN="@firebase/functions",wN="0.12.9";var qY="auth-internal",KY="app-check-internal",YY="messaging-internal";function XY(r){let e=(t,{instanceIdentifier:n})=>{let i=t.getProvider("app").getImmediate(),a=t.getProvider(qY),s=t.getProvider(YY),o=t.getProvider(KY);return new kS(i,a,s,o,n)};On(new Xr(PS,e,"PUBLIC").setMultipleInstances(!0)),jt(bN,wN,r),jt(bN,wN,"esm2017")}function EN(r=Fa(),e=MS){let n=fa(At(r),PS).getImmediate({identifier:e}),i=sg("functions");return i&&RS(n,...i),n}function RS(r,e,t){VY(At(r),e,t)}function TN(r,e,t){return UY(At(r),e,t)}XY();var mn=class{constructor(e){return e}},CN="functions",OS=class{constructor(){return Cs(CN)}};var FS=new me("angularfire2.functions-instances");function QY(r,e){let t=io(CN,r,e);return t&&new mn(t)}function JY(r){return(e,t)=>{let n=e.runOutsideAngular(()=>r(t));return new mn(n)}}var ZY={provide:OS,deps:[[new Dr,FS]]},eX={provide:mn,useFactory:QY,deps:[[new Dr,FS],ma]};function TTe(r,...e){return jt("angularfire",Ba.full,"fn"),Li([eX,ZY,{provide:FS,useFactory:JY(r),multi:!0,deps:[Qe,X,Na,is,[new Dr,Vl],[new Dr,Lo],...e]}])}var SN=ht(RS,!0),CTe=ht(EN,!0),Ht=ht(TN,!0);var DN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},AN={};var Ul,BS;(function(){var r;function e(b,E){function I(){}I.prototype=E.prototype,b.D=E.prototype,b.prototype=new I,b.prototype.constructor=b,b.C=function(S,k,D){for(var R=Array(arguments.length-2),De=2;De<arguments.length;De++)R[De-2]=arguments[De];return E.prototype[k].apply(S,R)}}function t(){this.blockSize=-1}function n(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}e(n,t),n.prototype.s=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0};function i(b,E,I){I||(I=0);var S=Array(16);if(typeof E=="string")for(var k=0;16>k;++k)S[k]=E.charCodeAt(I++)|E.charCodeAt(I++)<<8|E.charCodeAt(I++)<<16|E.charCodeAt(I++)<<24;else for(k=0;16>k;++k)S[k]=E[I++]|E[I++]<<8|E[I++]<<16|E[I++]<<24;E=b.g[0],I=b.g[1],k=b.g[2];var D=b.g[3],R=E+(D^I&(k^D))+S[0]+3614090360&4294967295;E=I+(R<<7&4294967295|R>>>25),R=D+(k^E&(I^k))+S[1]+3905402710&4294967295,D=E+(R<<12&4294967295|R>>>20),R=k+(I^D&(E^I))+S[2]+606105819&4294967295,k=D+(R<<17&4294967295|R>>>15),R=I+(E^k&(D^E))+S[3]+3250441966&4294967295,I=k+(R<<22&4294967295|R>>>10),R=E+(D^I&(k^D))+S[4]+4118548399&4294967295,E=I+(R<<7&4294967295|R>>>25),R=D+(k^E&(I^k))+S[5]+1200080426&4294967295,D=E+(R<<12&4294967295|R>>>20),R=k+(I^D&(E^I))+S[6]+2821735955&4294967295,k=D+(R<<17&4294967295|R>>>15),R=I+(E^k&(D^E))+S[7]+4249261313&4294967295,I=k+(R<<22&4294967295|R>>>10),R=E+(D^I&(k^D))+S[8]+1770035416&4294967295,E=I+(R<<7&4294967295|R>>>25),R=D+(k^E&(I^k))+S[9]+2336552879&4294967295,D=E+(R<<12&4294967295|R>>>20),R=k+(I^D&(E^I))+S[10]+4294925233&4294967295,k=D+(R<<17&4294967295|R>>>15),R=I+(E^k&(D^E))+S[11]+2304563134&4294967295,I=k+(R<<22&4294967295|R>>>10),R=E+(D^I&(k^D))+S[12]+1804603682&4294967295,E=I+(R<<7&4294967295|R>>>25),R=D+(k^E&(I^k))+S[13]+4254626195&4294967295,D=E+(R<<12&4294967295|R>>>20),R=k+(I^D&(E^I))+S[14]+2792965006&4294967295,k=D+(R<<17&4294967295|R>>>15),R=I+(E^k&(D^E))+S[15]+1236535329&4294967295,I=k+(R<<22&4294967295|R>>>10),R=E+(k^D&(I^k))+S[1]+4129170786&4294967295,E=I+(R<<5&4294967295|R>>>27),R=D+(I^k&(E^I))+S[6]+3225465664&4294967295,D=E+(R<<9&4294967295|R>>>23),R=k+(E^I&(D^E))+S[11]+643717713&4294967295,k=D+(R<<14&4294967295|R>>>18),R=I+(D^E&(k^D))+S[0]+3921069994&4294967295,I=k+(R<<20&4294967295|R>>>12),R=E+(k^D&(I^k))+S[5]+3593408605&4294967295,E=I+(R<<5&4294967295|R>>>27),R=D+(I^k&(E^I))+S[10]+38016083&4294967295,D=E+(R<<9&4294967295|R>>>23),R=k+(E^I&(D^E))+S[15]+3634488961&4294967295,k=D+(R<<14&4294967295|R>>>18),R=I+(D^E&(k^D))+S[4]+3889429448&4294967295,I=k+(R<<20&4294967295|R>>>12),R=E+(k^D&(I^k))+S[9]+568446438&4294967295,E=I+(R<<5&4294967295|R>>>27),R=D+(I^k&(E^I))+S[14]+3275163606&4294967295,D=E+(R<<9&4294967295|R>>>23),R=k+(E^I&(D^E))+S[3]+4107603335&4294967295,k=D+(R<<14&4294967295|R>>>18),R=I+(D^E&(k^D))+S[8]+1163531501&4294967295,I=k+(R<<20&4294967295|R>>>12),R=E+(k^D&(I^k))+S[13]+2850285829&4294967295,E=I+(R<<5&4294967295|R>>>27),R=D+(I^k&(E^I))+S[2]+4243563512&4294967295,D=E+(R<<9&4294967295|R>>>23),R=k+(E^I&(D^E))+S[7]+1735328473&4294967295,k=D+(R<<14&4294967295|R>>>18),R=I+(D^E&(k^D))+S[12]+2368359562&4294967295,I=k+(R<<20&4294967295|R>>>12),R=E+(I^k^D)+S[5]+4294588738&4294967295,E=I+(R<<4&4294967295|R>>>28),R=D+(E^I^k)+S[8]+2272392833&4294967295,D=E+(R<<11&4294967295|R>>>21),R=k+(D^E^I)+S[11]+1839030562&4294967295,k=D+(R<<16&4294967295|R>>>16),R=I+(k^D^E)+S[14]+4259657740&4294967295,I=k+(R<<23&4294967295|R>>>9),R=E+(I^k^D)+S[1]+2763975236&4294967295,E=I+(R<<4&4294967295|R>>>28),R=D+(E^I^k)+S[4]+1272893353&4294967295,D=E+(R<<11&4294967295|R>>>21),R=k+(D^E^I)+S[7]+4139469664&4294967295,k=D+(R<<16&4294967295|R>>>16),R=I+(k^D^E)+S[10]+3200236656&4294967295,I=k+(R<<23&4294967295|R>>>9),R=E+(I^k^D)+S[13]+681279174&4294967295,E=I+(R<<4&4294967295|R>>>28),R=D+(E^I^k)+S[0]+3936430074&4294967295,D=E+(R<<11&4294967295|R>>>21),R=k+(D^E^I)+S[3]+3572445317&4294967295,k=D+(R<<16&4294967295|R>>>16),R=I+(k^D^E)+S[6]+76029189&4294967295,I=k+(R<<23&4294967295|R>>>9),R=E+(I^k^D)+S[9]+3654602809&4294967295,E=I+(R<<4&4294967295|R>>>28),R=D+(E^I^k)+S[12]+3873151461&4294967295,D=E+(R<<11&4294967295|R>>>21),R=k+(D^E^I)+S[15]+530742520&4294967295,k=D+(R<<16&4294967295|R>>>16),R=I+(k^D^E)+S[2]+3299628645&4294967295,I=k+(R<<23&4294967295|R>>>9),R=E+(k^(I|~D))+S[0]+4096336452&4294967295,E=I+(R<<6&4294967295|R>>>26),R=D+(I^(E|~k))+S[7]+1126891415&4294967295,D=E+(R<<10&4294967295|R>>>22),R=k+(E^(D|~I))+S[14]+2878612391&4294967295,k=D+(R<<15&4294967295|R>>>17),R=I+(D^(k|~E))+S[5]+4237533241&4294967295,I=k+(R<<21&4294967295|R>>>11),R=E+(k^(I|~D))+S[12]+1700485571&4294967295,E=I+(R<<6&4294967295|R>>>26),R=D+(I^(E|~k))+S[3]+2399980690&4294967295,D=E+(R<<10&4294967295|R>>>22),R=k+(E^(D|~I))+S[10]+4293915773&4294967295,k=D+(R<<15&4294967295|R>>>17),R=I+(D^(k|~E))+S[1]+2240044497&4294967295,I=k+(R<<21&4294967295|R>>>11),R=E+(k^(I|~D))+S[8]+1873313359&4294967295,E=I+(R<<6&4294967295|R>>>26),R=D+(I^(E|~k))+S[15]+4264355552&4294967295,D=E+(R<<10&4294967295|R>>>22),R=k+(E^(D|~I))+S[6]+2734768916&4294967295,k=D+(R<<15&4294967295|R>>>17),R=I+(D^(k|~E))+S[13]+1309151649&4294967295,I=k+(R<<21&4294967295|R>>>11),R=E+(k^(I|~D))+S[4]+4149444226&4294967295,E=I+(R<<6&4294967295|R>>>26),R=D+(I^(E|~k))+S[11]+3174756917&4294967295,D=E+(R<<10&4294967295|R>>>22),R=k+(E^(D|~I))+S[2]+718787259&4294967295,k=D+(R<<15&4294967295|R>>>17),R=I+(D^(k|~E))+S[9]+3951481745&4294967295,b.g[0]=b.g[0]+E&4294967295,b.g[1]=b.g[1]+(k+(R<<21&4294967295|R>>>11))&4294967295,b.g[2]=b.g[2]+k&4294967295,b.g[3]=b.g[3]+D&4294967295}n.prototype.u=function(b,E){E===void 0&&(E=b.length);for(var I=E-this.blockSize,S=this.B,k=this.h,D=0;D<E;){if(k==0)for(;D<=I;)i(this,b,D),D+=this.blockSize;if(typeof b=="string"){for(;D<E;)if(S[k++]=b.charCodeAt(D++),k==this.blockSize){i(this,S),k=0;break}}else for(;D<E;)if(S[k++]=b[D++],k==this.blockSize){i(this,S),k=0;break}}this.h=k,this.o+=E},n.prototype.v=function(){var b=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);b[0]=128;for(var E=1;E<b.length-8;++E)b[E]=0;var I=8*this.o;for(E=b.length-8;E<b.length;++E)b[E]=I&255,I/=256;for(this.u(b),b=Array(16),E=I=0;4>E;++E)for(var S=0;32>S;S+=8)b[I++]=this.g[E]>>>S&255;return b};function a(b,E){var I=o;return Object.prototype.hasOwnProperty.call(I,b)?I[b]:I[b]=E(b)}function s(b,E){this.h=E;for(var I=[],S=!0,k=b.length-1;0<=k;k--){var D=b[k]|0;S&&D==E||(I[k]=D,S=!1)}this.g=I}var o={};function l(b){return-128<=b&&128>b?a(b,function(E){return new s([E|0],0>E?-1:0)}):new s([b|0],0>b?-1:0)}function c(b){if(isNaN(b)||!isFinite(b))return d;if(0>b)return v(c(-b));for(var E=[],I=1,S=0;b>=I;S++)E[S]=b/I|0,I*=4294967296;return new s(E,0)}function u(b,E){if(b.length==0)throw Error("number format error: empty string");if(E=E||10,2>E||36<E)throw Error("radix out of range: "+E);if(b.charAt(0)=="-")return v(u(b.substring(1),E));if(0<=b.indexOf("-"))throw Error('number format error: interior "-" character');for(var I=c(Math.pow(E,8)),S=d,k=0;k<b.length;k+=8){var D=Math.min(8,b.length-k),R=parseInt(b.substring(k,k+D),E);8>D?(D=c(Math.pow(E,D)),S=S.j(D).add(c(R))):(S=S.j(I),S=S.add(c(R)))}return S}var d=l(0),f=l(1),p=l(16777216);r=s.prototype,r.m=function(){if(y(this))return-v(this).m();for(var b=0,E=1,I=0;I<this.g.length;I++){var S=this.i(I);b+=(0<=S?S:4294967296+S)*E,E*=4294967296}return b},r.toString=function(b){if(b=b||10,2>b||36<b)throw Error("radix out of range: "+b);if(g(this))return"0";if(y(this))return"-"+v(this).toString(b);for(var E=c(Math.pow(b,6)),I=this,S="";;){var k=B(I,E).g;I=T(I,k.j(E));var D=((0<I.g.length?I.g[0]:I.h)>>>0).toString(b);if(I=k,g(I))return D+S;for(;6>D.length;)D="0"+D;S=D+S}},r.i=function(b){return 0>b?0:b<this.g.length?this.g[b]:this.h};function g(b){if(b.h!=0)return!1;for(var E=0;E<b.g.length;E++)if(b.g[E]!=0)return!1;return!0}function y(b){return b.h==-1}r.l=function(b){return b=T(this,b),y(b)?-1:g(b)?0:1};function v(b){for(var E=b.g.length,I=[],S=0;S<E;S++)I[S]=~b.g[S];return new s(I,~b.h).add(f)}r.abs=function(){return y(this)?v(this):this},r.add=function(b){for(var E=Math.max(this.g.length,b.g.length),I=[],S=0,k=0;k<=E;k++){var D=S+(this.i(k)&65535)+(b.i(k)&65535),R=(D>>>16)+(this.i(k)>>>16)+(b.i(k)>>>16);S=R>>>16,D&=65535,R&=65535,I[k]=R<<16|D}return new s(I,I[I.length-1]&-2147483648?-1:0)};function T(b,E){return b.add(v(E))}r.j=function(b){if(g(this)||g(b))return d;if(y(this))return y(b)?v(this).j(v(b)):v(v(this).j(b));if(y(b))return v(this.j(v(b)));if(0>this.l(p)&&0>b.l(p))return c(this.m()*b.m());for(var E=this.g.length+b.g.length,I=[],S=0;S<2*E;S++)I[S]=0;for(S=0;S<this.g.length;S++)for(var k=0;k<b.g.length;k++){var D=this.i(S)>>>16,R=this.i(S)&65535,De=b.i(k)>>>16,ve=b.i(k)&65535;I[2*S+2*k]+=R*ve,C(I,2*S+2*k),I[2*S+2*k+1]+=D*ve,C(I,2*S+2*k+1),I[2*S+2*k+1]+=R*De,C(I,2*S+2*k+1),I[2*S+2*k+2]+=D*De,C(I,2*S+2*k+2)}for(S=0;S<E;S++)I[S]=I[2*S+1]<<16|I[2*S];for(S=E;S<2*E;S++)I[S]=0;return new s(I,0)};function C(b,E){for(;(b[E]&65535)!=b[E];)b[E+1]+=b[E]>>>16,b[E]&=65535,E++}function x(b,E){this.g=b,this.h=E}function B(b,E){if(g(E))throw Error("division by zero");if(g(b))return new x(d,d);if(y(b))return E=B(v(b),E),new x(v(E.g),v(E.h));if(y(E))return E=B(b,v(E)),new x(v(E.g),E.h);if(30<b.g.length){if(y(b)||y(E))throw Error("slowDivide_ only works with positive integers.");for(var I=f,S=E;0>=S.l(b);)I=q(I),S=q(S);var k=V(I,1),D=V(S,1);for(S=V(S,2),I=V(I,2);!g(S);){var R=D.add(S);0>=R.l(b)&&(k=k.add(I),D=R),S=V(S,1),I=V(I,1)}return E=T(b,k.j(E)),new x(k,E)}for(k=d;0<=b.l(E);){for(I=Math.max(1,Math.floor(b.m()/E.m())),S=Math.ceil(Math.log(I)/Math.LN2),S=48>=S?1:Math.pow(2,S-48),D=c(I),R=D.j(E);y(R)||0<R.l(b);)I-=S,D=c(I),R=D.j(E);g(D)&&(D=f),k=k.add(D),b=T(b,R)}return new x(k,b)}r.A=function(b){return B(this,b).h},r.and=function(b){for(var E=Math.max(this.g.length,b.g.length),I=[],S=0;S<E;S++)I[S]=this.i(S)&b.i(S);return new s(I,this.h&b.h)},r.or=function(b){for(var E=Math.max(this.g.length,b.g.length),I=[],S=0;S<E;S++)I[S]=this.i(S)|b.i(S);return new s(I,this.h|b.h)},r.xor=function(b){for(var E=Math.max(this.g.length,b.g.length),I=[],S=0;S<E;S++)I[S]=this.i(S)^b.i(S);return new s(I,this.h^b.h)};function q(b){for(var E=b.g.length+1,I=[],S=0;S<E;S++)I[S]=b.i(S)<<1|b.i(S-1)>>>31;return new s(I,b.h)}function V(b,E){var I=E>>5;E%=32;for(var S=b.g.length-I,k=[],D=0;D<S;D++)k[D]=0<E?b.i(D+I)>>>E|b.i(D+I+1)<<32-E:b.i(D+I);return new s(k,b.h)}n.prototype.digest=n.prototype.v,n.prototype.reset=n.prototype.s,n.prototype.update=n.prototype.u,BS=AN.Md5=n,s.prototype.add=s.prototype.add,s.prototype.multiply=s.prototype.j,s.prototype.modulo=s.prototype.A,s.prototype.compare=s.prototype.l,s.prototype.toNumber=s.prototype.m,s.prototype.toString=s.prototype.toString,s.prototype.getBits=s.prototype.i,s.fromNumber=c,s.fromString=u,Ul=AN.Integer=s}).apply(typeof DN<"u"?DN:typeof self<"u"?self:typeof window<"u"?window:{});var J_=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},zl={};var NS,tX,yf,LS,Rg,Z_,VS,US,zS;(function(){var r,e=typeof Object.defineProperties=="function"?Object.defineProperty:function(h,_,w){return h==Array.prototype||h==Object.prototype||(h[_]=w.value),h};function t(h){h=[typeof globalThis=="object"&&globalThis,h,typeof window=="object"&&window,typeof self=="object"&&self,typeof J_=="object"&&J_];for(var _=0;_<h.length;++_){var w=h[_];if(w&&w.Math==Math)return w}throw Error("Cannot find global object")}var n=t(this);function i(h,_){if(_)e:{var w=n;h=h.split(".");for(var P=0;P<h.length-1;P++){var Y=h[P];if(!(Y in w))break e;w=w[Y]}h=h[h.length-1],P=w[h],_=_(P),_!=P&&_!=null&&e(w,h,{configurable:!0,writable:!0,value:_})}}function a(h,_){h instanceof String&&(h+="");var w=0,P=!1,Y={next:function(){if(!P&&w<h.length){var ie=w++;return{value:_(ie,h[ie]),done:!1}}return P=!0,{done:!0,value:void 0}}};return Y[Symbol.iterator]=function(){return Y},Y}i("Array.prototype.values",function(h){return h||function(){return a(this,function(_,w){return w})}});var s=s||{},o=this||self;function l(h){var _=typeof h;return _=_!="object"?_:h?Array.isArray(h)?"array":_:"null",_=="array"||_=="object"&&typeof h.length=="number"}function c(h){var _=typeof h;return _=="object"&&h!=null||_=="function"}function u(h,_,w){return h.call.apply(h.bind,arguments)}function d(h,_,w){if(!h)throw Error();if(2<arguments.length){var P=Array.prototype.slice.call(arguments,2);return function(){var Y=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(Y,P),h.apply(_,Y)}}return function(){return h.apply(_,arguments)}}function f(h,_,w){return f=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?u:d,f.apply(null,arguments)}function p(h,_){var w=Array.prototype.slice.call(arguments,1);return function(){var P=w.slice();return P.push.apply(P,arguments),h.apply(this,P)}}function g(h,_){function w(){}w.prototype=_.prototype,h.aa=_.prototype,h.prototype=new w,h.prototype.constructor=h,h.Qb=function(P,Y,ie){for(var ze=Array(arguments.length-2),Pr=2;Pr<arguments.length;Pr++)ze[Pr-2]=arguments[Pr];return _.prototype[Y].apply(P,ze)}}function y(h){let _=h.length;if(0<_){let w=Array(_);for(let P=0;P<_;P++)w[P]=h[P];return w}return[]}function v(h,_){for(let w=1;w<arguments.length;w++){let P=arguments[w];if(l(P)){let Y=h.length||0,ie=P.length||0;h.length=Y+ie;for(let ze=0;ze<ie;ze++)h[Y+ze]=P[ze]}else h.push(P)}}class T{constructor(_,w){this.i=_,this.j=w,this.h=0,this.g=null}get(){let _;return 0<this.h?(this.h--,_=this.g,this.g=_.next,_.next=null):_=this.i(),_}}function C(h){return/^[\s\xa0]*$/.test(h)}function x(){var h=o.navigator;return h&&(h=h.userAgent)?h:""}function B(h){return B[" "](h),h}B[" "]=function(){};var q=x().indexOf("Gecko")!=-1&&!(x().toLowerCase().indexOf("webkit")!=-1&&x().indexOf("Edge")==-1)&&!(x().indexOf("Trident")!=-1||x().indexOf("MSIE")!=-1)&&x().indexOf("Edge")==-1;function V(h,_,w){for(let P in h)_.call(w,h[P],P,h)}function b(h,_){for(let w in h)_.call(void 0,h[w],w,h)}function E(h){let _={};for(let w in h)_[w]=h[w];return _}let I="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleStr
22ing toString valueOf".split(" ");function S(h,_){let w,P;for(let Y=1;Y<arguments.length;Y++){P=arguments[Y];for(w in P)h[w]=P[w];for(let ie=0;ie<I.length;ie++)w=I[ie],Object.prototype.hasOwnProperty.call(P,w)&&(h[w]=P[w])}}function k(h){var _=1;h=h.split(":");let w=[];for(;0<_&&h.length;)w.push(h.shift()),_--;return h.length&&w.push(h.join(":")),w}function D(h){o.setTimeout(()=>{throw h},0)}function R(){var h=Be;let _=null;return h.g&&(_=h.g,h.g=h.g.next,h.g||(h.h=null),_.next=null),_}class De{constructor(){this.h=this.g=null}add(_,w){let P=ve.get();P.set(_,w),this.h?this.h.next=P:this.g=P,this.h=P}}var ve=new T(()=>new rt,h=>h.reset());class rt{constructor(){this.next=this.g=this.h=null}set(_,w){this.h=_,this.g=w,this.next=null}reset(){this.next=this.g=this.h=null}}let $e,vt=!1,Be=new De,Ze=()=>{let h=o.Promise.resolve(void 0);$e=()=>{h.then(le)}};var le=()=>{for(var h;h=R();){try{h.h.call(h.g)}catch(w){D(w)}var _=ve;_.j(h),100>_.h&&(_.h++,h.next=_.g,_.g=h)}vt=!1};function j(){this.s=this.s,this.C=this.C}j.prototype.s=!1,j.prototype.ma=function(){this.s||(this.s=!0,this.N())},j.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()};function K(h,_){this.type=h,this.g=this.target=_,this.defaultPrevented=!1}K.prototype.h=function(){this.defaultPrevented=!0};var W=(function(){if(!o.addEventListener||!Object.defineProperty)return!1;var h=!1,_=Object.defineProperty({},"passive",{get:function(){h=!0}});try{let w=()=>{};o.addEventListener("test",w,_),o.removeEventListener("test",w,_)}catch{}return h})();function H(h,_){if(K.call(this,h?h.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,h){var w=this.type=h.type,P=h.changedTouches&&h.
vendor: 206,853 bytes, lines 22-43
22changedTouches.length?h.changedTouches[0]:null;if(this.target=h.target||h.srcElement,this.g=_,_=h.relatedTarget){if(q){e:{try{B(_.nodeName);var Y=!0;break e}catch{}Y=!1}Y||(_=null)}}else w=="mouseover"?_=h.fromElement:w=="mouseout"&&(_=h.toElement);this.relatedTarget=_,P?(this.clientX=P.clientX!==void 0?P.clientX:P.pageX,this.clientY=P.clientY!==void 0?P.clientY:P.pageY,this.screenX=P.screenX||0,this.screenY=P.screenY||0):(this.clientX=h.clientX!==void 0?h.clientX:h.pageX,this.clientY=h.clientY!==void 0?h.clientY:h.pageY,this.screenX=h.screenX||0,this.screenY=h.screenY||0),this.button=h.button,this.key=h.key||"",this.ctrlKey=h.ctrlKey,this.altKey=h.altKey,this.shiftKey=h.shiftKey,this.metaKey=h.metaKey,this.pointerId=h.pointerId||0,this.pointerType=typeof h.pointerType=="string"?h.pointerType:ne[h.pointerType]||"",this.state=h.state,this.i=h,h.defaultPrevented&&H.aa.h.call(this)}}g(H,K);var ne={2:"touch",3:"pen",4:"mouse"};H.prototype.h=function(){H.aa.h.call(this);var h=this.i;h.preventDefault?h.preventDefault():h.returnValue=!1};var _e="closure_listenable_"+(1e6*Math.random()|0),be=0;function we(h,_,w,P,Y){this.listener=h,this.proxy=null,this.src=_,this.type=w,this.capture=!!P,this.ha=Y,this.key=++be,this.da=this.fa=!1}function ce(h){h.da=!0,h.listener=null,h.proxy=null,h.src=null,h.ha=null}function et(h){this.src=h,this.g={},this.h=0}et.prototype.add=function(h,_,w,P,Y){var ie=h.toString();h=this.g[ie],h||(h=this.g[ie]=[],this.h++);var ze=Et(h,_,P,Y);return-1<ze?(_=h[ze],w||(_.fa=!1)):(_=new we(_,this.src,ie,!!P,Y),_.fa=w,h.push(_)),_};function N(h,_){var w=_.type;if(w in h.g){var P=h.g[w],Y=Array.prototype.indexOf.call(P,_,void 0),ie;(ie=0<=Y)&&Array.prototype.splice.call(P,Y,1),ie&&(ce(_),h.g[w].length==0&&(delete h.g[w],h.h--))}}function Et(h,_,w,P){for(var Y=0;Y<h.length;++Y){var ie=h[Y];if(!ie.da&&ie.listener==_&&ie.capture==!!w&&ie.ha==P)return Y}return-1}var gt="closure_lm_"+(1e6*Math.random()|0),Jt={};function zt(h,_,w,P,Y){if(P&&P.once)return sa(h,_,w,P,Y);if(Array.isArray(_)){for(var ie=0;ie<_.length;ie++)zt(h,_[ie],w,P,Y);return null}return w=Is(w),h&&h[_e]?h.K(_,w,c(P)?!!P.capture:!!P,Y):We(h,_,w,!1,P,Y)}function We(h,_,w,P,Y,ie){if(!_)throw Error("Invalid event type");var ze=c(Y)?!!Y.capture:!!Y,Pr=_i(h);if(Pr||(h[gt]=Pr=new et(h)),w=Pr.add(_,w,P,ze,ie),w.proxy)return w;if(P=nn(),w.proxy=P,P.src=h,P.listener=w,h.addEventListener)W||(Y=ze),Y===void 0&&(Y=!1),h.addEventListener(_.toString(),P,Y);else if(h.attachEvent)h.attachEvent(_c(_.toString()),P);else if(h.addListener&&h.removeListener)h.addListener(P);else throw Error("addEventListener and attachEvent are unavailable.");return w}function nn(){function h(w){return _.call(h.src,h.listener,w)}let _=Po;return h}function sa(h,_,w,P,Y){if(Array.isArray(_)){for(var ie=0;ie<_.length;ie++)sa(h,_[ie],w,P,Y);return null}return w=Is(w),h&&h[_e]?h.L(_,w,c(P)?!!P.capture:!!P,Y):We(h,_,w,!0,P,Y)}function Xa(h,_,w,P,Y){if(Array.isArray(_))for(var ie=0;ie<_.length;ie++)Xa(h,_[ie],w,P,Y);else P=c(P)?!!P.capture:!!P,w=Is(w),h&&h[_e]?(h=h.i,_=String(_).toString(),_ in h.g&&(ie=h.g[_],w=Et(ie,w,P,Y),-1<w&&(ce(ie[w]),Array.prototype.splice.call(ie,w,1),ie.length==0&&(delete h.g[_],h.h--)))):h&&(h=_i(h))&&(_=h.g[_.toString()],h=-1,_&&(h=Et(_,w,P,Y)),(w=-1<h?_[h]:null)&&Qa(w))}function Qa(h){if(typeof h!="number"&&h&&!h.da){var _=h.src;if(_&&_[_e])N(_.i,h);else{var w=h.type,P=h.proxy;_.removeEventListener?_.removeEventListener(w,P,h.capture):_.detachEvent?_.detachEvent(_c(w),P):_.addListener&&_.removeListener&&_.removeListener(P),(w=_i(_))?(N(w,h),w.h==0&&(w.src=null,_[gt]=null)):ce(h)}}}function _c(h){return h in Jt?Jt[h]:Jt[h]="on"+h}function Po(h,_){if(h.da)h=!0;else{_=new H(_,this);var w=h.listener,P=h.ha||h.src;h.fa&&Qa(h),h=w.call(P,_)}return h}function _i(h){return h=h[gt],h instanceof et?h:null}var Ja="__closure_events_fn_"+(1e9*Math.random()>>>0);function Is(h){return typeof h=="function"?h:(h[Ja]||(h[Ja]=function(_){return h.handleEvent(_)}),h[Ja])}function cn(){j.call(this),this.i=new et(this),this.M=this,this.F=null}g(cn,j),cn.prototype[_e]=!0,cn.prototype.removeEventListener=function(h,_,w,P){Xa(this,h,_,w,P)};function pr(h,_){var w,P=h.F;if(P)for(w=[];P;P=P.F)w.push(P);if(h=h.M,P=_.type||_,typeof _=="string")_=new K(_,h);else if(_ instanceof K)_.target=_.target||h;else{var Y=_;_=new K(P,h),S(_,Y)}if(Y=!0,w)for(var ie=w.length-1;0<=ie;ie--){var ze=_.g=w[ie];Y=oa(ze,P,!0,_)&&Y}if(ze=_.g=h,Y=oa(ze,P,!0,_)&&Y,Y=oa(ze,P,!1,_)&&Y,w)for(ie=0;ie<w.length;ie++)ze=_.g=w[ie],Y=oa(ze,P,!1,_)&&Y}cn.prototype.N=function(){if(cn.aa.N.call(this),this.i){var h=this.i,_;for(_ in h.g){for(var w=h.g[_],P=0;P<w.length;P++)ce(w[P]);delete h.g[_],h.h--}}this.F=null},cn.prototype.K=function(h,_,w,P){return this.i.add(String(h),_,!1,w,P)},cn.prototype.L=function(h,_,w,P){return this.i.add(String(h),_,!0,w,P)};function oa(h,_,w,P){if(_=h.i.g[String(_)],!_)return!0;_=_.concat();for(var Y=!0,ie=0;ie<_.length;++ie){var ze=_[ie];if(ze&&!ze.da&&ze.capture==w){var Pr=ze.listener,wi=ze.ha||ze.src;ze.fa&&N(h.i,ze),Y=Pr.call(wi,P)!==!1&&Y}}return Y&&!P.defaultPrevented}function Nt(h,_,w){if(typeof h=="function")w&&(h=f(h,w));else if(h&&typeof h.handleEvent=="function")h=f(h.handleEvent,h);else throw Error("Invalid listener argument");return 2147483647<Number(_)?-1:o.setTimeout(h,_||0)}function Kr(h){h.g=Nt(()=>{h.g=null,h.i&&(h.i=!1,Kr(h))},h.l);let _=h.h;h.h=null,h.m.apply(null,_)}class Da extends j{constructor(_,w){super(),this.m=_,this.l=w,this.h=null,this.i=!1,this.g=null}j(_){this.h=arguments,this.g?this.i=!0:Kr(this)}N(){super.N(),this.g&&(o.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function zr(h){j.call(this),this.h=h,this.g={}}g(zr,j);var Ro=[];function Np(h){V(h.g,function(_,w){this.g.hasOwnProperty(w)&&Qa(_)},h),h.g={}}zr.prototype.N=function(){zr.aa.N.call(this),Np(this)},zr.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Lp=o.JSON.stringify,tC=o.JSON.parse,Tv=class{stringify(h){return o.JSON.stringify(h,void 0)}parse(h){return o.JSON.parse(h,void 0)}};function qh(){}qh.prototype.h=null;function Vp(h){return h.h||(h.h=h.i())}function Cv(){}var Hu={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function bc(){K.call(this,"d")}g(bc,K);function Up(){K.call(this,"c")}g(Up,K);var El={},Sv=null;function Kh(){return Sv=Sv||new cn}El.La="serverreachability";function Dv(h){K.call(this,El.La,h)}g(Dv,K);function $u(h){let _=Kh();pr(_,new Dv(_))}El.STAT_EVENT="statevent";function Av(h,_){K.call(this,El.STAT_EVENT,h),this.stat=_}g(Av,K);function bi(h){let _=Kh();pr(_,new Av(_,h))}El.Ma="timingevent";function Yh(h,_){K.call(this,El.Ma,h),this.size=_}g(Yh,K);function Gu(h,_){if(typeof h!="function")throw Error("Fn must not be null and must be a function");return o.setTimeout(function(){h()},_)}function Wu(){this.g=!0}Wu.prototype.xa=function(){this.g=!1};function rC(h,_,w,P,Y,ie){h.info(function(){if(h.g)if(ie)for(var ze="",Pr=ie.split("&"),wi=0;wi<Pr.length;wi++){var fr=Pr[wi].split("=");if(1<fr.length){var Oi=fr[0];fr=fr[1];var Fi=Oi.split("_");ze=2<=Fi.length&&Fi[1]=="type"?ze+(Oi+"="+fr+"&"):ze+(Oi+"=redacted&")}}else ze=null;else ze=ie;return"XMLHTTP REQ ("+P+") [attempt "+Y+"]: "+_+` 23`+w+` 24`+ze})}function M(h,_,w,P,Y,ie,ze){h.info(function(){return"XMLHTTP RESP ("+P+") [ attempt "+Y+"]: "+_+` 25`+w+` 26`+ie+" "+ze})}function L(h,_,w,P){h.info(function(){return"XMLHTTP TEXT ("+_+"): "+F(h,w)+(P?" "+P:"")})}function O(h,_){h.info(function(){return"TIMEOUT: "+_})}Wu.prototype.info=function(){};function F(h,_){if(!h.g)return _;if(!_)return null;try{var w=JSON.parse(_);if(w){for(h=0;h<w.length;h++)if(Array.isArray(w[h])){var P=w[h];if(!(2>P.length)){var Y=P[1];if(Array.isArray(Y)&&!(1>Y.length)){var ie=Y[0];if(ie!="noop"&&ie!="stop"&&ie!="close")for(var ze=1;ze<Y.length;ze++)Y[ze]=""}}}}return Lp(w)}catch{return _}}var U={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},z={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"},J;function se(){}g(se,qh),se.prototype.g=function(){return new XMLHttpRequest},se.prototype.i=function(){return{}},J=new se;function Q(h,_,w,P){this.j=h,this.i=_,this.l=w,this.R=P||1,this.U=new zr(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new Z}function Z(){this.i=null,this.g="",this.h=!1}var re={},Te={};function Pe(h,_,w){h.L=1,h.v=Pv(Cl(_)),h.m=w,h.P=!0,nt(h,null)}function nt(h,_){h.F=Date.now(),_t(h),h.A=Cl(h.v);var w=h.A,P=h.R;Array.isArray(P)||(P=[String(P)]),NO(w.i,"t",P),h.C=0,w=h.j.J,h.h=new Z,h.g=tF(h.j,w?_:null,!h.m),0<h.O&&(h.M=new Da(f(h.Y,h,h.g),h.O)),_=h.U,w=h.g,P=h.ca;var Y="readystatechange";Array.isArray(Y)||(Y&&(Ro[0]=Y.toString()),Y=Ro);for(var ie=0;ie<Y.length;ie++){var ze=zt(w,Y[ie],P||_.handleEvent,!1,_.h||_);if(!ze)break;_.g[ze.key]=ze}_=h.H?E(h.H):{},h.m?(h.u||(h.u="POST"),_["Content-Type"]="application/x-www-form-urlencoded",h.g.ea(h.A,h.u,h.m,_)):(h.u="GET",h.g.ea(h.A,h.u,null,_)),$u(),rC(h.i,h.u,h.A,h.l,h.R,h.m)}Q.prototype.ca=function(h){h=h.target;let _=this.M;_&&Sl(h)==3?_.j():this.Y(h)},Q.prototype.Y=function(h){try{if(h==this.g)e:{let Fi=Sl(this.g);var _=this.g.Ba();let Zh=this.g.Z();if(!(3>Fi)&&(Fi!=3||this.g&&(this.h.h||this.g.oa()||$O(this.g)))){this.J||Fi!=4||_==7||(_==8||0>=Zh?$u(3):$u(2)),ii(this);var w=this.g.Z();this.X=w;t:if(Oe(this)){var P=$O(this.g);h="";var Y=P.length,ie=Sl(this.g)==4;if(!this.h.i){if(typeof TextDecoder>"u"){xn(this),Lr(this);var ze="";break t}this.h.i=new o.TextDecoder}for(_=0;_<Y;_++)this.h.h=!0,h+=this.h.i.decode(P[_],{stream:!(ie&&_==Y-1)});P.length=0,this.h.g+=h,this.C=0,ze=this.h.g}else ze=this.g.oa();if(this.o=w==200,M(this.i,this.u,this.A,this.l,this.R,Fi,w),this.o){if(this.T&&!this.K){t:{if(this.g){var Pr,wi=this.g;if((Pr=wi.g?wi.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!C(Pr)){var fr=Pr;break t}}fr=null}if(w=fr)L(this.i,this.l,w,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,Tl(this,w);else{this.o=!1,this.s=3,bi(12),xn(this),Lr(this);break e}}if(this.P){w=!0;let Js;for(;!this.J&&this.C<ze.length;)if(Js=je(this,ze),Js==Te){Fi==4&&(this.s=4,bi(14),w=!1),L(this.i,this.l,null,"[Incomplete Response]");break}else if(Js==re){this.s=4,bi(15),L(this.i,this.l,ze,"[Invalid Chunk]"),w=!1;break}else L(this.i,this.l,Js,null),Tl(this,Js);if(Oe(this)&&this.C!=0&&(this.h.g=this.h.g.slice(this.C),this.C=0),Fi!=4||ze.length!=0||this.h.h||(this.s=1,bi(16),w=!1),this.o=this.o&&w,!w)L(this.i,this.l,ze,"[Invalid Chunked Response]"),xn(this),Lr(this);else if(0<ze.length&&!this.W){this.W=!0;var Oi=this.j;Oi.g==this&&Oi.ba&&!Oi.M&&(Oi.j.info("Great, no buffering proxy detected. Bytes received: "+ze.length),lC(Oi),Oi.M=!0,bi(11))}}else L(this.i,this.l,ze,null),Tl(this,ze);Fi==4&&xn(this),this.o&&!this.J&&(Fi==4?QO(this.j,this):(this.o=!1,_t(this)))}else cG(this.g),w==400&&0<ze.indexOf("Unknown SID")?(this.s=3,bi(12)):(this.s=0,bi(13)),xn(this),Lr(this)}}}catch{}finally{}};function Oe(h){return h.g?h.u=="GET"&&h.L!=2&&h.j.Ca:!1}function je(h,_){var w=h.C,P=_.indexOf(` 27`,w);return P==-1?Te:(w=Number(_.substring(w,P)),isNaN(w)?re:(P+=1,P+w>_.length?Te:(_=_.slice(P,P+w),h.C=P+w,_)))}Q.prototype.cancel=function(){this.J=!0,xn(this)};function _t(h){h.S=Date.now()+h.I,Sr(h,h.I)}function Sr(h,_){if(h.B!=null)throw Error("WatchDog timer not null");h.B=Gu(f(h.ba,h),_)}function ii(h){h.B&&(o.clearTimeout(h.B),h.B=null)}Q.prototype.ba=function(){this.B=null;let h=Date.now();0<=h-this.S?(O(this.i,this.A),this.L!=2&&($u(),bi(17)),xn(this),this.s=2,Lr(this)):Sr(this,this.S-h)};function Lr(h){h.j.G==0||h.J||QO(h.j,h)}function xn(h){ii(h);var _=h.M;_&&typeof _.ma=="function"&&_.ma(),h.M=null,Np(h.U),h.g&&(_=h.g,h.g=null,_.abort(),_.ma())}function Tl(h,_){try{var w=h.j;if(w.G!=0&&(w.g==h||nC(w.h,h))){if(!h.K&&nC(w.h,h)&&w.G==3){try{var P=w.Da.g.parse(_)}catch{P=null}if(Array.isArray(P)&&P.length==3){var Y=P;if(Y[0]==0){e:if(!w.u){if(w.g)if(w.g.F+3e3<h.F)Nv(w),Fv(w);else break e;oC(w),bi(18)}}else w.za=Y[1],0<w.za-w.T&&37500>Y[2]&&w.F&&w.v==0&&!w.C&&(w.C=Gu(f(w.Za,w),6e3));if(1>=xs(w.h)&&w.ca){try{w.ca()}catch{}w.ca=void 0}}else Yu(w,11)}else if((h.K||w.g==h)&&Nv(w),!C(_))for(Y=w.Da.g.parse(_),_=0;_<Y.length;_++){let fr=Y[_];if(w.T=fr[0],fr=fr[1],w.G==2)if(fr[0]=="c"){w.K=fr[1],w.ia=fr[2];let Oi=fr[3];Oi!=null&&(w.la=Oi,w.j.info("VER="+w.la));let Fi=fr[4];Fi!=null&&(w.Aa=Fi,w.j.info("SVER="+w.Aa));let Zh=fr[5];Zh!=null&&typeof Zh=="number"&&0<Zh&&(P=1.5*Zh,w.L=P,w.j.info("backChannelRequestTimeoutMs_="+P)),P=w;let Js=h.g;if(Js){let Vv=Js.g?Js.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(Vv){var ie=P.h;ie.g||Vv.indexOf("spdy")==-1&&Vv.indexOf("quic")==-1&&Vv.indexOf("h2")==-1||(ie.j=ie.l,ie.g=new Set,ie.h&&(iC(ie,ie.h),ie.h=null))}if(P.D){let cC=Js.g?Js.g.getResponseHeader("X-HTTP-Session-Id"):null;cC&&(P.ya=cC,jr(P.I,P.D,cC))}}w.G=3,w.l&&w.l.ua(),w.ba&&(w.R=Date.now()-h.F,w.j.info("Handshake RTT: "+w.R+"ms")),P=w;var ze=h;if(P.qa=eF(P,P.J?P.ia:null,P.W),ze.K){AO(P.h,ze);var Pr=ze,wi=P.L;wi&&(Pr.I=wi),Pr.B&&(ii(Pr),_t(Pr)),P.g=ze}else YO(P);0<w.i.length&&Bv(w)}else fr[0]!="stop"&&fr[0]!="close"||Yu(w,7);else w.G==3&&(fr[0]=="stop"||fr[0]=="close"?fr[0]=="stop"?Yu(w,7):sC(w):fr[0]!="noop"&&w.l&&w.l.ta(fr),w.v=0)}}$u(4)}catch{}}var qu=class{constructor(h,_){this.g=h,this.map=_}};function Oo(h){this.l=h||10,o.PerformanceNavigationTiming?(h=o.performance.getEntriesByType("navigation"),h=0<h.length&&(h[0].nextHopProtocol=="hq"||h[0].nextHopProtocol=="h2")):h=!!(o.chrome&&o.chrome.loadTimes&&o.chrome.loadTimes()&&o.chrome.loadTimes().wasFetchedViaSpdy),this.j=h?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function Xh(h){return h.h?!0:h.g?h.g.size>=h.j:!1}function xs(h){return h.h?1:h.g?h.g.size:0}function nC(h,_){return h.h?h.h==_:h.g?h.g.has(_):!1}function iC(h,_){h.g?h.g.add(_):h.h=_}function AO(h,_){h.h&&h.h==_?h.h=null:h.g&&h.g.has(_)&&h.g.delete(_)}Oo.prototype.cancel=function(){if(this.i=MO(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&this.g.size!==0){for(let h of this.g.values())h.cancel();this.g.clear()}};function MO(h){if(h.h!=null)return h.i.concat(h.h.D);if(h.g!=null&&h.g.size!==0){let _=h.i;for(let w of h.g.values())_=_.concat(w.D);return _}return y(h.i)}function K$(h){if(h.V&&typeof h.V=="function")return h.V();if(typeof Map<"u"&&h instanceof Map||typeof Set<"u"&&h instanceof Set)return Array.from(h.values());if(typeof h=="string")return h.split("");if(l(h)){for(var _=[],w=h.length,P=0;P<w;P++)_.push(h[P]);return _}_=[],w=0;for(P in h)_[w++]=h[P];return _}function Y$(h){if(h.na&&typeof h.na=="function")return h.na();if(!h.V||typeof h.V!="function"){if(typeof Map<"u"&&h instanceof Map)return Array.from(h.keys());if(!(typeof Set<"u"&&h instanceof Set)){if(l(h)||typeof h=="string"){var _=[];h=h.length;for(var w=0;w<h;w++)_.push(w);return _}_=[],w=0;for(let P in h)_[w++]=P;return _}}}function kO(h,_){if(h.forEach&&typeof h.forEach=="function")h.forEach(_,void 0);else if(l(h)||typeof h=="string")Array.prototype.forEach.call(h,_,void 0);else for(var w=Y$(h),P=K$(h),Y=P.length,ie=0;ie<Y;ie++)_.call(void 0,P[ie],w&&w[ie],h)}var PO=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function X$(h,_){if(h){h=h.split("&");for(var w=0;w<h.length;w++){var P=h[w].indexOf("="),Y=null;if(0<=P){var ie=h[w].substring(0,P);Y=h[w].substring(P+1)}else ie=h[w];_(ie,Y?decodeURIComponent(Y.replace(/\+/g," ")):"")}}}function Ku(h){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,h instanceof Ku){this.h=h.h,Mv(this,h.j),this.o=h.o,this.g=h.g,kv(this,h.s),this.l=h.l;var _=h.i,w=new Hp;w.i=_.i,_.g&&(w.g=new Map(_.g),w.h=_.h),RO(this,w),this.m=h.m}else h&&(_=String(h).match(PO))?(this.h=!1,Mv(this,_[1]||"",!0),this.o=zp(_[2]||""),this.g=zp(_[3]||"",!0),kv(this,_[4]),this.l=zp(_[5]||"",!0),RO(this,_[6]||"",!0),this.m=zp(_[7]||"")):(this.h=!1,this.i=new Hp(null,this.h))}Ku.prototype.toString=function(){var h=[],_=this.j;_&&h.push(jp(_,OO,!0),":");var w=this.g;return(w||_=="file")&&(h.push("//"),(_=this.o)&&h.push(jp(_,OO,!0),"@"),h.push(encodeURIComponent(String(w)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),w=this.s,w!=null&&h.push(":",String(w))),(w=this.l)&&(this.g&&w.charAt(0)!="/"&&h.push("/"),h.push(jp(w,w.charAt(0)=="/"?Z$:J$,!0))),(w=this.i.toString())&&h.push("?",w),(w=this.m)&&h.push("#",jp(w,tG)),h.join("")};function Cl(h){return new Ku(h)}function Mv(h,_,w){h.j=w?zp(_,!0):_,h.j&&(h.j=h.j.replace(/:$/,""))}function kv(h,_){if(_){if(_=Number(_),isNaN(_)||0>_)throw Error("Bad port number "+_);h.s=_}else h.s=null}function RO(h,_,w){_ instanceof Hp?(h.i=_,rG(h.i,h.h)):(w||(_=jp(_,eG)),h.i=new Hp(_,h.h))}function jr(h,_,w){h.i.set(_,w)}function Pv(h){return jr(h,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),h}function zp(h,_){return h?_?decodeURI(h.replace(/%25/g,"%2525")):decodeURIComponent(h):""}function jp(h,_,w){return typeof h=="string"?(h=encodeURI(h).replace(_,Q$),w&&(h=h.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),h):null}function Q$(h){return h=h.charCodeAt(0),"%"+(h>>4&15).toString(16)+(h&15).toString(16)}var OO=/[#\/\?@]/g,J$=/[#\?:]/g,Z$=/[#\?]/g,eG=/[#\?@]/g,tG=/#/g;function Hp(h,_){this.h=this.g=null,this.i=h||null,this.j=!!_}function wc(h){h.g||(h.g=new Map,h.h=0,h.i&&X$(h.i,function(_,w){h.add(decodeURIComponent(_.replace(/\+/g," ")),w)}))}r=Hp.prototype,r.add=function(h,_){wc(this),this.i=null,h=Qh(this,h);var w=this.g.get(h);return w||this.g.set(h,w=[]),w.push(_),this.h+=1,this};function FO(h,_){wc(h),_=Qh(h,_),h.g.has(_)&&(h.i=null,h.h-=h.g.get(_).length,h.g.delete(_))}function BO(h,_){return wc(h),_=Qh(h,_),h.g.has(_)}r.forEach=function(h,_){wc(this),this.g.forEach(function(w,P){w.forEach(function(Y){h.call(_,Y,P,this)},this)},this)},r.na=function(){wc(this);let h=Array.from(this.g.values()),_=Array.from(this.g.keys()),w=[];for(let P=0;P<_.length;P++){let Y=h[P];for(let ie=0;ie<Y.length;ie++)w.push(_[P])}return w},r.V=function(h){wc(this);let _=[];if(typeof h=="string")BO(this,h)&&(_=_.concat(this.g.get(Qh(this,h))));else{h=Array.from(this.g.values());for(let w=0;w<h.length;w++)_=_.concat(h[w])}return _},r.set=function(h,_){return wc(this),this.i=null,h=Qh(this,h),BO(this,h)&&(this.h-=this.g.get(h).length),this.g.set(h,[_]),this.h+=1,this},r.get=function(h,_){return h?(h=this.V(h),0<h.length?String(h[0]):_):_};function NO(h,_,w){FO(h,_),0<w.length&&(h.i=null,h.g.set(Qh(h,_),y(w)),h.h+=w.length)}r.toString=function(){if(this.i)return this.i;if(!this.g)return"";let h=[],_=Array.from(this.g.keys());for(var w=0;w<_.length;w++){var P=_[w];let ie=encodeURIComponent(String(P)),ze=this.V(P);for(P=0;P<ze.length;P++){var Y=ie;ze[P]!==""&&(Y+="="+encodeURIComponent(String(ze[P]))),h.push(Y)}}return this.i=h.join("&")};function Qh(h,_){return _=String(_),h.j&&(_=_.toLowerCase()),_}function rG(h,_){_&&!h.j&&(wc(h),h.i=null,h.g.forEach(function(w,P){var Y=P.toLowerCase();P!=Y&&(FO(this,P),NO(this,Y,w))},h)),h.j=_}function nG(h,_){let w=new Wu;if(o.Image){let P=new Image;P.onload=p(Ic,w,"TestLoadImage: loaded",!0,_,P),P.onerror=p(Ic,w,"TestLoadImage: error",!1,_,P),P.onabort=p(Ic,w,"TestLoadImage: abort",!1,_,P),P.ontimeout=p(Ic,w,"TestLoadImage: timeout",!1,_,P),o.setTimeout(function(){P.ontimeout&&P.ontimeout()},1e4),P.src=h}else _(!1)}function iG(h,_){let w=new Wu,P=new AbortController,Y=setTimeout(()=>{P.abort(),Ic(w,"TestPingServer: timeout",!1,_)},1e4);fetch(h,{signal:P.signal}).then(ie=>{clearTimeout(Y),ie.ok?Ic(w,"TestPingServer: ok",!0,_):Ic(w,"TestPingServer: server error",!1,_)}).catch(()=>{clearTimeout(Y),Ic(w,"TestPingServer: error",!1,_)})}function Ic(h,_,w,P,Y){try{Y&&(Y.onload=null,Y.onerror=null,Y.onabort=null,Y.ontimeout=null),P(w)}catch{}}function aG(){this.g=new Tv}function sG(h,_,w){let P=w||"";try{kO(h,function(Y,ie){let ze=Y;c(Y)&&(ze=Lp(Y)),_.push(P+ie+"="+encodeURIComponent(ze))})}catch(Y){throw _.push(P+"type="+encodeURIComponent("_badmap")),Y}}function $p(h){this.l=h.Ub||null,this.j=h.eb||!1}g($p,qh),$p.prototype.g=function(){return new Rv(this.l,this.j)},$p.prototype.i=(function(h){return function(){return h}})({});function Rv(h,_){cn.call(this),this.D=h,this.o=_,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.u=new Headers,this.h=null,this.B="GET",this.A="",this.g=!1,this.v=this.j=this.l=null}g(Rv,cn),r=Rv.prototype,r.open=function(h,_){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.B=h,this.A=_,this.readyState=1,Wp(this)},r.send=function(h){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.g=!0;let _={headers:this.u,method:this.B,credentials:this.m,cache:void 0};h&&(_.body=h),(this.D||o).fetch(new Request(this.A,_)).then(this.Sa.bind(this),this.ga.bind(this))},r.abort=function(){this.response=this.responseText="",this.u=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&this.readyState!=4&&(this.g=!1,Gp(this)),this.readyState=0},r.Sa=function(h){if(this.g&&(this.l=h,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=h.headers,this.readyState=2,Wp(this)),this.g&&(this.readyState=3,Wp(this),this.g)))if(this.responseType==="arraybuffer")h.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof o.ReadableStream<"u"&&"body"in h){if(this.j=h.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;LO(this)}else h.text().then(this.Ra.bind(this),this.ga.bind(this))};function LO(h){h.j.read().then(h.Pa.bind(h)).catch(h.ga.bind(h))}r.Pa=function(h){if(this.g){if(this.o&&h.value)this.response.push(h.value);else if(!this.o){var _=h.value?h.value:new Uint8Array(0);(_=this.v.decode(_,{stream:!h.done}))&&(this.response=this.responseText+=_)}h.done?Gp(this):Wp(this),this.readyState==3&&LO(this)}},r.Ra=function(h){this.g&&(this.response=this.responseText=h,Gp(this))},r.Qa=function(h){this.g&&(this.response=h,Gp(this))},r.ga=function(){this.g&&Gp(this)};function Gp(h){h.readyState=4,h.l=null,h.j=null,h.v=null,Wp(h)}r.setRequestHeader=function(h,_){this.u.append(h,_)},r.getResponseHeader=function(h){return this.h&&this.h.get(h.toLowerCase())||""},r.getAllResponseHeaders=function(){if(!this.h)return"";let h=[],_=this.h.entries();for(var w=_.next();!w.done;)w=w.value,h.push(w[0]+": "+w[1]),w=_.next();return h.join(`\r 28`)};function Wp(h){h.onreadystatechange&&h.onreadystatechange.call(h)}Object.defineProperty(Rv.prototype,"withCredentials",{get:function(){return this.m==="include"},set:function(h){this.m=h?"include":"same-origin"}});function VO(h){let _="";return V(h,function(w,P){_+=P,_+=":",_+=w,_+=`\r 29`}),_}function aC(h,_,w){e:{for(P in w){var P=!1;break e}P=!0}P||(w=VO(w),typeof h=="string"?w!=null&&encodeURIComponent(String(w)):jr(h,_,w))}function un(h){cn.call(this),this.headers=new Map,this.o=h||null,this.h=!1,this.v=this.g=null,this.D="",this.m=0,this.l="",this.j=this.B=this.u=this.A=!1,this.I=null,this.H="",this.J=!1}g(un,cn);var oG=/^https?$/i,lG=["POST","PUT"];r=un.prototype,r.Ha=function(h){this.J=h},r.ea=function(h,_,w,P){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+h);_=_?_.toUpperCase():"GET",this.D=h,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():J.g(),this.v=this.o?Vp(this.o):Vp(J),this.g.onreadystatechange=f(this.Ea,this);try{this.B=!0,this.g.open(_,String(h),!0),this.B=!1}catch(ie){UO(this,ie);return}if(h=w||"",w=new Map(this.headers),P)if(Object.getPrototypeOf(P)===Object.prototype)for(var Y in P)w.set(Y,P[Y]);else if(typeof P.keys=="function"&&typeof P.get=="function")for(let ie of P.keys())w.set(ie,P.get(ie));else throw Error("Unknown input type for opt_headers: "+String(P));P=Array.from(w.keys()).find(ie=>ie.toLowerCase()=="content-type"),Y=o.FormData&&h instanceof o.FormData,!(0<=Array.prototype.indexOf.call(lG,_,void 0))||P||Y||w.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(let[ie,ze]of w)this.g.setRequestHeader(ie,ze);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{HO(this),this.u=!0,this.g.send(h),this.u=!1}catch(ie){UO(this,ie)}};function UO(h,_){h.h=!1,h.g&&(h.j=!0,h.g.abort(),h.j=!1),h.l=_,h.m=5,zO(h),Ov(h)}function zO(h){h.A||(h.A=!0,pr(h,"complete"),pr(h,"error"))}r.abort=function(h){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=h||7,pr(this,"complete"),pr(this,"abort"),Ov(this))},r.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),Ov(this,!0)),un.aa.N.call(this)},r.Ea=function(){this.s||(this.B||this.u||this.j?jO(this):this.bb())},r.bb=function(){jO(this)};function jO(h){if(h.h&&typeof s<"u"&&(!h.v[1]||Sl(h)!=4||h.Z()!=2)){if(h.u&&Sl(h)==4)Nt(h.Ea,0,h);else if(pr(h,"readystatechange"),Sl(h)==4){h.h=!1;try{let ze=h.Z();e:switch(ze){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var _=!0;break e;default:_=!1}var w;if(!(w=_)){var P;if(P=ze===0){var Y=String(h.D).match(PO)[1]||null;!Y&&o.self&&o.self.location&&(Y=o.self.location.protocol.slice(0,-1)),P=!oG.test(Y?Y.toLowerCase():"")}w=P}if(w)pr(h,"complete"),pr(h,"success");else{h.m=6;try{var ie=2<Sl(h)?h.g.statusText:""}catch{ie=""}h.l=ie+" ["+h.Z()+"]",zO(h)}}finally{Ov(h)}}}}function Ov(h,_){if(h.g){HO(h);let w=h.g,P=h.v[0]?()=>{}:null;h.g=null,h.v=null,_||pr(h,"ready");try{w.onreadystatechange=P}catch{}}}function HO(h){h.I&&(o.clearTimeout(h.I),h.I=null)}r.isActive=function(){return!!this.g};function Sl(h){return h.g?h.g.readyState:0}r.Z=function(){try{return 2<Sl(this)?this.g.status:-1}catch{return-1}},r.oa=function(){try{return this.g?this.g.responseText:""}catch{return""}},r.Oa=function(h){if(this.g){var _=this.g.responseText;return h&&_.indexOf(h)==0&&(_=_.substring(h.length)),tC(_)}};function $O(h){try{if(!h.g)return null;if("response"in h.g)return h.g.response;switch(h.H){case"":case"text":return h.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in h.g)return h.g.mozResponseArrayBuffer}return null}catch{return null}}function cG(h){let _={};h=(h.g&&2<=Sl(h)&&h.g.getAllResponseHeaders()||"").split(`\r 30`);for(let P=0;P<h.length;P++){if(C(h[P]))continue;var w=k(h[P]);let Y=w[0];if(w=w[1],typeof w!="string")continue;w=w.trim();let ie=_[Y]||[];_[Y]=ie,ie.push(w)}b(_,function(P){return P.join(", ")})}r.Ba=function(){return this.m},r.Ka=function(){return typeof this.l=="string"?this.l:String(this.l)};function qp(h,_,w){return w&&w.internalChannelParams&&w.internalChannelParams[h]||_}function GO(h){this.Aa=0,this.i=[],this.j=new Wu,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=qp("failFast",!1,h),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=qp("baseRetryDelayMs",5e3,h),this.cb=qp("retryDelaySeedMs",1e4,h),this.Wa=qp("forwardChannelMaxRetries",2,h),this.wa=qp("forwardChannelRequestTimeoutMs",2e4,h),this.pa=h&&h.xmlHttpFactory||void 0,this.Xa=h&&h.Tb||void 0,this.Ca=h&&h.useFetchStreams||!1,this.L=void 0,this.J=h&&h.supportsCrossDomainXhr||!1,this.K="",this.h=new Oo(h&&h.concurrentRequestLimit),this.Da=new aG,this.P=h&&h.fastHandshake||!1,this.O=h&&h.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=h&&h.Rb||!1,h&&h.xa&&this.j.xa(),h&&h.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&h&&h.detectBufferingProxy||!1,this.ja=void 0,h&&h.longPollingTimeout&&0<h.longPollingTimeout&&(this.ja=h.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}r=GO.prototype,r.la=8,r.G=1,r.connect=function(h,_,w,P){bi(0),this.W=h,this.H=_||{},w&&P!==void 0&&(this.H.OSID=w,this.H.OAID=P),this.F=this.X,this.I=eF(this,null,this.W),Bv(this)};function sC(h){if(WO(h),h.G==3){var _=h.U++,w=Cl(h.I);if(jr(w,"SID",h.K),jr(w,"RID",_),jr(w,"TYPE","terminate"),Kp(h,w),_=new Q(h,h.j,_),_.L=2,_.v=Pv(Cl(w)),w=!1,o.navigator&&o.navigator.sendBeacon)try{w=o.navigator.sendBeacon(_.v.toString(),"")}catch{}!w&&o.Image&&(new Image().src=_.v,w=!0),w||(_.g=tF(_.j,null),_.g.ea(_.v)),_.F=Date.now(),_t(_)}ZO(h)}function Fv(h){h.g&&(lC(h),h.g.cancel(),h.g=null)}function WO(h){Fv(h),h.u&&(o.clearTimeout(h.u),h.u=null),Nv(h),h.h.cancel(),h.s&&(typeof h.s=="number"&&o.clearTimeout(h.s),h.s=null)}function Bv(h){if(!Xh(h.h)&&!h.s){h.s=!0;var _=h.Ga;$e||Ze(),vt||($e(),vt=!0),Be.add(_,h),h.B=0}}function uG(h,_){return xs(h.h)>=h.h.j-(h.s?1:0)?!1:h.s?(h.i=_.D.concat(h.i),!0):h.G==1||h.G==2||h.B>=(h.Va?0:h.Wa)?!1:(h.s=Gu(f(h.Ga,h,_),JO(h,h.B)),h.B++,!0)}r.Ga=function(h){if(this.s)if(this.s=null,this.G==1){if(!h){this.U=Math.floor(1e5*Math.random()),h=this.U++;let Y=new Q(this,this.j,h),ie=this.o;if(this.S&&(ie?(ie=E(ie),S(ie,this.S)):ie=this.S),this.m!==null||this.O||(Y.H=ie,ie=null),this.P)e:{for(var _=0,w=0;w<this.i.length;w++){t:{var P=this.i[w];if("__data__"in P.map&&(P=P.map.__data__,typeof P=="string")){P=P.length;break t}P=void 0}if(P===void 0)break;if(_+=P,4096<_){_=w;break e}if(_===4096||w===this.i.length-1){_=w+1;break e}}_=1e3}else _=1e3;_=KO(this,Y,_),w=Cl(this.I),jr(w,"RID",h),jr(w,"CVER",22),this.D&&jr(w,"X-HTTP-Session-Id",this.D),Kp(this,w),ie&&(this.O?_="headers="+encodeURIComponent(String(VO(ie)))+"&"+_:this.m&&aC(w,this.m,ie)),iC(this.h,Y),this.Ua&&jr(w,"TYPE","init"),this.P?(jr(w,"$req",_),jr(w,"SID","null"),Y.T=!0,Pe(Y,w,null)):Pe(Y,w,_),this.G=2}}else this.G==3&&(h?qO(this,h):this.i.length==0||Xh(this.h)||qO(this))};function qO(h,_){var w;_?w=_.l:w=h.U++;let P=Cl(h.I);jr(P,"SID",h.K),jr(P,"RID",w),jr(P,"AID",h.T),Kp(h,P),h.m&&h.o&&aC(P,h.m,h.o),w=new Q(h,h.j,w,h.B+1),h.m===null&&(w.H=h.o),_&&(h.i=_.D.concat(h.i)),_=KO(h,w,1e3),w.I=Math.round(.5*h.wa)+Math.round(.5*h.wa*Math.random()),iC(h.h,w),Pe(w,P,_)}function Kp(h,_){h.H&&V(h.H,function(w,P){jr(_,P,w)}),h.l&&kO({},function(w,P){jr(_,P,w)})}function KO(h,_,w){w=Math.min(h.i.length,w);var P=h.l?f(h.l.Na,h.l,h):null;e:{var Y=h.i;let ie=-1;for(;;){let ze=["count="+w];ie==-1?0<w?(ie=Y[0].g,ze.push("ofs="+ie)):ie=0:ze.push("ofs="+ie);let Pr=!0;for(let wi=0;wi<w;wi++){let fr=Y[wi].g,Oi=Y[wi].map;if(fr-=ie,0>fr)ie=Math.max(0,Y[wi].g-100),Pr=!1;else try{sG(Oi,ze,"req"+fr+"_")}catch{P&&P(Oi)}}if(Pr){P=ze.join("&");break e}}}return h=h.i.splice(0,w),_.D=h,P}function YO(h){if(!h.g&&!h.u){h.Y=1;var _=h.Fa;$e||Ze(),vt||($e(),vt=!0),Be.add(_,h),h.v=0}}function oC(h){return h.g||h.u||3<=h.v?!1:(h.Y++,h.u=Gu(f(h.Fa,h),JO(h,h.v)),h.v++,!0)}r.Fa=function(){if(this.u=null,XO(this),this.ba&&!(this.M||this.g==null||0>=this.R)){var h=2*this.R;this.j.info("BP detection timer enabled: "+h),this.A=Gu(f(this.ab,this),h)}},r.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,bi(10),Fv(this),XO(this))};function lC(h){h.A!=null&&(o.clearTimeout(h.A),h.A=null)}function XO(h){h.g=new Q(h,h.j,"rpc",h.Y),h.m===null&&(h.g.H=h.o),h.g.O=0;var _=Cl(h.qa);jr(_,"RID","rpc"),jr(_,"SID",h.K),jr(_,"AID",h.T),jr(_,"CI",h.F?"0":"1"),!h.F&&h.ja&&jr(_,"TO",h.ja),jr(_,"TYPE","xmlhttp"),Kp(h,_),h.m&&h.o&&aC(_,h.m,h.o),h.L&&(h.g.I=h.L);var w=h.g;h=h.ia,w.L=1,w.v=Pv(Cl(_)),w.m=null,w.P=!0,nt(w,h)}r.Za=function(){this.C!=null&&(this.C=null,Fv(this),oC(this),bi(19))};function Nv(h){h.C!=null&&(o.clearTimeout(h.C),h.C=null)}function QO(h,_){var w=null;if(h.g==_){Nv(h),lC(h),h.g=null;var P=2}else if(nC(h.h,_))w=_.D,AO(h.h,_),P=1;else return;if(h.G!=0){if(_.o)if(P==1){w=_.m?_.m.length:0,_=Date.now()-_.F;var Y=h.B;P=Kh(),pr(P,new Yh(P,w)),Bv(h)}else YO(h);else if(Y=_.s,Y==3||Y==0&&0<_.X||!(P==1&&uG(h,_)||P==2&&oC(h)))switch(w&&0<w.length&&(_=h.h,_.i=_.i.concat(w)),Y){case 1:Yu(h,5);break;case 4:Yu(h,10);break;case 3:Yu(h,6);break;default:Yu(h,2)}}}function JO(h,_){let w=h.Ta+Math.floor(Math.random()*h.cb);return h.isActive()||(w*=2),w*_}function Yu(h,_){if(h.j.info("Error code "+_),_==2){var w=f(h.fb,h),P=h.Xa;let Y=!P;P=new Ku(P||"//www.google.com/images/cleardot.gif"),o.location&&o.location.protocol=="http"||Mv(P,"https"),Pv(P),Y?nG(P.toString(),w):iG(P.toString(),w)}else bi(2);h.G=0,h.l&&h.l.sa(_),ZO(h),WO(h)}r.fb=function(h){h?(this.j.info("Successfully pinged google.com"),bi(2)):(this.j.info("Failed to ping google.com"),bi(1))};function ZO(h){if(h.G=0,h.ka=[],h.l){let _=MO(h.h);(_.length!=0||h.i.length!=0)&&(v(h.ka,_),v(h.ka,h.i),h.h.i.length=0,y(h.i),h.i.length=0),h.l.ra()}}function eF(h,_,w){var P=w instanceof Ku?Cl(w):new Ku(w);if(P.g!="")_&&(P.g=_+"."+P.g),kv(P,P.s);else{var Y=o.location;P=Y.protocol,_=_?_+"."+Y.hostname:Y.hostname,Y=+Y.port;var ie=new Ku(null);P&&Mv(ie,P),_&&(ie.g=_),Y&&kv(ie,Y),w&&(ie.l=w),P=ie}return w=h.D,_=h.ya,w&&_&&jr(P,w,_),jr(P,"VER",h.la),Kp(h,P),P}function tF(h,_,w){if(_&&!h.J)throw Error("Can't create secondary domain capable XhrIo object.");return _=h.Ca&&!h.pa?new un(new $p({eb:w})):new un(h.pa),_.Ha(h.J),_}r.isActive=function(){return!!this.l&&this.l.isActive(this)};function rF(){}r=rF.prototype,r.ua=function(){},r.ta=function(){},r.sa=function(){},r.ra=function(){},r.isActive=function(){return!0},r.Na=function(){};function Lv(){}Lv.prototype.g=function(h,_){return new Za(h,_)};function Za(h,_){cn.call(this),this.g=new GO(_),this.l=h,this.h=_&&_.messageUrlParams||null,h=_&&_.messageHeaders||null,_&&_.clientProtocolHeaderRequired&&(h?h["X-Client-Protocol"]="webchannel":h={"X-Client-Protocol":"webchannel"}),this.g.o=h,h=_&&_.initMessageHeaders||null,_&&_.messageContentType&&(h?h["X-WebChannel-Content-Type"]=_.messageContentType:h={"X-WebChannel-Content-Type":_.messageContentType}),_&&_.va&&(h?h["X-WebChannel-Client-Profile"]=_.va:h={"X-WebChannel-Client-Profile":_.va}),this.g.S=h,(h=_&&_.Sb)&&!C(h)&&(this.g.m=h),this.v=_&&_.supportsCrossDomainXhr||!1,this.u=_&&_.sendRawJson||!1,(_=_&&_.httpSessionIdParam)&&!C(_)&&(this.g.D=_,h=this.h,h!==null&&_ in h&&(h=this.h,_ in h&&delete h[_])),this.j=new Jh(this)}g(Za,cn),Za.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},Za.prototype.close=function(){sC(this.g)},Za.prototype.o=function(h){var _=this.g;if(typeof h=="string"){var w={};w.__data__=h,h=w}else this.u&&(w={},w.__data__=Lp(h),h=w);_.i.push(new qu(_.Ya++,h)),_.G==3&&Bv(_)},Za.prototype.N=function(){this.g.l=null,delete this.j,sC(this.g),delete this.g,Za.aa.N.call(this)};function nF(h){bc.call(this),h.__headers__&&(this.headers=h.__headers__,this.statusCode=h.__status__,delete h.__headers__,delete h.__status__);var _=h.__sm__;if(_){e:{for(let w in _){h=w;break e}h=void 0}(this.i=h)&&(h=this.i,_=_!==null&&h in _?_[h]:void 0),this.data=_}else this.data=h}g(nF,bc);function iF(){Up.call(this),this.status=1}g(iF,Up);function Jh(h){this.g=h}g(Jh,rF),Jh.prototype.ua=function(){pr(this.g,"a")},Jh.prototype.ta=function(h){pr(this.g,new nF(h))},Jh.prototype.sa=function(h){pr(this.g,new iF)},Jh.prototype.ra=function(){pr(this.g,"b")},Lv.prototype.createWebChannel=Lv.prototype.g,Za.prototype.send=Za.prototype.o,Za.prototype.open=Za.prototype.m,Za.prototype.close=Za.prototype.close,zS=zl.createWebChannelTransport=function(){return new Lv},US=zl.getStatEventTarget=function(){return Kh()},VS=zl.Event=El,Z_=zl.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},U.NO_ERROR=0,U.TIMEOUT=8,U.HTTP_ERROR=6,Rg=zl.ErrorCode=U,z.COMPLETE="complete",LS=zl.EventType=z,Cv.EventType=Hu,Hu.OPEN="a",Hu.CLOSE="b",Hu.ERROR="c",Hu.MESSAGE="d",cn.prototype.listen=cn.prototype.K,yf=zl.WebChannel=Cv,tX=zl.FetchXmlHttpFactory=$p,un.prototype.listenOnce=un.prototype.L,un.prototype.getLastError=un.prototype.Ka,un.prototype.getLastErrorCode=un.prototype.Ba,un.prototype.getStatus=un.prototype.Z,un.prototype.getResponseJson=un.prototype.Oa,un.prototype.getResponseText=un.prototype.oa,un.prototype.send=un.prototype.ea,un.prototype.setWithCredentials=un.prototype.Ha,NS=zl.XhrIo=un}).apply(typeof J_<"u"?J_:typeof self<"u"?self:typeof window<"u"?window:{});var MN="@firebase/firestore",kN="4.8.0";var $i=class{constructor(e){this.uid=e}isAuthenticated(){return this.uid!=null}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}};$i.UNAUTHENTICATED=new $i(null),$i.GOOGLE_CREDENTIALS=new $i("google-credentials-uid"),$i.FIRST_PARTY=new $i("first-party-uid"),$i.MOCK_USER=new $i("mock-user");var Of="11.10.0";var wd=new Ts("@firebase/firestore");function vf(){return wd.logLevel}function tt(r,...e){if(wd.logLevel<=Wt.DEBUG){let t=e.map(FA);wd.debug(`Firestore (${Of}): ${r}`,...t)}}function Hl(r,...e){if(wd.logLevel<=Wt.ERROR){let t=e.map(FA);wd.error(`Firestore (${Of}): ${r}`,...t)}}function Id(r,...e){if(wd.logLevel<=Wt.WARN){let t=e.map(FA);wd.warn(`Firestore (${Of}): ${r}`,...t)}}function FA(r){if(typeof r=="string")return r;try{return(function(t){return JSON.stringify(t)})(r)}catch{return r}}function ut(r,e,t){let n="Unexpected state";typeof e=="string"?n=e:t=e,IL(r,n,t)}function IL(r,e,t){let n=`FIRESTORE (${Of}) INTERNAL ASSERTION FAILED: ${e} (ID: ${r.toString(16)})`;if(t!==void 0)try{n+=" CONTEXT: "+JSON.stringify(t)}catch{n+=" CONTEXT: "+t}throw Hl(n),new Error(n)}function nr(r,e,t,n){let i="Unexpected state";typeof t=="string"?i=t:n=t,r||IL(e,i,n)}function Tt(r,e){return r}var ae={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},Me=class extends Tn{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}};var ss=class{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};var GS=class{constructor(e,t){this.user=t,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}},WS=class{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable(()=>t($i.UNAUTHENTICATED))}shutdown(){}};var qS=class{constructor(e){this.t=e,this.currentUser=$i.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){nr(this.o===void 0,42304);let n=this.i,i=l=>this.i!==n?(n=this.i,t(l)):Promise.resolve(),a=new ss;this.o=()=>{this.i++,this.currentUser=this.u(),a.resolve(),a=new ss,e.enqueueRetryable(()=>i(this.currentUser))};let s=()=>{let l=a;e.enqueueRetryable(()=>m(this,null,function*(){yield l.promise,yield i(this.currentUser)}))},o=l=>{tt("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=l,this.o&&(this.auth.addAuthTokenListener(this.o),s())};this.t.onInit(l=>o(l)),setTimeout(()=>{if(!this.auth){let l=this.t.getImmediate({optional:!0});l?o(l):(tt("FirebaseAuthCredentialsProvider","Auth not yet detected"),a.resolve(),a=new ss)}},0),s()}getToken(){let e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then(n=>this.i!==e?(tt("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):n?(nr(typeof n.accessToken=="string",31837,{l:n}),new GS(n.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.o&&this.auth.removeAuthTokenListener(this.o),this.o=void 0}u(){let e=this.auth&&this.auth.getUid();return nr(e===null||typeof e=="string",2055,{h:e}),new $i(e)}},KS=class{constructor(e,t,n){this.P=e,this.T=t,this.I=n,this.type="FirstParty",this.user=$i.FIRST_PARTY,this.A=new Map}R(){return this.I?this.I():null}get headers(){this.A.set("X-Goog-AuthUser",this.P);let e=this.R();return e&&this.A.set("Authorization",e),this.T&&this.A.set("X-Goog-Iam-Authorization-Token",this.T),this.A}},YS=class{constructor(e,t,n){this.P=e,this.T=t,this.I=n}getToken(){return Promise.resolve(new KS(this.P,this.T,this.I))}start(e,t){e.enqueueRetryable(()=>t($i.FIRST_PARTY))}shutdown(){}invalidateToken(){}},sb=class{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}},XS=class{constructor(e,t){this.V=t,this.forceRefresh=!1,this.appCheck=null,this.m=null,this.p=null,Cn(e)&&e.settings.appCheckToken&&(this.p=e.settings.appCheckToken)}start(e,t){nr(this.o===void 0,3512);let n=a=>{a.error!=null&&tt("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${a.error.message}`);let s=a.token!==this.m;return this.m=a.token,tt("FirebaseAppCheckTokenProvider",`Received ${s?"new":"existing"} token.`),s?t(a.token):Promise.resolve()};this.o=a=>{e.enqueueRetryable(()=>n(a))};let i=a=>{tt("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=a,this.o&&this.appCheck.addTokenListener(this.o)};this.V.onInit(a=>i(a)),setTimeout(()=>{if(!this.appCheck){let a=this.V.getImmediate({optional:!0});a?i(a):tt("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){if(this.p)return Promise.resolve(new sb(this.p));let e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then(t=>t?(nr(typeof t.token=="string",44558,{tokenResult:t}),this.m=t.token,new sb(t.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.o&&this.appCheck.removeTokenListener(this.o),this.o=void 0}};function rX(r){let e=typeof self<"u"&&(self.crypto||self.msCrypto),t=new Uint8Array(r);if(e&&typeof e.getRandomValues=="function")e.getRandomValues(t);else for(let n=0;n<r;n++)t[n]=Math.floor(256*Math.random());return t}function xL(){return new TextEncoder}var Vg=class{static newId(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=62*Math.floor(4.129032258064516),n="";for(;n.length<20;){let i=rX(40);for(let a=0;a<i.length;++a)n.length<20&&i[a]<t&&(n+=e.charAt(i[a]%62))}return n}};function qt(r,e){return r<e?-1:r>e?1:0}function QS(r,e){let t=0;for(;t<r.length&&t<e.length;){let n=r.codePointAt(t),i=e.codePointAt(t);if(n!==i){if(n<128&&i<128)return qt(n,i);{let a=xL(),s=nX(a.encode(PN(r,t)),a.encode(PN(e,t)));return s!==0?s:qt(n,i)}}t+=n>65535?2:1}return qt(r.length,e.length)}function PN(r,e){return r.codePointAt(e)>65535?r.substring(e,e+2):r.substring(e,e+1)}function nX(r,e){for(let t=0;t<r.length&&t<e.length;++t)if(r[t]!==e[t])return qt(r[t],e[t]);return qt(r.length,e.length)}function Tf(r,e,t){return r.length===e.length&&r.every((n,i)=>t(n,e[i]))}var RN="__name__",ob=class r{constructor(e,t,n){t===void 0?t=0:t>e.length&&ut(637,{offset:t,range:e.length}),n===void 0?n=e.length-t:n>e.length-t&&ut(1746,{length:n,range:e.length-t}),this.segments=e,this.offset=t,this.len=n}get length(){return this.len}isEqual(e){return r.comparator(this,e)===0}child(e){let t=this.segments.slice(this.offset,this.limit());return e instanceof r?e.forEach(n=>{t.push(n)}):t.push(e),this.construct(t)}limit(){return this.offset+this.length}popFirst(e){return e=e===void 0?1:e,this.construct(this.segments,this.offset+e,this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return this.length===0}isPrefixOf(e){if(e.length<this.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}forEach(e){for(let t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){let n=Math.min(e.length,t.length);for(let i=0;i<n;i++){let a=r.compareSegments(e.get(i),t.get(i));if(a!==0)return a}return qt(e.length,t.length)}static compareSegments(e,t){let n=r.isNumericId(e),i=r.isNumericId(t);return n&&!i?-1:!n&&i?1:n&&i?r.extractNumericId(e).compare(r.extractNumericId(t)):QS(e,t)}static isNumericId(e){return e.startsWith("__id")&&e.endsWith("__")}static extractNumericId(e){return Ul.fromString(e.substring(4,e.length-2))}},Br=class r extends ob{construct(e,t,n){return new r(e,t,n)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...e){let t=[];for(let n of e){if(n.indexOf("//")>=0)throw new Me(ae.INVALID_ARGUMENT,`Invalid segment (${n}). Paths must not contain // in them.`);t.push(...n.split("/").filter(i=>i.length>0))}return new r(t)}static emptyPath(){return new r([])}},iX=/^[_a-zA-Z][_a-zA-Z0-9]*$/,os=class r extends ob{construct(e,t,n){return new r(e,t,n)}static isValidIdentifier(e){return iX.test(e)}canonicalString(){return this.toArray().map(e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),r.isValidIdentifier(e)||(e="`"+e+"`"),e)).join(".")}toString(){return this.canonicalString()}isKeyField(){return this.length===1&&this.get(0)===RN}static keyField(){return new r([RN])}static fromServerFormat(e){let t=[],n="",i=0,a=()=>{if(n.length===0)throw new Me(ae.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);t.push(n),n=""},s=!1;for(;i<e.length;){let o=e[i];if(o==="\\"){if(i+1===e.length)throw new Me(ae.INVALID_ARGUMENT,"Path has trailing escape character: "+e);let l=e[i+1];if(l!=="\\"&&l!=="."&&l!=="`")throw new Me(ae.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);n+=l,i+=2}else o==="`"?(s=!s,i++):o!=="."||s?(n+=o,i++):(a(),i++)}if(a(),s)throw new Me(ae.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new r(t)}static emptyPath(){return new r([])}};var lt=class r{constructor(e){this.path=e}static fromPath(e){return new r(Br.fromString(e))}static fromName(e){return new r(Br.fromString(e).popFirst(5))}static empty(){return new r(Br.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return e!==null&&Br.comparator(this.path,e.path)===0}toString(){return this.path.toString()}static comparator(e,t){return Br.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new r(new Br(e.slice()))}};function EL(r,e,t){if(!t)throw new Me(ae.INVALID_ARGUMENT,`Function ${r}() cannot be called with an empty ${e}.`)}function aX(r,e,t,n){if(e===!0&&n===!0)throw new Me(ae.INVALID_ARGUMENT,`${r} and ${t} cannot be used together.`)}function ON(r){if(!lt.isDocumentKey(r))throw new Me(ae.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${r} has ${r.length}.`)}function FN(r){if(lt.isDocumentKey(r))throw new Me(ae.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${r} has ${r.length}.`)}function TL(r){return typeof r=="object"&&r!==null&&(Object.getPrototypeOf(r)===Object.prototype||Object.getPrototypeOf(r)===null)}function jb(r){if(r===void 0)return"undefined";if(r===null)return"null";if(typeof r=="string")return r.length>20&&(r=`${r.substring(0,20)}...`),JSON.stringify(r);if(typeof r=="number"||typeof r=="boolean")return""+r;if(typeof r=="object"){if(r instanceof Array)return"an array";{let e=(function(n){return n.constructor?n.constructor.name:null})(r);return e?`a custom ${e} object`:"an object"}}return typeof r=="function"?"a function":ut(12329,{type:typeof r})}function ya(r,e){if("_delegate"in r&&(r=r._delegate),!(r instanceof e)){if(e.name===r.constructor.name)throw new Me(ae.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{let t=jb(r);throw new Me(ae.INVALID_ARGUMENT,`Expected type '${e.name}', but it was: ${t}`)}}return r}function CL(r,e){if(e<=0)throw new Me(ae.INVALID_ARGUMENT,`Function ${r}() requires a positive number, but it was: ${e}.`)}function zn(r,e){let t={typeString:r};return e&&(t.value=e),t}function e0(r,e){if(!TL(r))throw new Me(ae.INVALID_ARGUMENT,"JSON must be an object");let t;for(let n in e)if(e[n]){let i=e[n].typeString,a="value"in e[n]?{value:e[n].value}:void 0;if(!(n in r)){t=`JSON missing required field: '${n}'`;break}let s=r[n];if(i&&typeof s!==i){t=`JSON field '${n}' must be a ${i}.`;break}if(a!==void 0&&s!==a.value){t=`Expected '${n}' field to equal '${a.value}'`;break}}if(t)throw new Me(ae.INVALID_ARGUMENT,t);return!0}var BN=-62135596800,NN=1e6,jn=class r{static now(){return r.fromMillis(Date.now())}static fromDate(e){return r.fromMillis(e.getTime())}static fromMillis(e){let t=Math.floor(e/1e3),n=Math.floor((e-1e3*t)*NN);return new r(t,n)}constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new Me(ae.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new Me(ae.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<BN)throw new Me(ae.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new Me(ae.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/NN}_compareTo(e){return this.seconds===e.seconds?qt(this.nanoseconds,e.nanoseconds):qt(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{type:r._jsonSchemaVersion,seconds:this.seconds,nanoseconds:this.nanoseconds}}static fromJSON(e){if(e0(e,r._jsonSchema))return new r(e.seconds,e.nanoseconds)}valueOf(){let e=this.seconds-BN;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}};jn._jsonSchemaVersion="firestore/timestamp/1.0",jn._jsonSchema={type:zn("string",jn._jsonSchemaVersion),seconds:zn("number"),nanoseconds:zn("number")};var Dt=class r{static fromTimestamp(e){return new r(e)}static min(){return new r(new jn(0,0))}static max(){return new r(new jn(253402300799,999999999))}constructor(e){this.timestamp=e}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}};var Ug=-1,JS=class{constructor(e,t,n,i){this.indexId=e,this.collectionGroup=t,this.fields=n,this.indexState=i}};JS.UNKNOWN_ID=-1;function sX(r,e){let t=r.toTimestamp().seconds,n=r.toTimestamp().nanoseconds+1,i=Dt.fromTimestamp(n===1e9?new jn(t+1,0):new jn(t,n));return new xd(i,lt.empty(),e)}function oX(r){return new xd(r.readTime,r.key,Ug)}var xd=class r{constructor(e,t,n){this.readTime=e,this.documentKey=t,this.largestBatchId=n}static min(){return new r(Dt.min(),lt.empty(),Ug)}static max(){return new r(Dt.max(),lt.empty(),Ug)}};function lX(r,e){let t=r.readTime.compareTo(e.readTime);return t!==0?t:(t=lt.comparator(r.documentKey,e.documentKey),t!==0?t:qt(r.largestBatchId,e.largestBatchId))}var cX="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.",ZS=class{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(e=>e())}};function Ff(r){return m(this,null,function*(){if(r.code!==ae.FAILED_PRECONDITION||r.message!==cX)throw r;tt("LocalStore","Unexpectedly lost primary lease")})}var Ie=class r{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e(t=>{this.isDone=!0,this.result=t,this.nextCallback&&this.nextCallback(t)},t=>{this.isDone=!0,this.error=t,this.catchCallback&&this.catchCallback(t)})}catch(e){return this.next(void 0,e)}next(e,t){return this.callbackAttached&&ut(59440),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(t,this.error):this.wrapSuccess(e,this.result):new r((n,i)=>{this.nextCallback=a=>{this.wrapSuccess(e,a).next(n,i)},this.catchCallback=a=>{this.wrapFailure(t,a).next(n,i)}})}toPromise(){return new Promise((e,t)=>{this.next(e,t)})}wrapUserFunction(e){try{let t=e();return t instanceof r?t:r.resolve(t)}catch(t){return r.reject(t)}}wrapSuccess(e,t){return e?this.wrapUserFunction(()=>e(t)):r.resolve(t)}wrapFailure(e,t){return e?this.wrapUserFunction(()=>e(t)):r.reject(t)}static resolve(e){return new r((t,n)=>{t(e)})}static reject(e){return new r((t,n)=>{n(e)})}static waitFor(e){return new r((t,n)=>{let i=0,a=0,s=!1;e.forEach(o=>{++i,o.next(()=>{++a,s&&a===i&&t()},l=>n(l))}),s=!0,a===i&&t()})}static or(e){let t=r.resolve(!1);for(let n of e)t=t.next(i=>i?r.resolve(i):n());return t}static forEach(e,t){let n=[];return e.forEach((i,a)=>{n.push(t.call(this,i,a))}),this.waitFor(n)}static mapArray(e,t){return new r((n,i)=>{let a=e.length,s=new Array(a),o=0;for(let l=0;l<a;l++){let c=l;t(e[c]).next(u=>{s[c]=u,++o,o===a&&n(s)},u=>i(u))}})}static doWhile(e,t){return new r((n,i)=>{let a=()=>{e()===!0?t().next(()=>{a()},i):n()};a()})}};function uX(r){let e=r.match(/Android ([\d.]+)/i),t=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(t)}function Bf(r){return r.name==="IndexedDbTransactionError"}var BA=(()=>{class r{constructor(t,n){this.previousValue=t,n&&(n.sequenceNumberHandler=i=>this._e(i),this.ae=i=>n.writeSequenceNumber(i))}_e(t){return this.previousValue=Math.max(t,this.previousValue),this.previousValue}next(){let t=++this.previousValue;return this.ae&&this.ae(t),t}}r.ue=-1;return r})(),NA=-1;function t0(r){return r==null}function zg(r){return r===0&&1/r==-1/0}function dX(r){return typeof r=="number"&&Number.isInteger(r)&&!zg(r)&&r<=Number.MAX_SAFE_INTEGER&&r>=Number.MIN_SAFE_INTEGER}var SL="�";function hX(r){let e="";for(let t=0;t<r.length;t++)e.length>0&&(e=LN(e)),e=fX(r.get(t),e);return LN(e)}function fX(r,e){let t=e,n=r.length;for(let i=0;i<n;i++){let a=r.charAt(i);switch(a){case"\0":t+="��";break;case SL:t+="��";break;default:t+=a}}return t}function LN(r){return r+SL+"�"}var mX="remoteDocuments",DL="owner";var AL="mutationQueues";var ML="mutations";var kL="documentMutations",pX="remoteDocumentsV14";var PL="remoteDocumentGlobal";var RL="targets";var OL="targetDocuments";var FL="targetGlobal",BL="collectionParents";var NL="clientMetadata";var LL="bundles";var VL="namedQueries";var gX="indexConfiguration";var yX="indexState";var vX="indexEntries";var UL="documentOverlays";var _X="globals";var bX=[AL,ML,kL,mX,RL,DL,FL,OL,NL,PL,BL,LL,VL],zTe=[...bX,UL],wX=[AL,ML,kL,pX,RL,DL,FL,OL,NL,PL,BL,LL,VL,UL],IX=wX,xX=[...IX,gX,yX,vX];var jTe=[...xX,_X];function VN(r){let e=0;for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&e++;return e}function Yc(r,e){for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&e(t,r[t])}function EX(r,e){let t=[];for(let n in r)Object.prototype.hasOwnProperty.call(r,n)&&t.push(e(r[n],n,r));return t}function zL(r){for(let e in r)if(Object.prototype.hasOwnProperty.call(r,e))return!1;return!0}var pn=class r{constructor(e,t){this.comparator=e,this.root=t||Uo.EMPTY}insert(e,t){return new r(this.comparator,this.root.insert(e,t,this.comparator).copy(null,null,Uo.BLACK,null,null))}remove(e){return new r(this.comparator,this.root.remove(e,this.comparator).copy(null,null,Uo.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){let n=this.comparator(e,t.key);if(n===0)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null}indexOf(e){let t=0,n=this.root;for(;!n.isEmpty();){let i=this.comparator(e,n.key);if(i===0)return t+n.left.size;i<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal((t,n)=>(e(t,n),!1))}toString(){let e=[];return this.inorderTraversal((t,n)=>(e.push(`${t}:${n}`),!1)),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new wf(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new wf(this.root,e,this.comparator,!1)}getReverseIterator(){return new wf(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new wf(this.root,e,this.comparator,!0)}},wf=class{constructor(e,t,n,i){this.isReverse=i,this.nodeStack=[];let a=1;for(;!e.isEmpty();)if(a=t?n(e.key,t):1,t&&i&&(a*=-1),a<0)e=this.isReverse?e.left:e.right;else{if(a===0){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop(),t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t}hasNext(){return this.nodeStack.length>0}peek(){if(this.nodeStack.length===0)return null;let e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}},Uo=class r{constructor(e,t,n,i,a){this.key=e,this.value=t,this.color=n??r.RED,this.left=i??r.EMPTY,this.right=a??r.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,t,n,i,a){return new r(e??this.key,t??this.value,n??this.color,i??this.left,a??this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,n){let i=this,a=n(e,i.key);return i=a<0?i.copy(null,null,null,i.left.insert(e,t,n),null):a===0?i.copy(null,t,null,null,null):i.copy(null,null,null,null,i.right.insert(e,t,n)),i.fixUp()}removeMin(){if(this.left.isEmpty())return r.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,t){let n,i=this;if(t(e,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(e,t),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),t(e,i.key)===0){if(i.right.isEmpty())return r.EMPTY;n=i.right.min(),i=i.copy(n.key,n.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(e,t))}return i.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){let e=this.copy(null,null,r.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){let e=this.copy(null,null,r.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){let e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth(){let e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed())throw ut(43730,{key:this.key,value:this.value});if(this.right.isRed())throw ut(14113,{key:this.key,value:this.value});let e=this.left.check();if(e!==this.right.check())throw ut(27949);return e+(this.isRed()?0:1)}};Uo.EMPTY=null,Uo.RED=!0,Uo.BLACK=!1;Uo.EMPTY=new class{constructor(){this.size=0}get key(){throw ut(57766)}get value(){throw ut(16141)}get color(){throw ut(16727)}get left(){throw ut(29726)}get right(){throw ut(36894)}copy(e,t,n,i,a){return this}insert(e,t,n){return new Uo(e,t)}remove(e,t){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};var li=class r{constructor(e){this.comparator=e,this.data=new pn(this.comparator)}has(e){return this.data.get(e)!==null}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal((t,n)=>(e(t),!1))}forEachInRange(e,t){let n=this.data.getIteratorFrom(e[0]);for(;n.hasNext();){let i=n.getNext();if(this.comparator(i.key,e[1])>=0)return;t(i.key)}}forEachWhile(e,t){let n;for(n=t!==void 0?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();)if(!e(n.getNext().key))return}firstAfterOrEqual(e){let t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new lb(this.data.getIterator())}getIteratorFrom(e){return new lb(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let t=this;return t.size<e.size&&(t=e,e=this),e.forEach(n=>{t=t.add(n)}),t}isEqual(e){if(!(e instanceof r)||this.size!==e.size)return!1;let t=this.data.getIterator(),n=e.data.getIterator();for(;t.hasNext();){let i=t.getNext().key,a=n.getNext().key;if(this.comparator(i,a)!==0)return!1}return!0}toArray(){let e=[];return this.forEach(t=>{e.push(t)}),e}toString(){let e=[];return this.forEach(t=>e.push(t)),"SortedSet("+e.toString()+")"}copy(e){let t=new r(this.comparator);return t.data=e,t}},lb=class{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}};var As=class r{constructor(e){this.fields=e,e.sort(os.comparator)}static empty(){return new r([])}unionWith(e){let t=new li(os.comparator);for(let n of this.fields)t=t.add(n);for(let n of e)t=t.add(n);return new r(t.toArray())}covers(e){for(let t of this.fields)if(t.isPrefixOf(e))return!0;return!1}isEqual(e){return Tf(this.fields,e.fields,(t,n)=>t.isEqual(n))}};var cb=class extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}};var Gi=class r{constructor(e){this.binaryString=e}static fromBase64String(e){let t=(function(i){try{return atob(i)}catch(a){throw typeof DOMException<"u"&&a instanceof DOMException?new cb("Invalid base64 string: "+a):a}})(e);return new r(t)}static fromUint8Array(e){let t=(function(i){let a="";for(let s=0;s<i.length;++s)a+=String.fromCharCode(i[s]);return a})(e);return new r(t)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return(function(t){return btoa(t)})(this.binaryString)}toUint8Array(){return(function(t){let n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n})(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return qt(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}};Gi.EMPTY_BYTE_STRING=new Gi("");var TX=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function $l(r){if(nr(!!r,39018),typeof r=="string"){let e=0,t=TX.exec(r);if(nr(!!t,46558,{timestamp:r}),t[1]){let i=t[1];i=(i+"000000000").substr(0,9),e=Number(i)}let n=new Date(r);return{seconds:Math.floor(n.getTime()/1e3),nanos:e}}return{seconds:Qr(r.seconds),nanos:Qr(r.nanos)}}function Qr(r){return typeof r=="number"?r:typeof r=="string"?Number(r):0}function Gl(r){return typeof r=="string"?Gi.fromBase64String(r):Gi.fromUint8Array(r)}var jL="server_timestamp",HL="__type__",$L="__previous_value__",GL="__local_write_time__";function Hb(r){var e,t;return((t=(((e=r?.mapValue)===null||e===void 0?void 0:e.fields)||{})[HL])===null||t===void 0?void 0:t.stringValue)===jL}function $b(r){let e=r.mapValue.fields[$L];return Hb(e)?$b(e):e}function jg(r){let e=$l(r.mapValue.fields[GL].timestampValue);return new jn(e.seconds,e.nanos)}var eD=class{constructor(e,t,n,i,a,s,o,l,c,u){this.databaseId=e,this.appId=t,this.persistenceKey=n,this.host=i,this.ssl=a,this.forceLongPolling=s,this.autoDetectLongPolling=o,this.longPollingOptions=l,this.useFetchStreams=c,this.isUsingEmulator=u}},ub="(default)",db=class r{constructor(e,t){this.projectId=e,this.database=t||ub}static empty(){return new r("","")}get isDefaultDatabase(){return this.database===ub}isEqual(e){return e instanceof r&&e.projectId===this.projectId&&e.database===this.database}};var LA="__type__",WL="__max__",eb={mapValue:{fields:{__type__:{stringValue:WL}}}},VA="__vector__",Cf="value";function $c(r){return"nullValue"in r?0:"booleanValue"in r?1:"integerValue"in r||"doubleValue"in r?2:"timestampValue"in r?3:"stringValue"in r?5:"bytesValue"in r?6:"referenceValue"in r?7:"geoPointValue"in r?8:"arrayValue"in r?9:"mapValue"in r?Hb(r)?4:KL(r)?9007199254740991:qL(r)?10:11:ut(28295,{value:r})}function jo(r,e){if(r===e)return!0;let t=$c(r);if(t!==$c(e))return!1;switch(t){case 0:case 9007199254740991:return!0;case 1:return r.booleanValue===e.booleanValue;case 4:return jg(r).isEqual(jg(e));case 3:return(function(i,a){if(typeof i.timestampValue=="string"&&typeof a.timestampValue=="string"&&i.timestampValue.length===a.timestampValue.length)return i.timestampValue===a.timestampValue;let s=$l(i.timestampValue),o=$l(a.timestampValue);return s.seconds===o.seconds&&s.nanos===o.nanos})(r,e);case 5:return r.stringValue===e.stringValue;case 6:return(function(i,a){return Gl(i.bytesValue).isEqual(Gl(a.bytesValue))})(r,e);case 7:return r.referenceValue===e.referenceValue;case 8:return(function(i,a){return Qr(i.geoPointValue.latitude)===Qr(a.geoPointValue.latitude)&&Qr(i.geoPointValue.longitude)===Qr(a.geoPointValue.longitude)})(r,e);case 2:return(function(i,a){if("integerValue"in i&&"integerValue"in a)return Qr(i.integerValue)===Qr(a.integerValue);if("doubleValue"in i&&"doubleValue"in a){let s=Qr(i.doubleValue),o=Qr(a.doubleValue);return s===o?zg(s)===zg(o):isNaN(s)&&isNaN(o)}return!1})(r,e);case 9:return Tf(r.arrayValue.values||[],e.arrayValue.values||[],jo);case 10:case 11:return(function(i,a){let s=i.mapValue.fields||{},o=a.mapValue.fields||{};if(VN(s)!==VN(o))return!1;for(let l in s)if(s.hasOwnProperty(l)&&(o[l]===void 0||!jo(s[l],o[l])))return!1;return!0})(r,e);default:return ut(52216,{left:r})}}function Hg(r,e){return(r.values||[]).find(t=>jo(t,e))!==void 0}function Sf(r,e){if(r===e)return 0;let t=$c(r),n=$c(e);if(t!==n)return qt(t,n);switch(t){case 0:case 9007199254740991:return 0;case 1:return qt(r.booleanValue,e.booleanValue);case 2:return(function(a,s){let o=Qr(a.integerValue||a.doubleValue),l=Qr(s.integerValue||s.doubleValue);return o<l?-1:o>l?1:o===l?0:isNaN(o)?isNaN(l)?0:-1:1})(r,e);case 3:return UN(r.timestampValue,e.timestampValue);case 4:return UN(jg(r),jg(e));case 5:return QS(r.stringValue,e.stringValue);case 6:return(function(a,s){let o=Gl(a),l=Gl(s);return o.compareTo(l)})(r.bytesValue,e.bytesValue);case 7:return(function(a,s){let o=a.split("/"),l=s.split("/");for(let c=0;c<o.length&&c<l.length;c++){let u=qt(o[c],l[c]);if(u!==0)return u}return qt(o.length,l.length)})(r.referenceValue,e.referenceValue);case 8:return(function(a,s){let o=qt(Qr(a.latitude),Qr(s.latitude));return o!==0?o:qt(Qr(a.longitude),Qr(s.longitude))})(r.geoPointValue,e.geoPointValue);case 9:return zN(r.arrayValue,e.arrayValue);case 10:return(function(a,s){var o,l,c,u;let d=a.fields||{},f=s.fields||{},p=(o=d[Cf])===null||o===void 0?void 0:o.arrayValue,g=(l=f[Cf])===null||l===void 0?void 0:l.arrayValue,y=qt(((c=p?.values)===null||c===void 0?void 0:c.length)||0,((u=g?.values)===null||u===void 0?void 0:u.length)||0);return y!==0?y:zN(p,g)})(r.mapValue,e.mapValue);case 11:return(function(a,s){if(a===eb.mapValue&&s===eb.mapValue)return 0;if(a===eb.mapValue)return 1;if(s===eb.mapValue)return-1;let o=a.fields||{},l=Object.keys(o),c=s.fields||{},u=Object.keys(c);l.sort(),u.sort();for(let d=0;d<l.length&&d<u.length;++d){let f=QS(l[d],u[d]);if(f!==0)return f;let p=Sf(o[l[d]],c[u[d]]);if(p!==0)return p}return qt(l.length,u.length)})(r.mapValue,e.mapValue);default:throw ut(23264,{le:t})}}function UN(r,e){if(typeof r=="string"&&typeof e=="string"&&r.length===e.length)return qt(r,e);let t=$l(r),n=$l(e),i=qt(t.seconds,n.seconds);return i!==0?i:qt(t.nanos,n.nanos)}function zN(r,e){let t=r.values||[],n=e.values||[];for(let i=0;i<t.length&&i<n.length;++i){let a=Sf(t[i],n[i]);if(a)return a}return qt(t.length,n.length)}function Df(r){return tD(r)}function tD(r){return"nullValue"in r?"null":"booleanValue"in r?""+r.booleanValue:"integerValue"in r?""+r.integerValue:"doubleValue"in r?""+r.doubleValue:"timestampValue"in r?(function(t){let n=$l(t);return`time(${n.seconds},${n.nanos})`})(r.timestampValue):"stringValue"in r?r.stringValue:"bytesValue"in r?(function(t){return Gl(t).toBase64()})(r.bytesValue):"referenceValue"in r?(function(t){return lt.fromName(t).toString()})(r.referenceValue):"geoPointValue"in r?(function(t){return`geo(${t.latitude},${t.longitude})`})(r.geoPointValue):"arrayValue"in r?(function(t){let n="[",i=!0;for(let a of t.values||[])i?i=!1:n+=",",n+=tD(a);return n+"]"})(r.arrayValue):"mapValue"in r?(function(t){let n=Object.keys(t.fields||{}).sort(),i="{",a=!0;for(let s of n)a?a=!1:i+=",",i+=`${s}:${tD(t.fields[s])}`;return i+"}"})(r.mapValue):ut(61005,{value:r})}function nb(r){switch($c(r)){case 0:case 1:return 4;case 2:return 8;case 3:case 8:return 16;case 4:let e=$b(r);return e?16+nb(e):16;case 5:return 2*r.stringValue.length;case 6:return Gl(r.bytesValue).approximateByteSize();case 7:return r.referenceValue.length;case 9:return(function(n){return(n.values||[]).reduce((i,a)=>i+nb(a),0)})(r.arrayValue);case 10:case 11:return(function(n){let i=0;return Yc(n.fields,(a,s)=>{i+=a.length+nb(s)}),i})(r.mapValue);default:throw ut(13486,{value:r})}}function hb(r,e){return{referenceValue:`projects/${r.projectId}/databases/${r.database}/documents/${e.path.canonicalString()}`}}function rD(r){return!!r&&"integerValue"in r}function UA(r){return!!r&&"arrayValue"in r}function jN(r){return!!r&&"nullValue"in r}function HN(r){return!!r&&"doubleValue"in r&&isNaN(Number(r.doubleValue))}function ib(r){return!!r&&"mapValue"in r}function qL(r){var e,t;return((t=(((e=r?.mapValue)===null||e===void 0?void 0:e.fields)||{})[LA])===null||t===void 0?void 0:t.stringValue)===VA}function Fg(r){if(r.geoPointValue)return{geoPointValue:Object.assign({},r.geoPointValue)};if(r.timestampValue&&typeof r.timestampValue=="object")return{timestampValue:Object.assign({},r.timestampValue)};if(r.mapValue){let e={mapValue:{fields:{}}};return Yc(r.mapValue.fields,(t,n)=>e.mapValue.fields[t]=Fg(n)),e}if(r.arrayValue){let e={arrayValue:{values:[]}};for(let t=0;t<(r.arrayValue.values||[]).length;++t)e.arrayValue.values[t]=Fg(r.arrayValue.values[t]);return e}return Object.assign({},r)}function KL(r){return(((r.mapValue||{}).fields||{}).__type__||{}).stringValue===WL}var $Te={mapValue:{fields:{[LA]:{stringValue:VA},[Cf]:{arrayValue:{}}}}};var Ha=class r{constructor(e){this.value=e}static empty(){return new r({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let t=this.value;for(let n=0;n<e.length-1;++n)if(t=(t.mapValue.fields||{})[e.get(n)],!ib(t))return null;return t=(t.mapValue.fields||{})[e.lastSegment()],t||null}}set(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=Fg(t)}setAll(e){let t=os.emptyPath(),n={},i=[];e.forEach((s,o)=>{if(!t.isImmediateParentOf(o)){let l=this.getFieldsMap(t);this.applyChanges(l,n,i),n={},i=[],t=o.popLast()}s?n[o.lastSegment()]=Fg(s):i.push(o.lastSegment())});let a=this.getFieldsMap(t);this.applyChanges(a,n,i)}delete(e){let t=this.field(e.popLast());ib(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}isEqual(e){return jo(this.value,e.value)}getFieldsMap(e){let t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(let n=0;n<e.length;++n){let i=t.mapValue.fields[e.get(n)];ib(i)&&i.mapValue.fields||(i={mapValue:{fields:{}}},t.mapValue.fields[e.get(n)]=i),t=i}return t.mapValue.fields}applyChanges(e,t,n){Yc(t,(i,a)=>e[i]=a);for(let i of n)delete e[i]}clone(){return new r(Fg(this.value))}};function YL(r){let e=[];return Yc(r.fields,(t,n)=>{let i=new os([t]);if(ib(n)){let a=YL(n.mapValue).fields;if(a.length===0)e.push(i);else for(let s of a)e.push(i.child(s))}else e.push(i)}),new As(e)}var cs=class r{constructor(e,t,n,i,a,s,o){this.key=e,this.documentType=t,this.version=n,this.readTime=i,this.createTime=a,this.data=s,this.documentState=o}static newInvalidDocument(e){return new r(e,0,Dt.min(),Dt.min(),Dt.min(),Ha.empty(),0)}static newFoundDocument(e,t,n,i){return new r(e,1,t,Dt.min(),n,i,0)}static newNoDocument(e,t){return new r(e,2,t,Dt.min(),Dt.min(),Ha.empty(),0)}static newUnknownDocument(e,t){return new r(e,3,t,Dt.min(),Dt.min(),Ha.empty(),2)}convertToFoundDocument(e,t){return!this.createTime.isEqual(Dt.min())||this.documentType!==2&&this.documentType!==0||(this.createTime=e),this.version=e,this.documentType=1,this.data=t,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=Ha.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=Ha.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=Dt.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return this.documentState===1}get hasCommittedMutations(){return this.documentState===2}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return this.documentType!==0}isFoundDocument(){return this.documentType===1}isNoDocument(){return this.documentType===2}isUnknownDocument(){return this.documentType===3}isEqual(e){return e instanceof r&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)}mutableCopy(){return new r(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}};var Gc=class{constructor(e,t){this.position=e,this.inclusive=t}};function $N(r,e,t){let n=0;for(let i=0;i<r.position.length;i++){let a=e[i],s=r.position[i];if(a.field.isKeyField()?n=lt.comparator(lt.fromName(s.referenceValue),t.key):n=Sf(s,t.data.field(a.field)),a.dir==="desc"&&(n*=-1),n!==0)break}return n}function GN(r,e){if(r===null)return e===null;if(e===null||r.inclusive!==e.inclusive||r.position.length!==e.position.length)return!1;for(let t=0;t<r.position.length;t++)if(!jo(r.position[t],e.position[t]))return!1;return!0}var Ed=class{constructor(e,t="asc"){this.field=e,this.dir=t}};function CX(r,e){return r.dir===e.dir&&r.field.isEqual(e.field)}var fb=class{},Un=class r extends fb{constructor(e,t,n){super(),this.field=e,this.op=t,this.value=n}static create(e,t,n){return e.isKeyField()?t==="in"||t==="not-in"?this.createKeyFieldInFilter(e,t,n):new iD(e,t,n):t==="array-contains"?new oD(e,n):t==="in"?new lD(e,n):t==="not-in"?new cD(e,n):t==="array-contains-any"?new uD(e,n):new r(e,t,n)}static createKeyFieldInFilter(e,t,n){return t==="in"?new aD(e,n):new sD(e,n)}matches(e){let t=e.data.field(this.field);return this.op==="!="?t!==null&&t.nullValue===void 0&&this.matchesComparison(Sf(t,this.value)):t!==null&&$c(this.value)===$c(t)&&this.matchesComparison(Sf(t,this.value))}matchesComparison(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return e===0;case"!=":return e!==0;case">":return e>0;case">=":return e>=0;default:return ut(47266,{operator:this.op})}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}},ho=class r extends fb{constructor(e,t){super(),this.filters=e,this.op=t,this.he=null}static create(e,t){return new r(e,t)}matches(e){return XL(this)?this.filters.find(t=>!t.matches(e))===void 0:this.filters.find(t=>t.matches(e))!==void 0}getFlattenedFilters(){return this.he!==null||(this.he=this.filters.reduce((e,t)=>e.concat(t.getFlattenedFilters()),[])),this.he}getFilters(){return Object.assign([],this.filters)}};function XL(r){return r.op==="and"}function QL(r){return SX(r)&&XL(r)}function SX(r){for(let e of r.filters)if(e instanceof ho)return!1;return!0}function nD(r){if(r instanceof Un)return r.field.canonicalString()+r.op.toString()+Df(r.value);if(QL(r))return r.filters.map(e=>nD(e)).join(",");{let e=r.filters.map(t=>nD(t)).join(",");return`${r.op}(${e})`}}function JL(r,e){return r instanceof Un?(function(n,i){return i instanceof Un&&n.op===i.op&&n.field.isEqual(i.field)&&jo(n.value,i.value)})(r,e):r instanceof ho?(function(n,i){return i instanceof ho&&n.op===i.op&&n.filters.length===i.filters.length?n.filters.reduce((a,s,o)=>a&&JL(s,i.filters[o]),!0):!1})(r,e):void ut(19439)}function ZL(r){return r instanceof Un?(function(t){return`${t.field.canonicalString()} ${t.op} ${Df(t.value)}`})(r):r instanceof ho?(function(t){return t.op.toString()+" {"+t.getFilters().map(ZL).join(" ,")+"}"})(r):"Filter"}var iD=class extends Un{constructor(e,t,n){super(e,t,n),this.key=lt.fromName(n.referenceValue)}matches(e){let t=lt.comparator(e.key,this.key);return this.matchesComparison(t)}},aD=class extends Un{constructor(e,t){super(e,"in",t),this.keys=e4("in",t)}matches(e){return this.keys.some(t=>t.isEqual(e.key))}},sD=class extends Un{constructor(e,t){super(e,"not-in",t),this.keys=e4("not-in",t)}matches(e){return!this.keys.some(t=>t.isEqual(e.key))}};function e4(r,e){var t;return(((t=e.arrayValue)===null||t===void 0?void 0:t.values)||[]).map(n=>lt.fromName(n.referenceValue))}var oD=class extends Un{constructor(e,t){super(e,"array-contains",t)}matches(e){let t=e.data.field(this.field);return UA(t)&&Hg(t.arrayValue,this.value)}},lD=class extends Un{constructor(e,t){super(e,"in",t)}matches(e){let t=e.data.field(this.field);return t!==null&&Hg(this.value.arrayValue,t)}},cD=class extends Un{constructor(e,t){super(e,"not-in",t)}matches(e){if(Hg(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;let t=e.data.field(this.field);return t!==null&&t.nullValue===void 0&&!Hg(this.value.arrayValue,t)}},uD=class extends Un{constructor(e,t){super(e,"array-contains-any",t)}matches(e){let t=e.data.field(this.field);return!(!UA(t)||!t.arrayValue.values)&&t.arrayValue.values.some(n=>Hg(this.value.arrayValue,n))}};var dD=class{constructor(e,t=null,n=[],i=[],a=null,s=null,o=null){this.path=e,this.collectionGroup=t,this.orderBy=n,this.filters=i,this.limit=a,this.startAt=s,this.endAt=o,this.Pe=null}};function WN(r,e=null,t=[],n=[],i=null,a=null,s=null){return new dD(r,e,t,n,i,a,s)}function zA(r){let e=Tt(r);if(e.Pe===null){let t=e.path.canonicalString();e.collectionGroup!==null&&(t+="|cg:"+e.collectionGroup),t+="|f:",t+=e.filters.map(n=>nD(n)).join(","),t+="|ob:",t+=e.orderBy.map(n=>(function(a){return a.field.canonicalString()+a.dir})(n)).join(","),t0(e.limit)||(t+="|l:",t+=e.limit),e.startAt&&(t+="|lb:",t+=e.startAt.inclusive?"b:":"a:",t+=e.startAt.position.map(n=>Df(n)).join(",")),e.endAt&&(t+="|ub:",t+=e.endAt.inclusive?"a:":"b:",t+=e.endAt.position.map(n=>Df(n)).join(",")),e.Pe=t}return e.Pe}function jA(r,e){if(r.limit!==e.limit||r.orderBy.length!==e.orderBy.length)return!1;for(let t=0;t<r.orderBy.length;t++)if(!CX(r.orderBy[t],e.orderBy[t]))return!1;if(r.filters.length!==e.filters.length)return!1;for(let t=0;t<r.filters.length;t++)if(!JL(r.filters[t],e.filters[t]))return!1;return r.collectionGroup===e.collectionGroup&&!!r.path.isEqual(e.path)&&!!GN(r.startAt,e.startAt)&&GN(r.endAt,e.endAt)}function hD(r){return lt.isDocumentKey(r.path)&&r.collectionGroup===null&&r.filters.length===0}var Ho=class{constructor(e,t=null,n=[],i=[],a=null,s="F",o=null,l=null){this.path=e,this.collectionGroup=t,this.explicitOrderBy=n,this.filters=i,this.limit=a,this.limitType=s,this.startAt=o,this.endAt=l,this.Te=null,this.Ie=null,this.de=null,this.startAt,this.endAt}};function DX(r,e,t,n,i,a,s,o){return new Ho(r,e,t,n,i,a,s,o)}function Gb(r){return new Ho(r)}function qN(r){return r.filters.length===0&&r.limit===null&&r.startAt==null&&r.endAt==null&&(r.explicitOrderBy.length===0||r.explicitOrderBy.length===1&&r.explicitOrderBy[0].field.isKeyField())}function HA(r){return r.collectionGroup!==null}function If(r){let e=Tt(r);if(e.Te===null){e.Te=[];let t=new Set;for(let a of e.explicitOrderBy)e.Te.push(a),t.add(a.field.canonicalString());let n=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";(function(s){let o=new li(os.comparator);return s.filters.forEach(l=>{l.getFlattenedFilters().forEach(c=>{c.isInequality()&&(o=o.add(c.field))})}),o})(e).forEach(a=>{t.has(a.canonicalString())||a.isKeyField()||e.Te.push(new Ed(a,n))}),t.has(os.keyField().canonicalString())||e.Te.push(new Ed(os.keyField(),n))}return e.Te}function zo(r){let e=Tt(r);return e.Ie||(e.Ie=t4(e,If(r))),e.Ie}function AX(r){let e=Tt(r);return e.de||(e.de=t4(e,r.explicitOrderBy)),e.de}function t4(r,e){if(r.limitType==="F")return WN(r.path,r.collectionGroup,e,r.filters,r.limit,r.startAt,r.endAt);{e=e.map(i=>{let a=i.dir==="desc"?"asc":"desc";return new Ed(i.field,a)});let t=r.endAt?new Gc(r.endAt.position,r.endAt.inclusive):null,n=r.startAt?new Gc(r.startAt.position,r.startAt.inclusive):null;return WN(r.path,r.collectionGroup,e,r.filters,r.limit,t,n)}}function fD(r,e){let t=r.filters.concat([e]);return new Ho(r.path,r.collectionGroup,r.explicitOrderBy.slice(),t,r.limit,r.limitType,r.startAt,r.endAt)}function mb(r,e,t){return new Ho(r.path,r.collectionGroup,r.explicitOrderBy.slice(),r.filters.slice(),e,t,r.startAt,r.endAt)}function Wb(r,e){return jA(zo(r),zo(e))&&r.limitType===e.limitType}function r4(r){return`${zA(zo(r))}|lt:${r.limitType}`}function _f(r){return`Query(target=${(function(t){let n=t.path.canonicalString();return t.collectionGroup!==null&&(n+=" collectionGroup="+t.collectionGroup),t.filters.length>0&&(n+=`, filters: [${t.filters.map(i=>ZL(i)).join(", ")}]`),t0(t.limit)||(n+=", limit: "+t.limit),t.orderBy.length>0&&(n+=`, orderBy: [${t.orderBy.map(i=>(function(s){return`${s.field.canonicalString()} (${s.dir})`})(i)).join(", ")}]`),t.startAt&&(n+=", startAt: ",n+=t.startAt.inclusive?"b:":"a:",n+=t.startAt.position.map(i=>Df(i)).join(",")),t.endAt&&(n+=", endAt: ",n+=t.endAt.inclusive?"a:":"b:",n+=t.endAt.position.map(i=>Df(i)).join(",")),`Target(${n})`})(zo(r))}; limitType=${r.limitType})`}function qb(r,e){return e.isFoundDocument()&&(function(n,i){let a=i.key.path;return n.collectionGroup!==null?i.key.hasCollectionId(n.collectionGroup)&&n.path.isPrefixOf(a):lt.isDocumentKey(n.path)?n.path.isEqual(a):n.path.isImmediateParentOf(a)})(r,e)&&(function(n,i){for(let a of If(n))if(!a.field.isKeyField()&&i.data.field(a.field)===null)return!1;return!0})(r,e)&&(function(n,i){for(let a of n.filters)if(!a.matches(i))return!1;return!0})(r,e)&&(function(n,i){return!(n.startAt&&!(function(s,o,l){let c=$N(s,o,l);return s.inclusive?c<=0:c<0})(n.startAt,If(n),i)||n.endAt&&!(function(s,o,l){let c=$N(s,o,l);return s.inclusive?c>=0:c>0})(n.endAt,If(n),i))})(r,e)}function MX(r){return r.collectionGroup||(r.path.length%2==1?r.path.lastSegment():r.path.get(r.path.length-2))}function n4(r){return(e,t)=>{let n=!1;for(let i of If(r)){let a=kX(i,e,t);if(a!==0)return a;n=n||i.field.isKeyField()}return 0}}function kX(r,e,t){let n=r.field.isKeyField()?lt.comparator(e.key,t.key):(function(a,s,o){let l=s.data.field(a),c=o.data.field(a);return l!==null&&c!==null?Sf(l,c):ut(42886)})(r.field,e,t);switch(r.dir){case"asc":return n;case"desc":return-1*n;default:return ut(19790,{direction:r.dir})}}var Wl=class{constructor(e,t){this.mapKeyFn=e,this.equalsFn=t,this.inner={},this.innerSize=0}get(e){let t=this.mapKeyFn(e),n=this.inner[t];if(n!==void 0){for(let[i,a]of n)if(this.equalsFn(i,e))return a}}has(e){return this.get(e)!==void 0}set(e,t){let n=this.mapKeyFn(e),i=this.inner[n];if(i===void 0)return this.inner[n]=[[e,t]],void this.innerSize++;for(let a=0;a<i.length;a++)if(this.equalsFn(i[a][0],e))return void(i[a]=[e,t]);i.push([e,t]),this.innerSize++}delete(e){let t=this.mapKeyFn(e),n=this.inner[t];if(n===void 0)return!1;for(let i=0;i<n.length;i++)if(this.equalsFn(n[i][0],e))return n.length===1?delete this.inner[t]:n.splice(i,1),this.innerSize--,!0;return!1}forEach(e){Yc(this.inner,(t,n)=>{for(let[i,a]of n)e(i,a)})}isEmpty(){return zL(this.inner)}size(){return this.innerSize}};var PX=new pn(lt.comparator);function ql(){return PX}var i4=new pn(lt.comparator);function Og(...r){let e=i4;for(let t of r)e=e.insert(t.key,t);return e}function a4(r){let e=i4;return r.forEach((t,n)=>e=e.insert(t,n.overlayedDocument)),e}function vd(){return Bg()}function s4(){return Bg()}function Bg(){return new Wl(r=>r.toString(),(r,e)=>r.isEqual(e))}var RX=new pn(lt.comparator),OX=new li(lt.comparator);function er(...r){let e=OX;for(let t of r)e=e.add(t);return e}var FX=new li(qt);function BX(){return FX}function $A(r,e){if(r.useProto3Json){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:zg(e)?"-0":e}}function o4(r){return{integerValue:""+r}}function NX(r,e){return dX(e)?o4(e):$A(r,e)}var Af=class{constructor(){this._=void 0}};function LX(r,e,t){return r instanceof Mf?(function(i,a){let s={fields:{[HL]:{stringValue:jL},[GL]:{timestampValue:{seconds:i.seconds,nanos:i.nanoseconds}}}};return a&&Hb(a)&&(a=$b(a)),a&&(s.fields[$L]=a),{mapValue:s}})(t,e):r instanceof Td?c4(r,e):r instanceof Cd?u4(r,e):(function(i,a){let s=l4(i,a),o=KN(s)+KN(i.Ee);return rD(s)&&rD(i.Ee)?o4(o):$A(i.serializer,o)})(r,e)}function VX(r,e,t){return r instanceof Td?c4(r,e):r instanceof Cd?u4(r,e):t}function l4(r,e){return r instanceof kf?(function(n){return rD(n)||(function(a){return!!a&&"doubleValue"in a})(n)})(e)?e:{integerValue:0}:null}var Mf=class extends Af{},Td=class extends Af{constructor(e){super(),this.elements=e}};function c4(r,e){let t=d4(e);for(let n of r.elements)t.some(i=>jo(i,n))||t.push(n);return{arrayValue:{values:t}}}var Cd=class extends Af{constructor(e){super(),this.elements=e}};function u4(r,e){let t=d4(e);for(let n of r.elements)t=t.filter(i=>!jo(i,n));return{arrayValue:{values:t}}}var kf=class extends Af{constructor(e,t){super(),this.serializer=e,this.Ee=t}};function KN(r){return Qr(r.integerValue||r.doubleValue)}function d4(r){return UA(r)&&r.arrayValue.values?r.arrayValue.values.slice():[]}function UX(r,e){return r.field.isEqual(e.field)&&(function(n,i){return n instanceof Td&&i instanceof Td||n instanceof Cd&&i instanceof Cd?Tf(n.elements,i.elements,jo):n instanceof kf&&i instanceof kf?jo(n.Ee,i.Ee):n instanceof Mf&&i instanceof Mf})(r.transform,e.transform)}var mD=class{constructor(e,t){this.version=e,this.transformResults=t}},Di=class r{constructor(e,t){this.updateTime=e,this.exists=t}static none(){return new r}static exists(e){return new r(void 0,e)}static updateTime(e){return new r(e)}get isNone(){return this.updateTime===void 0&&this.exists===void 0}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}};function ab(r,e){return r.updateTime!==void 0?e.isFoundDocument()&&e.version.isEqual(r.updateTime):r.exists===void 0||r.exists===e.isFoundDocument()}var Pf=class{};function h4(r,e){if(!r.hasLocalMutations||e&&e.fields.length===0)return null;if(e===null)return r.isNoDocument()?new Dd(r.key,Di.none()):new Sd(r.key,r.data,Di.none());{let t=r.data,n=Ha.empty(),i=new li(os.comparator);for(let a of e.fields)if(!i.has(a)){let s=t.field(a);s===null&&a.length>1&&(a=a.popLast(),s=t.field(a)),s===null?n.delete(a):n.set(a,s),i=i.add(a)}return new $o(r.key,n,new As(i.toArray()),Di.none())}}function zX(r,e,t){r instanceof Sd?(function(i,a,s){let o=i.value.clone(),l=XN(i.fieldTransforms,a,s.transformResults);o.setAll(l),a.convertToFoundDocument(s.version,o).setHasCommittedMutations()})(r,e,t):r instanceof $o?(function(i,a,s){if(!ab(i.precondition,a))return void a.convertToUnknownDocument(s.version);let o=XN(i.fieldTransforms,a,s.transformResults),l=a.data;l.setAll(f4(i)),l.setAll(o),a.convertToFoundDocument(s.version,l).setHasCommittedMutations()})(r,e,t):(function(i,a,s){a.convertToNoDocument(s.version).setHasCommittedMutations()})(0,e,t)}function Ng(r,e,t,n){return r instanceof Sd?(function(a,s,o,l){if(!ab(a.precondition,s))return o;let c=a.value.clone(),u=QN(a.fieldTransforms,l,s);return c.setAll(u),s.convertToFoundDocument(s.version,c).setHasLocalMutations(),null})(r,e,t,n):r instanceof $o?(function(a,s,o,l){if(!ab(a.precondition,s))return o;let c=QN(a.fieldTransforms,l,s),u=s.data;return u.setAll(f4(a)),u.setAll(c),s.convertToFoundDocument(s.version,u).setHasLocalMutations(),o===null?null:o.unionWith(a.fieldMask.fields).unionWith(a.fieldTransforms.map(d=>d.field))})(r,e,t,n):(function(a,s,o){return ab(a.precondition,s)?(s.convertToNoDocument(s.version).setHasLocalMutations(),null):o})(r,e,t)}function jX(r,e){let t=null;for(let n of r.fieldTransforms){let i=e.data.field(n.field),a=l4(n.transform,i||null);a!=null&&(t===null&&(t=Ha.empty()),t.set(n.field,a))}return t||null}function YN(r,e){return r.type===e.type&&!!r.key.isEqual(e.key)&&!!r.precondition.isEqual(e.precondition)&&!!(function(n,i){return n===void 0&&i===void 0||!(!n||!i)&&Tf(n,i,(a,s)=>UX(a,s))})(r.fieldTransforms,e.fieldTransforms)&&(r.type===0?r.value.isEqual(e.value):r.type!==1||r.data.isEqual(e.data)&&r.fieldMask.isEqual(e.fieldMask))}var Sd=class extends Pf{constructor(e,t,n,i=[]){super(),this.key=e,this.value=t,this.precondition=n,this.fieldTransforms=i,this.type=0}getFieldMask(){return null}},$o=class extends Pf{constructor(e,t,n,i,a=[]){super(),this.key=e,this.data=t,this.fieldMask=n,this.precondition=i,this.fieldTransforms=a,this.type=1}getFieldMask(){return this.fieldMask}};function f4(r){let e=new Map;return r.fieldMask.fields.forEach(t=>{if(!t.isEmpty()){let n=r.data.field(t);e.set(t,n)}}),e}function XN(r,e,t){let n=new Map;nr(r.length===t.length,32656,{Ae:t.length,Re:r.length});for(let i=0;i<t.length;i++){let a=r[i],s=a.transform,o=e.data.field(a.field);n.set(a.field,VX(s,o,t[i]))}return n}function QN(r,e,t){let n=new Map;for(let i of r){let a=i.transform,s=t.data.field(i.field);n.set(i.field,LX(a,s,e))}return n}var Dd=class extends Pf{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}},pb=class extends Pf{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}};var pD=class{constructor(e,t,n,i){this.batchId=e,this.localWriteTime=t,this.baseMutations=n,this.mutations=i}applyToRemoteDocument(e,t){let n=t.mutationResults;for(let i=0;i<this.mutations.length;i++){let a=this.mutations[i];a.key.isEqual(e.key)&&zX(a,e,n[i])}}applyToLocalView(e,t){for(let n of this.baseMutations)n.key.isEqual(e.key)&&(t=Ng(n,e,t,this.localWriteTime));for(let n of this.mutations)n.key.isEqual(e.key)&&(t=Ng(n,e,t,this.localWriteTime));return t}applyToLocalDocumentSet(e,t){let n=s4();return this.mutations.forEach(i=>{let a=e.get(i.key),s=a.overlayedDocument,o=this.applyToLocalView(s,a.mutatedFields);o=t.has(i.key)?null:o;let l=h4(s,o);l!==null&&n.set(i.key,l),s.isValidDocument()||s.convertToNoDocument(Dt.min())}),n}keys(){return this.mutations.reduce((e,t)=>e.add(t.key),er())}isEqual(e){return this.batchId===e.batchId&&Tf(this.mutations,e.mutations,(t,n)=>YN(t,n))&&Tf(this.baseMutations,e.baseMutations,(t,n)=>YN(t,n))}},gD=class r{constructor(e,t,n,i){this.batch=e,this.commitVersion=t,this.mutationResults=n,this.docVersions=i}static from(e,t,n){nr(e.mutations.length===n.length,58842,{Ve:e.mutations.length,me:n.length});let i=(function(){return RX})(),a=e.mutations;for(let s=0;s<a.length;s++)i=i.insert(a[s].key,n[s].version);return new r(e,t,n,i)}};var yD=class{constructor(e,t){this.largestBatchId=e,this.mutation=t}getKey(){return this.mutation.key}isEqual(e){return e!==null&&this.mutation===e.mutation}toString(){return`Overlay{ 31 largestBatchId: ${this.largestBatchId}, 32 mutation: ${this.mutation.toString()} 33 }`}};var vD=class{constructor(e,t,n){this.alias=e,this.aggregateType=t,this.fieldPath=n}};var _D=class{constructor(e,t){this.count=e,this.unchangedNames=t}};var Ln,ar;function m4(r){switch(r){case ae.OK:return ut(64938);case ae.CANCELLED:case ae.UNKNOWN:case ae.DEADLINE_EXCEEDED:case ae.RESOURCE_EXHAUSTED:case ae.INTERNAL:case ae.UNAVAILABLE:case ae.UNAUTHENTICATED:return!1;case ae.INVALID_ARGUMENT:case ae.NOT_FOUND:case ae.ALREADY_EXISTS:case ae.PERMISSION_DENIED:case ae.FAILED_PRECONDITION:case ae.ABORTED:case ae.OUT_OF_RANGE:case ae.UNIMPLEMENTED:case ae.DATA_LOSS:return!0;default:return ut(15467,{code:r})}}function p4(r){if(r===void 0)return Hl("GRPC error has no .code"),ae.UNKNOWN;switch(r){case Ln.OK:return ae.OK;case Ln.CANCELLED:return ae.CANCELLED;case Ln.UNKNOWN:return ae.UNKNOWN;case Ln.DEADLINE_EXCEEDED:return ae.DEADLINE_EXCEEDED;case Ln.RESOURCE_EXHAUSTED:return ae.RESOURCE_EXHAUSTED;case Ln.INTERNAL:return ae.INTERNAL;case Ln.UNAVAILABLE:return ae.UNAVAILABLE;case Ln.UNAUTHENTICATED:return ae.UNAUTHENTICATED;case Ln.INVALID_ARGUMENT:return ae.INVALID_ARGUMENT;case Ln.NOT_FOUND:return ae.NOT_FOUND;case Ln.ALREADY_EXISTS:return ae.ALREADY_EXISTS;case Ln.PERMISSION_DENIED:return ae.PERMISSION_DENIED;case Ln.FAILED_PRECONDITION:return ae.FAILED_PRECONDITION;case Ln.ABORTED:return ae.ABORTED;case Ln.OUT_OF_RANGE:return ae.OUT_OF_RANGE;case Ln.UNIMPLEMENTED:return ae.UNIMPLEMENTED;case Ln.DATA_LOSS:return ae.DATA_LOSS;default:return ut(39323,{code:r})}}(ar=Ln||(Ln={}))[ar.OK=0]="OK",ar[ar.CANCELLED=1]="CANCELLED",ar[ar.UNKNOWN=2]="UNKNOWN",ar[ar.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",ar[ar.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",ar[ar.NOT_FOUND=5]="NOT_FOUND",ar[ar.ALREADY_EXISTS=6]="ALREADY_EXISTS",ar[ar.PERMISSION_DENIED=7]="PERMISSION_DENIED",ar[ar.UNAUTHENTICATED=16]="UNAUTHENTICATED",ar[ar.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",ar[ar.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",ar[ar.ABORTED=10]="ABORTED",ar[ar.OUT_OF_RANGE=11]="OUT_OF_RANGE",ar[ar.UNIMPLEMENTED=12]="UNIMPLEMENTED",ar[ar.INTERNAL=13]="INTERNAL",ar[ar.UNAVAILABLE=14]="UNAVAILABLE",ar[ar.DATA_LOSS=15]="DATA_LOSS";var JN=null;var HX=new Ul([4294967295,4294967295],0);function ZN(r){let e=xL().encode(r),t=new BS;return t.update(e),new Uint8Array(t.digest())}function eL(r){let e=new DataView(r.buffer),t=e.getUint32(0,!0),n=e.getUint32(4,!0),i=e.getUint32(8,!0),a=e.getUint32(12,!0);return[new Ul([t,n],0),new Ul([i,a],0)]}var bD=class r{constructor(e,t,n){if(this.bitmap=e,this.padding=t,this.hashCount=n,t<0||t>=8)throw new _d(`Invalid padding: ${t}`);if(n<0)throw new _d(`Invalid hash count: ${n}`);if(e.length>0&&this.hashCount===0)throw new _d(`Invalid hash count: ${n}`);if(e.length===0&&t!==0)throw new _d(`Invalid padding when bitmap length is 0: ${t}`);this.fe=8*e.length-t,this.ge=Ul.fromNumber(this.fe)}pe(e,t,n){let i=e.add(t.multiply(Ul.fromNumber(n)));return i.compare(HX)===1&&(i=new Ul([i.getBits(0),i.getBits(1)],0)),i.modulo(this.ge).toNumber()}ye(e){return!!(this.bitmap[Math.floor(e/8)]&1<<e%8)}mightContain(e){if(this.fe===0)return!1;let t=ZN(e),[n,i]=eL(t);for(let a=0;a<this.hashCount;a++){let s=this.pe(n,i,a);if(!this.ye(s))return!1}return!0}static create(e,t,n){let i=e%8==0?0:8-e%8,a=new Uint8Array(Math.ceil(e/8)),s=new r(a,i,t);return n.forEach(o=>s.insert(o)),s}insert(e){if(this.fe===0)return;let t=ZN(e),[n,i]=eL(t);for(let a=0;a<this.hashCount;a++){let s=this.pe(n,i,a);this.we(s)}}we(e){let t=Math.floor(e/8),n=e%8;this.bitmap[t]|=1<<n}},_d=class extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}};var gb=class r{constructor(e,t,n,i,a){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=n,this.documentUpdates=i,this.resolvedLimboDocuments=a}static createSynthesizedRemoteEventForCurrentChange(e,t,n){let i=new Map;return i.set(e,$g.createSynthesizedTargetChangeForCurrentChange(e,t,n)),new r(Dt.min(),i,new pn(qt),ql(),er())}},$g=class r{constructor(e,t,n,i,a){this.resumeToken=e,this.current=t,this.addedDocuments=n,this.modifiedDocuments=i,this.removedDocuments=a}static createSynthesizedTargetChangeForCurrentChange(e,t,n){return new r(n,t,er(),er(),er())}};var xf=class{constructor(e,t,n,i){this.Se=e,this.removedTargetIds=t,this.key=n,this.be=i}},yb=class{constructor(e,t){this.targetId=e,this.De=t}},vb=class{constructor(e,t,n=Gi.EMPTY_BYTE_STRING,i=null){this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=i}},_b=class{constructor(){this.ve=0,this.Ce=tL(),this.Fe=Gi.EMPTY_BYTE_STRING,this.Me=!1,this.xe=!0}get current(){return this.Me}get resumeToken(){return this.Fe}get Oe(){return this.ve!==0}get Ne(){return this.xe}Be(e){e.approximateByteSize()>0&&(this.xe=!0,this.Fe=e)}Le(){let e=er(),t=er(),n=er();return this.Ce.forEach((i,a)=>{switch(a){case 0:e=e.add(i);break;case 2:t=t.add(i);break;case 1:n=n.add(i);break;default:ut(38017,{changeType:a})}}),new $g(this.Fe,this.Me,e,t,n)}ke(){this.xe=!1,this.Ce=tL()}qe(e,t){this.xe=!0,this.Ce=this.Ce.insert(e,t)}Qe(e){this.xe=!0,this.Ce=this.Ce.remove(e)}$e(){this.ve+=1}Ue(){this.ve-=1,nr(this.ve>=0,3241,{ve:this.ve})}Ke(){this.xe=!0,this.Me=!0}},wD=class{constructor(e){this.We=e,this.Ge=new Map,this.ze=ql(),this.je=tb(),this.Je=tb(),this.He=new pn(qt)}Ye(e){for(let t of e.Se)e.be&&e.be.isFoundDocument()?this.Ze(t,e.be):this.Xe(t,e.key,e.be);for(let t of e.removedTargetIds)this.Xe(t,e.key,e.be)}et(e){this.forEachTarget(e,t=>{let n=this.tt(t);switch(e.state){case 0:this.nt(t)&&n.Be(e.resumeToken);break;case 1:n.Ue(),n.Oe||n.ke(),n.Be(e.resumeToken);break;case 2:n.Ue(),n.Oe||this.removeTarget(t);break;case 3:this.nt(t)&&(n.Ke(),n.Be(e.resumeToken));break;case 4:this.nt(t)&&(this.rt(t),n.Be(e.resumeToken));break;default:ut(56790,{state:e.state})}})}forEachTarget(e,t){e.targetIds.length>0?e.targetIds.forEach(t):this.Ge.forEach((n,i)=>{this.nt(i)&&t(i)})}it(e){let t=e.targetId,n=e.De.count,i=this.st(t);if(i){let a=i.target;if(hD(a))if(n===0){let s=new lt(a.path);this.Xe(t,s,cs.newNoDocument(s,Dt.min()))}else nr(n===1,20013,{expectedCount:n});else{let s=this.ot(t);if(s!==n){let o=this._t(e),l=o?this.ut(o,e,s):1;if(l!==0){this.rt(t);let c=l===2?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.He=this.He.insert(t,c)}JN?.ct((function(u,d,f,p,g){var y,v,T,C,x,B;let q={localCacheCount:u,existenceFilterCount:d.count,databaseId:f.database,projectId:f.projectId},V=d.unchangedNames;return V&&(q.bloomFilter={applied:g===0,hashCount:(y=V?.hashCount)!==null&&y!==void 0?y:0,bitmapLength:(C=(T=(v=V?.bits)===null||v===void 0?void 0:v.bitmap)===null||T===void 0?void 0:T.length)!==null&&C!==void 0?C:0,padding:(B=(x=V?.bits)===null||x===void 0?void 0:x.padding)!==null&&B!==void 0?B:0,mightContain:b=>{var E;return(E=p?.mightContain(b))!==null&&E!==void 0&&E}}),q})(s,e.De,this.We.lt(),o,l))}}}}_t(e){let t=e.De.unchangedNames;if(!t||!t.bits)return null;let{bits:{bitmap:n="",padding:i=0},hashCount:a=0}=t,s,o;try{s=Gl(n).toUint8Array()}catch(l){if(l instanceof cb)return Id("Decoding the base64 bloom filter in existence filter failed ("+l.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw l}try{o=new bD(s,i,a)}catch(l){return Id(l instanceof _d?"BloomFilter error: ":"Applying bloom filter failed: ",l),null}return o.fe===0?null:o}ut(e,t,n){return t.De.count===n-this.ht(e,t.targetId)?0:2}ht(e,t){let n=this.We.getRemoteKeysForTarget(t),i=0;return n.forEach(a=>{let s=this.We.lt(),o=`projects/${s.projectId}/databases/${s.database}/documents/${a.path.canonicalString()}`;e.mightContain(o)||(this.Xe(t,a,null),i++)}),i}Pt(e){let t=new Map;this.Ge.forEach((a,s)=>{let o=this.st(s);if(o){if(a.current&&hD(o.target)){let l=new lt(o.target.path);this.Tt(l).has(s)||this.It(s,l)||this.Xe(s,l,cs.newNoDocument(l,e))}a.Ne&&(t.set(s,a.Le()),a.ke())}});let n=er();this.Je.forEach((a,s)=>{let o=!0;s.forEachWhile(l=>{let c=this.st(l);return!c||c.purpose==="TargetPurposeLimboResolution"||(o=!1,!1)}),o&&(n=n.add(a))}),this.ze.forEach((a,s)=>s.setReadTime(e));let i=new gb(e,t,this.He,this.ze,n);return this.ze=ql(),this.je=tb(),this.Je=tb(),this.He=new pn(qt),i}Ze(e,t){if(!this.nt(e))return;let n=this.It(e,t.key)?2:0;this.tt(e).qe(t.key,n),this.ze=this.ze.insert(t.key,t),this.je=this.je.insert(t.key,this.Tt(t.key).add(e)),this.Je=this.Je.insert(t.key,this.dt(t.key).add(e))}Xe(e,t,n){if(!this.nt(e))return;let i=this.tt(e);this.It(e,t)?i.qe(t,1):i.Qe(t),this.Je=this.Je.insert(t,this.dt(t).delete(e)),this.Je=this.Je.insert(t,this.dt(t).add(e)),n&&(this.ze=this.ze.insert(t,n))}removeTarget(e){this.Ge.delete(e)}ot(e){let t=this.tt(e).Le();return this.We.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size}$e(e){this.tt(e).$e()}tt(e){let t=this.Ge.get(e);return t||(t=new _b,this.Ge.set(e,t)),t}dt(e){let t=this.Je.get(e);return t||(t=new li(qt),this.Je=this.Je.insert(e,t)),t}Tt(e){let t=this.je.get(e);return t||(t=new li(qt),this.je=this.je.insert(e,t)),t}nt(e){let t=this.st(e)!==null;return t||tt("WatchChangeAggregator","Detected inactive target",e),t}st(e){let t=this.Ge.get(e);return t&&t.Oe?null:this.We.Et(e)}rt(e){this.Ge.set(e,new _b),this.We.getRemoteKeysForTarget(e).forEach(t=>{this.Xe(e,t,null)})}It(e,t){return this.We.getRemoteKeysForTarget(e).has(t)}};function tb(){return new pn(lt.comparator)}function tL(){return new pn(lt.comparator)}var $X={asc:"ASCENDING",desc:"DESCENDING"},GX={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},WX={and:"AND",or:"OR"},ID=class{constructor(e,t){this.databaseId=e,this.useProto3Json=t}};function xD(r,e){return r.useProto3Json||t0(e)?e:{value:e}}function bb(r,e){return r.useProto3Json?`${new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+e.nanoseconds).slice(-9)}Z`:{seconds:""+e.seconds,nanos:e.nanoseconds}}function g4(r,e){return r.useProto3Json?e.toBase64():e.toUint8Array()}function qX(r,e){return bb(r,e.toTimestamp())}function ls(r){return nr(!!r,49232),Dt.fromTimestamp((function(t){let n=$l(t);return new jn(n.seconds,n.nanos)})(r))}function GA(r,e){return ED(r,e).canonicalString()}function ED(r,e){let t=(function(i){return new Br(["projects",i.projectId,"databases",i.database])})(r).child("documents");return e===void 0?t:t.child(e)}function y4(r){let e=Br.fromString(r);return nr(E4(e),10190,{key:e.toString()}),e}function wb(r,e){return GA(r.databaseId,e.path)}function Lg(r,e){let t=y4(e);if(t.get(1)!==r.databaseId.projectId)throw new Me(ae.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+t.get(1)+" vs "+r.databaseId.projectId);if(t.get(3)!==r.databaseId.database)throw new Me(ae.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+t.get(3)+" vs "+r.databaseId.database);return new lt(_4(t))}function v4(r,e){return GA(r.databaseId,e)}function KX(r){let e=y4(r);return e.length===4?Br.emptyPath():_4(e)}function TD(r){return new Br(["projects",r.databaseId.projectId,"databases",r.databaseId.database]).canonicalString()}function _4(r){return nr(r.length>4&&r.get(4)==="documents",29091,{key:r.toString()}),r.popFirst(5)}function rL(r,e,t){return{name:wb(r,e),fields:t.value.mapValue.fields}}function YX(r,e){return"found"in e?(function(n,i){nr(!!i.found,43571),i.found.name,i.found.updateTime;let a=Lg(n,i.found.name),s=ls(i.found.updateTime),o=i.found.createTime?ls(i.found.createTime):Dt.min(),l=new Ha({mapValue:{fields:i.found.fields}});return cs.newFoundDocument(a,s,o,l)})(r,e):"missing"in e?(function(n,i){nr(!!i.missing,3894),nr(!!i.readTime,22933);let a=Lg(n,i.missing),s=ls(i.readTime);return cs.newNoDocument(a,s)})(r,e):ut(7234,{result:e})}function XX(r,e){let t;if("targetChange"in e){e.targetChange;let n=(function(c){return c==="NO_CHANGE"?0:c==="ADD"?1:c==="REMOVE"?2:c==="CURRENT"?3:c==="RESET"?4:ut(39313,{state:c})})(e.targetChange.targetChangeType||"NO_CHANGE"),i=e.targetChange.targetIds||[],a=(function(c,u){return c.useProto3Json?(nr(u===void 0||typeof u=="string",58123),Gi.fromBase64String(u||"")):(nr(u===void 0||u instanceof Buffer||u instanceof Uint8Array,16193),Gi.fromUint8Array(u||new Uint8Array))})(r,e.targetChange.resumeToken),s=e.targetChange.cause,o=s&&(function(c){let u=c.code===void 0?ae.UNKNOWN:p4(c.code);return new Me(u,c.message||"")})(s);t=new vb(n,i,a,o||null)}else if("documentChange"in e){e.documentChange;let n=e.documentChange;n.document,n.document.name,n.document.updateTime;let i=Lg(r,n.document.name),a=ls(n.document.updateTime),s=n.document.createTime?ls(n.document.createTime):Dt.min(),o=new Ha({mapValue:{fields:n.document.fields}}),l=cs.newFoundDocument(i,a,s,o),c=n.targetIds||[],u=n.removedTargetIds||[];t=new xf(c,u,l.key,l)}else if("documentDelete"in e){e.documentDelete;let n=e.documentDelete;n.document;let i=Lg(r,n.document),a=n.readTime?ls(n.readTime):Dt.min(),s=cs.newNoDocument(i,a),o=n.removedTargetIds||[];t=new xf([],o,s.key,s)}else if("documentRemove"in e){e.documentRemove;let n=e.documentRemove;n.document;let i=Lg(r,n.document),a=n.removedTargetIds||[];t=new xf([],a,i,null)}else{if(!("filter"in e))return ut(11601,{At:e});{e.filter;let n=e.filter;n.targetId;let{count:i=0,unchangedNames:a}=n,s=new _D(i,a),o=n.targetId;t=new yb(o,s)}}return t}function b4(r,e){let t;if(e instanceof Sd)t={update:rL(r,e.key,e.value)};else if(e instanceof Dd)t={delete:wb(r,e.key)};else if(e instanceof $o)t={update:rL(r,e.key,e.data),updateMask:aQ(e.fieldMask)};else{if(!(e instanceof pb))return ut(16599,{Rt:e.type});t={verify:wb(r,e.key)}}return e.fieldTransforms.length>0&&(t.updateTransforms=e.fieldTransforms.map(n=>(function(a,s){let o=s.transform;if(o instanceof Mf)return{fieldPath:s.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(o instanceof Td)return{fieldPath:s.field.canonicalString(),appendMissingElements:{values:o.elements}};if(o instanceof Cd)return{fieldPath:s.field.canonicalString(),removeAllFromArray:{values:o.elements}};if(o instanceof kf)return{fieldPath:s.field.canonicalString(),increment:o.Ee};throw ut(20930,{transform:s.transform})})(0,n))),e.precondition.isNone||(t.currentDocument=(function(i,a){return a.updateTime!==void 0?{updateTime:qX(i,a.updateTime)}:a.exists!==void 0?{exists:a.exists}:ut(27497)})(r,e.precondition)),t}function QX(r,e){return r&&r.length>0?(nr(e!==void 0,14353),r.map(t=>(function(i,a){let s=i.updateTime?ls(i.updateTime):ls(a);return s.isEqual(Dt.min())&&(s=ls(a)),new mD(s,i.transformResults||[])})(t,e))):[]}function JX(r,e){return{documents:[v4(r,e.path)]}}function w4(r,e){let t={structuredQuery:{}},n=e.path,i;e.collectionGroup!==null?(i=n,t.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(i=n.popLast(),t.structuredQuery.from=[{collectionId:n.lastSegment()}]),t.parent=v4(r,i);let a=(function(c){if(c.length!==0)return x4(ho.create(c,"and"))})(e.filters);a&&(t.structuredQuery.where=a);let s=(function(c){if(c.length!==0)return c.map(u=>(function(f){return{field:Nc(f.field),direction:rQ(f.dir)}})(u))})(e.orderBy);s&&(t.structuredQuery.orderBy=s);let o=xD(r,e.limit);return o!==null&&(t.structuredQuery.limit=o),e.startAt&&(t.structuredQuery.startAt=(function(c){return{before:c.inclusive,values:c.position}})(e.startAt)),e.endAt&&(t.structuredQuery.endAt=(function(c){return{before:!c.inclusive,values:c.position}})(e.endAt)),{Vt:t,parent:i}}function ZX(r,e,t,n){let{Vt:i,parent:a}=w4(r,e),s={},o=[],l=0;return t.forEach(c=>{let u=n?c.alias:"aggregate_"+l++;s[u]=c.alias,c.aggregateType==="count"?o.push({alias:u,count:{}}):c.aggregateType==="avg"?o.push({alias:u,avg:{field:Nc(c.fieldPath)}}):c.aggregateType==="sum"&&o.push({alias:u,sum:{field:Nc(c.fieldPath)}})}),{request:{structuredAggregationQuery:{aggregations:o,structuredQuery:i.structuredQuery},parent:i.parent},ft:s,parent:a}}function eQ(r){let e=KX(r.parent),t=r.structuredQuery,n=t.from?t.from.length:0,i=null;if(n>0){nr(n===1,65062);let u=t.from[0];u.allDescendants?i=u.collectionId:e=e.child(u.collectionId)}let a=[];t.where&&(a=(function(d){let f=I4(d);return f instanceof ho&&QL(f)?f.getFilters():[f]})(t.where));let s=[];t.orderBy&&(s=(function(d){return d.map(f=>(function(g){return new Ed(bf(g.field),(function(v){switch(v){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}})(g.direction))})(f))})(t.orderBy));let o=null;t.limit&&(o=(function(d){let f;return f=typeof d=="object"?d.value:d,t0(f)?null:f})(t.limit));let l=null;t.startAt&&(l=(function(d){let f=!!d.before,p=d.values||[];return new Gc(p,f)})(t.startAt));let c=null;return t.endAt&&(c=(function(d){let f=!d.before,p=d.values||[];return new Gc(p,f)})(t.endAt)),DX(e,i,s,a,o,"F",l,c)}function tQ(r,e){let t=(function(i){switch(i){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return ut(28987,{purpose:i})}})(e.purpose);return t==null?null:{"goog-listen-tags":t}}function I4(r){return r.unaryFilter!==void 0?(function(t){switch(t.unaryFilter.op){case"IS_NAN":let n=bf(t.unaryFilter.field);return Un.create(n,"==",{doubleValue:NaN});case"IS_NULL":let i=bf(t.unaryFilter.field);return Un.create(i,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":let a=bf(t.unaryFilter.field);return Un.create(a,"!=",{doubleValue:NaN});case"IS_NOT_NULL":let s=bf(t.unaryFilter.field);return Un.create(s,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":return ut(61313);default:return ut(60726)}})(r):r.fieldFilter!==void 0?(function(t){return Un.create(bf(t.fieldFilter.field),(function(i){switch(i){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";case"OPERATOR_UNSPECIFIED":return ut(58110);default:return ut(50506)}})(t.fieldFilter.op),t.fieldFilter.value)})(r):r.compositeFilter!==void 0?(function(t){return ho.create(t.compositeFilter.filters.map(n=>I4(n)),(function(i){switch(i){case"AND":return"and";case"OR":return"or";default:return ut(1026)}})(t.compositeFilter.op))})(r):ut(30097,{filter:r})}function rQ(r){return $X[r]}function nQ(r){return GX[r]}function iQ(r){return WX[r]}function Nc(r){return{fieldPath:r.canonicalString()}}function bf(r){return os.fromServerFormat(r.fieldPath)}function x4(r){return r instanceof Un?(function(t){if(t.op==="=="){if(HN(t.value))return{unaryFilter:{field:Nc(t.field),op:"IS_NAN"}};if(jN(t.value))return{unaryFilter:{field:Nc(t.field),op:"IS_NULL"}}}else if(t.op==="!="){if(HN(t.value))return{unaryFilter:{field:Nc(t.field),op:"IS_NOT_NAN"}};if(jN(t.value))return{unaryFilter:{field:Nc(t.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Nc(t.field),op:nQ(t.op),value:t.value}}})(r):r instanceof ho?(function(t){let n=t.getFilters().map(i=>x4(i));return n.length===1?n[0]:{compositeFilter:{op:iQ(t.op),filters:n}}})(r):ut(54877,{filter:r})}function aQ(r){let e=[];return r.fields.forEach(t=>e.push(t.canonicalString())),{fieldPaths:e}}function E4(r){return r.length>=4&&r.get(0)==="projects"&&r.get(2)==="databases"}var Gg=class r{constructor(e,t,n,i,a=Dt.min(),s=Dt.min(),o=Gi.EMPTY_BYTE_STRING,l=null){this.target=e,this.targetId=t,this.purpose=n,this.sequenceNumber=i,this.snapshotVersion=a,this.lastLimboFreeSnapshotVersion=s,this.resumeToken=o,this.expectedCount=l}withSequenceNumber(e){return new r(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,t){return new r(this.target,this.targetId,this.purpose,this.sequenceNumber,t,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new r(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new r(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}};var CD=class{constructor(e){this.gt=e}};function sQ(r){let e=eQ({parent:r.parent,structuredQuery:r.structuredQuery});return r.limitType==="LAST"?mb(e,e.limit,"L"):e}var Ib=class{constructor(){}bt(e,t){this.Dt(e,t),t.vt()}Dt(e,t){if("nullValue"in e)this.Ct(t,5);else if("booleanValue"in e)this.Ct(t,10),t.Ft(e.booleanValue?1:0);else if("integerValue"in e)this.Ct(t,15),t.Ft(Qr(e.integerValue));else if("doubleValue"in e){let n=Qr(e.doubleValue);isNaN(n)?this.Ct(t,13):(this.Ct(t,15),zg(n)?t.Ft(0):t.Ft(n))}else if("timestampValue"in e){let n=e.timestampValue;this.Ct(t,20),typeof n=="string"&&(n=$l(n)),t.Mt(`${n.seconds||""}`),t.Ft(n.nanos||0)}else if("stringValue"in e)this.xt(e.stringValue,t),this.Ot(t);else if("bytesValue"in e)this.Ct(t,30),t.Nt(Gl(e.bytesValue)),this.Ot(t);else if("referenceValue"in e)this.Bt(e.referenceValue,t);else if("geoPointValue"in e){let n=e.geoPointValue;this.Ct(t,45),t.Ft(n.latitude||0),t.Ft(n.longitude||0)}else"mapValue"in e?KL(e)?this.Ct(t,Number.MAX_SAFE_INTEGER):qL(e)?this.Lt(e.mapValue,t):(this.kt(e.mapValue,t),this.Ot(t)):"arrayValue"in e?(this.qt(e.arrayValue,t),this.Ot(t)):ut(19022,{Qt:e})}xt(e,t){this.Ct(t,25),this.$t(e,t)}$t(e,t){t.Mt(e)}kt(e,t){let n=e.fields||{};this.Ct(t,55);for(let i of Object.keys(n))this.xt(i,t),this.Dt(n[i],t)}Lt(e,t){var n,i;let a=e.fields||{};this.Ct(t,53);let s=Cf,o=((i=(n=a[s].arrayValue)===null||n===void 0?void 0:n.values)===null||i===void 0?void 0:i.length)||0;this.Ct(t,15),t.Ft(Qr(o)),this.xt(s,t),this.Dt(a[s],t)}qt(e,t){let n=e.values||[];this.Ct(t,50);for(let i of n)this.Dt(i,t)}Bt(e,t){this.Ct(t,37),lt.fromName(e).path.forEach(n=>{this.Ct(t,60),this.$t(n,t)})}Ct(e,t){e.Ft(t)}Ot(e){e.Ft(2)}};Ib.Ut=new Ib;var SD=class{constructor(){this.Dn=new DD}addToCollectionParentIndex(e,t){return this.Dn.add(t),Ie.resolve()}getCollectionParents(e,t){return Ie.resolve(this.Dn.getEntries(t))}addFieldIndex(e,t){return Ie.resolve()}deleteFieldIndex(e,t){return Ie.resolve()}deleteAllFieldIndexes(e){return Ie.resolve()}createTargetIndexes(e,t){return Ie.resolve()}getDocumentsMatchingTarget(e,t){return Ie.resolve(null)}getIndexType(e,t){return Ie.resolve(0)}getFieldIndexes(e,t){return Ie.resolve([])}getNextCollectionGroupToUpdate(e){return Ie.resolve(null)}getMinOffset(e,t){return Ie.resolve(xd.min())}getMinOffsetFromCollectionGroup(e,t){return Ie.resolve(xd.min())}updateCollectionGroup(e,t,n){return Ie.resolve()}updateIndexEntries(e,t){return Ie.resolve()}},DD=class{constructor(){this.index={}}add(e){let t=e.lastSegment(),n=e.popLast(),i=this.index[t]||new li(Br.comparator),a=!i.has(n);return this.index[t]=i.add(n),a}has(e){let t=e.lastSegment(),n=e.popLast(),i=this.index[t];return i&&i.has(n)}getEntries(e){return(this.index[e]||new li(Br.comparator)).toArray()}};var GTe=new Uint8Array(0);var nL={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},T4=41943040,Ds=class r{static withCacheSize(e){return new r(e,r.DEFAULT_COLLECTION_PERCENTILE,r.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}constructor(e,t,n){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=n}};Ds.DEFAULT_COLLECTION_PERCENTILE=10,Ds.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Ds.DEFAULT=new Ds(T4,Ds.DEFAULT_COLLECTION_PERCENTILE,Ds.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Ds.DISABLED=new Ds(-1,0,0);var Wg=class r{constructor(e){this._r=e}next(){return this._r+=2,this._r}static ar(){return new r(0)}static ur(){return new r(-1)}};var iL="LruGarbageCollector",C4=1048576;function aL([r,e],[t,n]){let i=qt(r,t);return i===0?qt(e,n):i}var AD=class{constructor(e){this.Tr=e,this.buffer=new li(aL),this.Ir=0}dr(){return++this.Ir}Er(e){let t=[e,this.dr()];if(this.buffer.size<this.Tr)this.buffer=this.buffer.add(t);else{let n=this.buffer.last();aL(t,n)<0&&(this.buffer=this.buffer.delete(n).add(t))}}get maxValue(){return this.buffer.last()[0]}},MD=class{constructor(e,t,n){this.garbageCollector=e,this.asyncQueue=t,this.localStore=n,this.Ar=null}start(){this.garbageCollector.params.cacheSizeCollectionThreshold!==-1&&this.Rr(6e4)}stop(){this.Ar&&(this.Ar.cancel(),this.Ar=null)}get started(){return this.Ar!==null}Rr(e){tt(iL,`Garbage collection scheduled in ${e}ms`),this.Ar=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",e,()=>m(this,null,function*(){this.Ar=null;try{yield this.localStore.collectGarbage(this.garbageCollector)}catch(t){Bf(t)?tt(iL,"Ignoring IndexedDB error during garbage collection: ",t):yield Ff(t)}yield this.Rr(3e5)}))}},kD=class{constructor(e,t){this.Vr=e,this.params=t}calculateTargetCount(e,t){return this.Vr.mr(e).next(n=>Math.floor(t/100*n))}nthSequenceNumber(e,t){if(t===0)return Ie.resolve(BA.ue);let n=new AD(t);return this.Vr.forEachTarget(e,i=>n.Er(i.sequenceNumber)).next(()=>this.Vr.gr(e,i=>n.Er(i))).next(()=>n.maxValue)}removeTargets(e,t,n){return this.Vr.removeTargets(e,t,n)}removeOrphanedDocuments(e,t){return this.Vr.removeOrphanedDocuments(e,t)}collect(e,t){return this.params.cacheSizeCollectionThreshold===-1?(tt("LruGarbageCollector","Garbage collection skipped; disabled"),Ie.resolve(nL)):this.getCacheSize(e).next(n=>n<this.params.cacheSizeCollectionThreshold?(tt("LruGarbageCollector",`Garbage collection skipped; Cache size ${n} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),nL):this.pr(e,t))}getCacheSize(e){return this.Vr.getCacheSize(e)}pr(e,t){let n,i,a,s,o,l,c,u=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next(d=>(d>this.params.maximumSequenceNumbersToCollect?(tt("LruGarbageCollector",`Capping sequence numbers to collect down to the maximum of ${this.params.maximumSequenceNumbersToCollect} from ${d}`),i=this.params.maximumSequenceNumbersToCollect):i=d,s=Date.now(),this.nthSequenceNumber(e,i))).next(d=>(n=d,o=Date.now(),this.removeTargets(e,n,t))).next(d=>(a=d,l=Date.now(),this.removeOrphanedDocuments(e,n))).next(d=>(c=Date.now(),vf()<=Wt.DEBUG&&tt("LruGarbageCollector",`LRU Garbage Collection 34 Counted targets in ${s-u}ms 35 Determined least recently used ${i} in `+(o-s)+`ms 36 Removed ${a} targets in `+(l-o)+`ms 37 Removed ${d} documents in `+(c-l)+`ms 38Total Duration: ${c-u}ms`),Ie.resolve({didRun:!0,sequenceNumbersCollected:i,targetsRemoved:a,documentsRemoved:d})))}};function oQ(r,e){return new kD(r,e)}var PD=class{constructor(){this.changes=new Wl(e=>e.toString(),(e,t)=>e.isEqual(t)),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,t){this.assertNotApplied(),this.changes.set(e,cs.newInvalidDocument(e).setReadTime(t))}getEntry(e,t){this.assertNotApplied();let n=this.changes.get(t);return n!==void 0?Ie.resolve(n):this.getFromCache(e,t)}getEntries(e,t){return this.getAllFromCache(e,t)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}};var RD=class{constructor(e,t){this.overlayedDocument=e,this.mutatedFields=t}};var OD=class{constructor(e,t,n,i){this.remoteDocumentCache=e,this.mutationQueue=t,this.documentOverlayCache=n,this.indexManager=i}getDocument(e,t){let n=null;return this.documentOverlayCache.getOverlay(e,t).next(i=>(n=i,this.remoteDocumentCache.getEntry(e,t))).next(i=>(n!==null&&Ng(n.mutation,i,As.empty(),jn.now()),i))}getDocuments(e,t){return this.remoteDocumentCache.getEntries(e,t).next(n=>this.getLocalViewOfDocuments(e,n,er()).next(()=>n))}getLocalViewOfDocuments(e,t,n=er()){let i=vd();return this.populateOverlays(e,i,t).next(()=>this.computeViews(e,t,i,n).next(a=>{let s=Og();return a.forEach((o,l)=>{s=s.insert(o,l.overlayedDocument)}),s}))}getOverlayedDocuments(e,t){let n=vd();return this.populateOverlays(e,n,t).next(()=>this.computeViews(e,t,n,er()))}populateOverlays(e,t,n){let i=[];return n.forEach(a=>{t.has(a)||i.push(a)}),this.documentOverlayCache.getOverlays(e,i).next(a=>{a.forEach((s,o)=>{t.set(s,o)})})}computeViews(e,t,n,i){let a=ql(),s=Bg(),o=(function(){return Bg()})();return t.forEach((l,c)=>{let u=n.get(c.key);i.has(c.key)&&(u===void 0||u.mutation instanceof $o)?a=a.insert(c.key,c):u!==void 0?(s.set(c.key,u.mutation.getFieldMask()),Ng(u.mutation,c,u.mutation.getFieldMask(),jn.now())):s.set(c.key,As.empty())}),this.recalculateAndSaveOverlays(e,a).next(l=>(l.forEach((c,u)=>s.set(c,u)),t.forEach((c,u)=>{var d;return o.set(c,new RD(u,(d=s.get(c))!==null&&d!==void 0?d:null))}),o))}recalculateAndSaveOverlays(e,t){let n=Bg(),i=new pn((s,o)=>s-o),a=er();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,t).next(s=>{for(let o of s)o.keys().forEach(l=>{let c=t.get(l);if(c===null)return;let u=n.get(l)||As.empty();u=o.applyToLocalView(c,u),n.set(l,u);let d=(i.get(o.batchId)||er()).add(l);i=i.insert(o.batchId,d)})}).next(()=>{let s=[],o=i.getReverseIterator();for(;o.hasNext();){let l=o.getNext(),c=l.key,u=l.value,d=s4();u.forEach(f=>{if(!a.has(f)){let p=h4(t.get(f),n.get(f));p!==null&&d.set(f,p),a=a.add(f)}}),s.push(this.documentOverlayCache.saveOverlays(e,c,d))}return Ie.waitFor(s)}).next(()=>n)}recalculateAndSaveOverlaysForDocumentKeys(e,t){return this.remoteDocumentCache.getEntries(e,t).next(n=>this.recalculateAndSaveOverlays(e,n))}getDocumentsMatchingQuery(e,t,n,i){return(function(s){return lt.isDocumentKey(s.path)&&s.collectionGroup===null&&s.filters.length===0})(t)?this.getDocumentsMatchingDocumentQuery(e,t.path):HA(t)?this.getDocumentsMatchingCollectionGroupQuery(e,t,n,i):this.getDocumentsMatchingCollectionQuery(e,t,n,i)}getNextDocuments(e,t,n,i){return this.remoteDocumentCache.getAllFromCollectionGroup(e,t,n,i).next(a=>{let s=i-a.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,t,n.largestBatchId,i-a.size):Ie.resolve(vd()),o=Ug,l=a;return s.next(c=>Ie.forEach(c,(u,d)=>(o<d.largestBatchId&&(o=d.largestBatchId),a.get(u)?Ie.resolve():this.remoteDocumentCache.getEntry(e,u).next(f=>{l=l.insert(u,f)}))).next(()=>this.populateOverlays(e,c,a)).next(()=>this.computeViews(e,l,c,er())).next(u=>({batchId:o,changes:a4(u)})))})}getDocumentsMatchingDocumentQuery(e,t){return this.getDocument(e,new lt(t)).next(n=>{let i=Og();return n.isFoundDocument()&&(i=i.insert(n.key,n)),i})}getDocumentsMatchingCollectionGroupQuery(e,t,n,i){let a=t.collectionGroup,s=Og();return this.indexManager.getCollectionParents(e,a).next(o=>Ie.forEach(o,l=>{let c=(function(d,f){return new Ho(f,null,d.explicitOrderBy.slice(),d.filters.slice(),d.limit,d.limitType,d.startAt,d.endAt)})(t,l.child(a));return this.getDocumentsMatchingCollectionQuery(e,c,n,i).next(u=>{u.forEach((d,f)=>{s=s.insert(d,f)})})}).next(()=>s))}getDocumentsMatchingCollectionQuery(e,t,n,i){let a;return this.documentOverlayCache.getOverlaysForCollection(e,t.path,n.largestBatchId).next(s=>(a=s,this.remoteDocumentCache.getDocumentsMatchingQuery(e,t,n,a,i))).next(s=>{a.forEach((l,c)=>{let u=c.getKey();s.get(u)===null&&(s=s.insert(u,cs.newInvalidDocument(u)))});let o=Og();return s.forEach((l,c)=>{let u=a.get(l);u!==void 0&&Ng(u.mutation,c,As.empty(),jn.now()),qb(t,c)&&(o=o.insert(l,c))}),o})}};var FD=class{constructor(e){this.serializer=e,this.Br=new Map,this.Lr=new Map}getBundleMetadata(e,t){return Ie.resolve(this.Br.get(t))}saveBundleMetadata(e,t){return this.Br.set(t.id,(function(i){return{id:i.id,version:i.version,createTime:ls(i.createTime)}})(t)),Ie.resolve()}getNamedQuery(e,t){return Ie.resolve(this.Lr.get(t))}saveNamedQuery(e,t){return this.Lr.set(t.name,(function(i){return{name:i.name,query:sQ(i.bundledQuery),readTime:ls(i.readTime)}})(t)),Ie.resolve()}};var BD=class{constructor(){this.overlays=new pn(lt.comparator),this.kr=new Map}getOverlay(e,t){return Ie.resolve(this.overlays.get(t))}getOverlays(e,t){let n=vd();return Ie.forEach(t,i=>this.getOverlay(e,i).next(a=>{a!==null&&n.set(i,a)})).next(()=>n)}saveOverlays(e,t,n){return n.forEach((i,a)=>{this.wt(e,t,a)}),Ie.resolve()}removeOverlaysForBatchId(e,t,n){let i=this.kr.get(n);return i!==void 0&&(i.forEach(a=>this.overlays=this.overlays.remove(a)),this.kr.delete(n)),Ie.resolve()}getOverlaysForCollection(e,t,n){let i=vd(),a=t.length+1,s=new lt(t.child("")),o=this.overlays.getIteratorFrom(s);for(;o.hasNext();){let l=o.getNext().value,c=l.getKey();if(!t.isPrefixOf(c.path))break;c.path.length===a&&l.largestBatchId>n&&i.set(l.getKey(),l)}return Ie.resolve(i)}getOverlaysForCollectionGroup(e,t,n,i){let a=new pn((c,u)=>c-u),s=this.overlays.getIterator();for(;s.hasNext();){let c=s.getNext().value;if(c.getKey().getCollectionGroup()===t&&c.largestBatchId>n){let u=a.get(c.largestBatchId);u===null&&(u=vd(),a=a.insert(c.largestBatchId,u)),u.set(c.getKey(),c)}}let o=vd(),l=a.getIterator();for(;l.hasNext()&&(l.getNext().value.forEach((c,u)=>o.set(c,u)),!(o.size()>=i)););return Ie.resolve(o)}wt(e,t,n){let i=this.overlays.get(n.key);if(i!==null){let s=this.kr.get(i.largestBatchId).delete(n.key);this.kr.set(i.largestBatchId,s)}this.overlays=this.overlays.insert(n.key,new yD(t,n));let a=this.kr.get(t);a===void 0&&(a=er(),this.kr.set(t,a)),this.kr.set(t,a.add(n.key))}};var ND=class{constructor(){this.sessionToken=Gi.EMPTY_BYTE_STRING}getSessionToken(e){return Ie.resolve(this.sessionToken)}setSessionToken(e,t){return this.sessionToken=t,Ie.resolve()}};var qg=class{constructor(){this.qr=new li(Vn.Qr),this.$r=new li(Vn.Ur)}isEmpty(){return this.qr.isEmpty()}addReference(e,t){let n=new Vn(e,t);this.qr=this.qr.add(n),this.$r=this.$r.add(n)}Kr(e,t){e.forEach(n=>this.addReference(n,t))}removeReference(e,t){this.Wr(new Vn(e,t))}Gr(e,t){e.forEach(n=>this.removeReference(n,t))}zr(e){let t=new lt(new Br([])),n=new Vn(t,e),i=new Vn(t,e+1),a=[];return this.$r.forEachInRange([n,i],s=>{this.Wr(s),a.push(s.key)}),a}jr(){this.qr.forEach(e=>this.Wr(e))}Wr(e){this.qr=this.qr.delete(e),this.$r=this.$r.delete(e)}Jr(e){let t=new lt(new Br([])),n=new Vn(t,e),i=new Vn(t,e+1),a=er();return this.$r.forEachInRange([n,i],s=>{a=a.add(s.key)}),a}containsKey(e){let t=new Vn(e,0),n=this.qr.firstAfterOrEqual(t);return n!==null&&e.isEqual(n.key)}},Vn=class{constructor(e,t){this.key=e,this.Hr=t}static Qr(e,t){return lt.comparator(e.key,t.key)||qt(e.Hr,t.Hr)}static Ur(e,t){return qt(e.Hr,t.Hr)||lt.comparator(e.key,t.key)}};var LD=class{constructor(e,t){this.indexManager=e,this.referenceDelegate=t,this.mutationQueue=[],this.er=1,this.Yr=new li(Vn.Qr)}checkEmpty(e){return Ie.resolve(this.mutationQueue.length===0)}addMutationBatch(e,t,n,i){let a=this.er;this.er++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];let s=new pD(a,t,n,i);this.mutationQueue.push(s);for(let o of i)this.Yr=this.Yr.add(new Vn(o.key,a)),this.indexManager.addToCollectionParentIndex(e,o.key.path.popLast());return Ie.resolve(s)}lookupMutationBatch(e,t){return Ie.resolve(this.Zr(t))}getNextMutationBatchAfterBatchId(e,t){let n=t+1,i=this.Xr(n),a=i<0?0:i;return Ie.resolve(this.mutationQueue.length>a?this.mutationQueue[a]:null)}getHighestUnacknowledgedBatchId(){return Ie.resolve(this.mutationQueue.length===0?NA:this.er-1)}getAllMutationBatches(e){return Ie.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,t){let n=new Vn(t,0),i=new Vn(t,Number.POSITIVE_INFINITY),a=[];return this.Yr.forEachInRange([n,i],s=>{let o=this.Zr(s.Hr);a.push(o)}),Ie.resolve(a)}getAllMutationBatchesAffectingDocumentKeys(e,t){let n=new li(qt);return t.forEach(i=>{let a=new Vn(i,0),s=new Vn(i,Number.POSITIVE_INFINITY);this.Yr.forEachInRange([a,s],o=>{n=n.add(o.Hr)})}),Ie.resolve(this.ei(n))}getAllMutationBatchesAffectingQuery(e,t){let n=t.path,i=n.length+1,a=n;lt.isDocumentKey(a)||(a=a.child(""));let s=new Vn(new lt(a),0),o=new li(qt);return this.Yr.forEachWhile(l=>{let c=l.key.path;return!!n.isPrefixOf(c)&&(c.length===i&&(o=o.add(l.Hr)),!0)},s),Ie.resolve(this.ei(o))}ei(e){let t=[];return e.forEach(n=>{let i=this.Zr(n);i!==null&&t.push(i)}),t}removeMutationBatch(e,t){nr(this.ti(t.batchId,"removed")===0,55003),this.mutationQueue.shift();let n=this.Yr;return Ie.forEach(t.mutations,i=>{let a=new Vn(i.key,t.batchId);return n=n.delete(a),this.referenceDelegate.markPotentiallyOrphaned(e,i.key)}).next(()=>{this.Yr=n})}rr(e){}containsKey(e,t){let n=new Vn(t,0),i=this.Yr.firstAfterOrEqual(n);return Ie.resolve(t.isEqual(i&&i.key))}performConsistencyCheck(e){return this.mutationQueue.length,Ie.resolve()}ti(e,t){return this.Xr(e)}Xr(e){return this.mutationQueue.length===0?0:e-this.mutationQueue[0].batchId}Zr(e){let t=this.Xr(e);return t<0||t>=this.mutationQueue.length?null:this.mutationQueue[t]}};var VD=class{constructor(e){this.ni=e,this.docs=(function(){return new pn(lt.comparator)})(),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,t){let n=t.key,i=this.docs.get(n),a=i?i.size:0,s=this.ni(t);return this.docs=this.docs.insert(n,{document:t.mutableCopy(),size:s}),this.size+=s-a,this.indexManager.addToCollectionParentIndex(e,n.path.popLast())}removeEntry(e){let t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)}getEntry(e,t){let n=this.docs.get(t);return Ie.resolve(n?n.document.mutableCopy():cs.newInvalidDocument(t))}getEntries(e,t){let n=ql();return t.forEach(i=>{let a=this.docs.get(i);n=n.insert(i,a?a.document.mutableCopy():cs.newInvalidDocument(i))}),Ie.resolve(n)}getDocumentsMatchingQuery(e,t,n,i){let a=ql(),s=t.path,o=new lt(s.child("__id-9223372036854775808__")),l=this.docs.getIteratorFrom(o);for(;l.hasNext();){let{key:c,value:{document:u}}=l.getNext();if(!s.isPrefixOf(c.path))break;c.path.length>s.length+1||lX(oX(u),n)<=0||(i.has(u.key)||qb(t,u))&&(a=a.insert(u.key,u.mutableCopy()))}return Ie.resolve(a)}getAllFromCollectionGroup(e,t,n,i){ut(9500)}ri(e,t){return Ie.forEach(this.docs,n=>t(n))}newChangeBuffer(e){return new UD(this)}getSize(e){return Ie.resolve(this.size)}},UD=class extends PD{constructor(e){super(),this.Or=e}applyChanges(e){let t=[];return this.changes.forEach((n,i)=>{i.isValidDocument()?t.push(this.Or.addEntry(e,i)):this.Or.removeEntry(n)}),Ie.waitFor(t)}getFromCache(e,t){return this.Or.getEntry(e,t)}getAllFromCache(e,t){return this.Or.getEntries(e,t)}};var zD=class{constructor(e){this.persistence=e,this.ii=new Wl(t=>zA(t),jA),this.lastRemoteSnapshotVersion=Dt.min(),this.highestTargetId=0,this.si=0,this.oi=new qg,this.targetCount=0,this._i=Wg.ar()}forEachTarget(e,t){return this.ii.forEach((n,i)=>t(i)),Ie.resolve()}getLastRemoteSnapshotVersion(e){return Ie.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return Ie.resolve(this.si)}allocateTargetId(e){return this.highestTargetId=this._i.next(),Ie.resolve(this.highestTargetId)}setTargetsMetadata(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.si&&(this.si=t),Ie.resolve()}hr(e){this.ii.set(e.target,e);let t=e.targetId;t>this.highestTargetId&&(this._i=new Wg(t),this.highestTargetId=t),e.sequenceNumber>this.si&&(this.si=e.sequenceNumber)}addTargetData(e,t){return this.hr(t),this.targetCount+=1,Ie.resolve()}updateTargetData(e,t){return this.hr(t),Ie.resolve()}removeTargetData(e,t){return this.ii.delete(t.target),this.oi.zr(t.targetId),this.targetCount-=1,Ie.resolve()}removeTargets(e,t,n){let i=0,a=[];return this.ii.forEach((s,o)=>{o.sequenceNumber<=t&&n.get(o.targetId)===null&&(this.ii.delete(s),a.push(this.removeMatchingKeysForTargetId(e,o.targetId)),i++)}),Ie.waitFor(a).next(()=>i)}getTargetCount(e){return Ie.resolve(this.targetCount)}getTargetData(e,t){let n=this.ii.get(t)||null;return Ie.resolve(n)}addMatchingKeys(e,t,n){return this.oi.Kr(t,n),Ie.resolve()}removeMatchingKeys(e,t,n){this.oi.Gr(t,n);let i=this.persistence.referenceDelegate,a=[];return i&&t.forEach(s=>{a.push(i.markPotentiallyOrphaned(e,s))}),Ie.waitFor(a)}removeMatchingKeysForTargetId(e,t){return this.oi.zr(t),Ie.resolve()}getMatchingKeysForTargetId(e,t){let n=this.oi.Jr(t);return Ie.resolve(n)}containsKey(e,t){return Ie.resolve(this.oi.containsKey(t))}};var xb=class{constructor(e,t){this.ai={},this.overlays={},this.ui=new BA(0),this.ci=!1,this.ci=!0,this.li=new ND,this.referenceDelegate=e(this),this.hi=new zD(this),this.indexManager=new SD,this.remoteDocumentCache=(function(i){return new VD(i)})(n=>this.referenceDelegate.Pi(n)),this.serializer=new CD(t),this.Ti=new FD(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.ci=!1,Promise.resolve()}get started(){return this.ci}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let t=this.overlays[e.toKey()];return t||(t=new BD,this.overlays[e.toKey()]=t),t}getMutationQueue(e,t){let n=this.ai[e.toKey()];return n||(n=new LD(t,this.referenceDelegate),this.ai[e.toKey()]=n),n}getGlobalsCache(){return this.li}getTargetCache(){return this.hi}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.Ti}runTransaction(e,t,n){tt("MemoryPersistence","Starting transaction:",e);let i=new jD(this.ui.next());return this.referenceDelegate.Ii(),n(i).next(a=>this.referenceDelegate.di(i).next(()=>a)).toPromise().then(a=>(i.raiseOnCommittedEvent(),a))}Ei(e,t){return Ie.or(Object.values(this.ai).map(n=>()=>n.containsKey(e,t)))}},jD=class extends ZS{constructor(e){super(),this.currentSequenceNumber=e}},HD=class r{constructor(e){this.persistence=e,this.Ai=new qg,this.Ri=null}static Vi(e){return new r(e)}get mi(){if(this.Ri)return this.Ri;throw ut(60996)}addReference(e,t,n){return this.Ai.addReference(n,t),this.mi.delete(n.toString()),Ie.resolve()}removeReference(e,t,n){return this.Ai.removeReference(n,t),this.mi.add(n.toString()),Ie.resolve()}markPotentiallyOrphaned(e,t){return this.mi.add(t.toString()),Ie.resolve()}removeTarget(e,t){this.Ai.zr(t.targetId).forEach(i=>this.mi.add(i.toString()));let n=this.persistence.getTargetCache();return n.getMatchingKeysForTargetId(e,t.targetId).next(i=>{i.forEach(a=>this.mi.add(a.toString()))}).next(()=>n.removeTargetData(e,t))}Ii(){this.Ri=new Set}di(e){let t=this.persistence.getRemoteDocumentCache().newChangeBuffer();return Ie.forEach(this.mi,n=>{let i=lt.fromPath(n);return this.fi(e,i).next(a=>{a||t.removeEntry(i,Dt.min())})}).next(()=>(this.Ri=null,t.apply(e)))}updateLimboDocument(e,t){return this.fi(e,t).next(n=>{n?this.mi.delete(t.toString()):this.mi.add(t.toString())})}Pi(e){return 0}fi(e,t){return Ie.or([()=>Ie.resolve(this.Ai.containsKey(t)),()=>this.persistence.getTargetCache().containsKey(e,t),()=>this.persistence.Ei(e,t)])}},Eb=class r{constructor(e,t){this.persistence=e,this.gi=new Wl(n=>hX(n.path),(n,i)=>n.isEqual(i)),this.garbageCollector=oQ(this,t)}static Vi(e,t){return new r(e,t)}Ii(){}di(e){return Ie.resolve()}forEachTarget(e,t){return this.persistence.getTargetCache().forEachTarget(e,t)}mr(e){let t=this.yr(e);return this.persistence.getTargetCache().getTargetCount(e).next(n=>t.next(i=>n+i))}yr(e){let t=0;return this.gr(e,n=>{t++}).next(()=>t)}gr(e,t){return Ie.forEach(this.gi,(n,i)=>this.Sr(e,n,i).next(a=>a?Ie.resolve():t(i)))}removeTargets(e,t,n){return this.persistence.getTargetCache().removeTargets(e,t,n)}removeOrphanedDocuments(e,t){let n=0,i=this.persistence.getRemoteDocumentCache(),a=i.newChangeBuffer();return i.ri(e,s=>this.Sr(e,s,t).next(o=>{o||(n++,a.removeEntry(s,Dt.min()))})).next(()=>a.apply(e)).next(()=>n)}markPotentiallyOrphaned(e,t){return this.gi.set(t,e.currentSequenceNumber),Ie.resolve()}removeTarget(e,t){let n=t.withSequenceNumber(e.currentSequenceNumber);return this.persistence.getTargetCache().updateTargetData(e,n)}addReference(e,t,n){return this.gi.set(n,e.currentSequenceNumber),Ie.resolve()}removeReference(e,t,n){return this.gi.set(n,e.currentSequenceNumber),Ie.resolve()}updateLimboDocument(e,t){return this.gi.set(t,e.currentSequenceNumber),Ie.resolve()}Pi(e){let t=e.key.toString().length;return e.isFoundDocument()&&(t+=nb(e.data.value)),t}Sr(e,t,n){return Ie.or([()=>this.persistence.Ei(e,t),()=>this.persistence.getTargetCache().containsKey(e,t),()=>{let i=this.gi.get(t);return Ie.resolve(i!==void 0&&i>n)}])}getCacheSize(e){return this.persistence.getRemoteDocumentCache().getSize(e)}};var $D=class r{constructor(e,t,n,i){this.targetId=e,this.fromCache=t,this.Is=n,this.ds=i}static Es(e,t){let n=er(),i=er();for(let a of t.docChanges)switch(a.type){case 0:n=n.add(a.doc.key);break;case 1:i=i.add(a.doc.key)}return new r(e,t.fromCache,n,i)}};var GD=class{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}};var WD=class{constructor(){this.As=!1,this.Rs=!1,this.Vs=100,this.fs=(function(){return vB()?8:uX(oi())>0?6:4})()}initialize(e,t){this.gs=e,this.indexManager=t,this.As=!0}getDocumentsMatchingQuery(e,t,n,i){let a={result:null};return this.ps(e,t).next(s=>{a.result=s}).next(()=>{if(!a.result)return this.ys(e,t,i,n).next(s=>{a.result=s})}).next(()=>{if(a.result)return;let s=new GD;return this.ws(e,t,s).next(o=>{if(a.result=o,this.Rs)return this.Ss(e,t,s,o.size)})}).next(()=>a.result)}Ss(e,t,n,i){return n.documentReadCount<this.Vs?(vf()<=Wt.DEBUG&&tt("QueryEngine","SDK will not create cache indexes for query:",_f(t),"since it only creates cache indexes for collection contains","more than or equal to",this.Vs,"documents"),Ie.resolve()):(vf()<=Wt.DEBUG&&tt("QueryEngine","Query:",_f(t),"scans",n.documentReadCount,"local documents and returns",i,"documents as results."),n.documentReadCount>this.fs*i?(vf()<=Wt.DEBUG&&tt("QueryEngine","The SDK decides to create cache indexes for query:",_f(t),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,zo(t))):Ie.resolve())}ps(e,t){if(qN(t))return Ie.resolve(null);let n=zo(t);return this.indexManager.getIndexType(e,n).next(i=>i===0?null:(t.limit!==null&&i===1&&(t=mb(t,null,"F"),n=zo(t)),this.indexManager.getDocumentsMatchingTarget(e,n).next(a=>{let s=er(...a);return this.gs.getDocuments(e,s).next(o=>this.indexManager.getMinOffset(e,n).next(l=>{let c=this.bs(t,o);return this.Ds(t,c,s,l.readTime)?this.ps(e,mb(t,null,"F")):this.vs(e,c,t,l)}))})))}ys(e,t,n,i){return qN(t)||i.isEqual(Dt.min())?Ie.resolve(null):this.gs.getDocuments(e,n).next(a=>{let s=this.bs(t,a);return this.Ds(t,s,n,i)?Ie.resolve(null):(vf()<=Wt.DEBUG&&tt("QueryEngine","Re-using previous result from %s to execute query: %s",i.toString(),_f(t)),this.vs(e,s,t,sX(i,Ug)).next(o=>o))})}bs(e,t){let n=new li(n4(e));return t.forEach((i,a)=>{qb(e,a)&&(n=n.add(a))}),n}Ds(e,t,n,i){if(e.limit===null)return!1;if(n.size!==t.size)return!0;let a=e.limitType==="F"?t.last():t.first();return!!a&&(a.hasPendingWrites||a.version.compareTo(i)>0)}ws(e,t,n){return vf()<=Wt.DEBUG&&tt("QueryEngine","Using full collection scan to execute query:",_f(t)),this.gs.getDocumentsMatchingQuery(e,t,xd.min(),n)}vs(e,t,n,i){return this.gs.getDocumentsMatchingQuery(e,n,i).next(a=>(t.forEach(s=>{a=a.insert(s.key,s)}),a))}};var WA="LocalStore",lQ=3e8,qD=class{constructor(e,t,n,i){this.persistence=e,this.Cs=t,this.serializer=i,this.Fs=new pn(qt),this.Ms=new Wl(a=>zA(a),jA),this.xs=new Map,this.Os=e.getRemoteDocumentCache(),this.hi=e.getTargetCache(),this.Ti=e.getBundleCache(),this.Ns(n)}Ns(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new OD(this.Os,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.Os.setIndexManager(this.indexManager),this.Cs.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",t=>e.collect(t,this.Fs))}};function cQ(r,e,t,n){return new qD(r,e,t,n)}function S4(r,e){return m(this,null,function*(){let t=Tt(r);return yield t.persistence.runTransaction("Handle user change","readonly",n=>{let i;return t.mutationQueue.getAllMutationBatches(n).next(a=>(i=a,t.Ns(e),t.mutationQueue.getAllMutationBatches(n))).next(a=>{let s=[],o=[],l=er();for(let c of i){s.push(c.batchId);for(let u of c.mutations)l=l.add(u.key)}for(let c of a){o.push(c.batchId);for(let u of c.mutations)l=l.add(u.key)}return t.localDocuments.getDocuments(n,l).next(c=>({Bs:c,removedBatchIds:s,addedBatchIds:o}))})})})}function uQ(r,e){let t=Tt(r);return t.persistence.runTransaction("Acknowledge batch","readwrite-primary",n=>{let i=e.batch.keys(),a=t.Os.newChangeBuffer({trackRemovals:!0});return(function(o,l,c,u){let d=c.batch,f=d.keys(),p=Ie.resolve();return f.forEach(g=>{p=p.next(()=>u.getEntry(l,g)).next(y=>{let v=c.docVersions.get(g);nr(v!==null,48541),y.version.compareTo(v)<0&&(d.applyToRemoteDocument(y,c),y.isValidDocument()&&(y.setReadTime(c.commitVersion),u.addEntry(y)))})}),p.next(()=>o.mutationQueue.removeMutationBatch(l,d))})(t,n,e,a).next(()=>a.apply(n)).next(()=>t.mutationQueue.performConsistencyCheck(n)).next(()=>t.documentOverlayCache.removeOverlaysForBatchId(n,i,e.batch.batchId)).next(()=>t.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(n,(function(o){let l=er();for(let c=0;c<o.mutationResults.length;++c)o.mutationResults[c].transformResults.length>0&&(l=l.add(o.batch.mutations[c].key));return l})(e))).next(()=>t.localDocuments.getDocuments(n,i))})}function D4(r){let e=Tt(r);return e.persistence.runTransaction("Get last remote snapshot version","readonly",t=>e.hi.getLastRemoteSnapshotVersion(t))}function dQ(r,e){let t=Tt(r),n=e.snapshotVersion,i=t.Fs;return t.persistence.runTransaction("Apply remote event","readwrite-primary",a=>{let s=t.Os.newChangeBuffer({trackRemovals:!0});i=t.Fs;let o=[];e.targetChanges.forEach((u,d)=>{let f=i.get(d);if(!f)return;o.push(t.hi.removeMatchingKeys(a,u.removedDocuments,d).next(()=>t.hi.addMatchingKeys(a,u.addedDocuments,d)));let p=f.withSequenceNumber(a.currentSequenceNumber);e.targetMismatches.get(d)!==null?p=p.withResumeToken(Gi.EMPTY_BYTE_STRING,Dt.min()).withLastLimboFreeSnapshotVersion(Dt.min()):u.resumeToken.approximateByteSize()>0&&(p=p.withResumeToken(u.resumeToken,n)),i=i.insert(d,p),(function(y,v,T){return y.resumeToken.approximateByteSize()===0||v.snapshotVersion.toMicroseconds()-y.snapshotVersion.toMicroseconds()>=lQ?!0:T.addedDocuments.size+T.modifiedDocuments.size+T.removedDocuments.size>0})(f,p,u)&&o.push(t.hi.updateTargetData(a,p))});let l=ql(),c=er();if(e.documentUpdates.forEach(u=>{e.resolvedLimboDocuments.has(u)&&o.push(t.persistence.referenceDelegate.updateLimboDocument(a,u))}),o.push(hQ(a,s,e.documentUpdates).next(u=>{l=u.Ls,c=u.ks})),!n.isEqual(Dt.min())){let u=t.hi.getLastRemoteSnapshotVersion(a).next(d=>t.hi.setTargetsMetadata(a,a.currentSequenceNumber,n));o.push(u)}return Ie.waitFor(o).next(()=>s.apply(a)).next(()=>t.localDocuments.getLocalViewOfDocuments(a,l,c)).next(()=>l)}).then(a=>(t.Fs=i,a))}function hQ(r,e,t){let n=er(),i=er();return t.forEach(a=>n=n.add(a)),e.getEntries(r,n).next(a=>{let s=ql();return t.forEach((o,l)=>{let c=a.get(o);l.isFoundDocument()!==c.isFoundDocument()&&(i=i.add(o)),l.isNoDocument()&&l.version.isEqual(Dt.min())?(e.removeEntry(o,l.readTime),s=s.insert(o,l)):!c.isValidDocument()||l.version.compareTo(c.version)>0||l.version.compareTo(c.version)===0&&c.hasPendingWrites?(e.addEntry(l),s=s.insert(o,l)):tt(WA,"Ignoring outdated watch update for ",o,". Current version:",c.version," Watch version:",l.version)}),{Ls:s,ks:i}})}function fQ(r,e){let t=Tt(r);return t.persistence.runTransaction("Get next mutation batch","readonly",n=>(e===void 0&&(e=NA),t.mutationQueue.getNextMutationBatchAfterBatchId(n,e)))}function mQ(r,e){let t=Tt(r);return t.persistence.runTransaction("Allocate target","readwrite",n=>{let i;return t.hi.getTargetData(n,e).next(a=>a?(i=a,Ie.resolve(i)):t.hi.allocateTargetId(n).next(s=>(i=new Gg(e,s,"TargetPurposeListen",n.currentSequenceNumber),t.hi.addTargetData(n,i).next(()=>i))))}).then(n=>{let i=t.Fs.get(n.targetId);return(i===null||n.snapshotVersion.compareTo(i.snapshotVersion)>0)&&(t.Fs=t.Fs.insert(n.targetId,n),t.Ms.set(e,n.targetId)),n})}function KD(r,e,t){return m(this,null,function*(){let n=Tt(r),i=n.Fs.get(e),a=t?"readwrite":"readwrite-primary";try{t||(yield n.persistence.runTransaction("Release target",a,s=>n.persistence.referenceDelegate.removeTarget(s,i)))}catch(s){if(!Bf(s))throw s;tt(WA,`Failed to update sequence numbers for target ${e}: ${s}`)}n.Fs=n.Fs.remove(e),n.Ms.delete(i.target)})}function sL(r,e,t){let n=Tt(r),i=Dt.min(),a=er();return n.persistence.runTransaction("Execute query","readwrite",s=>(function(l,c,u){let d=Tt(l),f=d.Ms.get(u);return f!==void 0?Ie.resolve(d.Fs.get(f)):d.hi.getTargetData(c,u)})(n,s,zo(e)).next(o=>{if(o)return i=o.lastLimboFreeSnapshotVersion,n.hi.getMatchingKeysForTargetId(s,o.targetId).next(l=>{a=l})}).next(()=>n.Cs.getDocumentsMatchingQuery(s,e,t?i:Dt.min(),t?a:er())).next(o=>(pQ(n,MX(e),o),{documents:o,qs:a})))}function pQ(r,e,t){let n=r.xs.get(e)||Dt.min();t.forEach((i,a)=>{a.readTime.compareTo(n)>0&&(n=a.readTime)}),r.xs.set(e,n)}var Tb=class{constructor(){this.activeTargetIds=BX()}Gs(e){this.activeTargetIds=this.activeTargetIds.add(e)}zs(e){this.activeTargetIds=this.activeTargetIds.delete(e)}Ws(){let e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}};var YD=class{constructor(){this.Fo=new Tb,this.Mo={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,t,n){}addLocalQueryTarget(e,t=!0){return t&&this.Fo.Gs(e),this.Mo[e]||"not-current"}updateQueryState(e,t,n){this.Mo[e]=t}removeLocalQueryTarget(e){this.Fo.zs(e)}isLocalQueryTarget(e){return this.Fo.activeTargetIds.has(e)}clearQueryState(e){delete this.Mo[e]}getAllActiveQueryTargets(){return this.Fo.activeTargetIds}isActiveQueryTarget(e){return this.Fo.activeTargetIds.has(e)}start(){return this.Fo=new Tb,Promise.resolve()}handleUserChange(e,t,n){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}};var XD=class{xo(e){}shutdown(){}};var oL="ConnectivityMonitor",Cb=class{constructor(){this.Oo=()=>this.No(),this.Bo=()=>this.Lo(),this.ko=[],this.qo()}xo(e){this.ko.push(e)}shutdown(){window.removeEventListener("online",this.Oo),window.removeEventListener("offline",this.Bo)}qo(){window.addEventListener("online",this.Oo),window.addEventListener("offline",this.Bo)}No(){tt(oL,"Network connectivity changed: AVAILABLE");for(let e of this.ko)e(0)}Lo(){tt(oL,"Network connectivity changed: UNAVAILABLE");for(let e of this.ko)e(1)}static C(){return typeof window<"u"&&window.addEventListener!==void 0&&window.removeEventListener!==void 0}};var rb=null;function QD(){return rb===null?rb=(function(){return 268435456+Math.round(2147483648*Math.random())})():rb++,"0x"+rb.toString(16)}var jS="RestConnection",gQ={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"},JD=class{get Qo(){return!1}constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;let t=e.ssl?"https":"http",n=encodeURIComponent(this.databaseId.projectId),i=encodeURIComponent(this.databaseId.database);this.$o=t+"://"+e.host,this.Uo=`projects/${n}/databases/${i}`,this.Ko=this.databaseId.database===ub?`project_id=${n}`:`project_id=${n}&database_id=${i}`}Wo(e,t,n,i,a){let s=QD(),o=this.Go(e,t.toUriEncodedString());tt(jS,`Sending RPC '${e}' ${s}:`,o,n);let l={"google-cloud-resource-prefix":this.Uo,"x-goog-request-params":this.Ko};this.zo(l,i,a);let{host:c}=new URL(o),u=ns(c);return this.jo(e,o,l,n,u).then(d=>(tt(jS,`Received RPC '${e}' ${s}: `,d),d),d=>{throw Id(jS,`RPC '${e}' ${s} failed with error: `,d,"url: ",o,"request:",n),d})}Jo(e,t,n,i,a,s){return this.Wo(e,t,n,i,a)}zo(e,t,n){e["X-Goog-Api-Client"]=(function(){return"gl-js/ fire/"+Of})(),e["Content-Type"]="text/plain",this.databaseInfo.appId&&(e["X-Firebase-GMPID"]=this.databaseInfo.appId),t&&t.headers.forEach((i,a)=>e[a]=i),n&&n.headers.forEach((i,a)=>e[a]=i)}Go(e,t){let n=gQ[e];return`${this.$o}/v1/${t}:${n}`}terminate(){}};var ZD=class{constructor(e){this.Ho=e.Ho,this.Yo=e.Yo}Zo(e){this.Xo=e}e_(e){this.t_=e}n_(e){this.r_=e}onMessage(e){this.i_=e}close(){this.Yo()}send(e){this.Ho(e)}s_(){this.Xo()}o_(){this.t_()}__(e){this.r_(e)}a_(e){this.i_(e)}};var Hi="WebChannelConnection",eA=class extends JD{constructor(e){super(e),this.u_=[],this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}jo(e,t,n,i,a){let s=QD();return new Promise((o,l)=>{let c=new NS;c.setWithCredentials(!0),c.listenOnce(LS.COMPLETE,()=>{try{switch(c.getLastErrorCode()){case Rg.NO_ERROR:let d=c.getResponseJson();tt(Hi,`XHR for RPC '${e}' ${s} received:`,JSON.stringify(d)),o(d);break;case Rg.TIMEOUT:tt(Hi,`RPC '${e}' ${s} timed out`),l(new Me(ae.DEADLINE_EXCEEDED,"Request time out"));break;case Rg.HTTP_ERROR:let f=c.getStatus();if(tt(Hi,`RPC '${e}' ${s} failed with status:`,f,"response text:",c.getResponseText()),f>0){let p=c.getResponseJson();Array.isArray(p)&&(p=p[0]);let g=p?.error;if(g&&g.status&&g.message){let y=(function(T){let C=T.toLowerCase().replace(/_/g,"-");return Object.values(ae).indexOf(C)>=0?C:ae.UNKNOWN})(g.status);l(new Me(y,g.message))}else l(new Me(ae.UNKNOWN,"Server responded with status "+c.getStatus()))}else l(new Me(ae.UNAVAILABLE,"Connection failed."));break;default:ut(9055,{c_:e,streamId:s,l_:c.getLastErrorCode(),h_:c.getLastError()})}}finally{tt(Hi,`RPC '${e}' ${s} completed.`)}});let u=JSON.stringify(i);tt(Hi,`RPC '${e}' ${s} sending request:`,i),c.send(t,"POST",u,n,15)})}P_(e,t,n){let i=QD(),a=[this.$o,"/","google.firestore.v1.Firestore","/",e,"/channel"],s=zS(),o=US(),l={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},c=this.longPollingOptions.timeoutSeconds;c!==void 0&&(l.longPollingTimeout=Math.round(1e3*c)),this.useFetchStreams&&(l.useFetchStreams=!0),this.zo(l.initMessageHeaders,t,n),l.encodeInitMessageHeaders=!0;let u=a.join("");tt(Hi,`Creating RPC '${e}' stream ${i}: ${u}`,l);let d=s.createWebChannel(u,l);this.T_(d);let f=!1,p=!1,g=new ZD({Ho:v=>{p?tt(Hi,`Not sending because RPC '${e}' stream ${i} is closed:`,v):(f||(tt(Hi,`Opening RPC '${e}' stream ${i} transport.`),d.open(),f=!0),tt(Hi,`RPC '${e}' stream ${i} sending:`,v),d.send(v))},Yo:()=>d.close()}),y=(v,T,C)=>{v.listen(T,x=>{try{C(x)}catch(B){setTimeout(()=>{throw B},0)}})};return y(d,yf.EventType.OPEN,()=>{p||(tt(Hi,`RPC '${e}' stream ${i} transport opened.`),g.s_())}),y(d,yf.EventType.CLOSE,()=>{p||(p=!0,tt(Hi,`RPC '${e}' stream ${i} transport closed`),g.__(),this.I_(d))}),y(d,yf.EventType.ERROR,v=>{p||(p=!0,Id(Hi,`RPC '${e}' stream ${i} transport errored. Name:`,v.name,"Message:",v.message),g.__(new Me(ae.UNAVAILABLE,"The operation could not be completed")))}),y(d,yf.EventType.MESSAGE,v=>{var T;if(!p){let C=v.data[0];nr(!!C,16349);let x=C,B=x?.error||((T=x[0])===null||T===void 0?void 0:T.error);if(B){tt(Hi,`RPC '${e}' stream ${i} received error:`,B);let q=B.status,V=(function(I){let S=Ln[I];if(S!==void 0)return p4(S)})(q),b=B.message;V===void 0&&(V=ae.INTERNAL,b="Unknown error status: "+q+" with message "+B.message),p=!0,g.__(new Me(V,b)),d.close()}else tt(Hi,`RPC '${e}' stream ${i} received:`,C),g.a_(C)}}),y(o,VS.STAT_EVENT,v=>{v.stat===Z_.PROXY?tt(Hi,`RPC '${e}' stream ${i} detected buffering proxy`):v.stat===Z_.NOPROXY&&tt(Hi,`RPC '${e}' stream ${i} detected no buffering proxy`)}),setTimeout(()=>{g.o_()},0),g}terminate(){this.u_.forEach(e=>e.close()),this.u_=[]}T_(e){this.u_.push(e)}I_(e){this.u_=this.u_.filter(t=>t===e)}};function HS(){return typeof document<"u"?document:null}function Kb(r){return new ID(r,!0)}var Kg=class{constructor(e,t,n=1e3,i=1.5,a=6e4){this.Fi=e,this.timerId=t,this.d_=n,this.E_=i,this.A_=a,this.R_=0,this.V_=null,this.m_=Date.now(),this.reset()}reset(){this.R_=0}f_(){this.R_=this.A_}g_(e){this.cancel();let t=Math.floor(this.R_+this.p_()),n=Math.max(0,Date.now()-this.m_),i=Math.max(0,t-n);i>0&&tt("ExponentialBackoff",`Backing off for ${i} ms (base delay: ${this.R_} ms, delay with jitter: ${t} ms, last attempt: ${n} ms ago)`),this.V_=this.Fi.enqueueAfterDelay(this.timerId,i,()=>(this.m_=Date.now(),e())),this.R_*=this.E_,this.R_<this.d_&&(this.R_=this.d_),this.R_>this.A_&&(this.R_=this.A_)}y_(){this.V_!==null&&(this.V_.skipDelay(),this.V_=null)}cancel(){this.V_!==null&&(this.V_.cancel(),this.V_=null)}p_(){return(Math.random()-.5)*this.R_}};var lL="PersistentStream",Sb=class{constructor(e,t,n,i,a,s,o,l){this.Fi=e,this.w_=n,this.S_=i,this.connection=a,this.authCredentialsProvider=s,this.appCheckCredentialsProvider=o,this.listener=l,this.state=0,this.b_=0,this.D_=null,this.v_=null,this.stream=null,this.C_=0,this.F_=new Kg(e,t)}M_(){return this.state===1||this.state===5||this.x_()}x_(){return this.state===2||this.state===3}start(){this.C_=0,this.state!==4?this.auth():this.O_()}stop(){return m(this,null,function*(){this.M_()&&(yield this.close(0))})}N_(){this.state=0,this.F_.reset()}B_(){this.x_()&&this.D_===null&&(this.D_=this.Fi.enqueueAfterDelay(this.w_,6e4,()=>this.L_()))}k_(e){this.q_(),this.stream.send(e)}L_(){return m(this,null,function*(){if(this.x_())return this.close(0)})}q_(){this.D_&&(this.D_.cancel(),this.D_=null)}Q_(){this.v_&&(this.v_.cancel(),this.v_=null)}close(e,t){return m(this,null,function*(){this.q_(),this.Q_(),this.F_.cancel(),this.b_++,e!==4?this.F_.reset():t&&t.code===ae.RESOURCE_EXHAUSTED?(Hl(t.toString()),Hl("Using maximum backoff delay to prevent overloading the backend."),this.F_.f_()):t&&t.code===ae.UNAUTHENTICATED&&this.state!==3&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),this.stream!==null&&(this.U_(),this.stream.close(),this.stream=null),this.state=e,yield this.listener.n_(t)})}U_(){}auth(){this.state=1;let e=this.K_(this.b_),t=this.b_;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([n,i])=>{this.b_===t&&this.W_(n,i)},n=>{e(()=>{let i=new Me(ae.UNKNOWN,"Fetching auth token failed: "+n.message);return this.G_(i)})})}W_(e,t){let n=this.K_(this.b_);this.stream=this.z_(e,t),this.stream.Zo(()=>{n(()=>this.listener.Zo())}),this.stream.e_(()=>{n(()=>(this.state=2,this.v_=this.Fi.enqueueAfterDelay(this.S_,1e4,()=>(this.x_()&&(this.state=3),Promise.resolve())),this.listener.e_()))}),this.stream.n_(i=>{n(()=>this.G_(i))}),this.stream.onMessage(i=>{n(()=>++this.C_==1?this.j_(i):this.onNext(i))})}O_(){this.state=5,this.F_.g_(()=>m(this,null,function*(){this.state=0,this.start()}))}G_(e){return tt(lL,`close with error: ${e}`),this.stream=null,this.close(4,e)}K_(e){return t=>{this.Fi.enqueueAndForget(()=>this.b_===e?t():(tt(lL,"stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}},tA=class extends Sb{constructor(e,t,n,i,a,s){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",t,n,i,s),this.serializer=a}z_(e,t){return this.connection.P_("Listen",e,t)}j_(e){return this.onNext(e)}onNext(e){this.F_.reset();let t=XX(this.serializer,e),n=(function(a){if(!("targetChange"in a))return Dt.min();let s=a.targetChange;return s.targetIds&&s.targetIds.length?Dt.min():s.readTime?ls(s.readTime):Dt.min()})(e);return this.listener.J_(t,n)}H_(e){let t={};t.database=TD(this.serializer),t.addTarget=(function(a,s){let o,l=s.target;if(o=hD(l)?{documents:JX(a,l)}:{query:w4(a,l).Vt},o.targetId=s.targetId,s.resumeToken.approximateByteSize()>0){o.resumeToken=g4(a,s.resumeToken);let c=xD(a,s.expectedCount);c!==null&&(o.expectedCount=c)}else if(s.snapshotVersion.compareTo(Dt.min())>0){o.readTime=bb(a,s.snapshotVersion.toTimestamp());let c=xD(a,s.expectedCount);c!==null&&(o.expectedCount=c)}return o})(this.serializer,e);let n=tQ(this.serializer,e);n&&(t.labels=n),this.k_(t)}Y_(e){let t={};t.database=TD(this.serializer),t.removeTarget=e,this.k_(t)}},rA=class extends Sb{constructor(e,t,n,i,a,s){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",t,n,i,s),this.serializer=a}get Z_(){return this.C_>0}start(){this.lastStreamToken=void 0,super.start()}U_(){this.Z_&&this.X_([])}z_(e,t){return this.connection.P_("Write",e,t)}j_(e){return nr(!!e.streamToken,31322),this.lastStreamToken=e.streamToken,nr(!e.writeResults||e.writeResults.length===0,55816),this.listener.ea()}onNext(e){nr(!!e.streamToken,12678),this.lastStreamToken=e.streamToken,this.F_.reset();let t=QX(e.writeResults,e.commitTime),n=ls(e.commitTime);return this.listener.ta(n,t)}na(){let e={};e.database=TD(this.serializer),this.k_(e)}X_(e){let t={streamToken:this.lastStreamToken,writes:e.map(n=>b4(this.serializer,n))};this.k_(t)}};var nA=class{},iA=class extends nA{constructor(e,t,n,i){super(),this.authCredentials=e,this.appCheckCredentials=t,this.connection=n,this.serializer=i,this.ra=!1}ia(){if(this.ra)throw new Me(ae.FAILED_PRECONDITION,"The client has already been terminated.")}Wo(e,t,n,i){return this.ia(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([a,s])=>this.connection.Wo(e,ED(t,n),i,a,s)).catch(a=>{throw a.name==="FirebaseError"?(a.code===ae.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),a):new Me(ae.UNKNOWN,a.toString())})}Jo(e,t,n,i,a){return this.ia(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([s,o])=>this.connection.Jo(e,ED(t,n),i,s,o,a)).catch(s=>{throw s.name==="FirebaseError"?(s.code===ae.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),s):new Me(ae.UNKNOWN,s.toString())})}terminate(){this.ra=!0,this.connection.terminate()}},aA=class{constructor(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state="Unknown",this.sa=0,this.oa=null,this._a=!0}aa(){this.sa===0&&(this.ua("Unknown"),this.oa=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.oa=null,this.ca("Backend didn't respond within 10 seconds."),this.ua("Offline"),Promise.resolve())))}la(e){this.state==="Online"?this.ua("Unknown"):(this.sa++,this.sa>=1&&(this.ha(),this.ca(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.ua("Offline")))}set(e){this.ha(),this.sa=0,e==="Online"&&(this._a=!1),this.ua(e)}ua(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}ca(e){let t=`Could not reach Cloud Firestore backend. ${e} 39This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this._a?(Hl(t),this._a=!1):tt("OnlineStateTracker",t)}ha(){this.oa!==null&&(this.oa.cancel(),this.oa=null)}};var Ad="RemoteStore",sA=class{constructor(e,t,n,i,a){this.localStore=e,this.datastore=t,this.asyncQueue=n,this.remoteSyncer={},this.Pa=[],this.Ta=new Map,this.Ia=new Set,this.da=[],this.Ea=a,this.Ea.xo(s=>{n.enqueueAndForget(()=>m(this,null,function*(){Rd(this)&&(tt(Ad,"Restarting streams for network reachability change."),yield(function(l){return m(this,null,function*(){let c=Tt(l);c.Ia.add(4),yield r0(c),c.Aa.set("Unknown"),c.Ia.delete(4),yield Yb(c)})})(this))}))}),this.Aa=new aA(n,i)}};function Yb(r){return m(this,null,function*(){if(Rd(r))for(let e of r.da)yield e(!0)})}function r0(r){return m(this,null,function*(){for(let e of r.da)yield e(!1)})}function A4(r,e){let t=Tt(r);t.Ta.has(e.targetId)||(t.Ta.set(e.targetId,e),XA(t)?YA(t):Nf(t).x_()&&KA(t,e))}function qA(r,e){let t=Tt(r),n=Nf(t);t.Ta.delete(e),n.x_()&&M4(t,e),t.Ta.size===0&&(n.x_()?n.B_():Rd(t)&&t.Aa.set("Unknown"))}function KA(r,e){if(r.Ra.$e(e.targetId),e.resumeToken.approximateByteSize()>0||e.snapshotVersion.compareTo(Dt.min())>0){let t=r.remoteSyncer.getRemoteKeysForTarget(e.targetId).size;e=e.withExpectedCount(t)}Nf(r).H_(e)}function M4(r,e){r.Ra.$e(e),Nf(r).Y_(e)}function YA(r){r.Ra=new wD({getRemoteKeysForTarget:e=>r.remoteSyncer.getRemoteKeysForTarget(e),Et:e=>r.Ta.get(e)||null,lt:()=>r.datastore.serializer.databaseId}),Nf(r).start(),r.Aa.aa()}function XA(r){return Rd(r)&&!Nf(r).M_()&&r.Ta.size>0}function Rd(r){return Tt(r).Ia.size===0}function k4(r){r.Ra=void 0}function yQ(r){return m(this,null,function*(){r.Aa.set("Online")})}function vQ(r){return m(this,null,function*(){r.Ta.forEach((e,t)=>{KA(r,e)})})}function _Q(r,e){return m(this,null,function*(){k4(r),XA(r)?(r.Aa.la(e),YA(r)):r.Aa.set("Unknown")})}function bQ(r,e,t){return m(this,null,function*(){if(r.Aa.set("Online"),e instanceof vb&&e.state===2&&e.cause)try{yield(function(i,a){return m(this,null,function*(){let s=a.cause;for(let o of a.targetIds)i.Ta.has(o)&&(yield i.remoteSyncer.rejectListen(o,s),i.Ta.delete(o),i.Ra.removeTarget(o))})})(r,e)}catch(n){tt(Ad,"Failed to remove targets %s: %s ",e.targetIds.join(","),n),yield Db(r,n)}else if(e instanceof xf?r.Ra.Ye(e):e instanceof yb?r.Ra.it(e):r.Ra.et(e),!t.isEqual(Dt.min()))try{let n=yield D4(r.localStore);t.compareTo(n)>=0&&(yield(function(a,s){let o=a.Ra.Pt(s);return o.targetChanges.forEach((l,c)=>{if(l.resumeToken.approximateByteSize()>0){let u=a.Ta.get(c);u&&a.Ta.set(c,u.withResumeToken(l.resumeToken,s))}}),o.targetMismatches.forEach((l,c)=>{let u=a.Ta.get(l);if(!u)return;a.Ta.set(l,u.withResumeToken(Gi.EMPTY_BYTE_STRING,u.snapshotVersion)),M4(a,l);let d=new Gg(u.target,l,c,u.sequenceNumber);KA(a,d)}),a.remoteSyncer.applyRemoteEvent(o)})(r,t))}catch(n){tt(Ad,"Failed to raise snapshot:",n),yield Db(r,n)}})}function Db(r,e,t){return m(this,null,function*(){if(!Bf(e))throw e;r.Ia.add(1),yield r0(r),r.Aa.set("Offline"),t||(t=()=>D4(r.localStore)),r.asyncQueue.enqueueRetryable(()=>m(null,null,function*(){tt(Ad,"Retrying IndexedDB access"),yield t(),r.Ia.delete(1),yield Yb(r)}))})}function P4(r,e){return e().catch(t=>Db(r,t,e))}function Xb(r){return m(this,null,function*(){let e=Tt(r),t=Wc(e),n=e.Pa.length>0?e.Pa[e.Pa.length-1].batchId:NA;for(;wQ(e);)try{let i=yield fQ(e.localStore,n);if(i===null){e.Pa.length===0&&t.B_();break}n=i.batchId,IQ(e,i)}catch(i){yield Db(e,i)}R4(e)&&O4(e)})}function wQ(r){return Rd(r)&&r.Pa.length<10}function IQ(r,e){r.Pa.push(e);let t=Wc(r);t.x_()&&t.Z_&&t.X_(e.mutations)}function R4(r){return Rd(r)&&!Wc(r).M_()&&r.Pa.length>0}function O4(r){Wc(r).start()}function xQ(r){return m(this,null,function*(){Wc(r).na()})}function EQ(r){return m(this,null,function*(){let e=Wc(r);for(let t of r.Pa)e.X_(t.mutations)})}function TQ(r,e,t){return m(this,null,function*(){let n=r.Pa.shift(),i=gD.from(n,e,t);yield P4(r,()=>r.remoteSyncer.applySuccessfulWrite(i)),yield Xb(r)})}function CQ(r,e){return m(this,null,function*(){e&&Wc(r).Z_&&(yield(function(n,i){return m(this,null,function*(){if((function(s){return m4(s)&&s!==ae.ABORTED})(i.code)){let a=n.Pa.shift();Wc(n).N_(),yield P4(n,()=>n.remoteSyncer.rejectFailedWrite(a.batchId,i)),yield Xb(n)}})})(r,e)),R4(r)&&O4(r)})}function cL(r,e){return m(this,null,function*(){let t=Tt(r);t.asyncQueue.verifyOperationInProgress(),tt(Ad,"RemoteStore received new credentials");let n=Rd(t);t.Ia.add(3),yield r0(t),n&&t.Aa.set("Unknown"),yield t.remoteSyncer.handleCredentialChange(e),t.Ia.delete(3),yield Yb(t)})}function SQ(r,e){return m(this,null,function*(){let t=Tt(r);e?(t.Ia.delete(2),yield Yb(t)):e||(t.Ia.add(2),yield r0(t),t.Aa.set("Unknown"))})}function Nf(r){return r.Va||(r.Va=(function(t,n,i){let a=Tt(t);return a.ia(),new tA(n,a.connection,a.authCredentials,a.appCheckCredentials,a.serializer,i)})(r.datastore,r.asyncQueue,{Zo:yQ.bind(null,r),e_:vQ.bind(null,r),n_:_Q.bind(null,r),J_:bQ.bind(null,r)}),r.da.push(e=>m(null,null,function*(){e?(r.Va.N_(),XA(r)?YA(r):r.Aa.set("Unknown")):(yield r.Va.stop(),k4(r))}))),r.Va}function Wc(r){return r.ma||(r.ma=(function(t,n,i){let a=Tt(t);return a.ia(),new rA(n,a.connection,a.authCredentials,a.appCheckCredentials,a.serializer,i)})(r.datastore,r.asyncQueue,{Zo:()=>Promise.resolve(),e_:xQ.bind(null,r),n_:CQ.bind(null,r),ea:EQ.bind(null,r),ta:TQ.bind(null,r)}),r.da.push(e=>m(null,null,function*(){e?(r.ma.N_(),yield Xb(r)):(yield r.ma.stop(),r.Pa.length>0&&(tt(Ad,`Stopping write stream with ${r.Pa.length} pending writes`),r.Pa=[]))}))),r.ma}var oA=class r{constructor(e,t,n,i,a){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=n,this.op=i,this.removalCallback=a,this.deferred=new ss,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(s=>{})}get promise(){return this.deferred.promise}static createAndSchedule(e,t,n,i,a){let s=Date.now()+n,o=new r(e,t,s,i,a);return o.start(n),o}start(e){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){this.timerHandle!==null&&(this.clearTimeout(),this.deferred.reject(new Me(ae.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>this.timerHandle!==null?(this.clearTimeout(),this.op().then(e=>this.deferred.resolve(e))):Promise.resolve())}clearTimeout(){this.timerHandle!==null&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}};function QA(r,e){if(Hl("AsyncQueue",`${e}: ${r}`),Bf(r))return new Me(ae.UNAVAILABLE,`${e}: ${r}`);throw r}var Ab=class r{static emptySet(e){return new r(e.comparator)}constructor(e){this.comparator=e?(t,n)=>e(t,n)||lt.comparator(t.key,n.key):(t,n)=>lt.comparator(t.key,n.key),this.keyedMap=Og(),this.sortedSet=new pn(this.comparator)}has(e){return this.keyedMap.get(e)!=null}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){let t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal((t,n)=>(e(t),!1))}add(e){let t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))}delete(e){let t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this}isEqual(e){if(!(e instanceof r)||this.size!==e.size)return!1;let t=this.sortedSet.getIterator(),n=e.sortedSet.getIterator();for(;t.hasNext();){let i=t.getNext().key,a=n.getNext().key;if(!i.isEqual(a))return!1}return!0}toString(){let e=[];return this.forEach(t=>{e.push(t.toString())}),e.length===0?"DocumentSet ()":`DocumentSet ( 40 `+e.join(` 41`)+` 42)`}copy(e,t){let n=new r;return n.comparator=this.comparator,n.keyedMap=e,n.sortedSet=t,n}};var Mb=class{constructor(){this.fa=new pn(lt.comparator)}track(e){let t=e.doc.key,n=this.fa.get(t);n?e.type!==0&&n.type===3?this.fa=this.fa.insert(t,e):e.type===3&&n.type!==1?this.fa=this.fa.insert(t,{type:n.type,doc:e.doc}):e.type===2&&n.type===2?this.fa=this.fa.insert(t,{type:2,doc:e.doc}):e.type===2&&n.type===0?this.fa=this.fa.insert(t,{type:0,doc:e.doc}):e.type===1&&n.type===0?this.fa=this.fa.remove(t):e.type===1&&n.type===2?this.fa=this.fa.insert(t,{type:1,doc:n.doc}):e.type===0&&n.type===1?this.fa=this.fa.insert(t,{type:2,doc:e.doc}):ut(63341,{At:e,ga:n}):this.fa=this.fa.insert(t,e)}pa(){let e=[];return this.fa.inorderTraversal((t,n)=>{e.push(n)}),e}},Rf=class r{constructor(e,t,n,i,a,s,o,l,c){this.query=e,this.docs=t,this.oldDocs=n,this.docChanges=i,this.mutatedKeys=a,this.fromCache=s,this.syncStateChanged=o,this.excludesMetadataChanges=l,this.hasCachedResults=c}static fromInitialDocuments(e,t,n,i,a){let s=[];return t.forEach(o=>{s.push({type:0,doc:o})}),new r(e,t,Ab.emptySet(t),s,n,i,!0,!1,a)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&Wb(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;let t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++)if(t[i].type!==n[i].type||!t[i].doc.isEqual(n[i].doc))return!1;return!0}};var lA=class{constructor(){this.ya=void 0,this.wa=[]}Sa(){return this.wa.some(e=>e.ba())}},cA=class{constructor(){this.queries=uL(),this.onlineState="Unknown",this.Da=new Set}terminate(){(function(t,n){let i=Tt(t),a=i.queries;i.queries=uL(),a.forEach((s,o)=>{for(let l of o.wa)l.onError(n)})})(this,new Me(ae.ABORTED,"Firestore shutting down"))}};function uL(){return new Wl(r=>r4(r),Wb)}function JA(r,e){return m(this,null,function*(){let t=Tt(r),n=3,i=e.query,a=t.queries.get(i);a?!a.Sa()&&e.ba()&&(n=2):(a=new lA,n=e.ba()?0:1);try{switch(n){case 0:a.ya=yield t.onListen(i,!0);break;case 1:a.ya=yield t.onListen(i,!1);break;case 2:yield t.onFirstRemoteStoreListen(i)}}catch(s){let o=QA(s,`Initialization of query '${_f(e.query)}' failed`);return void e.onError(o)}t.queries.set(i,a),a.wa.push(e),e.va(t.onlineState),a.ya&&e.Ca(a.ya)&&eM(t)})}function ZA(r,e){return m(this,null,function*(){let t=Tt(r),n=e.query,i=3,a=t.queries.get(n);if(a){let s=a.wa.indexOf(e);s>=0&&(a.wa.splice(s,1),a.wa.length===0?i=e.ba()?0:1:!a.Sa()&&e.ba()&&(i=2))}switch(i){case 0:return t.queries.delete(n),t.onUnlisten(n,!0);case 1:return t.queries.delete(n),t.onUnlisten(n,!1);case 2:return t.onLastRemoteStoreUnlisten(n);default:return}})}function DQ(r,e){let t=Tt(r),n=!1;for(let i of e){let a=i.query,s=t.queries.get(a);if(s){for(let o of s.wa)o.Ca(i)&&(n=!0);s.ya=i}}n&&eM(t)}function AQ(r,e,t){let n=Tt(r),i=n.queries.get(e);if(i)for(let a of i.wa)a.onError(t);n.queries.delete(e)}function eM(r){r.Da.forEach(e=>{e.next()})}var uA,dL;(dL=uA||(uA={})).Fa="default",dL.Cache="cache";var Yg=class{constructor(e,t,n){this.query=e,this.Ma=t,this.xa=!1,this.Oa=null,this.onlineState="Unknown",this.options=n||{}}Ca(e){if(!this.options.includeMetadataChanges){let n=[];for(let i of e.docChanges)i.type!==3&&n.push(i);e=new Rf(e.query,e.docs,e.oldDocs,n,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let t=!1;return this.xa?this.Na(e)&&(this.Ma.next(e),t=!0):this.Ba(e,this.onlineState)&&(this.La(e),t=!0),this.Oa=e,t}onError(e){this.Ma.error(e)}va(e){this.onlineState=e;let t=!1;return this.Oa&&!this.xa&&this.Ba(this.Oa,e)&&(this.La(this.Oa),t=!0),t}Ba(e,t){if(!e.fromCache||!this.ba())return!0;let n=t!=="Offline";return(!this.options.ka||!n)&&(!e.docs.isEmpty()||e.hasCachedResults||t==="Offline")}Na(e){if(e.docChanges.length>0)return!0;let t=this.Oa&&this.Oa.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&this.options.includeMetadataChanges===!0}La(e){e=Rf.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.xa=!0,this.Ma.next(e)}ba(){return this.options.source!==uA.Cache}};var kb=class{constructor(e){this.key=e}},Pb=class{constructor(e){this.key=e}},dA=class{constructor(e,t){this.query=e,this.Ha=t,this.Ya=null,this.hasCachedResults=!1,this.current=!1,this.Za=er(),this.mutatedKeys=er(),this.Xa=n4(e),this.eu=new Ab(this.Xa)}get tu(){return this.Ha}nu(e,t){let n=t?t.ru:new Mb,i=t?t.eu:this.eu,a=t?t.mutatedKeys:this.mutatedKeys,s=i,o=!1,l=this.query.limitType==="F"&&i.size===this.query.limit?i.last():null,c=this.query.limitType==="L"&&i.size===this.query.limit?i.first():null;if(e.inorderTraversal((u,d)=>{let f=i.get(u),p=qb(this.query,d)?d:null,g=!!f&&this.mutatedKeys.has(f.key),y=!!p&&(p.hasLocalMutations||this.mutatedKeys.has(p.key)&&p.hasCommittedMutations),v=!1;f&&p?f.data.isEqual(p.data)?g!==y&&(n.track({type:3,doc:p}),v=!0):this.iu(f,p)||(n.track({type:2,doc:p}),v=!0,(l&&this.Xa(p,l)>0||c&&this.Xa(p,c)<0)&&(o=!0)):!f&&p?(n.track({type:0,doc:p}),v=!0):f&&!p&&(n.track({type:1,doc:f}),v=!0,(l||c)&&(o=!0)),v&&(p?(s=s.add(p),a=y?a.add(u):a.delete(u)):(s=s.delete(u),a=a.delete(u)))}),this.query.limit!==null)for(;s.size>this.query.limit;){let u=this.query.limitType==="F"?s.last():s.first();s=s.delete(u.key),a=a.delete(u.key),n.track({type:1,doc:u})}return{eu:s,ru:n,Ds:o,mutatedKeys:a}}iu(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}applyChanges(e,t,n,i){let a=this.eu;this.eu=e.eu,this.mutatedKeys=e.mutatedKeys;let s=e.ru.pa();s.sort((u,d)=>(function(p,g){let y=v=>{switch(v){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return ut(20277,{At:v})}};return y(p)-y(g)})(u.type,d.type)||this.Xa(u.doc,d.doc)),this.su(n),i=i!=null&&i;let o=t&&!i?this.ou():[],l=this.Za.size===0&&this.current&&!i?1:0,c=l!==this.Ya;return this.Ya=l,s.length!==0||c?{snapshot:new Rf(this.query,e.eu,a,s,e.mutatedKeys,l===0,c,!1,!!n&&n.resumeToken.approximateByteSize()>0),_u:o}:{_u:o}}va(e){return this.current&&e==="Offline"?(this.current=!1,this.applyChanges({eu:this.eu,ru:new Mb,mutatedKeys:this.mutatedKeys,Ds:!1},!1)):{_u:[]}}au(e){return!this.Ha.has(e)&&!!this.eu.has(e)&&!this.eu.get(e).hasLocalMutations}su(e){e&&(e.addedDocuments.forEach(t=>this.Ha=this.Ha.add(t)),e.modifiedDocuments.forEach(t=>{}),e.removedDocuments.forEach(t=>this.Ha=this.Ha.delete(t)),this.current=e.current)}ou(){if(!this.current)return[];let e=this.Za;this.Za=er(),this.eu.forEach(n=>{this.au(n.key)&&(this.Za=this.Za.add(n.key))});let t=[];return e.forEach(n=>{this.Za.has(n)||t.push(new Pb(n))}),this.Za.forEach(n=>{e.has(n)||t.push(new kb(n))}),t}uu(e){this.Ha=e.qs,this.Za=er();let t=this.nu(e.documents);return this.applyChanges(t,!0)}cu(){return Rf.fromInitialDocuments(this.query,this.eu,this.mutatedKeys,this.Ya===0,this.hasCachedResults)}},tM="SyncEngine",hA=class{constructor(e,t,n){this.query=e,this.targetId=t,this.view=n}},fA=class{constructor(e){this.key=e,this.lu=!1}},mA=class{constructor(e,t,n,i,a,s){this.localStore=e,this.remoteStore=t,this.eventManager=n,this.sharedClientState=i,this.currentUser=a,this.maxConcurrentLimboResolutions=s,this.hu={},this.Pu=new Wl(o=>r4(o),Wb),this.Tu=new Map,this.Iu=new Set,this.du=new pn(lt.comparator),this.Eu=new Map,this.Au=new qg,this.Ru={},this.Vu=new Map,this.mu=Wg.ur(),this.onlineState="Unknown",this.fu=void 0}get isPrimaryClient(){return this.fu===!0}};function MQ(r,e,t=!0){return m(this,null,function*(){let n=U4(r),i,a=n.Pu.get(e);return a?(n.sharedClientState.addLocalQueryTarget(a.targetId),i=a.view.cu()):i=yield F4(n,e,t,!0),i})}function kQ(r,e){return m(this,null,function*(){let t=U4(r);yield F4(t,e,!0,!1)})}function F4(r,e,t,n){return m(this,null,function*(){let i=yield mQ(r.localStore,zo(e)),a=i.targetId,s=r.sharedClientState.addLocalQueryTarget(a,t),o;return n&&(o=yield PQ(r,e,a,s==="current",i.resumeToken)),r.isPrimaryClient&&t&&A4(r.remoteStore,i),o})}function PQ(r,e,t,n,i){return m(this,null,function*(){r.gu=(d,f,p)=>(function(y,v,T,C){return m(this,null,function*(){let x=v.view.nu(T);x.Ds&&(x=yield sL(y.localStore,v.query,!1).then(({documents:b})=>v.view.nu(b,x)));let B=C&&C.targetChanges.get(v.targetId),q=C&&C.targetMismatches.get(v.targetId)!=null,V=v.view.applyChanges(x,y.isPrimaryClient,B,q);return fL(y,v.targetId,V._u),V.snapshot})})(r,d,f,p);let a=yield sL(r.localStore,e,!0),s=new dA(e,a.qs),o=s.nu(a.documents),l=$g.createSynthesizedTargetChangeForCurrentChange(t,n&&r.onlineState!=="Offline",i),c=s.applyChanges(o,r.isPrimaryClient,l);fL(r,t,c._u);let u=new hA(e,t,s);return r.Pu.set(e,u),r.Tu.has(t)?r.Tu.get(t).push(e):r.Tu.set(t,[e]),c.snapshot})}function RQ(r,e,t){return m(this,null,function*(){let n=Tt(r),i=n.Pu.get(e),a=n.Tu.get(i.targetId);if(a.length>1)return n.Tu.set(i.targetId,a.filter(s=>!Wb(s,e))),void n.Pu.delete(e);n.isPrimaryClient?(n.sharedClientState.removeLocalQueryTarget(i.targetId),n.sharedClientState.isActiveQueryTarget(i.targetId)||(yield KD(n.localStore,i.targetId,!1).then(()=>{n.sharedClientState.clearQueryState(i.targetId),t&&qA(n.remoteStore,i.targetId),pA(n,i.targetId)}).catch(Ff))):(pA(n,i.targetId),yield KD(n.localStore,i.targetId,!0))})}function OQ(r,e){return m(this,null,function*(){let t=Tt(r),n=t.Pu.get(e),i=t.Tu.get(n.targetId);t.isPrimaryClient&&i.length===1&&(t.sharedClientState.removeLocalQueryTarget(n.targetId),qA(t.remoteStore,n.targetId))})}function FQ(r,e,t){return m(this,null,function*(){let n=jQ(r);try{let i=yield(function(s,o){let l=Tt(s),c=jn.now(),u=o.reduce((p,g)=>p.add(g.key),er()),d,f;return l.persistence.runTransaction("Locally write mutations","readwrite",p=>{let g=ql(),y=er();return l.Os.getEntries(p,u).next(v=>{g=v,g.forEach((T,C)=>{C.isValidDocument()||(y=y.add(T))})}).next(()=>l.localDocuments.getOverlayedDocuments(p,g)).next(v=>{d=v;let T=[];for(let C of o){let x=jX(C,d.get(C.key).overlayedDocument);x!=null&&T.push(new $o(C.key,x,YL(x.value.mapValue),Di.exists(!0)))}return l.mutationQueue.addMutationBatch(p,c,T,o)}).next(v=>{f=v;let T=v.applyToLocalDocumentSet(d,y);return l.documentOverlayCache.saveOverlays(p,v.batchId,T)})}).then(()=>({batchId:f.batchId,changes:a4(d)}))})(n.localStore,e);n.sharedClientState.addPendingMutation(i.batchId),(function(s,o,l){let c=s.Ru[s.currentUser.toKey()];c||(c=new pn(qt)),c=c.insert(o,l),s.Ru[s.currentUser.toKey()]=c})(n,i.batchId,t),yield n0(n,i.changes),yield Xb(n.remoteStore)}catch(i){let a=QA(i,"Failed to persist write");t.reject(a)}})}function B4(r,e){return m(this,null,function*(){let t=Tt(r);try{let n=yield dQ(t.localStore,e);e.targetChanges.forEach((i,a)=>{let s=t.Eu.get(a);s&&(nr(i.addedDocuments.size+i.modifiedDocuments.size+i.removedDocuments.size<=1,22616),i.addedDocuments.size>0?s.lu=!0:i.modifiedDocuments.size>0?nr(s.lu,14607):i.removedDocuments.size>0&&(nr(s.lu,42227),s.lu=!1))}),yield n0(t,n,e)}catch(n){yield Ff(n)}})}function hL(r,e,t){let n=Tt(r);if(n.isPrimaryClient&&t===0||!n.isPrimaryClient&&t===1){let i=[];n.Pu.forEach((a,s)=>{let o=s.view.va(e);o.snapshot&&i.push(o.snapshot)}),(function(s,o){let l=Tt(s);l.onlineState=o;let c=!1;l.queries.forEach((u,d)=>{for(let f of d.wa)f.va(o)&&(c=!0)}),c&&eM(l)})(n.eventManager,e),i.length&&n.hu.J_(i),n.onlineState=e,n.isPrimaryClient&&n.sharedClientState.setOnlineState(e)}}function BQ(r,e,t){return m(this,null,function*(){let n=Tt(r);n.sharedClientState.updateQueryState(e,"rejected",t);let i=n.Eu.get(e),a=i&&i.key;if(a){let s=new pn(lt.comparator);s=s.insert(a,cs.newNoDocument(a,Dt.min()));let o=er().add(a),l=new gb(Dt.min(),new Map,new pn(qt),s,o);yield B4(n,l),n.du=n.du.remove(a),n.Eu.delete(e),rM(n)}else yield KD(n.localStore,e,!1).then(()=>pA(n,e,t)).catch(Ff)})}function NQ(r,e){return m(this,null,function*(){let t=Tt(r),n=e.batch.batchId;try{let i=yield uQ(t.localStore,e);L4(t,n,null),N4(t,n),t.sharedClientState.updateMutationState(n,"acknowledged"),yield n0(t,i)}catch(i){yield Ff(i)}})}function LQ(r,e,t){return m(this,null,function*(){let n=Tt(r);try{let i=yield(function(s,o){let l=Tt(s);return l.persistence.runTransaction("Reject batch","readwrite-primary",c=>{let u;return l.mutationQueue.lookupMutationBatch(c,o).next(d=>(nr(d!==null,37113),u=d.keys(),l.mutationQueue.removeMutationBatch(c,d))).next(()=>l.mutationQueue.performConsistencyCheck(c)).next(()=>l.documentOverlayCache.removeOverlaysForBatchId(c,u,o)).next(()=>l.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(c,u)).next(()=>l.localDocuments.getDocuments(c,u))})})(n.localStore,e);L4(n,e,t),N4(n,e),n.sharedClientState.updateMutationState(e,"rejected",t),yield n0(n,i)}catch(i){yield Ff(i)}})}function N4(r,e){(r.Vu.get(e)||[]).forEach(t=>{t.resolve()}),r.Vu.delete(e)}function L4(r,e,t){let n=Tt(r),i=n.Ru[n.currentUser.toKey()];if(i){let a=i.get(e);a&&(t?a.reject(t):a.resolve(),i=i.remove(e)),n.Ru[n.currentUser.toKey()]=i}}function pA(r,e,t=null){r.sharedClientState.removeLocalQueryTarget(e);for(let n of r.Tu.get(e))r.Pu.delete(n),t&&r.hu.pu(n,t);r.Tu.delete(e),r.isPrimaryClient&&r.Au.zr(e).forEach(n=>{r.Au.containsKey(n)||V4(r,n)})}function V4(r,e){r.Iu.delete(e.path.canonicalString());let t=r.du.get(e);t!==null&&(qA(r.remoteStore,t),r.du=r.du.remove(e),r.Eu.delete(t),rM(r))}function fL(r,e,t){for(let n of t)n instanceof kb?(r.Au.addReference(n.key,e),VQ(r,n)):n instanceof Pb?(tt(tM,"Document no longer in limbo: "+n.key),r.Au.removeReference(n.key,e),r.Au.containsKey(n.key)||V4(r,n.key)):ut(19791,{yu:n})}function VQ(r,e){let t=e.key,n=t.path.canonicalString();r.du.get(t)||r.Iu.has(n)||(tt(tM,"New document in limbo: "+t),r.Iu.add(n),rM(r))}function rM(r){for(;r.Iu.size>0&&r.du.size<r.maxConcurrentLimboResolutions;){let e=r.Iu.values().next().value;r.Iu.delete(e);let t=new lt(Br.fromString(e)),n=r.mu.next();r.Eu.set(n,new fA(t)),r.du=r.du.insert(t,n),A4(r.remoteStore,new Gg(zo(Gb(t.path)),n,"TargetPurposeLimboResolution",BA.ue))}}function n0(r,e,t){return m(this,null,function*(){let n=Tt(r),i=[],a=[],s=[];n.Pu.isEmpty()||(n.Pu.forEach((o,l)=>{s.push(n.gu(l,e,t).then(c=>{var u;if((c||t)&&n.isPrimaryClient){let d=c?!c.fromCache:(u=t?.targetChanges.get(l.targetId))===null||u===void 0?void 0:u.current;n.sharedClientState.updateQueryState(l.targetId,d?"current":"not-current")}if(c){i.push(c);let d=$D.Es(l.targetId,c);a.push(d)}}))}),yield Promise.all(s),n.hu.J_(i),yield(function(l,c){return m(this,null,function*(){let u=Tt(l);try{yield u.persistence.runTransaction("notifyLocalViewChanges","readwrite",d=>Ie.forEach(c,f=>Ie.forEach(f.Is,p=>u.persistence.referenceDelegate.addReference(d,f.targetId,p)).next(()=>Ie.forEach(f.ds,p=>u.persistence.referenceDelegate.removeReference(d,f.targetId,p)))))}catch(d){if(!Bf(d))throw d;tt(WA,"Failed to update sequence numbers: "+d)}for(let d of c){let f=d.targetId;if(!d.fromCache){let p=u.Fs.get(f),g=p.snapshotVersion,y=p.withLastLimboFreeSnapshotVersion(g);u.Fs=u.Fs.insert(f,y)}}})})(n.localStore,a))})}function UQ(r,e){return m(this,null,function*(){let t=Tt(r);if(!t.currentUser.isEqual(e)){tt(tM,"User change. New user:",e.toKey());let n=yield S4(t.localStore,e);t.currentUser=e,(function(a,s){a.Vu.forEach(o=>{o.forEach(l=>{l.reject(new Me(ae.CANCELLED,s))})}),a.Vu.clear()})(t,"'waitForPendingWrites' promise is rejected due to a user change."),t.sharedClientState.handleUserChange(e,n.removedBatchIds,n.addedBatchIds),yield n0(t,n.Bs)}})}function zQ(r,e){let t=Tt(r),n=t.Eu.get(e);if(n&&n.lu)return er().add(n.key);{let i=er(),a=t.Tu.get(e);if(!a)return i;for(let s of a){let o=t.Pu.get(s);i=i.unionWith(o.view.tu)}return i}}function U4(r){let e=Tt(r);return e.remoteStore.remoteSyncer.applyRemoteEvent=B4.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=zQ.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=BQ.bind(null,e),e.hu.J_=DQ.bind(null,e.eventManager),e.hu.pu=AQ.bind(null,e.eventManager),e}function jQ(r){let e=Tt(r);return e.remoteStore.remoteSyncer.applySuccessfulWrite=NQ.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=LQ.bind(null,e),e}var z4=(()=>{class r{constructor(){this.kind="memory",this.synchronizeTabs=!1}initialize(t){return m(this,null,function*(){this.serializer=Kb(t.databaseInfo.databaseId),this.sharedClientState=this.bu(t),this.persistence=this.Du(t),yield this.persistence.start(),this.localStore=this.vu(t),this.gcScheduler=this.Cu(t,this.localStore),this.indexBackfillerScheduler=this.Fu(t,this.localStore)})}Cu(t,n){return null}Fu(t,n){return null}vu(t){return cQ(this.persistence,new WD,t.initialUser,this.serializer)}Du(t){return new xb(HD.Vi,this.serializer)}bu(t){return new YD}terminate(){return m(this,null,function*(){var t,n;(t=this.gcScheduler)===null||t===void 0||t.stop(),(n=this.indexBackfillerScheduler)===null||n===void 0||n.stop(),this.sharedClientState.shutdown(),yield this.persistence.shutdown()})}}return r.provider={build:()=>new r},r})(),gA=class extends z4{constructor(e){super(),this.cacheSizeBytes=e}Cu(e,t){nr(this.persistence.referenceDelegate instanceof Eb,46915);let n=this.persistence.referenceDelegate.garbageCollector;return new MD(n,e.asyncQueue,t)}Du(e){let t=this.cacheSizeBytes!==void 0?Ds.withCacheSize(this.cacheSizeBytes):Ds.DEFAULT;return new xb(n=>Eb.Vi(n,t),this.serializer)}};var HQ=(()=>{class r{initialize(t,n){return m(this,null,function*(){this.localStore||(this.localStore=t.localStore,this.sharedClientState=t.sharedClientState,this.datastore=this.createDatastore(n),this.remoteStore=this.createRemoteStore(n),this.eventManager=this.createEventManager(n),this.syncEngine=this.createSyncEngine(n,!t.synchronizeTabs),this.sharedClientState.onlineStateHandler=i=>hL(this.syncEngine,i,1),this.remoteStore.remoteSyncer.handleCredentialChange=UQ.bind(null,this.syncEngine),yield SQ(this.remoteStore,this.syncEngine.isPrimaryClient))})}createEventManager(t){return(function(){return new cA})()}createDatastore(t){let n=Kb(t.databaseInfo.databaseId),i=(function(s){return new eA(s)})(t.databaseInfo);return(function(s,o,l,c){return new iA(s,o,l,c)})(t.authCredentials,t.appCheckCredentials,i,n)}createRemoteStore(t){return(function(i,a,s,o,l){return new sA(i,a,s,o,l)})(this.localStore,this.datastore,t.asyncQueue,n=>hL(this.syncEngine,n,0),(function(){return Cb.C()?new Cb:new XD})())}createSyncEngine(t,n){return(function(a,s,o,l,c,u,d){let f=new mA(a,s,o,l,c,u);return d&&(f.fu=!0),f})(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,t.initialUser,t.maxConcurrentLimboResolutions,n)}terminate(){return m(this,null,function*(){var t,n;yield(function(a){return m(this,null,function*(){let s=Tt(a);tt(Ad,"RemoteStore shutting down."),s.Ia.add(5),yield r0(s),s.Ea.shutdown(),s.Aa.set("Unknown")})})(this.remoteStore),(t=this.datastore)===null||t===void 0||t.terminate(),(n=this.eventManager)===null||n===void 0||n.terminate()})}}return r.provider={build:()=>new r},r})();var Xg=class{constructor(e){this.observer=e,this.muted=!1}next(e){this.muted||this.observer.next&&this.xu(this.observer.next,e)}error(e){this.muted||(this.observer.error?this.xu(this.observer.error,e):Hl("Uncaught Error in snapshot listener:",e.toString()))}Ou(){this.muted=!0}xu(e,t){setTimeout(()=>{this.muted||e(t)},0)}};var yA=class{constructor(e){this.datastore=e,this.readVersions=new Map,this.mutations=[],this.committed=!1,this.lastTransactionError=null,this.writtenDocs=new Set}lookup(e){return m(this,null,function*(){if(this.ensureCommitNotCalled(),this.mutations.length>0)throw this.lastTransactionError=new Me(ae.INVALID_ARGUMENT,"Firestore transactions require all reads to be executed before all writes."),this.lastTransactionError;let t=yield(function(i,a){return m(this,null,function*(){let s=Tt(i),o={documents:a.map(d=>wb(s.serializer,d))},l=yield s.Jo("BatchGetDocuments",s.serializer.databaseId,Br.emptyPath(),o,a.length),c=new Map;l.forEach(d=>{let f=YX(s.serializer,d);c.set(f.key.toString(),f)});let u=[];return a.forEach(d=>{let f=c.get(d.toString());nr(!!f,55234,{key:d}),u.push(f)}),u})})(this.datastore,e);return t.forEach(n=>this.recordVersion(n)),t})}set(e,t){this.write(t.toMutation(e,this.precondition(e))),this.writtenDocs.add(e.toString())}update(e,t){try{this.write(t.toMutation(e,this.preconditionForUpdate(e)))}catch(n){this.lastTransactionError=n}this.writtenDocs.add(e.toString())}delete(e){this.write(new Dd(e,this.precondition(e))),this.writtenDocs.add(e.toString())}commit(){return m(this,null,function*(){if(this.ensureCommitNotCalled(),this.lastTransactionError)throw this.lastTransactionError;let e=this.readVersions;this.mutations.forEach(t=>{e.delete(t.key.toString())}),e.forEach((t,n)=>{let i=lt.fromPath(n);this.mutations.push(new pb(i,this.precondition(i)))}),yield(function(n,i){return m(this,null,function*(){let a=Tt(n),s={writes:i.map(o=>b4(a.serializer,o))};yield a.Wo("Commit",a.serializer.databaseId,Br.emptyPath(),s)})})(this.datastore,this.mutations),this.committed=!0})}recordVersion(e){let t;if(e.isFoundDocument())t=e.version;else{if(!e.isNoDocument())throw ut(50498,{Wu:e.constructor.name});t=Dt.min()}let n=this.readVersions.get(e.key.toString());if(n){if(!t.isEqual(n))throw new Me(ae.ABORTED,"Document version changed between two reads.")}else this.readVersions.set(e.key.toString(),t)}precondition(e){let t=this.readVersions.get(e.toString());return!this.writtenDocs.has(e.toString())&&t?t.isEqual(Dt.min())?Di.exists(!1):Di.updateTime(t):Di.none()}preconditionForUpdate(e){let t=this.readVersions.get(e.toString());if(!this.writtenDocs.has(e.toString())&&t){if(t.isEqual(Dt.min()))throw new Me(ae.INVALID_ARGUMENT,"Can't update a document that doesn't exist.");return Di.updateTime(t)}return Di.exists(!0)}write(e){this.ensureCommitNotCalled(),this.mutations.push(e)}ensureCommitNotCalled(){}};var vA=class{constructor(e,t,n,i,a){this.asyncQueue=e,this.datastore=t,this.options=n,this.updateFunction=i,this.deferred=a,this.Gu=n.maxAttempts,this.F_=new Kg(this.asyncQueue,"transaction_retry")}zu(){this.Gu-=1,this.ju()}ju(){this.F_.g_(()=>m(this,null,function*(){let e=new yA(this.datastore),t=this.Ju(e);t&&t.then(n=>{this.asyncQueue.enqueueAndForget(()=>e.commit().then(()=>{this.deferred.resolve(n)}).catch(i=>{this.Hu(i)}))}).catch(n=>{this.Hu(n)})}))}Ju(e){try{let t=this.updateFunction(e);return!t0(t)&&t.catch&&t.then?t:(this.deferred.reject(Error("Transaction callback must return a Promise")),null)}catch(t){return this.deferred.reject(t),null}}Hu(e){this.Gu>0&&this.Yu(e)?(this.Gu-=1,this.asyncQueue.enqueueAndForget(()=>(this.ju(),Promise.resolve()))):this.deferred.reject(e)}Yu(e){if(e.name==="FirebaseError"){let t=e.code;return t==="aborted"||t==="failed-precondition"||t==="already-exists"||!m4(t)}return!1}};var qc="FirestoreClient",_A=class{constructor(e,t,n,i,a){this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=n,this.databaseInfo=i,this.user=$i.UNAUTHENTICATED,this.clientId=Vg.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this._uninitializedComponentsProvider=a,this.authCredentials.start(n,s=>m(this,null,function*(){tt(qc,"Received user=",s.uid),yield this.authCredentialListener(s),this.user=s})),this.appCheckCredentials.start(n,s=>(tt(qc,"Received new app check token=",s),this.appCheckCredentialListener(s,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}terminate(){this.asyncQueue.enterRestrictedMode();let e=new ss;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted(()=>m(this,null,function*(){try{this._onlineComponents&&(yield this._onlineComponents.terminate()),this._offlineComponents&&(yield this._offlineComponents.terminate()),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(t){let n=QA(t,"Failed to shutdown persistence");e.reject(n)}})),e.promise}};function $S(r,e){return m(this,null,function*(){r.asyncQueue.verifyOperationInProgress(),tt(qc,"Initializing OfflineComponentProvider");let t=r.configuration;yield e.initialize(t);let n=t.initialUser;r.setCredentialChangeListener(i=>m(null,null,function*(){n.isEqual(i)||(yield S4(e.localStore,i),n=i)})),e.persistence.setDatabaseDeletedListener(()=>{Id("Terminating Firestore due to IndexedDb database deletion"),r.terminate().then(()=>{tt("Terminating Firestore due to IndexedDb database deletion completed successfully")}).catch(i=>{Id("Terminating Firestore due to IndexedDb database deletion failed",i)})}),r._offlineComponents=e})}function mL(r,e){return m(this,null,function*(){r.asyncQueue.verifyOperationInProgress();let t=yield $Q(r);tt(qc,"Initializing OnlineComponentProvider"),yield e.initialize(t,r.configuration),r.setCredentialChangeListener(n=>cL(e.remoteStore,n)),r.setAppCheckTokenChangeListener((n,i)=>cL(e.remoteStore,i)),r._onlineComponents=e})}function $Q(r){return m(this,null,function*(){if(!r._offlineComponents)if(r._uninitializedComponentsProvider){tt(qc,"Using user provided OfflineComponentProvider");try{yield $S(r,r._uninitializedComponentsProvider._offline)}catch(e){let t=e;if(!(function(i){return i.name==="FirebaseError"?i.code===ae.FAILED_PRECONDITION||i.code===ae.UNIMPLEMENTED:!(typeof DOMException<"u"&&i instanceof DOMException)||i.code===22||i.code===20||i.code===11})(t))throw t;Id("Error using user provided cache. Falling back to memory cache: "+t),yield $S(r,new z4)}}else tt(qc,"Using default OfflineComponentProvider"),yield $S(r,new gA(void 0));return r._offlineComponents})}function nM(r){return m(this,null,function*(){return r._onlineComponents||(r._uninitializedComponentsProvider?(tt(qc,"Using user provided OnlineComponentProvider"),yield mL(r,r._uninitializedComponentsProvider._online)):(tt(qc,"Using default OnlineComponentProvider"),yield mL(r,new HQ))),r._onlineComponents})}function GQ(r){return nM(r).then(e=>e.syncEngine)}function j4(r){return nM(r).then(e=>e.datastore)}function Rb(r){return m(this,null,function*(){let e=yield nM(r),t=e.eventManager;return t.onListen=MQ.bind(null,e.syncEngine),t.onUnlisten=RQ.bind(null,e.syncEngine),t.onFirstRemoteStoreListen=kQ.bind(null,e.syncEngine),t.onLastRemoteStoreUnlisten=OQ.bind(null,e.syncEngine),t})}function WQ(r,e,t={}){let n=new ss;return r.asyncQueue.enqueueAndForget(()=>m(null,null,function*(){return(function(a,s,o,l,c){let u=new Xg({next:f=>{u.Ou(),s.enqueueAndForget(()=>ZA(a,d));let p=f.docs.has(o);!p&&f.fromCache?c.reject(new Me(ae.UNAVAILABLE,"Failed to get document because the client is offline.")):p&&f.fromCache&&l&&l.source==="server"?c.reject(new Me(ae.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):c.resolve(f)},error:f=>c.reject(f)}),d=new Yg(Gb(o.path),u,{includeMetadataChanges:!0,ka:!0});return JA(a,d)})(yield Rb(r),r.asyncQueue,e,t,n)})),n.promise}function qQ(r,e,t={}){let n=new ss;return r.asyncQueue.enqueueAndForget(()=>m(null,null,function*(){return(function(a,s,o,l,c){let u=new Xg({next:f=>{u.Ou(),s.enqueueAndForget(()=>ZA(a,d)),f.fromCache&&l.source==="server"?c.reject(new Me(ae.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):c.resolve(f)},error:f=>c.reject(f)}),d=new Yg(o,u,{includeMetadataChanges:!0,ka:!0});return JA(a,d)})(yield Rb(r),r.asyncQueue,e,t,n)})),n.promise}function KQ(r,e,t){let n=new ss;return r.asyncQueue.enqueueAndForget(()=>m(null,null,function*(){try{let i=yield j4(r);n.resolve((function(s,o,l){return m(this,null,function*(){var c;let u=Tt(s),{request:d,ft:f,parent:p}=ZX(u.serializer,AX(o),l);u.connection.Qo||delete d.parent;let g=(yield u.Jo("RunAggregationQuery",u.serializer.databaseId,p,d,1)).filter(v=>!!v.result);nr(g.length===1,64727);let y=(c=g[0].result)===null||c===void 0?void 0:c.aggregateFields;return Object.keys(y).reduce((v,T)=>(v[f[T]]=y[T],v),{})})})(i,e,t))}catch(i){n.reject(i)}})),n.promise}function H4(r){let e={};return r.timeoutSeconds!==void 0&&(e.timeoutSeconds=r.timeoutSeconds),e}var pL=new Map;var YQ="firestore.googleapis.com",gL=!0,Ob=class{constructor(e){var t,n;if(e.host===void 0){if(e.ssl!==void 0)throw new Me(ae.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host=YQ,this.ssl=gL}else this.host=e.host,this.ssl=(t=e.ssl)!==null&&t!==void 0?t:gL;if(this.isUsingEmulator=e.emulatorOptions!==void 0,this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,e.cacheSizeBytes===void 0)this.cacheSizeBytes=T4;else{if(e.cacheSizeBytes!==-1&&e.cacheSizeBytes<C4)throw new Me(ae.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}aX("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:e.experimentalAutoDetectLongPolling===void 0?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=H4((n=e.experimentalLongPollingOptions)!==null&&n!==void 0?n:{}),(function(a){if(a.timeoutSeconds!==void 0){if(isNaN(a.timeoutSeconds))throw new Me(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${a.timeoutSeconds} (must not be NaN)`);if(a.timeoutSeconds<5)throw new Me(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${a.timeoutSeconds} (minimum allowed value is 5)`);if(a.timeoutSeconds>30)throw new Me(ae.INVALID_ARGUMENT,`invalid long polling timeout: ${a.timeoutSeconds} (maximum allowed value is 30)`)}})(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&(function(n,i){return n.timeoutSeconds===i.timeoutSeconds})(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}},Qg=class{constructor(e,t,n,i){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=n,this._app=i,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Ob({}),this._settingsFrozen=!1,this._emulatorOptions={},this._terminateTask="notTerminated"}get app(){if(!this._app)throw new Me(ae.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return this._terminateTask!=="notTerminated"}_setSettings(e){if(this._settingsFrozen)throw new Me(ae.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Ob(e),this._emulatorOptions=e.emulatorOptions||{},e.credentials!==void 0&&(this._authCredentials=(function(n){if(!n)return new WS;switch(n.type){case"firstParty":return new YS(n.sessionIndex||"0",n.iamToken||null,n.authTokenFactory||null);case"provider":return n.client;default:throw new Me(ae.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}})(e.credentials))}_getSettings(){return this._settings}_getEmulatorOptions(){return this._emulatorOptions}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask==="notTerminated"&&(this._terminateTask=this._terminate()),this._terminateTask}_restart(){return m(this,null,function*(){this._terminateTask==="notTerminated"?yield this._terminate():this._terminateTask="notTerminated"})}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return(function(t){let n=pL.get(t);n&&(tt("ComponentProvider","Removing Datastore"),pL.delete(t),n.terminate())})(this),Promise.resolve()}};var fo=class r{constructor(e,t,n){this.converter=t,this._query=n,this.type="query",this.firestore=e}withConverter(e){return new r(this.firestore,e,this._query)}},Hn=class r{constructor(e,t,n){this.converter=t,this._key=n,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new Uc(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new r(this.firestore,e,this._key)}toJSON(){return{type:r._jsonSchemaVersion,referencePath:this._key.toString()}}static fromJSON(e,t,n){if(e0(t,r._jsonSchema))return new r(e,n||null,new lt(Br.fromString(t.referencePath)))}};Hn._jsonSchemaVersion="firestore/documentReference/1.0",Hn._jsonSchema={type:zn("string",Hn._jsonSchemaVersion),referencePath:zn("string")};var Uc=class r extends fo{constructor(e,t,n){super(e,t,Gb(n)),this._path=n,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){let e=this._path.popLast();return e.isEmpty()?null:new Hn(this.firestore,null,new lt(e))}withConverter(e){return new r(this.firestore,e,this._path)}};function $4(r,e,...t){if(r=At(r),EL("collection","path",e),r instanceof Qg){let n=Br.fromString(e,...t);return FN(n),new Uc(r,null,n)}{if(!(r instanceof Hn||r instanceof Uc))throw new Me(ae.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");let n=r._path.child(Br.fromString(e,...t));return FN(n),new Uc(r.firestore,null,n)}}function G4(r,e,...t){if(r=At(r),arguments.length===1&&(e=Vg.newId()),EL("doc","path",e),r instanceof Qg){let n=Br.fromString(e,...t);return ON(n),new Hn(r,null,new lt(n))}{if(!(r instanceof Hn||r instanceof Uc))throw new Me(ae.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");let n=r._path.child(Br.fromString(e,...t));return ON(n),new Hn(r.firestore,r instanceof Uc?r.converter:null,new lt(n))}}var yL="AsyncQueue",Fb=class{constructor(e=Promise.resolve()){this.Zu=[],this.Xu=!1,this.ec=[],this.tc=null,this.nc=!1,this.rc=!1,this.sc=[],this.F_=new Kg(this,"async_queue_retry"),this.oc=()=>{let n=HS();n&&tt(yL,"Visibility state changed to "+n.visibilityState),this.F_.y_()},this._c=e;let t=HS();t&&typeof t.addEventListener=="function"&&t.addEventListener("visibilitychange",this.oc)}get isShuttingDown(){return this.Xu}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.ac(),this.uc(e)}enterRestrictedMode(e){if(!this.Xu){this.Xu=!0,this.rc=e||!1;let t=HS();t&&typeof t.removeEventListener=="function"&&t.removeEventListener("visibilitychange",this.oc)}}enqueue(e){if(this.ac(),this.Xu)return new Promise(()=>{});let t=new ss;return this.uc(()=>this.Xu&&this.rc?Promise.resolve():(e().then(t.resolve,t.reject),t.promise)).then(()=>t.promise)}enqueueRetryable(e){this.enqueueAndForget(()=>(this.Zu.push(e),this.cc()))}cc(){return m(this,null,function*(){if(this.Zu.length!==0){try{yield this.Zu[0](),this.Zu.shift(),this.F_.reset()}catch(e){if(!Bf(e))throw e;tt(yL,"Operation failed with retryable error: "+e)}this.Zu.length>0&&this.F_.g_(()=>this.cc())}})}uc(e){let t=this._c.then(()=>(this.nc=!0,e().catch(n=>{throw this.tc=n,this.nc=!1,Hl("INTERNAL UNHANDLED ERROR: ",vL(n)),n}).then(n=>(this.nc=!1,n))));return this._c=t,t}enqueueAfterDelay(e,t,n){this.ac(),this.sc.indexOf(e)>-1&&(t=0);let i=oA.createAndSchedule(this,e,t,n,a=>this.lc(a));return this.ec.push(i),i}ac(){this.tc&&ut(47125,{hc:vL(this.tc)})}verifyOperationInProgress(){}Pc(){return m(this,null,function*(){let e;do e=this._c,yield e;while(e!==this._c)})}Tc(e){for(let t of this.ec)if(t.timerId===e)return!0;return!1}Ic(e){return this.Pc().then(()=>{this.ec.sort((t,n)=>t.targetTimeMs-n.targetTimeMs);for(let t of this.ec)if(t.skipDelay(),e!=="all"&&t.timerId===e)break;return this.Pc()})}dc(e){this.sc.push(e)}lc(e){let t=this.ec.indexOf(e);this.ec.splice(t,1)}};function vL(r){let e=r.message||"";return r.stack&&(e=r.stack.includes(r.message)?r.stack:r.message+` 43`+r.stack),e}function _L(r){return(function(t,n){if(typeof t!="object"||t===null)return!1;let i=t;for(let a of n)if(a in i&&typeof i[a]=="function")return!0;return!1})(r,["next","error","complete"])}var us=class extends Qg{constructor(e,t,n,i){super(e,t,n,i),this.type="firestore",this._queue=new Fb,this._persistenceKey=i?.name||"[DEFAULT]"}_terminate(){return m(this,null,function*(){if(this._firestoreClient){let e=this._firestoreClient.terminate();this._queue=new Fb(e),this._firestoreClient=void 0,yield e}})}};function W4(r,e,t){t||(t=ub);let n=fa(r,"firestore");if(n.isInitialized(t)){let i=n.getImmediate({identifier:t}),a=n.getOptions(t);if(no(a,e))return i;throw new Me(ae.FAILED_PRECONDITION,"initializeFirestore() has already been called with different options. To avoid this error, call initializeFirestore() with the same options as when it was originally called, or call getFirestore() to return the already initialized instance.")}if(e.cacheSizeBytes!==void 0&&e.localCache!==void 0)throw new Me(ae.INVALID_ARGUMENT,"cache and cacheSizeBytes cannot be specified at the same time as cacheSizeBytes willbe deprecated. Instead, specify the cache size in the cache object");if(e.cacheSizeBytes!==void 0&&e.cacheSizeBytes!==-1&&e.cacheSizeBytes<C4)throw new Me(ae.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");return e.host&&ns(e.host)&&kc(e.host),n.initialize({options:e,instanceIdentifier:t})}function Od(r){if(r._terminated)throw new Me(ae.FAILED_PRECONDITION,"The client has already been terminated.");return r._firestoreClient||XQ(r),r._firestoreClient}function XQ(r){var e,t,n;let i=r._freezeSettings(),a=(function(o,l,c,u){return new eD(o,l,c,u.host,u.ssl,u.experimentalForceLongPolling,u.experimentalAutoDetectLongPolling,H4(u.experimentalLongPollingOptions),u.useFetchStreams,u.isUsingEmulator)})(r._databaseId,((e=r._app)===null||e===void 0?void 0:e.options.appId)||"",r._persistenceKey,i);r._componentsProvider||!((t=i.localCache)===null||t===void 0)&&t._offlineComponentProvider&&(!((n=i.localCache)===null||n===void 0)&&n._onlineComponentProvider)&&(r._componentsProvider={_offline:i.localCache._offlineComponentProvider,_online:i.localCache._onlineComponentProvider}),r._firestoreClient=new _A(r._authCredentials,r._appCheckCredentials,r._queue,a,r._componentsProvider&&(function(o){let l=o?._online.build();return{_offline:o?._offline.build(l),_online:l}})(r._componentsProvider))}var bA=class{constructor(e="count",t){this._internalFieldPath=t,this.type="AggregateField",this.aggregateType=e}},wA=class{constructor(e,t,n){this._userDataWriter=t,this._data=n,this.type="AggregateQuerySnapsh
43ot",this.query=e}data(){return this._userDataWriter.convertObjectMap(this._data)}};var jl=class r{constructor(e){this._byteString=e}static fromBase64String(e){try{return new r(Gi.fromBase64String(e))}catch(t){throw new Me(ae.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+t)}}static fromUint8Array(e){return new r(Gi.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}toJSON(){return{type:r._jsonSchemaVersion,bytes:this.toBase64()}}static fromJSON(e){if(e0(e,r._jsonSchema))return r.fromBase64String(e.bytes)}};jl._jsonSchemaVersion="firestore/bytes/1.0",jl._jsonSchema={type:zn("string",jl._jsonSchemaVersion),bytes:zn("string")};var Kc=class{constructor(...e){for(let t=0;t<e.length;++t)if(e[t].length===0)throw new Me(ae.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new os(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}};var Jg=class{constructor(e){this._methodName=e}};var zc=class r{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new Me(ae.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new Me(ae.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}_compareTo(e){return qt(this._lat,e._lat)||qt(this._long,e._long)}toJSON(){return{latitude:this._lat,longitude:this._long,type:r._jsonSchemaVersion}}static fromJSON(e){if(e0(e,r._jsonSchema))return new r(e.latitude,e.longitude)}};zc._jsonSchemaVersion="firestore/geoPoint/1.0",zc._jsonSchema={type:zn("string",zc._jsonSchemaVersion),latitude:zn("number"),longitude:zn("number")};var jc=class r{constructor(e){this._values=(e||[]).map(t=>t)}toArray(){return this._values.map(e=>e)}isEqual(e){return(function(n,i){if(n.length!==i.length)return!1;for(let a=0;a<n.length;++a)if(n[a]!==i[a])return!1;return!0})(this._values,e._values)}toJSON(){return{type:r._jsonSchemaVersion,vectorValues:this._values}}static fromJSON(e){if(e0(e,r._jsonSchema)){if(Array.isArray(e.vectorValues)&&e.vectorValues.every(t=>typeof t=="number"))return new r(e.vectorValues);throw new Me(ae.INVALID_ARGUMENT,"Expected 'vectorValues' field to be a number array")}}};jc._jsonSchemaVersion="firestore/vectorValue/1.0",jc._jsonSchema={type:zn("string",jc._jsonSchemaVersion),vectorValues:zn("object")};var QQ=/^__.*__$/,IA=class{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return this.fieldMask!==null?new $o(e,this.data,this.fieldMask,t,this.fieldTransforms):new Sd(e,this.data,t,this.fieldTransforms)}},Bb=class{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return new $o(e,this.data,this.fieldMask,t,this.fieldTransforms)}};function q4(r){switch(r){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw ut(40011,{Ec:r})}}var xA=class r{constructor(e,t,n,i,a,s){this.settings=e,this.databaseId=t,this.serializer=n,this.ignoreUndefinedProperties=i,a===void 0&&this.Ac(),this.fieldTransforms=a||[],this.fieldMask=s||[]}get path(){return this.settings.path}get Ec(){return this.settings.Ec}Rc(e){return new r(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}Vc(e){var t;let n=(t=this.path)===null||t===void 0?void 0:t.child(e),i=this.Rc({path:n,mc:!1});return i.fc(e),i}gc(e){var t;let n=(t=this.path)===null||t===void 0?void 0:t.child(e),i=this.Rc({path:n,mc:!1});return i.Ac(),i}yc(e){return this.Rc({path:void 0,mc:!0})}wc(e){return Lb(e,this.settings.methodName,this.settings.Sc||!1,this.path,this.settings.bc)}contains(e){return this.fieldMask.find(t=>e.isPrefixOf(t))!==void 0||this.fieldTransforms.find(t=>e.isPrefixOf(t.field))!==void 0}Ac(){if(this.path)for(let e=0;e<this.path.length;e++)this.fc(this.path.get(e))}fc(e){if(e.length===0)throw this.wc("Document fields must not be empty");if(q4(this.Ec)&&QQ.test(e))throw this.wc('Document fields cannot begin and end with "__"')}},EA=class{constructor(e,t,n){this.databaseId=e,this.ignoreUndefinedProperties=t,this.serializer
vendor: 20,169 bytes, line 43
43=n||Kb(e)}Dc(e,t,n,i=!1){return new xA({Ec:e,methodName:t,bc:n,path:os.emptyPath(),mc:!1,Sc:i},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}};function Lf(r){let e=r._freezeSettings(),t=Kb(r._databaseId);return new EA(r._databaseId,!!e.ignoreUndefinedProperties,t)}function iM(r,e,t,n,i,a={}){let s=r.Dc(a.merge||a.mergeFields?2:0,e,t,i);oM("Data must be an object, but it was:",s,n);let o=Y4(n,s),l,c;if(a.merge)l=new As(s.fieldMask),c=s.fieldTransforms;else if(a.mergeFields){let u=[];for(let d of a.mergeFields){let f=TA(e,d,t);if(!s.contains(f))throw new Me(ae.INVALID_ARGUMENT,`Field '${f}' is specified in your field mask but missing from your input data.`);Q4(u,f)||u.push(f)}l=new As(u),c=s.fieldTransforms.filter(d=>l.covers(d.field))}else l=null,c=s.fieldTransforms;return new IA(new Ha(o),l,c)}var Nb=class r extends Jg{_toFieldTransform(e){if(e.Ec!==2)throw e.Ec===1?e.wc(`${this._methodName}() can only appear at the top level of your update data`):e.wc(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return e.fieldMask.push(e.path),null}isEqual(e){return e instanceof r}};function aM(r,e,t,n){let i=r.Dc(1,e,t);oM("Data must be an object, but it was:",i,n);let a=[],s=Ha.empty();Yc(n,(l,c)=>{let u=lM(e,l,t);c=At(c);let d=i.gc(u);if(c instanceof Nb)a.push(u);else{let f=i0(c,d);f!=null&&(a.push(u),s.set(u,f))}});let o=new As(a);return new Bb(s,o,i.fieldTransforms)}function sM(r,e,t,n,i,a){let s=r.Dc(1,e,t),o=[TA(e,n,t)],l=[i];if(a.length%2!=0)throw new Me(ae.INVALID_ARGUMENT,`Function ${e}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let f=0;f<a.length;f+=2)o.push(TA(e,a[f])),l.push(a[f+1]);let c=[],u=Ha.empty();for(let f=o.length-1;f>=0;--f)if(!Q4(c,o[f])){let p=o[f],g=l[f];g=At(g);let y=s.gc(p);if(g instanceof Nb)c.push(p);else{let v=i0(g,y);v!=null&&(c.push(p),u.set(p,v))}}let d=new As(c);return new Bb(u,d,s.fieldTransforms)}function K4(r,e,t,n=!1){return i0(t,r.Dc(n?4:3,e))}function i0(r,e){if(X4(r=At(r)))return oM("Unsupported field value:",e,r),Y4(r,e);if(r instanceof Jg)return(function(n,i){if(!q4(i.Ec))throw i.wc(`${n._methodName}() can only be used with update() and set()`);if(!i.path)throw i.wc(`${n._methodName}() is not currently supported inside arrays`);let a=n._toFieldTransform(i);a&&i.fieldTransforms.push(a)})(r,e),null;if(r===void 0&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),r instanceof Array){if(e.settings.mc&&e.Ec!==4)throw e.wc("Nested arrays are not supported");return(function(n,i){let a=[],s=0;for(let o of n){let l=i0(o,i.yc(s));l==null&&(l={nullValue:"NULL_VALUE"}),a.push(l),s++}return{arrayValue:{values:a}}})(r,e)}return(function(n,i){if((n=At(n))===null)return{nullValue:"NULL_VALUE"};if(typeof n=="number")return NX(i.serializer,n);if(typeof n=="boolean")return{booleanValue:n};if(typeof n=="string")return{stringValue:n};if(n instanceof Date){let a=jn.fromDate(n);return{timestampValue:bb(i.serializer,a)}}if(n instanceof jn){let a=new jn(n.seconds,1e3*Math.floor(n.nanoseconds/1e3));return{timestampValue:bb(i.serializer,a)}}if(n instanceof zc)return{geoPointValue:{latitude:n.latitude,longitude:n.longitude}};if(n instanceof jl)return{bytesValue:g4(i.serializer,n._byteString)};if(n instanceof Hn){let a=i.databaseId,s=n.firestore._databaseId;if(!s.isEqual(a))throw i.wc(`Document reference is for database ${s.projectId}/${s.database} but should be for database ${a.projectId}/${a.database}`);return{referenceValue:GA(n.firestore._databaseId||i.databaseId,n._key.path)}}if(n instanceof jc)return(function(s,o){return{mapValue:{fields:{[LA]:{stringValue:VA},[Cf]:{arrayValue:{values:s.toArray().map(c=>{if(typeof c!="number")throw o.wc("VectorValues must only contain numeric values.");return $A(o.serializer,c)})}}}}}})(n,i);throw i.wc(`Unsupported field value: ${jb(n)}`)})(r,e)}function Y4(r,e){let t={};return zL(r)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):Yc(r,(n,i)=>{let a=i0(i,e.Vc(n));a!=null&&(t[n]=a)}),{mapValue:{fields:t}}}function X4(r){return!(typeof r!="object"||r===null||r instanceof Array||r instanceof Date||r instanceof jn||r instanceof zc||r instanceof jl||r instanceof Hn||r instanceof Jg||r instanceof jc)}function oM(r,e,t){if(!X4(t)||!TL(t)){let n=jb(t);throw n==="an object"?e.wc(r+" a custom object"):e.wc(r+" "+n)}}function TA(r,e,t){if((e=At(e))instanceof Kc)return e._internalPath;if(typeof e=="string")return lM(r,e);throw Lb("Field path arguments must be of type string or ",r,!1,void 0,t)}var JQ=new RegExp("[~\\*/\\[\\]]");function lM(r,e,t){if(e.search(JQ)>=0)throw Lb(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`,r,!1,void 0,t);try{return new Kc(...e.split("."))._internalPath}catch{throw Lb(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,r,!1,void 0,t)}}function Lb(r,e,t,n,i){let a=n&&!n.isEmpty(),s=i!==void 0,o=`Function ${e}() called with invalid data`;t&&(o+=" (via `toFirestore()`)"),o+=". ";let l="";return(a||s)&&(l+=" (found",a&&(l+=` in field ${n}`),s&&(l+=` in document ${i}`),l+=")"),new Me(ae.INVALID_ARGUMENT,o+r+l)}function Q4(r,e){return r.some(t=>t.isEqual(e))}var Md=class{constructor(e,t,n,i,a){this._firestore=e,this._userDataWriter=t,this._key=n,this._document=i,this._converter=a}get id(){return this._key.path.lastSegment()}get ref(){return new Hn(this._firestore,this._converter,this._key)}exists(){return this._document!==null}data(){if(this._document){if(this._converter){let e=new CA(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}get(e){if(this._document){let t=this._document.data.field(Qb("DocumentSnapshot.get",e));if(t!==null)return this._userDataWriter.convertValue(t)}}},CA=class extends Md{data(){return super.data()}};function Qb(r,e){return typeof e=="string"?lM(r,e):e instanceof Kc?e._internalPath:e._delegate._internalPath}function J4(r){if(r.limitType==="L"&&r.explicitOrderBy.length===0)throw new Me(ae.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}var Zg=class{},kd=class extends Zg{};function Z4(r,e,...t){let n=[];e instanceof Zg&&n.push(e),n=n.concat(t),(function(a){let s=a.filter(l=>l instanceof SA).length,o=a.filter(l=>l instanceof Vb).length;if(s>1||s>0&&o>0)throw new Me(ae.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")})(n);for(let i of n)r=i._apply(r);return r}var Vb=class r extends kd{constructor(e,t,n){super(),this._field=e,this._op=t,this._value=n,this.type="where"}static _create(e,t,n){return new r(e,t,n)}_apply(e){let t=this._parse(e);return oV(e._query,t),new fo(e.firestore,e.converter,fD(e._query,t))}_parse(e){let t=Lf(e.firestore);return(function(a,s,o,l,c,u,d){let f;if(c.isKeyField()){if(u==="array-contains"||u==="array-contains-any")throw new Me(ae.INVALID_ARGUMENT,`Invalid Query. You can't perform '${u}' queries on documentId().`);if(u==="in"||u==="not-in"){wL(d,u);let g=[];for(let y of d)g.push(bL(l,a,y));f={arrayValue:{values:g}}}else f=bL(l,a,d)}else u!=="in"&&u!=="not-in"&&u!=="array-contains-any"||wL(d,u),f=K4(o,s,d,u==="in"||u==="not-in");return Un.create(c,u,f)})(e._query,"where",t,e.firestore._databaseId,this._field,this._op,this._value)}};function eV(r,e,t){let n=e,i=Qb("where",r);return Vb._create(i,n,t)}var SA=class r extends Zg{constructor(e,t){super(),this.type=e,this._queryConstraints=t}static _create(e,t){return new r(e,t)}_parse(e){let t=this._queryConstraints.map(n=>n._parse(e)).filter(n=>n.getFilters().length>0);return t.length===1?t[0]:ho.create(t,this._getOperator())}_apply(e){let t=this._parse(e);return t.getFilters().length===0?e:((function(i,a){let s=i,o=a.getFlattenedFilters();for(let l of o)oV(s,l),s=fD(s,l)})(e._query,t),new fo(e.firestore,e.converter,fD(e._query,t)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return this.type==="and"?"and":"or"}};var DA=class r extends kd{constructor(e,t){super(),this._field=e,this._direction=t,this.type="orderBy"}static _create(e,t){return new r(e,t)}_apply(e){let t=(function(i,a,s){if(i.startAt!==null)throw new Me(ae.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(i.endAt!==null)throw new Me(ae.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new Ed(a,s)})(e._query,this._field,this._direction);return new fo(e.firestore,e.converter,(function(i,a){let s=i.explicitOrderBy.concat([a]);return new Ho(i.path,i.collectionGroup,s,i.filters.slice(),i.limit,i.limitType,i.startAt,i.endAt)})(e._query,t))}};function tV(r,e="asc"){let t=e,n=Qb("orderBy",r);return DA._create(n,t)}var Ub=class r extends kd{constructor(e,t,n){super(),this.type=e,this._limit=t,this._limitType=n}static _create(e,t,n){return new r(e,t,n)}_apply(e){return new fo(e.firestore,e.converter,mb(e._query,this._limit,this._limitType))}};function rV(r){return CL("limit",r),Ub._create("limit",r,"F")}function nV(r){return CL("limitToLast",r),Ub._create("limitToLast",r,"L")}var AA=class r extends kd{constructor(e,t,n){super(),this.type=e,this._docOrFields=t,this._inclusive=n}static _create(e,t,n){return new r(e,t,n)}_apply(e){let t=sV(e,this.type,this._docOrFields,this._inclusive);return new fo(e.firestore,e.converter,(function(i,a){return new Ho(i.path,i.collectionGroup,i.explicitOrderBy.slice(),i.filters.slice(),i.limit,i.limitType,a,i.endAt)})(e._query,t))}};function iV(...r){return AA._create("startAfter",r,!1)}var MA=class r extends kd{constructor(e,t,n){super(),this.type=e,this._docOrFields=t,this._inclusive=n}static _create(e,t,n){return new r(e,t,n)}_apply(e){let t=sV(e,this.type,this._docOrFields,this._inclusive);return new fo(e.firestore,e.converter,(function(i,a){return new Ho(i.path,i.collectionGroup,i.explicitOrderBy.slice(),i.filters.slice(),i.limit,i.limitType,i.startAt,a)})(e._query,t))}};function aV(...r){return MA._create("endBefore",r,!1)}function sV(r,e,t,n){if(t[0]=At(t[0]),t[0]instanceof Md)return(function(a,s,o,l,c){if(!l)throw new Me(ae.NOT_FOUND,`Can't use a DocumentSnapshot that doesn't exist for ${o}().`);let u=[];for(let d of If(a))if(d.field.isKeyField())u.push(hb(s,l.key));else{let f=l.data.field(d.field);if(Hb(f))throw new Me(ae.INVALID_ARGUMENT,'Invalid query. You are trying to start or end a query using a document for which the field "'+d.field+'" is an uncommitted server timestamp. (Since the value of this field is unknown, you cannot start/end a query with it.)');if(f===null){let p=d.field.canonicalString();throw new Me(ae.INVALID_ARGUMENT,`Invalid query. You are trying to start or end a query using a document for which the field '${p}' (used as the orderBy) does not exist.`)}u.push(f)}return new Gc(u,c)})(r._query,r.firestore._databaseId,e,t[0]._document,n);{let i=Lf(r.firestore);return(function(s,o,l,c,u,d){let f=s.explicitOrderBy;if(u.length>f.length)throw new Me(ae.INVALID_ARGUMENT,`Too many arguments provided to ${c}(). The number of arguments must be less than or equal to the number of orderBy() clauses`);let p=[];for(let g=0;g<u.length;g++){let y=u[g];if(f[g].field.isKeyField()){if(typeof y!="string")throw new Me(ae.INVALID_ARGUMENT,`Invalid query. Expected a string for document ID in ${c}(), but got a ${typeof y}`);if(!HA(s)&&y.indexOf("/")!==-1)throw new Me(ae.INVALID_ARGUMENT,`Invalid query. When querying a collection and ordering by documentId(), the value passed to ${c}() must be a plain document ID, but '${y}' contains a slash.`);let v=s.path.child(Br.fromString(y));if(!lt.isDocumentKey(v))throw new Me(ae.INVALID_ARGUMENT,`Invalid query. When querying a collection group and ordering by documentId(), the value passed to ${c}() must result in a valid document path, but '${v}' is not because it contains an odd number of segments.`);let T=new lt(v);p.push(hb(o,T))}else{let v=K4(l,c,y);p.push(v)}}return new Gc(p,d)})(r._query,r.firestore._databaseId,i,e,t,n)}}function bL(r,e,t){if(typeof(t=At(t))=="string"){if(t==="")throw new Me(ae.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!HA(e)&&t.indexOf("/")!==-1)throw new Me(ae.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${t}' contains a '/' character.`);let n=e.path.child(Br.fromString(t));if(!lt.isDocumentKey(n))throw new Me(ae.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${n}' is not because it has an odd number of segments (${n.length}).`);return hb(r,new lt(n))}if(t instanceof Hn)return hb(r,t._key);throw new Me(ae.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${jb(t)}.`)}function wL(r,e){if(!Array.isArray(r)||r.length===0)throw new Me(ae.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${e.toString()}' filters.`)}function oV(r,e){let t=(function(i,a){for(let s of i)for(let o of s.getFlattenedFilters())if(a.indexOf(o.op)>=0)return o.op;return null})(r.filters,(function(i){switch(i){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}})(e.op));if(t!==null)throw t===e.op?new Me(ae.INVALID_ARGUMENT,`Invalid query. You cannot use more than one '${e.op.toString()}' filter.`):new Me(ae.INVALID_ARGUMENT,`Invalid query. You cannot use '${e.op.toString()}' filters with '${t.toString()}' filters.`)}var zb=class{convertValue(e,t="none"){switch($c(e)){case 0:return null;case 1:return e.booleanValue;case 2:return Qr(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,t);case 5:return e.stringValue;case 6:return this.convertBytes(Gl(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,t);case 11:return this.convertObject(e.mapValue,t);case 10:return this.convertVectorValue(e.mapValue);default:throw ut(62114,{value:e})}}convertObject(e,t){return this.convertObjectMap(e.fields,t)}convertObjectMap(e,t="none"){let n={};return Yc(e,(i,a)=>{n[i]=this.convertValue(a,t)}),n}convertVectorValue(e){var t,n,i;let a=(i=(n=(t=e.fields)===null||t===void 0?void 0:t[Cf].arrayValue)===null||n===void 0?void 0:n.values)===null||i===void 0?void 0:i.map(s=>Qr(s.doubleValue));return new jc(a)}convertGeoPoint(e){return new zc(Qr(e.latitude),Qr(e.longitude))}convertArray(e,t){return(e.values||[]).map(n=>this.convertValue(n,t))}convertServerTimestamp(e,t){switch(t){case"previous":let n=$b(e);return n==null?null:this.convertValue(n,t);case"estimate":return this.convertTimestamp(jg(e));default:return null}}convertTimestamp(e){let t=$l(e);return new jn(t.seconds,t.nanos)}convertDocumentKey(e,t){let n=Br.fromString(e);nr(E4(n),9688,{name:e});let i=new db(n.get(1),n.get(3)),a=new lt(n.popFirst(5));return i.isEqual(t)||Hl(`Document ${a} contains a document reference within a different database (${i.projectId}/${i.database}) which is not supported. It will be treated as a reference in the current database (${t.projectId}/${t.database}) instead.`),a}};function cM(r,e,t){let n;return n=r?t&&(t.merge||t.mergeFields)?r.toFirestore(e,t):r.toFirestore(e):e,n}var kA=class extends zb{constructor(e){super(),this.firestore=e}convertBytes(e){return new jl(e)}convertReference(e){let t=this.convertDocumentKey(e,this.firestore._databaseId);return new Hn(this.firestore,null,t)}};function ZQ(){return new bA("count")}var Lc=class{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}},Hc=class r extends Md{constructor(e,t,n,i,a,s){super(e,t,n,i,s),this._firestore=e,this._firestoreImpl=e,this.metadata=a}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){let t=new Ef(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,t={}){if(this._document){let n=this._document.data.field(Qb("DocumentSnapshot.get",e));if(n!==null)return this._userDataWriter.convertValue(n,t.serverTimestamps)}}toJSON(){if(this.metadata.hasPendingWrites)throw new Me(ae.FAILED_PRECONDITION,"DocumentSnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");let e=this._document,t={};return t.type=r._jsonSchemaVersion,t.bundle="",t.bundleSource="DocumentSnapshot",t.bundleName=this._key.toString(),!e||!e.isValidDocument()||!e.isFoundDocument()?t:(this._userDataWriter.convertObjectMap(e.data.value.mapValue.fields,"previous"),t.bundle=(this._firestore,this.ref.path,"NOT SUPPORTED"),t)}};Hc._jsonSchemaVersion="firestore/documentSnapshot/1.0",Hc._jsonSchema={type:zn("string",Hc._jsonSchemaVersion),bundleSource:zn("string","DocumentSnapshot"),bundleName:zn("string"),bundle:zn("string")};var Ef=class extends Hc{data(e={}){return super.data(e)}},bd=class r{constructor(e,t,n,i){this._firestore=e,this._userDataWriter=t,this._snapshot=i,this.metadata=new Lc(i.hasPendingWrites,i.fromCache),this.query=n}get docs(){let e=[];return this.forEach(t=>e.push(t)),e}get size(){return this._snapshot.docs.size}get empty(){return this.size===0}forEach(e,t){this._snapshot.docs.forEach(n=>{e.call(t,new Ef(this._firestore,this._userDataWriter,n.key,n,new Lc(this._snapshot.mutatedKeys.has(n.key),this._snapshot.fromCache),this.query.converter))})}docChanges(e={}){let t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new Me(ae.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=(function(i,a){if(i._snapshot.oldDocs.isEmpty()){let s=0;return i._snapshot.docChanges.map(o=>{let l=new Ef(i._firestore,i._userDataWriter,o.doc.key,o.doc,new Lc(i._snapshot.mutatedKeys.has(o.doc.key),i._snapshot.fromCache),i.query.converter);return o.doc,{type:"added",doc:l,oldIndex:-1,newIndex:s++}})}{let s=i._snapshot.oldDocs;return i._snapshot.docChanges.filter(o=>a||o.type!==3).map(o=>{let l=new Ef(i._firestore,i._userDataWriter,o.doc.key,o.doc,new Lc(i._snapshot.mutatedKeys.has(o.doc.key),i._snapshot.fromCache),i.query.converter),c=-1,u=-1;return o.type!==0&&(c=s.indexOf(o.doc.key),s=s.delete(o.doc.key)),o.type!==1&&(s=s.add(o.doc),u=s.indexOf(o.doc.key)),{type:eJ(o.type),doc:l,oldIndex:c,newIndex:u}})}})(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}toJSON(){if(this.metadata.hasPendingWrites)throw new Me(ae.FAILED_PRECONDITION,"QuerySnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");let e={};e.type=r._jsonSchemaVersion,e.bundleSource="QuerySnapshot",e.bundleName=Vg.newId(),this._firestore._databaseId.database,this._firestore._databaseId.projectId;let t=[],n=[],i=[];return this.docs.forEach(a=>{a._document!==null&&(t.push(a._document),n.push(this._userDataWriter.convertObjectMap(a._document.data.value.mapValue.fields,"previous")),i.push(a.ref.path))}),e.bundle=(this._firestore,this.query._query,e.bundleName,"NOT SUPPORTED"),e}};function eJ(r){switch(r){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return ut(61501,{type:r})}}function lV(r){r=ya(r,Hn);let e=ya(r.firestore,us);return WQ(Od(e),r._key).then(t=>mV(e,r,t))}
43bd._jsonSchemaVersion="firestore/querySnapshot/1.0",bd._jsonSchema={type:zn("string",bd._jsonSchemaVersion),bundleSource:zn("string","QuerySnapshot"),bundleName:zn("string"),bundle:zn("string")};var Pd=class extends zb{constructor(e){super(),this.firestore=e}convertBytes(e){return new jl(e)}convertReference(e){let t=this.convertDocumentKey(e,this.firestore._databaseId);return new Hn(this.firestore,null,t)}};function cV(r){r=ya(r,fo);let e=ya(r.firestore,us),t=Od(e),n=new Pd(e);return J4(r._query),qQ(t,r._query).then(i=>new bd(e,n,r,i))}function uV(r,e,t){r=ya(r,Hn);let n=ya(r.firestore,us),i=cM(r.converter,e,t);return Jb(n,[iM(Lf(n),"setDoc",r._key,i,r.converter!==null,t).toMutation(r._key,Di.none())])}function dV(r,e,t,...n){r=ya(r,Hn);let i=ya(r.firestore,us),a=Lf(i),s;return s=typeof(e=At(e))=="string"||e instanceof Kc?sM(a,"updateDoc",r._key,e,t,n):aM(a,"updateDoc",r._key,e),Jb(i,[s.toMutation(r._key,Di.exists(!0))])}function hV(r){return Jb(ya(r.firestore,us),[new Dd(r._key,Di.none())])}function fV(r,...e){var t,n,i;r=At(r);let a={includeMetadataChanges:!1,source:"default"},s=0;typeof e[s]!="object"||_L(e[s])||(a=e[s++]);let o={includeMetadataChanges:a.includeMetadataChanges,source:a.source};if(_L(e[s])){let d=e[s];e[s]=(t=d.next)===null||t===void 0?void 0:t.bind(d),e[s+1]=(n=d.error)===null||n===void 0?void 0:n.bind(d),e[s+2]=(i=d.complete)===null||i===void 0?void 0:i.bind(d)}let l,c,u;if(r instanceof Hn)c=ya(r.firestore,us),u=Gb(r._key.path),l={next:d=>{e[s]&&e[s](mV(c,r,d))},error:e[s+1],complete:e[s+2]};else{let d=ya(r,fo);c=ya(d.firestore,us),u=d._query;let f=new Pd(c);l={next:p=>{e[s]&&e[s](new bd(c,f,d,p))},error:e[s+1],complete:e[s+2]},J4(r._query)}return(function(f,p,g,y){let v=new Xg(y),T=new Yg(p,v,g);return f.asyncQueue.enqueueAndForget(()=>m(null,null,function*(){return JA(yield Rb(f),T)})),()=>{v.Ou(),f.asyncQueue.enqueueAndForget(()=>m(null,null,function*(){return ZA(yield Rb(f),T)}))}})(Od(c),u,o,l)}function Jb(r,e){return(function(n,i){let a=new ss;return n.asyncQueue.enqueueAndForget(()=>m(null,null,function*(){return FQ(yield GQ(n),i,a)})),a.promise})(Od(r),e)}function mV(r,e,t){let n=t.docs.get(e._key),i=new Pd(r);return new Hc(r,i,e._key,n,new Lc(t.hasPendingWrites,t.fromCache),e.converter)}function pV(r){return gV(r,{count:ZQ()})}function gV(r,e){let t=ya(r.firestore,us),n=Od(t),i=EX(e,(a,s)=>new vD(s,a.aggregateType,a._internalFieldPath));return KQ(n,r._query,i).then(a=>(function(o,l,c){let u=new Pd(o);return new wA(l,u,c)})(t,r,a))}var tJ={maxAttempts:5};var PA=class{constructor(e,t){this._firestore=e,this._commitHandler=t,this._mutations=[],this._committed=!1,this._dataReader=Lf(e)}set(e,t,n){this._verifyNotCommitted();let i=Vc(e,this._firestore),a=cM(i.converter,t,n),s=iM(this._dataReader,"WriteBatch.set",i._key,a,i.converter!==null,n);return this._mutations.push(s.toMutation(i._key,Di.none())),this}update(e,t,n,...i){this._verifyNotCommitted();let a=Vc(e,this._firestore),s;return s=typeof(t=At(t))=="string"||t instanceof Kc?sM(this._dataReader,"WriteBatch.update",a._key,t,n,i):aM(this._dataReader,"WriteBatch.update",a._key,t),this._mutations.push(s.toMutation(a._key,Di.exists(!0))),this}delete(e){this._verifyNotCommitted();let t=Vc(e,this._firestore);return this._mutations=this._mutations.concat(new Dd(t._key,Di.none())),this}commit(){return this._verifyNotCommitted(),this._committed=!0,this._mutations.length>0?this._commitHandler(this._mutations):Promise.resolve()}_verifyNotCommitted(){if(this._committed)throw new Me(ae.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")}};function Vc(r,e){if((r=At(r)).firestore!==e)throw new Me(ae.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return r}var RA=class{constructor(e,t){this._firestore=e,this._transaction=t,this._dataReader=Lf(e)}get(e){let t=Vc(e,this._firestore),n=new kA(this._firestore);return this._transaction.lookup([t._key]).then(i=>{if(!i||i.length!==1)return ut(24041);let a=i[0];if(a.isFoundDocument())return new Md(this._firestore,n,a.key,a,t.converter);
43if(a.isNoDocument())return new Md(this._firestore,n,t._key,null,t.converter);throw ut(18433,{doc:a})})}set(e,t,n){let i=Vc(e,this._firestore),a=cM(i.converter,t,n),s=iM(this._dataReader,"Transaction.set",i._key,a,i.converter!==null,n);return this._transaction.set(i._key,s),this}update(e,t,n,...i){let a=Vc(e,this._firestore),s;return s=typeof(t=At(t))=="string"||t instanceof Kc?sM(this._dataReader,"Transaction.update",a._key,t,n,i):aM(this._dataReader,"Transaction.update",a._key,t),this._transaction.update(a._key,s),this}delete(e){let t=Vc(e,this._firestore);return this._transaction.delete(t._key),this}};var OA=class extends RA{constructor(e,t){super(e,t),this._firestore=e}get(e){let t=Vc(e,this._firestore),n=new Pd(this._firestore);return super.get(e).then(i=>new Hc(this._firestore,n,t._key,i._document,new Lc(!1,!1),t.converter))}};function yV(r,e,t){r=ya(r,us);let n=Object.assign(Object.assign({},tJ),t);return(function(a){if(a.maxAttempts<1)throw new Me(ae.INVALID_ARGUMENT,"Max attempts must be at least 1")})(n),(function(a,s,o){let l=new ss;return a.asyncQueue.enqueueAndForget(()=>m(null,null,function*(){let c=yield j4(a);new vA(a.asyncQueue,c,o,s,l).zu()})),l.promise})(Od(r),i=>e(new OA(r,i)),n)}function vV(r){return Od(r=ya(r,us)),new PA(r,e=>Jb(r,e))}(function(e,t=!0){(function(i){Of=i})(Fo),On(new Xr("firestore",(n,{instanceIdentifier:i,options:a})=>{let s=n.getProvider("app").getImmediate(),o=new us(new qS(n.getProvider("auth-internal")),new XS(s,n.getProvider("app-check-internal")),(function(c,u){if(!Object.prototype.hasOwnProperty.apply(c.options,["projectId"]))throw new Me(ae.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new db(c.options.projectId,u)})(s,i),s);return a=Object.assign({useFetchStreams:t},a),o._setSettings(a),o},"PUBLIC").setMultipleInstances(!0)),jt(MN,kN,e),jt(MN,kN,"esm2017")})();var mo=class{constructor(e){return e}},_V="firestore",uM=class{constructor(){return Cs(_V)}};var dM=new me("angularfire2.firestore-instances");function rJ(r,e){let t=io(_V,r,e);return t&&new mo(t)}function nJ(r){return(e,t)=>{let n=e.runOutsideAngular(()=>r(t));return new mo(n)}}var iJ={provide:uM,deps:[[new Dr,dM]]},aJ={provide:mo,useFactory:rJ,deps:[[new Dr,dM],ma]};function jCe(r,...e){return jt("angularfire",Ba.full,"fst"),Li([aJ,iJ,{provide:dM,useFactory:nJ(r),multi:!0,deps:[Qe,X,Na,is,[new Dr,Vl],[new Dr,Lo],...e]}])}var Jr=ht($4,!0,2);var bV=ht(hV,!0,2);var ci=ht(G4,!0,2);var wV=ht(aV,!0,2);var IV=ht(pV,!0),Xc=ht(lV,!0);var Jn=ht(cV,!0);var HCe=ht(W4,!0),ui=ht(rV,!0,2),xV=ht(nV,!0,2);var hM=ht(fV,!0);var Go=ht(tV,!0,2),gn=ht(Z4,!0,2);var EV=ht(yV,!0),TV=ht(uV,!0,2);var CV=ht(iV,!0,2);var fM=ht(dV,!0,2);var xe=ht(eV,!0,2),mM=ht(vV,!0,2);var AV="@firebase/installations",vM="0.6.18";var MV=1e4,kV=`w:${vM}`,PV="FIS_v2",sJ="https://firebaseinstallations.googleapis.com/v1",oJ=3600*1e3,lJ="installations",cJ="Installations";var uJ={"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."},Bd=new ha(lJ,cJ,uJ);function RV(r){return r instanceof Tn&&r.code.includes("request-failed")}function OV({projectId:r}){return`${sJ}/projects/${r}/installations`}function FV(r){return{token:r.token,requestStatus:2,expiresIn:hJ(r.expiresIn),creationTime:Date.now()}}function BV(r,e){return m(this,null,function*(){let n=(yield e.json()).error;return Bd.create("request-failed",{requestName:r,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})})}function NV({apiKey:r}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":r})}function dJ(r,{refreshToken:e}){let t=NV(r);return t.append("Authorization",fJ(e)),t}function LV(r){return m(this,null,function*(){let e=yield r();return e.status>=500&&e.status<600?r():e})}function hJ(r){return Number(r.replace("s","000"))}function fJ(r){return`${PV} ${r}`}function mJ(n,i){return m(this,arguments,function*({appConfig:r,heartbeatServiceProvider:e},{fid:t}){let a=OV(r),s=NV(r),o=e.getImmediate({optional:!0});if(o){let d=yield o.getHeartbeatsHeader();d&&s.append("x-firebase-client",d)}let l={fid:t,authVersion:PV,appId:r.appId,sdkVersion:kV},c={method:"POST",headers:s,body:JSON.stringify(l)},u=yield LV(()=>fetch(a,c));if(u.ok){let d=yield u.json();return{fid:d.fid||t,registrationStatus:2,refreshToken:d.refreshToken,authToken:FV(d.authToken)}}else throw yield BV("Create Installation",u)})}function VV(r){return new Promise(e=>{setTimeout(e,r)})}function pJ(r){return btoa(String.fromCharCode(...r)).replace(/\+/g,"-").replace(/\//g,"_")}var gJ=/^[cdef][\w-]{21}$/,yM="";function yJ(){try{let r=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(r),r[0]=112+r[0]%16;let t=vJ(r);return gJ.test(t)?t:yM}catch{return yM}}function vJ(r){return pJ(r).substr(0,22)}function ew(r){return`${r.appName}!${r.appId}`}var UV=new Map;function zV(r,e){let t=ew(r);jV(t,e),_J(t,e)}function jV(r,e){let t=UV.get(r);if(t)for(let n of t)n(e)}function _J(r,e){let t=bJ();t&&t.postMessage({key:r,fid:e}),wJ()}var Fd=null;function bJ(){return!Fd&&"BroadcastChannel"in self&&(Fd=new BroadcastChannel("[Firebase] FID Change"),Fd.onmessage=r=>{jV(r.data.key,r.data.fid)}),Fd}function wJ(){UV.size===0&&Fd&&(Fd.close(),Fd=null)}var IJ="firebase-installations-database",xJ=1,Nd="firebase-installations-store",pM=null;function _M(){return pM||(pM=Zv(IJ,xJ,{upgrade:(r,e)=>{switch(e){case 0:r.createObjectStore(Nd)}}})),pM}function Zb(r,e){return m(this,null,function*(){let t=ew(r),i=(yield _M()).transaction(Nd,"readwrite"),a=i.objectStore(Nd),s=yield a.get(t);return yield a.put(e,t),yield i.done,(!s||s.fid!==e.fid)&&zV(r,e.fid),e})}function HV(r){return m(this,null,function*(){let e=ew(r),n=(yield _M()).transaction(Nd,"readwrite");yield n.objectStore(Nd).delete(e),yield n.done})}function tw(r,e){return m(this,null,function*(){let t=ew(r),i=(yield _M()).transaction(Nd,"readwrite"),a=i.objectStore(Nd),s=yield a.get(t),o=e(s);return o===void 0?yield a.delete(t):yield a.put(o,t),yield i.done,o&&(!s||s.fid!==o.fid)&&zV(r,o.fid),o})}function bM(r){return m(this,null,function*(){let e,t=yield tw(r.appConfig,n=>{let i=EJ(n),a=TJ(r,i);return e=a.registrationPromise,a.installationEntry});return t.fid===yM?{installationEntry:yield e}:{installationEntry:t,registrationPromise:e}})}function EJ(r){let e=r||{fid:yJ(),registrationStatus:0};return $V(e)}function TJ(r,e){if(e.registrationStatus===0){if(!navigator.onLine){let i=Promise.reject(Bd.create("app-offline"));return{installationEntry:e,registrationPromise:i}}let t={fid:e.fid,registrationStatus:1,registrationTime:Date.now()},n=CJ(r,t);return{installationEntry:t,registrationPromise:n}}else return e.registrationStatus===1?{installationEntry:e,registrationPromise:SJ(r)}:{installationEntry:e}}function CJ(r,e){return m(this,null,function*(){try{let t=yield mJ(r,e);return Zb(r.appConfig,t)}catch(t){throw RV(t)&&t.customData.serverCode===409?yield HV(r.appConfig):yield Zb(r.appConfig,{fid:e.fid,registrationStatus:0}),t}})}function SJ(r){return m(this,null,function*(){let e=yield SV(r.appConfig);for(;e.registrationStatus===1;)yield VV(100),e=yield SV(r.appConfig);if(e.registrationStatus===0){let{installationEntry:t,registrationPromise:n}=yield bM(r);return n||t}return e})}function SV(r){return tw(r,e=>{if(!e)throw Bd.create("installation-not-found");return $V(e)})}function $V(r){return DJ(r)?{fid:r.fid,registrationStatus:0}:r}function DJ(r){return r.registrationStatus===1&&r.registrationTime+MV<Date.now()}function AJ(n,i){return m(this,arguments,function*({appConfig:r,heartbeatServiceProvider:e},t){let a=MJ(r,t),s=dJ(r,t),o=e.getImmediate({optional:!0});if(o){let d=yield o.getHeartbeatsHeader();d&&s.append("x-firebase-client",d)}let l={installation:{sdkVersion:kV,appId:r.appId}},c={method:"POST",headers:s,body:JSON.stringify(l)},u=yield LV(()=>fetch(a,c));if(u.ok){let d=yield u.json();return FV(d)}else throw yield BV("Generate Auth Token",u)})}function MJ(r,{fid:e}){return`${OV(r)}/${e}/authTokens:generate`}function wM(r,e=!1){return m(this,null,function*(){let t,n=yield tw(r.appConfig,a=>{if(!GV(a))throw Bd.create("not-registered");let s=a.authToken;if(!e&&RJ(s))return a;
43if(s.requestStatus===1)return t=kJ(r,e),a;{if(!navigator.onLine)throw Bd.create("app-offline");let o=FJ(a);return t=PJ(r,o),o}});return t?yield t:n.authToken})}function kJ(r,e){return m(this,null,function*(){let t=yield DV(r.appConfig);for(;t.authToken.requestStatus===1;)yield VV(100),t=yield DV(r.appConfig);let n=t.authToken;return n.requestStatus===0?wM(r,e):n})}function DV(r){return tw(r,e=>{if(!GV(e))throw Bd.create("not-registered");let t=e.authToken;return BJ(t)?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}function PJ(r,e){return m(this,null,function*(){try{let t=yield AJ(r,e),n=Object.assign(Object.assign({},e),{authToken:t});return yield Zb(r.appConfig,n),t}catch(t){if(RV(t)&&(t.customData.serverCode===401||t.customData.serverCode===404))yield HV(r.appConfig);else{let n=Object.assign(Object.assign({},e),{authToken:{requestStatus:0}});yield Zb(r.appConfig,n)}throw t}})}function GV(r){return r!==void 0&&r.registrationStatus===2}function RJ(r){return r.requestStatus===2&&!OJ(r)}function OJ(r){let e=Date.now();return e<r.creationTime||r.creationTime+r.expiresIn<e+oJ}function FJ(r){let e={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},r),{authToken:e})}function BJ(r){return r.requestStatus===1&&r.requestTime+MV<Date.now()}function NJ(r){return m(this,null,function*(){let e=r,{installationEntry:t,registrationPromise:n}=yield bM(e);return n?n.catch(console.error):wM(e).catch(console.error),t.fid})}function LJ(r,e=!1){return m(this,null,function*(){let t=r;return yield VJ(t),(yield wM(t,e)).token})}function VJ(r){return m(this,null,function*(){let{registrationPromise:e}=yield bM(r);e&&(yield e)})}function UJ(r){if(!r||!r.options)throw gM("App Configuration");if(!r.name)throw gM("App Name");let e=["projectId","apiKey","appId"];for(let t of e)if(!r.options[t])throw gM(t);return{appName:r.name,projectId:r.options.projectId,apiKey:r.options.apiKey,appId:r.options.appId}}function gM(r){return Bd.create("missing-app-config-values",{valueName:r})}var WV="installations",zJ="installations-internal",jJ=r=>{let e=r.getProvider("app").getImmediate(),t=UJ(e),n=fa(e,"heartbeat");return{app:e,appConfig:t,heartbeatServiceProvider:n,_delete:()=>Promise.resolve()}},HJ=r=>{let e=r.getProvider("app").getImmediate(),t=fa(e,WV).getImmediate();return{getId:()=>NJ(t),getToken:i=>LJ(t,i)}};function $J(){On(new Xr(WV,jJ,"PUBLIC")),On(new Xr(zJ,HJ,"PRIVATE"))}$J();jt(AV,vM);jt(AV,vM,"esm2017");var qV="@firebase/performance",SM="0.7.7";var n3=SM,GJ="FB-PERF-TRACE-START",WJ="FB-PERF-TRACE-STOP",DM="FB-PERF-TRACE-MEASURE",i3="_wt_",a3="_fp",s3="_fcp",o3="_fid",l3="_lcp",qJ="lcp_element",c3="_inp",KJ="inp_interactionTarget",u3="_cls",YJ="cls_largestShiftTarget",d3="@firebase/performance/config",h3="@firebase/performance/configexpire",XJ="performance",f3="Performance";var QJ={"trace started":"Trace {$traceName} was started before.","trace stopped":"Trace {$traceName} is not running.","nonpositive trace startTime":"Trace {$traceName} startTime should be positive.","nonpositive trace duration":"Trace {$traceName} duration should be positive.","no window":"Window is not available.","no app id":"App id is not available.","no project id":"Project id is not available.","no api key":"Api key is not available.","invalid cc log":"Attempted to queue invalid cc event","FB not default":"Performance can only start when Firebase app instance is the default one.","RC response not ok":"RC response is not ok","invalid attribute name":"Attribute name {$attributeName} is invalid.","invalid attribute value":"Attribute value {$attributeValue} is invalid.","invalid custom metric name":"Custom metric name {$customMetricName} is invalid","invalid String merger input":"Input for String merger is invalid, contact support team to resolve.","already initialized":"initializePerformance() has already been called with different options. To avoid this error, call initializePerformance() with the same options as when it was originally called, or call getPerformance() to return the already initialized instance."},Wi=new ha(XJ,f3,QJ);var Qc=new Ts(f3);Qc.logLevel=Wt.INFO;
43var IM,m3,Zn=class r{constructor(e){if(this.window=e,!e)throw Wi.create("no window");this.performance=e.performance,this.PerformanceObserver=e.PerformanceObserver,this.windowLocation=e.location,this.navigator=e.navigator,this.document=e.document,this.navigator&&this.navigator.cookieEnabled&&(this.localStorage=e.localStorage),e.perfMetrics&&e.perfMetrics.onFirstInputDelay&&(this.onFirstInputDelay=e.perfMetrics.onFirstInputDelay),this.onLCP=lB,this.onINP=oB,this.onCLS=sB}getUrl(){return this.windowLocation.href.split("?")[0]}mark(e){!this.performance||!this.performance.mark||this.performance.mark(e)}measure(e,t,n){!this.performance||!this.performance.measure||this.performance.measure(e,t,n)}getEntriesByType(e){return!this.performance||!this.performance.getEntriesByType?[]:this.performance.getEntriesByType(e)}getEntriesByName(e){return!this.performance||!this.performance.getEntriesByName?[]:this.performance.getEntriesByName(e)}getTimeOrigin(){return this.performance&&(this.performance.timeOrigin||this.performance.timing.navigationStart)}requiredApisAvailable(){return!fetch||!Promise||!_B()?(Qc.info("Firebase Performance cannot start if browser does not support fetch and Promise or cookie is disabled."),!1):ld()?!0:(Qc.info("IndexedDB is not supported by current browser"),!1)}setupObserver(e,t){if(!this.PerformanceObserver)return;new this.PerformanceObserver(i=>{for(let a of i.getEntries())t(a)}).observe({entryTypes:[e]})}static getInstance(){return IM===void 0&&(IM=new r(m3)),IM}};function JJ(r){m3=r}var p3;function ZJ(r){let e=r.getId();return e.then(t=>{p3=t}),e}function MM(){return p3}function eZ(r){let e=r.getToken();return e.then(t=>{}),e}function KV(r,e){let t=r.length-e.length;if(t<0||t>1)throw Wi.create("invalid String merger input");let n=[];for(let i=0;i<r.length;i++)n.push(r.charAt(i)),e.length>i&&n.push(e.charAt(i));return n.join("")}var xM,ds=class r{constructor(){this.instrumentationEnabled=!0,this.dataCollectionEnabled=!0,this.loggingEnabled=!1,this.tracesSamplingRate=1,this.networkRequestsSamplingRate=1,this.logEndPointUrl="https://firebaselogging.googleapis.com/v0cc/log?format=json_proto",this.flTransportEndpointUrl=KV("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),this.transportKey=KV("AzSC8r6ReiGqFMyfvgow","Iayx0u-XT3vksVM-pIV"),this.logSource=462,this.logTraceAfterSampling=!1,this.logNetworkAfterSampling=!1,this.configTimeToLive=12}getFlTransportFullUrl(){return this.flTransportEndpointUrl.concat("?key=",this.transportKey)}static getInstance(){return xM===void 0&&(xM=new r),xM}};var nw=(function(r){return r[r.UNKNOWN=0]="UNKNOWN",r[r.VISIBLE=1]="VISIBLE",r[r.HIDDEN=2]="HIDDEN",r})(nw||{}),tZ=["firebase_","google_","ga_"],rZ=new RegExp("^[a-zA-Z]\\w*$"),nZ=40,iZ=100;function aZ(){let r=Zn.getInstance().navigator;return r?.serviceWorker?r.serviceWorker.controller?2:3:1}function sZ(){switch(Zn.getInstance().document.visibilityState){case"visible":return nw.VISIBLE;case"hidden":return nw.HIDDEN;default:return nw.UNKNOWN}}function oZ(){let e=Zn.getInstance().navigator.connection;switch(e&&e.effectiveType){case"slow-2g":return 1;case"2g":return 2;case"3g":return 3;case"4g":return 4;default:return 0}}function lZ(r){return r.length===0||r.length>nZ?!1:!tZ.some(t=>r.startsWith(t))&&!!r.match(rZ)}function cZ(r){return r.length!==0&&r.length<=iZ}function g3(r){var e;let t=(e=r.options)===null||e===void 0?void 0:e.appId;if(!t)throw Wi.create("no app id");return t}function uZ(r){var e;let t=(e=r.options)===null||e===void 0?void 0:e.projectId;if(!t)throw Wi.create("no project id");return t}function dZ(r){var e;let t=(e=r.options)===null||e===void 0?void 0:e.apiKey;if(!t)throw Wi.create("no api key");return t}var hZ="0.0.1",po={loggingEnabled:!0},fZ="FIREBASE_INSTALLATIONS_AUTH";function mZ(r,e){let t=pZ();return t?(YV(t),Promise.resolve()):vZ(r,e).then(YV).then(n=>gZ(n),()=>{})}function pZ(){let r=Zn.getInstance().localStorage;if(!r)return;let e=r.getItem(h3);if(!e||!_Z(e))return;let t=r.getItem(d3);if(t)try{return JSON.parse(t)}catch{return}}function gZ(r){let e=Zn.getInstance().localStorage;!r||!e||(e.setItem(d3,JSON.stringify(r)),e.setItem(h3,String(Date.now()+ds.getInstance().configTimeToLive*60*60*1e3)))}var yZ="Could not fetch config, will use default configs";function vZ(r,e){return eZ(r.installations).then(t=>{let n=uZ(r.app),i=dZ(r.app),a=`https://firebaseremoteconfig.googleapis.com/v1/projects/${n}
43/namespaces/fireperf:fetch?key=${i}`,s=new Request(a,{method:"POST",headers:{Authorization:`${fZ} ${t}`},body:JSON.stringify({app_instance_id:e,app_instance_id_token:t,app_id:g3(r.app),app_version:n3,sdk_version:hZ})});return fetch(s).then(o=>{if(o.ok)return o.json();throw Wi.create("RC response not ok")})}).catch(()=>{Qc.info(yZ)})}function YV(r){if(!r)return r;let e=ds.getInstance(),t=r.entries||{};return t.fpr_enabled!==void 0?e.loggingEnabled=String(t.fpr_enabled)==="true":e.loggingEnabled=po.loggingEnabled,t.fpr_log_source?e.logSource=Number(t.fpr_log_source):po.logSource&&(e.logSource=po.logSource),t.fpr_log_endpoint_url?e.logEndPointUrl=t.fpr_log_endpoint_url:po.logEndPointUrl&&(e.logEndPointUrl=po.logEndPointUrl),t.fpr_log_transport_key?e.transportKey=t.fpr_log_transport_key:po.transportKey&&(e.transportKey=po.transportKey),t.fpr_vc_network_request_sampling_rate!==void 0?e.networkRequestsSamplingRate=Number(t.fpr_vc_network_request_sampling_rate):po.networkRequestsSamplingRate!==void 0&&(e.networkRequestsSamplingRate=po.networkRequestsSamplingRate),t.fpr_vc_trace_sampling_rate!==void 0?e.tracesSamplingRate=Number(t.fpr_vc_trace_sampling_rate):po.tracesSamplingRate!==void 0&&(e.tracesSamplingRate=po.tracesSamplingRate),e.logTraceAfterSampling=XV(e.tracesSamplingRate),e.logNetworkAfterSampling=XV(e.networkRequestsSamplingRate),r}function _Z(r){return Number(r)>Date.now()}function XV(r){return Math.random()<=r}var kM=1,EM;function y3(r){return kM=2,EM=EM||wZ(r),EM}function bZ(){return kM===3}function wZ(r){return IZ().then(()=>ZJ(r.installations)).then(e=>mZ(r,e)).then(()=>QV(),()=>QV())}function IZ(){let r=Zn.getInstance().document;return new Promise(e=>{if(r&&r.readyState!=="complete"){let t=()=>{r.readyState==="complete"&&(r.removeEventListener("readystatechange",t),e())};r.addEventListener("readystatechange",t)}else e()})}function QV(){kM=3}var v3=10*1e3,xZ=5.5*1e3,EZ=1e3,_3=3,iw=_3,Ld=[],JV=!1;function TZ(){JV||(PM(xZ),JV=!0)}function PM(r){setTimeout(()=>{iw<=0||(Ld.length>0&&b3(),PM(v3))},r)}function b3(){let r=Ld.splice(0,EZ),e=r.map(n=>({source_extension_json_proto3:n.message,event_time_ms:String(n.eventTime)})),t={request_time_ms:String(Date.now()),client_info:{client_type:1,js_client_info:{}},log_source:ds.getInstance().logSource,log_event:e};CZ(t).then(()=>{iw=_3}).catch(()=>{Ld=[...r,...Ld],iw--,Qc.info(`Tries left: ${iw}.`),PM(v3)})}function CZ(r){let e=ds.getInstance().getFlTransportFullUrl(),t=JSON.stringify(r);return navigator.sendBeacon&&navigator.sendBeacon(e,t)?Promise.resolve():fetch(e,{method:"POST",body:t,keepalive:!0}).then()}function SZ(r){if(!r.eventTime||!r.message)throw Wi.create("invalid cc log");Ld=[...Ld,r]}function DZ(r){return(...e)=>{let t=r(...e);SZ({message:t,eventTime:Date.now()})}}function AZ(){for(;Ld.length>0;)b3()}var a0;function w3(r,e){a0||(a0={send:DZ(PZ),flush:AZ}),a0.send(r,e)}function rw(r){let e=ds.getInstance();!e.instrumentationEnabled&&r.isAuto||!e.dataCollectionEnabled&&!r.isAuto||Zn.getInstance().requiredApisAvailable()&&(bZ()?TM(r):y3(r.performanceController).then(()=>TM(r),()=>TM(r)))}function MZ(){a0&&a0.flush()}function TM(r){if(!MM())return;let e=ds.getInstance();!e.loggingEnabled||!e.logTraceAfterSampling||w3(r,1)}function kZ(r){let e=ds.getInstance();if(!e.instrumentationEnabled)return;let t=r.url,n=e.logEndPointUrl.split("?")[0],i=e.flTransportEndpointUrl.split("?")[0];t===n||t===i||!e.loggingEnabled||!e.logNetworkAfterSampling||w3(r,0)}function PZ(r,e){return e===0?RZ(r):OZ(r)}function RZ(r){let e={url:r.url,http_method:r.httpMethod||0,http_response_code:200,response_payload_bytes:r.responsePayloadBytes,client_start_time_us:r.startTimeUs,time_to_response_initiated_us:r.timeToResponseInitiatedUs,time_to_response_completed_us:r.timeToResponseCompletedUs},t={application_info:I3(r.performanceController.app),network_request_metric:e};return JSON.stringify(t)}function OZ(r){let e={name:r.name,is_auto:r.isAuto,client_start_time_us:r.startTimeUs,duration_us:r.durationUs};Object.keys(r.counters).length!==0&&(e.counters=r.counters);let t=r.getAttributes();Object.keys(t).length!==0&&(e.custom_attributes=t);let n={application_info:I3(r.performanceController.app),trace_metric:e};return JSON.stringify(n)}function I3(r){return{google_app_id:g3(r),app_instance_id:MM(),web_app_info:{sdk_version:n3,page_url:Zn.getInstance().getUrl(),service_worker_status:aZ(),visibility_state:sZ(),effective_connection_type:oZ()},application_process_state:0}}function ZV(r,e){let t=e;if(!t||t.responseStart===void 0)return;let n=Zn.getInstance().getTimeOrigin(),i=Math.floor((t.startTime+n)*1e3),a=t.responseStart?Math.floor((t.responseStart-t.startTime)*1e3):void 0,s=Math.floor((t.responseEnd-t.startTime)*1e3),o=t.name&&t.name.split("?")[0],l={performanceController:r,url:o,responsePayloadBytes:t.transferSize,startTimeUs:i,timeToResponseInitiatedUs:a,timeToResponseCompletedUs:s};kZ(l)}var FZ=100,BZ="_",NZ=[a3,s3,o3,l3,u3,c3];function LZ(r,e){return r.length===0||r.length>FZ?!1:e&&e.startsWith(i3)&&NZ.indexOf(r)>-1||!r.startsWith(BZ)}function VZ(r){let e=Math.floor(r);return e<r&&Qc.info(`Metric value should be an Integer, setting the value as : ${e}.`),e}
43var sw=class r{constructor(e,t,n=!1,i){this.performanceController=e,this.name=t,this.isAuto=n,this.state=1,this.customAttributes={},this.counters={},this.api=Zn.getInstance(),this.randomId=Math.floor(Math.random()*1e6),this.isAuto||(this.traceStartMark=`${GJ}-${this.randomId}-${this.name}`,this.traceStopMark=`${WJ}-${this.randomId}-${this.name}`,this.traceMeasure=i||`${DM}-${this.randomId}-${this.name}`,i&&this.calculateTraceMetrics())}start(){if(this.state!==1)throw Wi.create("trace started",{traceName:this.name});this.api.mark(this.traceStartMark),this.state=2}stop(){if(this.state!==2)throw Wi.create("trace stopped",{traceName:this.name});this.state=3,this.api.mark(this.traceStopMark),this.api.measure(this.traceMeasure,this.traceStartMark,this.traceStopMark),this.calculateTraceMetrics(),rw(this)}record(e,t,n){if(e<=0)throw Wi.create("nonpositive trace startTime",{traceName:this.name});if(t<=0)throw Wi.create("nonpositive trace duration",{traceName:this.name});if(this.durationUs=Math.floor(t*1e3),this.startTimeUs=Math.floor(e*1e3),n&&n.attributes&&(this.customAttributes=Object.assign({},n.attributes)),n&&n.metrics)for(let i of Object.keys(n.metrics))isNaN(Number(n.metrics[i]))||(this.counters[i]=Math.floor(Number(n.metrics[i])));rw(this)}incrementMetric(e,t=1){this.counters[e]===void 0?this.putMetric(e,t):this.putMetric(e,this.counters[e]+t)}putMetric(e,t){if(LZ(e,this.name))this.counters[e]=VZ(t??0);else throw Wi.create("invalid custom metric name",{customMetricName:e})}getMetric(e){return this.counters[e]||0}putAttribute(e,t){let n=lZ(e),i=cZ(t);if(n&&i){this.customAttributes[e]=t;return}if(!n)throw Wi.create("invalid attribute name",{attributeName:e});if(!i)throw Wi.create("invalid attribute value",{attributeValue:t})}getAttribute(e){return this.customAttributes[e]}removeAttribute(e){this.customAttributes[e]!==void 0&&delete this.customAttributes[e]}getAttributes(){return Object.assign({},this.customAttributes)}setStartTime(e){this.startTimeUs=e}setDuration(e){this.durationUs=e}calculateTraceMetrics(){let e=this.api.getEntriesByName(this.traceMeasure),t=e&&e[0];t&&(this.durationUs=Math.floor(t.duration*1e3),this.startTimeUs=Math.floor((t.startTime+this.api.getTimeOrigin())*1e3))}static createOobTrace(e,t,n,i,a){let s=Zn.getInstance().getUrl();if(!s)return;let o=new r(e,i3+s,!0),l=Math.floor(Zn.getInstance().getTimeOrigin()*1e3);o.setStartTime(l),t&&t[0]&&(o.setDuration(Math.floor(t[0].duration*1e3)),o.putMetric("domInteractive",Math.floor(t[0].domInteractive*1e3)),o.putMetric("domContentLoadedEventEnd",Math.floor(t[0].domContentLoadedEventEnd*1e3)),o.putMetric("loadEventEnd",Math.floor(t[0].loadEventEnd*1e3)));let c="first-paint",u="first-contentful-paint";if(n){let d=n.find(p=>p.name===c);d&&d.startTime&&o.putMetric(a3,Math.floor(d.startTime*1e3));let f=n.find(p=>p.name===u);f&&f.startTime&&o.putMetric(s3,Math.floor(f.startTime*1e3)),a&&o.putMetric(o3,Math.floor(a*1e3))}this.addWebVitalMetric(o,l3,qJ,i.lcp),this.addWebVitalMetric(o,u3,YJ,i.cls),this.addWebVitalMetric(o,c3,KJ,i.inp),rw(o),MZ()}static addWebVitalMetric(e,t,n,i){i&&(e.putMetric(t,Math.floor(i.value*1e3)),i.elementAttribution&&e.putAttribute(n,i.elementAttribution))}static createUserTimingTrace(e,t){let n=new r(e,t,!1,t);rw(n)}};var aw={},e3=!1,x3;function t3(r){MM()&&(setTimeout(()=>zZ(r),0),setTimeout(()=>UZ(r),0),setTimeout(()=>jZ(r),0))}function UZ(r){let e=Zn.getInstance(),t=e.getEntriesByType("resource");for(let n of t)ZV(r,n);e.setupObserver("resource",n=>ZV(r,n))}function zZ(r){let e=Zn.getInstance();"onpagehide"in window?e.document.addEventListener("pagehide",()=>CM(r)):e.document.addEventListener("unload",()=>CM(r)),e.document.addEventListener("visibilitychange",()=>{e.document.visibilityState==="hidden"&&CM(r)}),e.onFirstInputDelay&&e.onFirstInputDelay(t=>{x3=t}),e.onLCP(t=>{var n;aw.lcp={value:t.value,elementAttribution:(n=t.attribution)===null||n===void 0?void 0:n.element}}),e.onCLS(t=>{var n;aw.cls={value:t.value,elementAttribution:(n=t.attribution)===null||n===void 0?void 0:n.largestShiftTarget}}),e.onINP(t=>{var n;aw.inp={value:t.value,elementAttribution:(n=t.attribution)===null||n===void 0?void 0:n.interactionTarget}})}function jZ(r){let e=Zn.getInstance(),t=e.getEntriesByType("measure");for(let n of t)r3(r,n);e.setupObserver("measure",n=>r3(r,n))}function r3(r,e){let t=e.name;t.substring(0,DM.length)!==DM&&sw.createUserTimingTrace(r,t)}function CM(r){if(!e3){e3=!0;let e=Zn.getInstance(),t=e.getEntriesByType("navigation"),n=e.getEntriesByType("paint");setTimeout(()=>{sw.createOobTrace(r,t,n,aw,x3)},0)}}var AM=class{constructor(e,t){this.app=e,this.installations=t,this.initialized=!1}_init(e){this.initialized||(e?.dataCollectionEnabled!==void 0&&(this.dataCollectionEnabled=e.dataCollectionEnabled),e?.instrumentationEnabled!==void 0&&(this.instrumentationEnabled=e.instrumentationEnabled),Zn.getInstance().requiredApisAvailable()?a_().then(t=>{t&&(TZ(),y3(this).then(()=>t3(this),()=>t3(this)),this.initialized=!0)}).catch(t=>{Qc.info(`Environment doesn't support IndexedDB: ${t}`)}):Qc.info('Firebase Performance cannot start if the browser does not support "Fetch" and "Promise", or cookies are disabled.'))}set instrumentationEnabled(e){ds.getInstance().instrumentationEnabled=e}get instrumentationEnabled(){return ds.getInstance().instrumentationEnabled}set dataCollectionEnabled(e){ds.getInstance().dataCollectionEnabled=e}get dataCollectionEnabled(){return ds.getInstance().dataCollectionEnabled}},HZ="[DEFAULT]";function E3(r=Fa()){return r=At(r),fa(r,"performance").getImmediate()}var $Z=(r,{options:e})=>{let t=r.getProvider("app").getImmediate(),n=r.getProvider("installations-internal").getImmediate();if(t.name!==HZ)throw Wi.create("FB not default");if(typeof window>"u")throw Wi.create("no window");JJ(window);let i=new AM(t,n);return i._init(e),i};function GZ(){On(new Xr("performance",$Z,"PUBLIC")),jt(qV,SM),jt(qV,SM,"esm2017")}GZ();var s0=class{constructor(e){return e}},T3="performance",RM=class{constructor(){return Cs(T3)}};var OM=new me("angularfire2.performance-instances");function WZ(r,e,t){if(!Si(t))return null;let n=io(T3,r,e);return n&&new s0(n)}function qZ(r){return(e,t,n)=>{if(!Si(t))return null;let i=e.runOutsideAngular(()=>r(n));return new s0(i)}}var KZ={provide:RM,deps:[[new Dr,OM]]},YZ={provide:s0,useFactory:WZ,deps:[[new Dr,OM],ma,hn]};function g1e(r,...e){return jt("angularfire",Ba.full,"perf"),Li([YZ,KZ,{provide:OM,useFactory:qZ(r),multi:!0,deps:[Qe,hn,X,Na,is,...e]}])}var C3=ht(E3,!0);function o0(r){return r.buttons===0||r.detail===0}function l0(r){let e=r.touches&&r.touches[0]||r.changedTouches&&r.changedTouches[0];
43return!!e&&e.identifier===-1&&(e.radiusX==null||e.radiusX===1)&&(e.radiusY==null||e.radiusY===1)}var FM;function S3(){if(FM==null){let r=typeof document<"u"?document.head:null;FM=!!(r&&(r.createShadowRoot||r.attachShadow))}return FM}function BM(r){if(S3()){let e=r.getRootNode?r.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function Vd(){let r=typeof document<"u"&&document?document.activeElement:null;for(;r&&r.shadowRoot;){let e=r.shadowRoot.activeElement;if(e===r)break;r=e}return r}function va(r){return r.composedPath?r.composedPath()[0]:r.target}var NM;try{NM=typeof Intl<"u"&&Intl.v8BreakIterator}catch{NM=!1}var tr=(()=>{class r{_platformId=A(hn);isBrowser=this._platformId?Si(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||NM)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var c0;function D3(){if(c0==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>c0=!0}))}finally{c0=c0||!1}return c0}function Jc(r){return D3()?r:!!r.capture}function hs(r,e=0){return A3(r)?Number(r):arguments.length===2?e:0}function A3(r){return!isNaN(parseFloat(r))&&!isNaN(Number(r))}function _a(r){return r instanceof mt?r.nativeElement:r}var M3=new me("cdk-input-modality-detector-options"),k3={ignoreKeys:[18,17,224,91,16]},P3=650,LM={passive:!0,capture:!0},R3=(()=>{class r{_platform=A(tr);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Ii(null);_options;_lastTouchMs=0;_onKeydown=t=>{this._options?.ignoreKeys?.some(n=>n===t.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=va(t))};_onMousedown=t=>{Date.now()-this._lastTouchMs<P3||(this._modality.next(o0(t)?"keyboard":"mouse"),this._mostRecentTarget=va(t))};_onTouchstart=t=>{if(l0(t)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=va(t)};constructor(){let t=A(Qe),n=A(Je),i=A(M3,{optional:!0});if(this._options=de(de({},k3),i),this.modalityDetected=this._modality.pipe(jv(1)),this.modalityChanged=this.modalityDetected.pipe(pC()),this._platform.isBrowser){let a=A(ca).createRenderer(null,null);this._listenerCleanups=t.runOutsideAngular(()=>[a.listen(n,"keydown",this._onKeydown,LM),a.listen(n,"mousedown",this._onMousedown,LM),a.listen(n,"touchstart",this._onTouchstart,LM)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(t=>t())}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),u0=(function(r){return r[r.IMMEDIATE=0]="IMMEDIATE",r[r.EVENTUAL=1]="EVENTUAL",r})(u0||{}),O3=new me("cdk-focus-monitor-default-options"),ow=Jc({passive:!0,capture:!0}),Zc=(()=>{class r{_ngZone=A(Qe);_platform=A(tr);_inputModalityDetector=A(R3);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=A(Je);_stopInputModalityDetector=new Ye;constructor(){let t=A(O3,{optional:!0});this._detectionMode=t?.detectionMode||u0.IMMEDIATE}_rootNodeFocusAndBlurListener=t=>{let n=va(t);for(let i=n;i;i=i.parentElement)t.type==="focus"?this._onFocus(t,i):this._onBlur(t,i)};monitor(t,n=!1){let i=_a(t);if(!this._platform.isBrowser||i.nodeType!==1)return Xe();let a=BM(i)||this._document,s=this._elementInfo.get(i);if(s)return n&&(s.checkChildren=!0),s.subject;
vendor: 4,818 bytes, line 43
43let o={checkChildren:n,subject:new Ye,rootNode:a};return this._elementInfo.set(i,o),this._registerGlobalListeners(o),o.subject}stopMonitoring(t){let n=_a(t),i=this._elementInfo.get(n);i&&(i.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(i))}focusVia(t,n,i){let a=_a(t),s=this._document.activeElement;a===s?this._getClosestElementsInfo(a).forEach(([o,l])=>this._originChanged(o,n,l)):(this._setOrigin(n),typeof a.focus=="function"&&a.focus(i))}ngOnDestroy(){this._elementInfo.forEach((t,n)=>this.stopMonitoring(n))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:t&&this._isLastInteractionFromInputLabel(t)?"mouse":"program"}_shouldBeAttributedToTouch(t){return this._detectionMode===u0.EVENTUAL||!!t?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(t,n){t.classList.toggle("cdk-focused",!!n),t.classList.toggle("cdk-touch-focused",n==="touch"),t.classList.toggle("cdk-keyboard-focused",n==="keyboard"),t.classList.toggle("cdk-mouse-focused",n==="mouse"),t.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(t,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=t,this._originFromTouchInteraction=t==="touch"&&n,this._detectionMode===u0.IMMEDIATE){clearTimeout(this._originTimeoutId);let i=this._originFromTouchInteraction?P3:1;this._originTimeoutId=setTimeout(()=>this._origin=null,i)}})}_onFocus(t,n){let i=this._elementInfo.get(n),a=va(t);!i||!i.checkChildren&&n!==a||this._originChanged(n,this._getFocusOrigin(a),i)}_onBlur(t,n){let i=this._elementInfo.get(n);!i||i.checkChildren&&t.relatedTarget instanceof Node&&n.contains(t.relatedTarget)||(this._setClasses(n),this._emitOrigin(i,null))}_emitOrigin(t,n){t.subject.observers.length&&this._ngZone.run(()=>t.subject.next(n))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;let n=t.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,ow),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,ow)}),this._rootNodeFocusListenerCount.set(n,i+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(dn(this._stopInputModalityDetector)).subscribe(a=>{this._setOrigin(a,!0)}))}_removeGlobalListeners(t){let n=t.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let i=this._rootNodeFocusListenerCount.get(n);i>1?this._rootNodeFocusListenerCount.set(n,i-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ow),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ow),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(t,n,i){this._setClasses(t,n),this._emitOrigin(i,n),this._lastFocusOrigin=n}_getClosestElementsInfo(t){let n=[];return this._elementInfo.forEach((i,a)=>{(a===t||i.checkChildren&&a.contains(t))&&n.push([a,i])}),n}_isLastInteractionFromInputLabel(t){let{_mostRecentTarget:n,mostRecentModality:i}=this._inputModalityDetector;if(i!=="mouse"||!n||n===t||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA"||t.disabled)return!1;let a=t.labels;if(a){for(let s=0;s<a.length;s++)if(a[s].contains(n))return!0}return!1}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),XZ=(()=>{class r{_elementRef=A(mt);_focusMonitor=A(Zc);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new Rt;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,t.nodeType===1&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return r})();var lw=new WeakMap,ba=(()=>{class r{_appRef;_injector=A(X);_environmentInjector=A(Ei);load(t){let n=this._appRef=this._appRef||this._injector.get(Ml),i=lw.get(n);i||(i={loaders:new Set,refs:[]},lw.set(n,i),n.onDestroy(()=>
43{lw.get(n)?.refs.forEach(a=>a.destroy()),lw.delete(n)})),i.loaders.has(t)||(i.loaders.add(t),i.refs.push(Jv(t,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var cw=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275cmp=dt({type:r,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,i){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} 44`],encapsulation:2,changeDetection:0})}return r})();function Vf(r){return Array.isArray(r)?r:[r]}var F3=new Set,Ud,uw=(()=>{class r{_platform=A(tr);_nonce=A(eg,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):JZ}matchMedia(t){return(this._platform.WEBKIT||this._platform.BLINK)&&QZ(t,this._nonce),this._matchMedia(t)}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function QZ(r,e){if(!F3.has(r))try{Ud||(Ud=document.createElement("style"),e&&Ud.setAttribute("nonce",e),Ud.setAttribute("type","text/css"),document.head.appendChild(Ud)),Ud.sheet&&(Ud.sheet.insertRule(`@media ${r} {body{ }}`,0),F3.add(r))}catch(t){console.error(t)}}function JZ(r){return{matches:r==="all"||r==="",media:r,addListener:()=>{},removeListener:()=>{}}}var wa=(()=>{class r{_mediaMatcher=A(uw);_zone=A(Qe);_queries=new Map;_destroySubject=new Ye;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return B3(Vf(t)).some(i=>this._registerQuery(i).mql.matches)}observe(t){let i=B3(Vf(t)).map(s=>this._registerQuery(s).observable),a=ef(i);return a=zv(a.pipe(Hr(1)),a.pipe(jv(1),rf(0))),a.pipe(ft(s=>{let o={matches:!1,breakpoints:{}};return s.forEach(({matches:l,query:c})=>{o.matches=o.matches||l,o.breakpoints[c]=l}),o}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);let n=this._mediaMatcher.matchMedia(t),a={observable:new Ot(s=>{let o=l=>this._zone.run(()=>s.next(l));return n.addListener(o),()=>{n.removeListener(o)}}).pipe(to(n),ft(({matches:s})=>({query:t,matches:s})),dn(this._destroySubject)),mql:n};return this._queries.set(t,a),a}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function B3(r){return r.map(e=>e.split(",")).reduce((e,t)=>e.concat(t)).map(e=>e.trim())}function ZZ(r){if(r.type==="characterData"&&r.target instanceof Comment)return!0;if(r.type==="childList"){for(let e=0;e<r.addedNodes.length;e++)if(!(r.addedNodes[e]instanceof Comment))return!1;for(let e=0;e<r.removedNodes.length;e++)if(!(r.removedNodes[e]instanceof Comment))return!1;return!0}return!1}var N3=(()=>{class r{create(t){return typeof MutationObserver>"u"?null:new MutationObserver(t)}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),L3=(()=>{class r{_mutationObserverFactory=A(N3);_observedElements=new Map;_ngZone=A(Qe);constructor(){}ngOnDestroy(){this._observedElements.forEach((t,n)=>this._cleanupObserver(n))}observe(t){let n=_a(t);return new Ot(i=>{let s=this._observeElement(n).pipe(ft(o=>o.filter(l=>!ZZ(l))),Yt(o=>!!o.length)).subscribe(o=>{this._ngZone.run(()=>{i.next(o)})});return()=>{s.unsubscribe(),this._unobserveElement(n)}})}_observeElement(t){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(t))this._observedElements.get(t).count++;else{let n=new Ye,i=this._mutationObserverFactory.create(a=>n.next(a));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:n,count:1})}return this._observedElements.get(t).stream})}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){let{observer:n,stream:i}=this._observedElements.get(t);n&&n.disconnect(),i.complete(),this._observedElements.delete(t)}}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),mSe=(()=>{class r{_contentObserver=A(L3);_elementRef=A(mt);event=new Rt;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(t){this._debounce=hs(t),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let t=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?t.pipe(rf(this.debounce)):t).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",cr],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return r})(),dw=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({providers:[N3]})}return r})();var fw=(()=>{class r{_platform=A(tr);constructor(){}isDisabled(t){return t.hasAttribute("disabled")}isVisible(t){return tee(t)&&getComputedStyle(t).visibility==="visible"}isTabbable(t){if(!this._platform.isBrowser)return!1;let n=eee(cee(t));if(n&&(V3(n)===-1||!this.isVisible(n)))return!1;let i=t.nodeName.toLowerCase(),a=V3(t);return t.hasAttribute("contenteditable")?a!==-1:i==="iframe"||i==="object"||this._platform.WEBKIT&&this._platform.IOS&&!oee(t)?!1:i==="audio"?t.hasAttribute("controls")?a!==-1:!1:i==="video"?a===-1?!1:a!==null?!0:this._platform.FIRE
44FOX||t.hasAttribute("controls"):t.tabIndex>=0}isFocusable(t,n){return lee(t)&&!this.isDisabled(t)&&(n?.ignoreVisibility||this.isVisible(t))}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function eee(r){try{return r.frameElement}catch{return null}}function tee(r){return!!(r.offsetWidth||r.offsetHeight||typeof r.getClientRects=="function"&&r.getClientRects().length)}function ree(r){let e=r.nodeName.toLowerCase();return e==="input"||e==="select"||e==="button"||e==="textarea"}function nee(r){return aee(r)&&r.type=="hidden"}function iee(r){return see(r)&&r.hasAttribute("href")}function aee(r){return r.nodeName.toLowerCase()=="input"}function see(r){return r.nodeName.toLowerCase()=="a"}function j3(r){if(!r.hasAttribute("tabindex")||r.tabIndex===void 0)return!1;let e=r.getAttribute("tabindex");return!!(e&&!isNaN(parseInt(e,10)))}function V3(r){if(!j3(r))return null;let e=parseInt(r.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}function oee(r){let e=r.nodeName.toLowerCase(),t=e==="input"&&r.type;return t==="text"||t==="password"||e==="select"||e==="textarea"}function lee(r){return nee(r)?!1:ree(r)||iee(r)||r.hasAttribute("contenteditable")||j3(r)}function cee(r){return r.ownerDocument&&r.ownerDocument.defaultView||window}var hw=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(e){this._enabled=e,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_enabled=!0;constructor(e,t,n,i,a=!1,s){this._element=e,this._checker=t,this._ngZone=n,this._document=i,this._injector=s,a||this.attachAnchors()}destroy(){let e=this._startAnchor,t=this._endAnchor;e&&(e.removeEventListener("focus",this.startAnchorListener),e.remove()),t&&(t.removeEventListener("focus",this.endAnchorListener),t.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusInitialElement(e)))})}focusFirstTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusFirstTabbableElement(e)))})}focusLastTabbableElementWhenReady(e){return new Promise(t=>{this._executeOnStable(()=>t(this.focusLastTabbableElement(e)))})}_getRegionBoundary(e){let t=this._element.querySelectorAll(`[cdk-focus-region-${e}], [cdkFocusRegion${e}], [cdk-focus-${e}]`);return e=="start"?t.length?t[0]:this._getFirstTabbableElement(this._element):t.length?t[t.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(e){let t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(t){if(!this._checker.isFocusable(t)){let n=this._getFirstTabbableElement(t);return n?.focus(e),!!n}return t.focus(e),!0}return this.focusFirstTabbableElement(e)}focusFirstTabbableElement(e){let t=this._getRegionBoundary("start");return t&&t.focus(e),!!t}focusLastTabbableElement(e){let t=this._getRegionBoundary("end");return t&&t.focus(e),!!t}hasAttached(){return this._hasAttached}_getFirstTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let n=0;n<t.length;n++){let i=t[n].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(t[n]):null;if(i)return i}return null}_getLastTabbableElement(e){if(this._checker.isFocusable(e)&&this._checker.isTabbable(e))return e;let t=e.children;for(let n=t.length-1;n>=0;n--){let i=t[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(t[n]):null;if(i)return i}return null}_createAnchor(){let e=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,e),e.classList.add("cdk-visually-hidden"),e.classList.add("cdk-focus-trap-anchor"),e.setAttribute("aria-hidden","true"),e}_toggleAnchorTabIndex(e,t){e?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")}toggleAnchors(e){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(e,this._startAnchor),this._toggleAnchorTabIndex(e,this._endAnchor))}_executeOnStable(e){this._injector?Yn(e,{injector:this._injector}):setTimeout(e)}},mw=(()=>{class r{_checker=A(fw);_ngZone=A(Qe);_document=A(Je);_injector=A(X);constructor(){A(ba).load(cw)}create(t,n=!1){return new hw(t,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),uee=(()=>{class r{_elementRef=A(mt);_focusTrapFactory=A(mw);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(t){this.focusTrap&&(this.focusTrap.enabled=t)}autoCapture;constructor(){A(tr).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(t){let n=t.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=Vd(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",cr],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",cr]},exportAs:["cdkTrapFocus"],features:[En]})}return r})(),H3=new me("liveAnnouncerElement",{providedIn:"root",factory:$3});function $3(){return null}var G3=new me("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),dee=0,UM=(()=>{class r{_ngZone=A(Qe);_defaultOptions=A(G3,{optional:!0});_liveElement;_document=A(Je);_previousTimeout;_currentPromise;_currentResolve;constructor(){let t=A(H3,{optional:!0});this._liveElement=t||this._createLiveElement()}announce(t,...n){let i=this._defaultOptions,a,s;return n.length===1&&typeof n[0]=="number"?s=n[0]:[a,s]=n,this.clear(),clearTimeout(this._previousTimeout),a||(a=i&&i.politeness?i.politeness:"polite"),s==null&&i&&(s=i.duration),this._liveElement.setAttribute("aria-live",a),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(o=>this._currentResolve=o)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=t,typeof s=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let t="cdk-live-announcer-element",n=this._document.getElementsByClassName(t),i=this._document.createElement("div");for(let a=0;a<n.length;a++)n[a].remove();return i.classList.add(t),i.classList.add("cdk-visually-hidden"),i.setAttribute("aria-atomic","true"),i.setAttribute("aria-live","polite"),i.id=`cdk-live-announcer-${dee++}`,this._document.body.appendChild(i),i}_exposeAnnouncerToModals(t){let n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let i=0;i<n.length;i++){let a=n[i],s=a.getAttribute("aria-owns");s?s.indexOf(t)===-1&&a.setAttribute("aria-owns",s+" "+t):a.setAttribute("aria-owns",t)}}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var eu=(function(r){return r[r.NONE=0]="NONE",r[r.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",r[r.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",r})(eu||{}),U3="cdk-high-contrast-black-on-white",z3="cdk-high-contrast-white-on-black",VM="cdk-high-contrast-active",pw=(()=>{class r{_platform=A(tr);_hasCheckedHighContrastMode;_document=A(Je);_breakpointSubscription;constructor(){this._breakpointSubscription=A(wa).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasse
vendor: 6,201 bytes, line 44
44s())})}getHighContrastMode(){if(!this._platform.isBrowser)return eu.NONE;let t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);let n=this._document.defaultView||window,i=n&&n.getComputedStyle?n.getComputedStyle(t):null,a=(i&&i.backgroundColor||"").replace(/ /g,"");switch(t.remove(),a){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return eu.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return eu.BLACK_ON_WHITE}return eu.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let t=this._document.body.classList;t.remove(VM,U3,z3),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===eu.BLACK_ON_WHITE?t.add(VM,U3):n===eu.WHITE_ON_BLACK&&t.add(VM,z3)}}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),d0=(()=>{class r{constructor(){A(pw)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({imports:[dw]})}return r})();var zM={},qi=(()=>{class r{_appId=A(Zu);getId(t){return this._appId!=="ng"&&(t+=this._appId),zM.hasOwnProperty(t)||(zM[t]=0),`${t}${zM[t]++}`}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var hee=200,Uf=class{_letterKeyStream=new Ye;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new Ye;selectedItem=this._selectedItem;constructor(e,t){let n=typeof t?.debounceInterval=="number"?t.debounceInterval:hee;t?.skipPredicate&&(this._skipPredicateFn=t.skipPredicate),this.setItems(e),this._setupKeyHandler(n)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(e){this._selectedItemIndex=e}setItems(e){this._items=e}handleKey(e){let t=e.keyCode;e.key&&e.key.length===1?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(e){this._letterKeyStream.pipe(lr(t=>this._pressedLetters.push(t)),rf(e),Yt(()=>this._pressedLetters.length>0),ft(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(t=>{for(let n=1;n<this._items.length+1;n++){let i=(this._selectedItemIndex+n)%this._items.length,a=this._items[i];if(!this._skipPredicateFn?.(a)&&a.getLabel?.().toLocaleUpperCase().trim().indexOf(t)===0){this._selectedItem.next(a);break}}this._pressedLetters=[]})}};function Ms(r,...e){return e.length?e.some(t=>r[t]):r.altKey||r.shiftKey||r.ctrlKey||r.metaKey}var zf=class{_items;_activeItemIndex=Vr(-1);_activeItem=Vr(null);_wrap=!1;_typeaheadSubscription=ai.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=e=>e.disabled;constructor(e,t){this._items=e,e instanceof Zp?this._itemChangesSubscription=e.changes.subscribe(n=>this._itemsChanged(n.toArray())):Jp(e)&&(this._effectRef=Pl(()=>this._itemsChanged(e()),{injector:t}))}tabOut=new Ye;change=new Ye;skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){this._typeaheadSubscription.unsubscribe();let t=this._getItemsArray();return this._typeahead=new Uf(t,{debounceInterval:typeof e=="number"?e:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}withPageUpDown(e=!0,t=10){return this._pageUpAndDown={enabled:e,delta:t},this}setActiveItem(e){let t=this._activeItem();this.updateActiveItem(e),this._activeItem()!==t&&this.change.next(this._activeItemIndex())}onKeydown(e){let t=e.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(a=>!e[a]||this._allowedModifierKeys.indexOf(a)>-1);switch(t){case 9:this.tabOut.next();return;case 40:if(this._vertical&&i){this.setNextItemActive();break}else return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&i){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&i){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&i){let a=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(a>0?a:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&i){let a=this._activeItemIndex()+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(a<s?a:s-1,-1);break}else return;default:(i||Ms(e,"shiftKey"))&&this._typeahead?.handleKey(e);return}this._typeahead?.reset(),e.preventDefault()}get activeItemIndex(){return this._activeItemIndex()}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex()<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex()<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){let t=this._getItemsArray(),n=typeof e=="number"?e:t.indexOf(e),i=t[n];this._activeItem.set(i??null),this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n)}
44destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){let t=this._getItemsArray();for(let n=1;n<=t.length;n++){let i=(this._activeItemIndex()+e*n+t.length)%t.length,a=t[i];if(!this._skipPredicateFn(a)){this.setActiveItem(i);return}}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex()+e,e)}_setActiveItemByIndex(e,t){let n=this._getItemsArray();if(n[e]){for(;this._skipPredicateFn(n[e]);)if(e+=t,!n[e])return;this.setActiveItem(e)}}_getItemsArray(){return Jp(this._items)?this._items():this._items instanceof Zp?this._items.toArray():this._items}_itemsChanged(e){this._typeahead?.setItems(e);let t=this._activeItem();if(t){let n=e.indexOf(t);n>-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n))}}};var jM=class extends zf{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}};var HM=class extends zf{_origin="program";setFocusOrigin(e){return this._origin=e,this}setActiveItem(e){super.setActiveItem(e),this.activeItem&&this.activeItem.focus(this._origin)}};function $M(r){return Qu(r)?r:Xe(r)}var GM=class{_activeItemIndex=-1;_activeItem=null;_shouldActivationFollowFocus=!1;_horizontalOrientation="ltr";_skipPredicateFn=e=>!1;_trackByFn=e=>e;_items=[];_typeahead;_typeaheadSubscription=ai.EMPTY;_hasInitialFocused=!1;_initializeFocus(){if(this._hasInitialFocused||this._items.length===0)return;let e=0;for(let n=0;n<this._items.length;n++)if(!this._skipPredicateFn(this._items[n])&&!this._isItemDisabled(this._items[n])){e=n;break}let t=this._items[e];t.makeFocusable?(this._activeItem?.unfocus(),this._activeItemIndex=e,this._activeItem=t,this._typeahead?.setCurrentSelectedItemIndex(e),t.makeFocusable()):this.focusItem(e),this._hasInitialFocused=!0}constructor(e,t){e instanceof Zp?(this._items=e.toArray(),e.changes.subscribe(n=>{this._items=n.toArray(),this._typeahead?.setItems(this._items),this._updateActiveItemIndex(this._items),this._initializeFocus()})):Qu(e)?e.subscribe(n=>{this._items=n,this._typeahead?.setItems(n),this._updateActiveItemIndex(n),this._initializeFocus()}):(this._items=e,this._initializeFocus()),typeof t.shouldActivationFollowFocus=="boolean"&&(this._shouldActivationFollowFocus=t.shouldActivationFollowFocus),t.horizontalOrientation&&(this._horizontalOrientation=t.horizontalOrientation),t.skipPredicate&&(this._skipPredicateFn=t.skipPredicate),t.trackBy&&(this._trackByFn=t.trackBy),typeof t.typeAheadDebounceInterval<"u"&&this._setTypeAhead(t.typeAheadDebounceInterval)}change=new Ye;destroy(){this._typeaheadSubscription.unsubscribe(),this._typeahead?.destroy(),this.change.complete()}onKeydown(e){switch(e.key){case"Tab":return;case"ArrowDown":this._focusNextItem();break;case"ArrowUp":this._focusPreviousItem();break;case"ArrowRight":this._horizontalOrientation==="rtl"?this._collapseCurrentItem():this._expandCurrentItem();break;case"ArrowLeft":this._horizontalOrientation==="rtl"?this._expandCurrentItem():this._collapseCurrentItem();break;case"Home":this._focusFirstItem();break;case"End":this._focusLastItem();break;case"Enter":case" ":this._activateCurrentItem();break;default:if(e.key==="*"){this._expandAllItemsAtCurrentItemLevel();break}this._typeahead?.handleKey(e);return}this._typeahead?.reset(),e.preventDefault()}getActiveItemIndex(){return this._activeItemIndex}getActiveItem(){return this._activeItem}_focusFirstItem(){this.focusItem(this._findNextAvailableItemIndex(-1))}_focusLastItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._items.length))}_focusNextItem(){this.focusItem(this._findNextAvailableItemIndex(this._activeItemIndex))}_focusPreviousItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._activeItemIndex))}focusItem(e,t={}){t.emitChangeEvent??=!0;let n=typeof e=="number"?e:this._items.findIndex(s=>this._trackByFn(s)===this._trackByFn(e));if(n<0||n>=this._items.length)return;let i=this._items[n];if(this._activeItem!==null&&this._trackByFn(i)===this._trackByFn(this._activeItem))return;let a=this._activeItem;this._activeItem=i??null,this._activeItemIndex=n,this._typeahead?.setCurrentSelectedItemIndex(n),this._activeItem?.focus(),a?.unfocus(),t.emitChangeEvent&&this.change.next(this._activeItem),this._shouldActivationFollowFocus&&this._activateCurrentItem()}_updateActiveItemIndex(e){let t=this._activeItem;if(!t)return;let n=e.findIndex(i=>this._trackByFn(i)===this._trackByFn(t));n>-1&&n!==this._activeItemIndex&&(this._activeItemIndex=n,this._typeahead?.setCurrentSelectedItemIndex(n))}_setTypeAhead(e){this._typeahead=new Uf(this._items,{debounceInterval:typeof e=="number"?e:void 0,skipPredicate:t=>this._skipPredicateFn(t)}
44),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(t=>{this.focusItem(t)})}_findNextAvailableItemIndex(e){for(let t=e+1;t<this._items.length;t++)if(!this._skipPredicateFn(this._items[t]))return t;return e}_findPreviousAvailableItemIndex(e){for(let t=e-1;t>=0;t--)if(!this._skipPredicateFn(this._items[t]))return t;return e}_collapseCurrentItem(){if(this._activeItem)if(this._isCurrentItemExpanded())this._activeItem.collapse();else{let e=this._activeItem.getParent();if(!e||this._skipPredicateFn(e))return;this.focusItem(e)}}_expandCurrentItem(){this._activeItem&&(this._isCurrentItemExpanded()?$M(this._activeItem.getChildren()).pipe(Hr(1)).subscribe(e=>{let t=e.find(n=>!this._skipPredicateFn(n));t&&this.focusItem(t)}):this._activeItem.expand())}_isCurrentItemExpanded(){return this._activeItem?typeof this._activeItem.isExpanded=="boolean"?this._activeItem.isExpanded:this._activeItem.isExpanded():!1}_isItemDisabled(e){return typeof e.isDisabled=="boolean"?e.isDisabled:e.isDisabled?.()}_expandAllItemsAtCurrentItemLevel(){if(!this._activeItem)return;let e=this._activeItem.getParent(),t;e?t=$M(e.getChildren()):t=Xe(this._items.filter(n=>n.getParent()===null)),t.pipe(Hr(1)).subscribe(n=>{for(let i of n)i.expand()})}_activateCurrentItem(){this._activeItem?.activate()}};function fee(){return(r,e)=>new GM(r,e)}var uDe=new me("tree-key-manager",{providedIn:"root",factory:fee});var q3=" ";function mee(r,e,t){let n=yw(r,e);t=t.trim(),!n.some(i=>i.trim()===t)&&(n.push(t),r.setAttribute(e,n.join(q3)))}function pee(r,e,t){let n=yw(r,e);t=t.trim();let i=n.filter(a=>a!==t);i.length?r.setAttribute(e,i.join(q3)):r.removeAttribute(e)}function yw(r,e){return r.getAttribute(e)?.match(/\S+/g)??[]}var K3="cdk-describedby-message",gw="cdk-describedby-host",qM=0,Y3=(()=>{class r{_platform=A(tr);_document=A(Je);_messageRegistry=new Map;_messagesContainer=null;_id=`${qM++}`;constructor(){A(ba).load(cw),this._id=A(Zu)+"-"+qM++}describe(t,n,i){if(!this._canBeDescribed(t,n))return;let a=WM(n,i);typeof n!="string"?(W3(n,this._id),this._messageRegistry.set(a,{messageElement:n,referenceCount:0})):this._messageRegistry.has(a)||this._createMessageElement(n,i),this._isElementDescribedByMessage(t,a)||this._addMessageReference(t,a)}removeDescription(t,n,i){if(!n||!this._isElementNode(t))return;let a=WM(n,i);if(this._isElementDescribedByMessage(t,a)&&this._removeMessageReference(t,a),typeof n=="string"){let s=this._messageRegistry.get(a);s&&s.referenceCount===0&&this._deleteMessageElement(a)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let t=this._document.querySelectorAll(`[${gw}="${this._id}"]`);for(let n=0;n<t.length;n++)this._removeCdkDescribedByReferenceIds(t[n]),t[n].removeAttribute(gw);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(t,n){let i=this._document.createElement("div");W3(i,this._id),i.textContent=t,n&&i.setAttribute("role",n),this._createMessagesContainer(),this._messagesContainer.appendChild(i),this._messageRegistry.set(WM(t,n),{messageElement:i,referenceCount:0})}_deleteMessageElement(t){this._messageRegistry.get(t)?.messageElement?.remove(),this._messageRegistry.delete(t)}_createMessagesContainer(){if(this._messagesContainer)return;let t="cdk-describedby-message-container",n=this._document.querySelectorAll(`.${t}[platform="server"]`);for(let a=0;a<n.length;a++)n[a].remove();let i=this._document.createElement("div");i.style.visibility="hidden",i.classList.add(t),i.classList.add("cdk-visually-hidden"),this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._messagesContainer=i}_removeCdkDescribedByReferenceIds(t){let n=yw(t,"aria-describedby").filter(i=>i.indexOf(K3)!=0);t.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(t,n){let i=this._messageRegistry.get(n);mee(t,"aria-describedby",i.messageElement.id),t.setAttribute(gw,this._id),i.referenceCount++}_removeMessageReference(t,n){let i=this._messageRegistry.get(n);i.referenceCount--,pee(t,"aria-describedby",i.messageElement.id),t.removeAttribute(gw)}_isElementDescribedByMessage(t,n){let i=yw(t,"aria-describedby"),a=this._messageRegistry.get(n),s=a&&a.messageElement.id;return!!s&&i.indexOf(s)!=-1}_canBeDescribed(t,n){if(!this._isElementNode(t))return!1;if(n&&typeof n=="object")return!0;let i=n==null?"":`${n}`.trim(),a=t.getAttribute("aria-label");return i?!a||a.trim()!==i:!1}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function WM(r,e){return typeof r=="string"?`${e||""}/${r}`:r}function W3(r,e){r.id||(r.id=`${K3}-${e}-${qM++}`)}var go=(function(r){return r[r.NORMAL=0]="NORMAL",r[r.NEGATED=1]="NEGATED",r[r.INVERTED=2]="INVERTED",r})(go||{}),vw,zd;function _w(){if(zd==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return zd=!1,zd;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)zd=!0;else{let r=Element.prototype.scrollTo;r?zd=!/\{\s*\[native code\]\s*\}/.test(r.toString()):zd=!1}}return zd}function jf(){if(typeof document!="object"||!document)return go.NORMAL;if(vw==null){let r=document.createElement("div"),e=r.style;r.dir="rtl",e.width="1px",e.overflow="auto",e.visibility="hidden",e.pointerEvents="none",e.position="absolute";let t=document.createElement("div"),n=t.style;n.width="2px",n.height="1px",r.appendChild(t),document.body.appendChild(r),vw=go.NORMAL,r.scrollLeft===0&&(r.scrollLeft=1,vw=r.scrollLeft===0?go.NEGATED:go.INVERTED),r.remove()}return vw}function KM(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Moc
44ha}var Hf,X3=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function YM(){if(Hf)return Hf;if(typeof document!="object"||!document)return Hf=new Set(X3),Hf;let r=document.createElement("input");return Hf=new Set(X3.filter(e=>(r.setAttribute("type",e),r.type===e))),Hf}var Kl={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var yee=new me("MATERIAL_ANIMATIONS");var Q3=null;function vee(){return A(yee,{optional:!0})?.animationsDisabled||A(Hv,{optional:!0})==="NoopAnimations"?"di-disabled":(Q3??=A(uw).matchMedia("(prefers-reduced-motion)").matches,Q3?"reduced-motion":"enabled")}function $n(){return vee()!=="enabled"}function Sn(r){return r==null?"":typeof r=="string"?r:`${r}px`}function Yl(r){return r!=null&&`${r}`!="false"}function LDe(r,e=/\s+/){let t=[];if(r!=null){let n=Array.isArray(r)?r:`${r}`.split(e);for(let i of n){let a=`${i}`.trim();a&&t.push(a)}}return t}var ks=(function(r){return r[r.FADING_IN=0]="FADING_IN",r[r.VISIBLE=1]="VISIBLE",r[r.FADING_OUT=2]="FADING_OUT",r[r.HIDDEN=3]="HIDDEN",r})(ks||{}),XM=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=ks.HIDDEN;constructor(e,t,n,i=!1){this._renderer=e,this.element=t,this.config=n,this._animationForciblyDisabledThroughCss=i}fadeOut(){this._renderer.fadeOutRipple(this)}},J3=Jc({passive:!0,capture:!0}),QM=class{_events=new Map;addHandler(e,t,n,i){let a=this._events.get(t);if(a){let s=a.get(n);s?s.add(i):a.set(n,new Set([i]))}else this._events.set(t,new Map([[n,new Set([i])]])),e.runOutsideAngular(()=>{document.addEventListener(t,this._delegateEventHandler,J3)})}removeHandler(e,t,n){let i=this._events.get(e);if(!i)return;let a=i.get(t);a&&(a.delete(n),a.size===0&&i.delete(t),i.size===0&&(this._events.delete(e),document.removeEventListener(e,this._delegateEventHandler,J3)))}_delegateEventHandler=e=>{let t=va(e);t&&this._events.get(e.type)?.forEach((n,i)=>{(i===t||i.contains(t))&&n.forEach(a=>a.handleEvent(e))})}},h0={enterDuration:225,exitDuration:150},_ee=800,Z3=Jc({passive:!0,capture:!0}),eU=["mousedown","touchstart"],tU=["mouseup","mouseleave","touchend","touchcancel"],bee=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275cmp=dt({type:r,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,i){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none} 45`],encapsulation:2,changeDetection:0})}return r})(),f0=class r{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new QM;constructor(e,t,n,i,a){this._target=e,this._ngZone=t,this._platform=i,i.isBrowser&&(this._containerElement=_a(n)),a&&a.get(ba).load(bee)}fadeInRipple(e,t,n={}){let i=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),a=de(de({},h0),n.animation);n.centered&&(e=i.left+i.width/2,t=i.top+i.height/2);let s=n.radius||wee(e,t,i),o=e-i.left,l=t-i.top,c=a.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=`${o-s}px`,u.style.top=`${l-s}px`,u.style.height=`${s*2}px`,u.style.width=`${s*2}px`,n.color!=null&&(u.style.backgroundColor=n.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u);let d=window.getComputedStyle(u),f=d.transitionProperty,p=d.transitionDuration,g=f==="none"||p==="0s"||p==="0s, 0s"||i.width===0&&i.height===0,y=new XM(this,u,n,g);u.style.transform="scale3d(1, 1, 1)",y.state=ks.FADING_IN,n.persistent||(this._mostRecentTransientRipple=y);let v=null;return!g&&(c||a.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let T=()=>{v&&(v.fallbackTimer=null),clearTimeout(x),this._finishRippleTransition(y)},C=()=>this._destroyRipple(y),x=setTimeout(C,c+100);u.addEventListener("transitionend",T),u.addEventListener("transitioncancel",C),v={onTransitionEnd:T,onTransitionCancel:C,fallbackTimer:x}}),this._activeRipples.set(y,v),(g||!c)&&this._finishRippleTransition(y),y}fadeOutRipple(e){if(e.state===ks.FADING_OUT||e.state===ks.HIDDEN)return;let t=e.element,n=de(de({},h0),e.config.animation);t.style.transitionDuration=`${n.exitDuration}
45ms`,t.style.opacity="0",e.state=ks.FADING_OUT,(e._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(e)}fadeOutAll(){this._getActiveRipples().forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){let t=_a(e);!this._platform.isBrowser||!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,eU.forEach(n=>{r._eventManager.addHandler(this._ngZone,n,t,this)}))}handleEvent(e){e.type==="mousedown"?this._onMousedown(e):e.type==="touchstart"?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{tU.forEach(t=>{this._triggerElement.addEventListener(t,this,Z3)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(e){e.state===ks.FADING_IN?this._startFadeOutTransition(e):e.state===ks.FADING_OUT&&this._destroyRipple(e)}_startFadeOutTransition(e){let t=e===this._mostRecentTransientRipple,{persistent:n}=e.config;e.state=ks.VISIBLE,!n&&(!t||!this._isPointerDown)&&e.fadeOut()}_destroyRipple(e){let t=this._activeRipples.get(e)??null;this._activeRipples.delete(e),this._activeRipples.size||(this._containerRect=null),e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),e.state=ks.HIDDEN,t!==null&&(e.element.removeEventListener("transitionend",t.onTransitionEnd),e.element.removeEventListener("transitioncancel",t.onTransitionCancel),t.fallbackTimer!==null&&clearTimeout(t.fallbackTimer)),e.element.remove()}_onMousedown(e){let t=o0(e),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+_ee;!this._target.rippleDisabled&&!t&&!n&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!l0(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;let t=e.changedTouches;if(t)for(let n=0;n<t.length;n++)this.fadeInRipple(t[n].clientX,t[n].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._getActiveRipples().forEach(e=>{let t=e.state===ks.VISIBLE||e.config.terminateOnPointerUp&&e.state===ks.FADING_IN;!e.config.persistent&&t&&e.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let e=this._triggerElement;e&&(eU.forEach(t=>r._eventManager.removeHandler(t,e,this)),this._pointerUpEventsRegistered&&(tU.forEach(t=>e.removeEventListener(t,this,Z3)),this._pointerUpEventsRegistered=!1))}};function wee(r,e,t){let n=Math.max(Math.abs(r-t.left),Math.abs(r-t.right)),i=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(n*n+i*i)}var JM=new me("mat-ripple-global-options"),JDe=(()=>{class r{_elementRef=A(mt);_animationsDisabled=$n();color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let t=A(Qe),n=A(tr),i=A(JM,{optional:!0}),a=A(X);this._globalOptions=i||{},this._rippleRenderer=new f0(this,t,this._elementRef,n,a)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:de(de(de({},this._globalOptions.animation),this._animationsDisabled?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,n=0,i){return typeof t=="number"?this._rippleRenderer.fadeInRipple(t,n,de(de({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,de(de({},this.rippleConfig),t))}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,i){n&2&&Zt("mat-ripple-unbounded",i.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return r})();var Iee={capture:!0},xee=["focus","mousedown","mouseenter","touchstart"],ZM="mat-ripple-loader-uninitialized",ek="mat-ripple-loader-class-name",rU="mat-ripple-loader-centered",bw="mat-ripple-loader-disabled",nU=(()=>{class r{_document=A(Je);_animationsDisabled=$n();_globalRippleOptions=A(JM,{optional:!0});_platform=A(tr);_ngZone=A(Qe);_injector=A(X);_eventCleanups;_hosts=new Map;constructor(){let t=A(ca).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>xee.map(n=>t.listen(this._document,n,this._onInteraction,Iee)))}ngOnDestroy(){let t=this._hosts.keys();for(let n of t)this.destroyRipple(n);this._eventCleanups.forEach(n=>n())}configureRipple(t,n){t.setAttribute(ZM,this._globalRippleOptions?.namespace??""),(n.className||!t.hasAttribute(ek))&&t.setAttribute(ek,n.className||""),n.centered&&t.setAttribute(rU,""),n.disabled&&t.setAttribute(bw,"")}setDisabled(t,n){let i=this._hosts.get(t);i?(i.target.rippleDisabled=n,!n&&!i.hasSetUpEvents&&(i.hasSetUpEvents=!0,i.renderer.setupTriggerEvents(t))):n?t.setAttribute(bw,""):t.removeAttribute(bw)}_onInteraction=t=>{let n=va(t);if(n instanceof HTMLElement){let i=n.closest(`[${ZM}="${this._globalRippleOptions?.namespace??""}"]`);i&&this._createRipple(i)}};_createRipple(t){if(!this._document||this._hosts.has(t))return;t.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",t.getAttribute(ek)),t.append(n);let i=this._globalRippleOptions,a=this._animationsDisabled?0:i?.animation?.enterDuration??h0.enterDuration,s=this._animationsDisabled?0:i?.animation?.exitDuration??h0.exitDuration,o={rippleDisabled:this._animationsDisabled||i?.disabled||t.hasAttribute(bw),rippleConfig:{centered:t.hasAttribute(rU),terminateOnPointerUp:i?.terminateOnPointerUp,animation:{enterDuration:a,exitDuration:s}}},l=new f0(o,this._ngZone,n,this._platform,this._injector),c=!o.rippleDisabled;c&&l.setupTriggerEvents(t),this._hosts.set(t,{target:o,renderer:l,hasSetUpEvents:c}),t.removeAttribute(ZM)}destroyRipple(t){let n=this._hosts.get(t);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(t))}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var iU=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275cmp=dt({type:r,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,i){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}} 46`],encapsulation:2,changeDetection:0})}return r})();var Eee=["mat-icon-button",""],Tee=["*"],Cee=new me("MAT_BUTTON_CONFIG");function aU(r){return r==null?void 0:PC(r)}var m0=(()=>{class r{_elementRef=A(mt);_ngZone=A(Qe);_animationsDisabled=$n();_config=A(Cee,{optional:!0});_focusMonitor=A(Zc);_cleanupClick;_renderer=A(Rr);_rippleLoader=A(nU);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(t){this.tabIndex=t}constructor(){A(ba).load(iU);let t=this._elementRef.nativeElement;this._isAnchor=t.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(t,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(t="program",n){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,n):this._elementRef.nativeElement.focus(n)}
46_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}))}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(n,i){n&2&&(Or("disabled",i._getDisabledAttribute())("aria-disabled",i._getAriaDisabled())("tabindex",i._getTabIndex()),zi(i.color?"mat-"+i.color:""),Zt("mat-mdc-button-disabled",i.disabled)("mat-mdc-button-disabled-interactive",i.disabledInteractive)("mat-unthemed",!i.color)("_mat-animation-noopable",i._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",cr],disabled:[2,"disabled","disabled",cr],ariaDisabled:[2,"aria-disabled","ariaDisabled",cr],disabledInteractive:[2,"disabledInteractive","disabledInteractive",cr],tabIndex:[2,"tabIndex","tabIndex",aU],_tabindex:[2,"tabindex","_tabindex",aU]}})}return r})(),See=(()=>{class r extends m0{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(n){return new(n||r)};static \u0275cmp=dt({type:r,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[Lt],attrs:Eee,ngContentSelectors:Tee,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,i){n&1&&(Ra(),Ma(0,"span",0),_r(1),Ma(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));flex-shrink:0;text-align:center;width:var(--mat-icon-button-state-layer-size, 40px);height:var(--mat-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);font-size:var(--mat-icon-button-icon-size, 24px);color:var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-icon-button-touch-target-size, 48px);display:var(--mat-icon-button-touch-target-display, block);left:50%;width:var(--mat-icon-button-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mat-icon-button-icon-size, 24px);height:var(--mat-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%))}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1} 47`,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} 48`],encapsulation:2,changeDetection:0})}return r})();
48var Dee=new me("cdk-dir-doc",{providedIn:"root",factory:Aee});function Aee(){return A(Je)}var Mee=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function tk(r){let e=r?.toLowerCase()||"";return e==="auto"&&typeof navigator<"u"&&navigator?.language?Mee.test(navigator.language)?"rtl":"ltr":e==="rtl"?"rtl":"ltr"}var $a=(()=>{class r{get value(){return this.valueSignal()}valueSignal=Vr("ltr");change=new Rt;constructor(){let t=A(Dee,{optional:!0});if(t){let n=t.body?t.body.dir:null,i=t.documentElement?t.documentElement.dir:null;this.valueSignal.set(tk(n||i||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var AAe=(()=>{class r{_isInitialized=!1;_rawDir;change=new Rt;get dir(){return this.valueSignal()}set dir(t){let n=this.valueSignal();this.valueSignal.set(tk(t)),this._rawDir=t,n!==this.valueSignal()&&this._isInitialized&&this.change.emit(this.valueSignal())}get value(){return this.dir}valueSignal=Vr("ltr");ngAfterContentInit(){this._isInitialized=!0}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["","dir",""]],hostVars:1,hostBindings:function(n,i){n&2&&Or("dir",i._rawDir)},inputs:{dir:"dir"},outputs:{change:"dirChange"},exportAs:["dir"],features:[Ar([{provide:$a,useExisting:r}])]})}return r})(),tu=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({})}return r})();var Nr=(()=>{class r{constructor(){A(pw)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({imports:[tu,tu]})}return r})();var sU=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({imports:[Nr,Nr]})}return r})();var kee=["matButton",""],rk=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],nk=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"],Pee=["mat-fab",""],Ree=["mat-mini-fab",""],Oee=`.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus>.mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mat-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mat-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mat-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mat-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-touch-target-size, 48px);display:var(--mat-fab-touch-target-display, block);left:50%;width:var(--mat-fab-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mat-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mat-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mat-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mat-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-small-touch-target-size, 48px);display:var(--mat-fab-small-touch-target-display);left:50%;width:var(--mat-fab-small-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mat-fab-extended-container-elevation-shadow, var(--mat-sys-level3));height:var(--mat-fab-extended-container-height, 56px);border-radius:var(--mat-fab-extended-container-shape, var(--mat-sys-corner-large));font-family:var(--mat-fab-extended-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-fab-extended-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-fab-extended-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-fab-extended-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-extended-fab:hover{box-shadow:var(--mat-fab-extended-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mat-fab-extended-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mat-fab-extended-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%} 49`,oU=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),lU=(()=>{class r extends m0{get appearance(){return this._appearance}set appearance(t){this.setAppearance(t||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let t=Fee(this._elementRef.nativeElement);t&&this.setAppearance(t)}setAppearance(t){if(t===this._appearance)return;let n=this._elementRef.nativeElement.classList,i=this._appearance?oU.get(this._appearance):null,a=oU.get(t);i&&n.remove(...i),n.add(...a),this._appearance=t}static \u0275fac=function(n){return new(n||r)};static \u0275cmp=dt({type:r,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[Lt],attrs:kee,ngContentSelectors:nk,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,i){n&1&&(Ra(rk),Ma(0,"span",0),_r(1),id(2,"span",1),_r(3,1),ad(),_r(4,2),Ma(5,"span",2)(6,"span",3)),n&2&&Zt("mdc-button__ripple",!i._isFab)("mdc-fab__ripple",i._isFab)},styles:[`.mat-mdc-button-base{text-decoration:none}.mat-mdc-button-base .mat-icon{min-height:fit-content;flex-shrink:0}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat
49-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-text-touch-target-size, 48px);display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-filled-touch-target-size, 48px);display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}
49.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-protected-touch-target-size, 48px);display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-outlined-touch-target-size, 48px);display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}
49.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-tonal-touch-target-size, 48px);display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}
49.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)} 50`,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} 51`],encapsulation:2,changeDetection:0})}return r})();function Fee(r){return r.hasAttribute("mat-raised-button")?"elevated":r.hasAttribute("mat-stroked-button")?"outlined":r.hasAttribute("mat-flat-button")?"filled":r.hasAttribute("mat-button")?"text":null}var cU=new me("mat-mdc-fab-default-options",{providedIn:"root",factory:uU});function uU(){return{color:"accent"}}var ww=uU(),qAe=(()=>{class r extends m0{_options=A(cU,{optional:!0});_isFab=!0;extended;constructor(){super(),this._options=this._options||ww,this.color=this._options.color||ww.color}static \u0275fac=function(n){return new(n||r)};static \u0275cmp=dt({type:r,selectors:[["button","mat-fab",""],["a","mat-fab",""],["button","matFab",""],["a","matFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mat-mdc-fab"],hostVars:4,hostBindings:function(n,i){n&2&&Zt("mdc-fab--extended",i.extended)("mat-mdc-extended-fab",i.extended)},inputs:{extended:[2,"extended","extended",cr]},exportAs:["matButton","matAnchor"],features:[Lt],attrs:Pee,ngContentSelectors:nk,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,i){n&1&&(Ra(rk),Ma(0,"span",0),_r(1),id(2,"span",1),_r(3,1),ad(),_r(4,2),Ma(5,"span",2)(6,"span",3)),n&2&&Zt("mdc-button__ripple",!i._isFab)("mdc-fab__ripple",i._isFab)},styles:[`.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;
51transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus>.mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mat-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mat-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mat-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mat-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-touch-target-size, 48px);display:var(--mat-fab-touch-target-display, block);left:50%;width:var(--mat-fab-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mat-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mat-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mat-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mat-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-small-touch-target-size, 48px);display:var(--mat-fab-small-touch-target-display);left:50%;width:var(--mat-fab-small-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mat-fab-extended-container-elevation-shadow, var(--mat-sys-level3));height:var(--mat-fab-extended-container-height, 56px);border-radius:var(--mat-fab-extended-container-shape, var(--mat-sys-corner-large));font-family:var(--mat-fab-extended-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-fab-extended-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-fab-extended-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-fab-extended-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-extended-fab:hover{box-shadow:var(--mat-fab-extended-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mat-fab-extended-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mat-fab-extended-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%} 52`],encapsulation:2,changeDetection:0})}return r})(),dU=(()=>{class r extends m0{_options=A(cU,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||ww,this.color=this._options.color||ww.color}static \u0275fac=function(n){return new(n||r)};static \u0275cmp=dt({type:r,selectors:[["button","mat-mini-fab",""],["a","mat-mini-fab",""],["button","matMiniFab",""],["a","matMiniFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"],exportAs:["matButton","matAnchor"],features:[Lt],attrs:Ree,ngContentSelectors:nk,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,i){n&1&&(Ra(rk),Ma(0,"span",0),_r(1),id(2,"span",1),_r(3,1),ad(),_r(4,2),Ma(5,"span",2)(6,"span",3)),n&2&&Zt("mdc-button__ripple",!i._isFab)("mdc-fab__ripple",i._isFab)},styles:[Oee],encapsulation:2,changeDetection:0})}return r})();var hU=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({imports:[Nr,sU,Nr]})}return r})();var p0=class{_attachedHost;attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;e!=null&&(this._attachedHost=null,e.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(e){this._attachedHost=e}},yo=class extends p0{component;viewContainerRef;injector;projectableNodes;constructor(e,t,n,i){super(),this.component=e,this.viewContainerRef
vendor: 48,482 bytes, lines 52-53
52=t,this.injector=n,this.projectableNodes=i}},Wo=class extends p0{templateRef;viewContainerRef;context;injector;constructor(e,t,n,i){super(),this.templateRef=e,this.viewContainerRef=t,this.context=n,this.injector=i}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}},ik=class extends p0{element;constructor(e){super(),this.element=e instanceof mt?e.nativeElement:e}},ru=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(e){if(e instanceof yo)return this._attachedPortal=e,this.attachComponentPortal(e);if(e instanceof Wo)return this._attachedPortal=e,this.attachTemplatePortal(e);if(this.attachDomPortal&&e instanceof ik)return this._attachedPortal=e,this.attachDomPortal(e)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},Iw=class extends ru{outletElement;_appRef;_defaultInjector;constructor(e,t,n){super(),this.outletElement=e,this._appRef=t,this._defaultInjector=n}attachComponentPortal(e){let t;if(e.viewContainerRef){let n=e.injector||e.viewContainerRef.injector,i=n.get($v,null,{optional:!0})||void 0;t=e.viewContainerRef.createComponent(e.component,{index:e.viewContainerRef.length,injector:n,ngModuleRef:i,projectableNodes:e.projectableNodes||void 0}),this.setDisposeFn(()=>t.destroy())}else{let n=this._appRef,i=e.injector||this._defaultInjector||X.NULL,a=i.get(Ei,n.injector);t=Jv(e.component,{elementInjector:i,environmentInjector:a,projectableNodes:e.projectableNodes||void 0}),n.attachView(t.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(t.hostView),t.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=e,t}attachTemplatePortal(e){let t=e.viewContainerRef,n=t.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return n.rootNodes.forEach(i=>this.outletElement.appendChild(i)),n.detectChanges(),this.setDisposeFn(()=>{let i=t.indexOf(n);i!==-1&&t.remove(i)}),this._attachedPortal=e,n}attachDomPortal=e=>{let t=e.element;t.parentNode;let n=this.outletElement.ownerDocument.createComment("dom-portal");t.parentNode.insertBefore(n,t),this.outletElement.appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(t,n)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}},ZAe=(()=>{class r extends Wo{constructor(){let t=A(Aa),n=A(Rn);super(t,n)}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Lt]})}return r})();var qo=(()=>{class r extends ru{_moduleRef=A($v,{optional:!0});_document=A(Je);_viewContainerRef=A(Rn);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}attached=new Rt;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);let n=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,i=n.createComponent(t.component,{index:n.length,injector:t.injector||n.injector,projectableNodes:t.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(i.hostView.rootNodes[0]),super.setDisposeFn(()=>i.destroy()),this._attachedPortal=t,this._attachedRef=i,this.attached.emit(i),i}attachTemplatePortal(t){t.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=t=>{let n=t.element;n.parentNode;let i=this._document.createComment("dom-portal");t.setAttachedHost(this),n.parentNode.insertBefore(i,n),this._getRootNode().appendChild(n),this._attachedPortal=t,super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(n,i)})};_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Lt]})}return r})();var vo=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({})}return r})();var fU=class{};function rMe(r){return r&&typeof r.connect=="function"&&!(r instanceof Yp)}var Nee=(function(r){return r[r.REPLACED=0]="REPLACED",r[r.INSERTED=1]="INSERTED",r[r.MOVED=2]="MOVED",r[r.REMOVED=3]="REMOVED",r})(Nee||{}),aMe=new me("_ViewRepeater");var Lee=20,jd=(()=>{class r{_ngZone=A(Qe);_platform=A(tr);_renderer=A(ca).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new Ye;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let n=this.scrollContainers.get(t);n&&(n.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=Lee){return this._platform.isBrowser?new Ot(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let i=t>0?this._scrolled.pipe(Xp(t)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Xe()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(t,n){let i=this.getAncestorScrollContainers(t);return this.scrolled(n).pipe(Yt(a=>!a||i.indexOf(a)>-1))}getAncestorScrollContainers(t){let n=[];return this.scrollContainers.forEach((i,a)=>{this._scrollableContainsElement(a,t)&&n.push(a)}),n}_scrollableContainsElement(t,n){let i=_a(n),a=t.getElementRef().nativeElement;do if(i==a)return!0;while(i=i.parentElement);return!1}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),ak=(()=>{class r{elementRef=A(mt);scrollDispatcher=A(jd);ngZone=A(Qe);dir=A($a,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new Ye;_renderer=A(Rr);_cleanupScroll;_elementScrolled=new Ye;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",t=>this._elementScrolled.next(t))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let n=this.elementRef.nativeElement,i=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=i?t.end:t.start),t.right==null&&(t.right=i?t.start:t.end),t.bottom!=null&&(t.top=n.scrollHeight-n.clientHeight-t.bottom),i&&jf()!=go.NORMAL?(t.left!=null&&(t.right=n.scrollWidth-n.clientWidth-t.left),jf()==go.INVERTED?t.left=t.right:jf()==go.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=n.scrollWidth-n.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let n=this.elementRef.nativeElement;_w()?n.scrollTo(t):(t.top!=null&&(n.scrollTop=t.top),t.left!=null&&(n.scrollLeft=t.left))}measureScrollOffset(t){let n="left",i="right",a=this.elementRef.nativeElement;if(t=="top")return a.scrollTop;if(t=="bottom")return a.scrollHeight-a.clientHeight-a.scrollTop;let s=this.dir&&this.dir.value=="rtl";return t=="start"?t=s?i:n:t=="end"&&(t=s?n:i),s&&jf()==go.INVERTED?t==n?a.scrollWidth-a.clientWidth-a.scrollLeft:a.scrollLeft:s&&jf()==go.NEGATED?t==n?a.scrollLeft+a.scrollWidth-a.clientWidth:-a.scrollLeft:t==n?a.scrollLeft:a.scrollWidth-a.clientWidth-a.scrollLeft}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return r})(),Vee=20,$f=(()=>{class r{_platform=A(tr);_listeners;_viewportSize;_change=new Ye;_document=A(Je);constructor(){let t=A(Qe),n=A(ca).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){let i=a=>this._change.next(a);this._listeners=[n.listen("window","resize",i),n.listen("window","orientationchange",i)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(t=>t()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:n,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+n,height:i,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,n=this._getWindow(),i=t.documentElement,a=i.getBoundingClientRect(),s=-a.top||t.body.scrollTop||n.scrollY||i.scrollTop||0,o=-a.left||t.body.scrollLeft||n.scrollX||i.scrollLeft||0;return{top:s,left:o}}change(t=Vee){return t>0?this._change.pipe(Xp(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var g0=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({})}return r})(),sk=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({imports:[tu,g0,tu,g0]})}return r})();var mU=_w();function nu(r){return new xw(r.get($f),r.get(Je))}var xw=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(e,t){this._viewportRuler=e,this._document=t}attach(){}enable(){if(this._canBeEnabled()){let e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=Sn(-this._previousScrollPosition.left),e.style.top=Sn(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let e=this._document.documentElement,t=this._document.body,n=e.style,i=t.style,a=n.scrollBehavior||"",s=i.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),mU&&(n.scrollBehavior=i.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),mU&&(n.scrollBehavior=a,i.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let t=this._document.documentElement,n=this._viewportRuler.getViewportSize();return t.scrollHeight>n.height||t.scrollWidth>n.width}};function wU(r,e){return new Ew(r.get(jd),r.get(Qe),r.get($f),e)}var Ew=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(e,t,n,i){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=n,this._config=i}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(this._scrollSubscription)return;let e=this._scrollDispatcher.scrolled(0).pipe(Yt(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{let t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var $d=class{enable(){}disable(){}attach(){}};function ok(r,e){return e.some(t=>{let n=r.bottom<t.top,i=r.top>t.bottom,a=r.right<t.left,s=r.left>t.right;return n||i||a||s})}function pU(r,e){return e.some(t=>{let n=r.top<t.top,i=r.bottom>t.bottom,a=r.left<t.left,s=r.right>t.right;return n||i||a||s})}function Wd(r,e){return new Tw(r.get(jd),r.get($f),r.get(Qe),e)}var Tw=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(e,t,n,i){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=n,this._config=i}attach(e){this._overlayRef,this._overlayRef=e}enable(){if(!this._scrollSubscription){let e=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(e).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:i}=this._viewportRuler.getViewportSize();ok(t,[{width:n,height:i,bottom:i,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},IU=(()=>{class r{_injector=A(X);constructor(){}noop=()=>new $d;close=t=>wU(this._injector,t);block=()=>nu(this._injector);reposition=t=>Wd(this._injector,t);static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Xl=class{positionStrategy;scrollStrategy=new $d;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(e){if(e){let t=Object.keys(e);for(let n of t)e[n]!==void 0&&(this[n]=e[n])}}};var Cw=class{connectionPair;scrollableViewProperties;constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}};var xU=(()=>{class r{_attachedOverlays=[];_document=A(Je);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){let n=this._attachedOverlays.indexOf(t);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),EU=(()=>{class r extends xU{_ngZone=A(Qe);_renderer=A(ca).createRenderer(null,null);_cleanupKeydown;add(t){super.add(t),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=t=>{let n=this._attachedOverlays;for(let i=n.length-1;i>-1;i--)if(n[i]._keydownEvents.observers.length>0){this._ngZone.run(()=>n[i]._keydownEvents.next(t));break}};static \u0275fac=(()=>{let t;return function(i){return(t||(t=Pn(r)))(i||r)}})();static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),TU=(()=>{class r extends xU{_platform=A(tr);_ngZone=A(Qe);_renderer=A(ca).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(t){if(super.add(t),!this._isAttached){let n=this._document.body,i={capture:!0},a=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[a.listen(n,"pointerdown",this._pointerDownListener,i),a.listen(n,"click",this._clickListener,i),a.listen(n,"auxclick",this._clickListener,i),a.listen(n,"contextmenu",this._clickListener,i)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(t=>t()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=t=>{this._pointerDownEventTarget=va(t)};_clickListener=t=>{let n=va(t),i=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let a=this._attachedOverlays.slice();for(let s=a.length-1;s>-1;s--){let o=a[s];if(o._outsidePointerEvents.observers.length<1||!o.hasAttached())continue;if(gU(o.overlayElement,n)||gU(o.overlayElement,i))break;let l=o._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>l.next(t)):l.next(t)}};static \u0275fac=(()=>{let t;return function(i){return(t||(t=Pn(r)))(i||r)}})();static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function gU(r,e){let t=typeof ShadowRoot<"u"&&ShadowRoot,n=e;for(;n;){if(n===r)return!0;n=t&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var CU=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275cmp=dt({type:r,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,i){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll} 53`],encapsulation:2,changeDetection:0})}return r})(),Aw=(()=>{class r{_platform=A(tr);_containerElement;_document=A(Je);_styleLoader=A(ba);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||KM()){let i=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let a=0;a<i.length;a++)i[a].remove()}let n=this._document.createElement("div");n.classList.add(t),KM()?n.setAttribute("platform","test"):this._platform.isBrowser||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}_loadStyles(){this._styleLoader.load(CU)}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),lk=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(e,t,n,i){this._renderer=t,this._ngZone=n,this.element=e.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=t.listen(this.element,"click",i)}detach(){this._ngZone.runOutsideAngular(()=>{let e=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),e.style.pointerEvents="none",e.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},Gf=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new Ye;_attachments=new Ye;_detachments=new Ye;_positionStrategy;_scrollStrategy;_locationChanges=ai.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new Ye;_outsidePointerEvents=new Ye;_afterNextRenderRef;constructor(e,t,n,i,a,s,o,l,c,u=!1,d,f){this._portalOutlet=e,this._host=t,this._pane=n,this._config=i,this._ngZone=a,this._keyboardDispatcher=s,this._document=o,this._location=l,this._outsideClickDispatcher=c,this._animationsDisabled=u,this._injector=d,this._renderer=f,i.scrollStrategy&&(this._scrollStrategy=i.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=i.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let t=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Yn(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof t?.onDestroy=="function"&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let e=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){let e=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,e&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=de(de({},this._config),e),this._updateElementSize()}setDirection(e){this._config=rr(de({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){let e=this._config.direction;return e?typeof e=="string"?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let e=this._pane.style;e.width=Sn(this._config.width),e.height=Sn(this._config.height),e.minWidth=Sn(this._config.minWidth),e.minHeight=Sn(this._config.minHeight),e.maxWidth=Sn(this._config.maxWidth),e.maxHeight=Sn(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){let e="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new lk(this._document,this._renderer,this._ngZone,t=>{this._backdropClick.next(t)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(e))}):this._backdropRef.element.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(e,t,n){let i=Vf(t||[]).filter(a=>!!a);i.length&&(n?e.classList.add(...i):e.classList.remove(...i))}_detachContentWhenEmpty(){let e=!1;try{this._detachContentAfterRenderRef=Yn(()=>{e=!0,this._detachContent()},{injector:this._injector})}catch(t){if(e)throw t;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let e=this._scrollStrategy;e?.disable(),e?.detach?.()}},yU="cdk-overlay-connected-position-bounding-box",zee=/([A-Za-z%]+)$/;function y0(r,e){return new Sw(e,r.get($f),r.get(Je),r.get(tr),r.get(Aw))}var Sw=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new Ye;_resizeSubscription=ai.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(e,t,n,i,a){this._viewportRuler=t,this._document=n,this._platform=i,this._overlayContainer=a,this.setOrigin(e)}attach(e){this._overlayRef&&this._overlayRef,this._validatePositions(),e.hostElement.classList.add(yU),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._originRect,t=this._overlayRect,n=this._viewportRect,i=this._containerRect,a=[],s;for(let o of this._preferredPositions){let l=this._getOriginPoint(e,i,o),c=this._getOverlayPoint(l,t,o),u=this._getOverlayFit(c,t,n,o);if(u.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(o,l);return}if(this._canFitWithFlexibleDimensions(u,c,n)){a.push({position:o,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,o)});continue}(!s||s.overlayFit.visibleArea<u.visibleArea)&&(s={overlayFit:u,overlayPoint:c,originPoint:l,position:o,overlayRect:t})}if(a.length){let o=null,l=-1;for(let c of a){let u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,o=c)}this._isPushed=!1,this._applyPosition(o.position,o.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Hd(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(yU),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,e.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,n){let i;if(n.originX=="center")i=e.left+e.width/2;else{let s=this._isRtl()?e.right:e.left,o=this._isRtl()?e.left:e.right;i=n.originX=="start"?s:o}t.left<0&&(i-=t.left);let a;return n.originY=="center"?a=e.top+e.height/2:a=n.originY=="top"?e.top:e.bottom,t.top<0&&(a-=t.top),{x:i,y:a}}_getOverlayPoint(e,t,n){let i;n.overlayX=="center"?i=-t.width/2:n.overlayX==="start"?i=this._isRtl()?-t.width:0:i=this._isRtl()?0:-t.width;let a;return n.overlayY=="center"?a=-t.height/2:a=n.overlayY=="top"?0:-t.height,{x:e.x+i,y:e.y+a}}_getOverlayFit(e,t,n,i){let a=_U(t),{x:s,y:o}=e,l=this._getOffset(i,"x"),c=this._getOffset(i,"y");l&&(s+=l),c&&(o+=c);let u=0-s,d=s+a.width-n.width,f=0-o,p=o+a.height-n.height,g=this._subtractOverflows(a.width,u,d),y=this._subtractOverflows(a.height,f,p),v=g*y;return{visibleArea:v,isCompletelyWithinViewport:a.width*a.height===v,fitsInViewportVertically:y===a.height,fitsInViewportHorizontally:g==a.width}}_canFitWithFlexibleDimensions(e,t,n){if(this._hasFlexibleDimensions){let i=n.bottom-t.y,a=n.right-t.x,s=vU(this._overlayRef.getConfig().minHeight),o=vU(this._overlayRef.getConfig().minWidth),l=e.fitsInViewportVertically||s!=null&&s<=i,c=e.fitsInViewportHorizontally||o!=null&&o<=a;return l&&c}return!1}_pushOverlayOnScreen(e,t,n){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};let i=_U(t),a=this._viewportRect,s=Math.max(e.x+i.width-a.width,0),o=Math.max(e.y+i.height-a.height,0),l=Math.max(a.top-n.top-e.y,0),c=Math.max(a.left-n.left-e.x,0),u=0,d=0;return i.width<=a.width?u=c||-s:u=e.x<this._viewportMargin?a.left-n.left-e.x:0,i.height<=a.height?d=l||-o:d=e.y<this._viewportMargin?a.top-n.top-e.y:0,this._previousPushAmount={x:u,y:d},{x:e.x+u,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._positionChanges.observers.length){let n=this._getScrollVisibility();if(e!==this._lastPosition||!this._lastScrollVisibility||!jee(this._lastScrollVisibility,n)){let i=new Cw(e,n);this._positionChanges.next(i)}this._lastScrollVisibility=n}this._lastPosition=e,this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;let t=this._boundingBox.querySelectorAll(this._transformOriginSelector),n,i=e.overlayY;e.overlayX==="center"?n="center":this._isRtl()?n=e.overlayX==="start"?"right":"left":n=e.overlayX==="start"?"left":"right";for(let a=0;a<t.length;a++)t[a].style.transformOrigin=`${n} ${i}`}_calculateBoundingBoxRect(e,t){let n=this._viewportRect,i=this._isRtl(),a,s,o;if(t.overlayY==="top")s=e.y,a=n.height-s+this._viewportMargin;else if(t.overlayY==="bottom")o=n.height-e.y+this._viewportMargin*2,a=n.height-o+this._viewportMargin;else{let p=Math.min(n.bottom-e.y+n.top,e.y),g=this._lastBoundingBoxSize.height;a=p*2,s=e.y-p,a>g&&!this._isInitialRender&&!this._growAfterOpen&&(s=e.y-g/2)}let l=t.overlayX==="start"&&!i||t.overlayX==="end"&&i,c=t.overlayX==="end"&&!i||t.overlayX==="start"&&i,u,d,f;if(c)f=n.width-e.x+this._viewportMargin*2,u=e.x-this._viewportMargin;else if(l)d=e.x,u=n.right-e.x;else{let p=Math.min(n.right-e.x+n.left,e.x),g=this._lastBoundingBoxSize.width;u=p*2,d=e.x-p,u>g&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-g/2)}return{top:s,left:d,bottom:o,right:f,width:u,height:a}}_setBoundingBoxStyles(e,t){let n=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{let a=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;i.height=Sn(n.height),i.top=Sn(n.top),i.bottom=Sn(n.bottom),i.width=Sn(n.width),i.left=Sn(n.left),i.right=Sn(n.right),t.overlayX==="center"?i.alignItems="center":i.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?i.justifyContent="center":i.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",a&&(i.maxHeight=Sn(a)),s&&(i.maxWidth=Sn(s))}this._lastBoundingBoxSize=n,Hd(this._boundingBox.style,i)}_resetBoundingBoxStyles(){Hd(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Hd(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){let n={},i=this._hasExactPosition(),a=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(i){let u=this._viewportRuler.getViewportScrollPosition();Hd(n,this._getExactOverlayY(t,e,u)),Hd(n,this._getExactOverlayX(t,e,u))}else n.position="static";let o="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(o+=`translateX(${l}px) `),c&&(o+=`translateY(${c}px)`),n.transform=o.trim(),s.maxHeight&&(i?n.maxHeight=Sn(s.maxHeight):a&&(n.maxHeight="")),s.maxWidth&&(i?n.maxWidth=Sn(s.maxWidth):a&&(n.maxWidth="")),Hd(this._pane.style,n)}_getExactOverlayY(e,t,n){let i={top:"",bottom:""},a=this._getOverlayPoint(t,this._overlayRect,e);if(this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,n)),e.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;i.bottom=`${s-(a.y+this._overlayRect.height)}px`}else i.top=Sn(a.y);return i}_getExactOverlayX(e,t,n){let i={left:"",right:""},a=this._getOverlayPoint(t,this._overlayRect,e);this._isPushed&&(a=this._pushOverlayOnScreen(a,this._overlayRect,n));let s;if(this._isRtl()?s=e.overlayX==="end"?"left":"right":s=e.overlayX==="end"?"right":"left",s==="right"){let o=this._document.documentElement.clientWidth;i.right=`${o-(a.x+this._overlayRect.width)}px`}else i.left=Sn(a.x);return i}_getScrollVisibility(){let e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),n=this._scrollables.map(i=>i.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:pU(e,n),isOriginOutsideView:ok(e,n),isOverlayClipped:pU(t,n),isOverlayOutsideView:ok(t,n)}}_subtractOverflows(e,...t){return t.reduce((n,i)=>n-Math.max(i,0),e)}_getNarrowedViewportRect(){let e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+e-this._viewportMargin,bottom:n.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return t==="x"?e.offsetX==null?this._offsetX:e.offsetX:e.offsetY==null?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&Vf(e).forEach(t=>{t!==""&&this._appliedPanelClasses.indexOf(t)===-1&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){let e=this._origin;if(e instanceof mt)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();let t=e.width||0,n=e.height||0;return{top:e.y,bottom:e.y+n,left:e.x,right:e.x+t,height:n,width:t}}};function Hd(r,e){for(let t in e)e.hasOwnProperty(t)&&(r[t]=e[t]);return r}function vU(r){if(typeof r!="number"&&r!=null){let[e,t]=r.split(zee);return!t||t==="px"?parseFloat(e):null}return r||null}function _U(r){return{top:Math.floor(r.top),right:Math.floor(r.right),bottom:Math.floor(r.bottom),left:Math.floor(r.left),width:Math.floor(r.width),height:Math.floor(r.height)}}function jee(r,e){return r===e?!0:r.isOriginClipped===e.isOriginClipped&&r.isOriginOutsideView===e.isOriginOutsideView&&r.isOverlayClipped===e.isOverlayClipped&&r.isOverlayOutsideView===e.isOverlayOutsideView}var bU="cdk-global-overlay-wrapper";function Ko(r){return new Dw}var Dw=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(e){let t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(bU),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._xOffset=e,this._xPosition="left",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._xOffset=e,this._xPosition="right",this}start(e=""){return this._xOffset=e,this._xPosition="start",this}end(e=""){return this._xOffset=e,this._xPosition="end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._xPosition="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:i,height:a,maxWidth:s,maxHeight:o}=n,l=(i==="100%"||i==="100vw")&&(!s||s==="100%"||s==="100vw"),c=(a==="100%"||a==="100vh")&&(!o||o==="100%"||o==="100vh"),u=this._xPosition,d=this._xOffset,f=this._overlayRef.getConfig().direction==="rtl",p="",g="",y="";l?y="flex-start":u==="center"?(y="center",f?g=d:p=d):f?u==="left"||u==="end"?(y="flex-end",p=d):(u==="right"||u==="start")&&(y="flex-start",g=d):u==="left"||u==="start"?(y="flex-start",p=d):(u==="right"||u==="end")&&(y="flex-end",g=d),e.position=this._cssPosition,e.marginLeft=l?"0":p,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=l?"0":g,t.justifyContent=y,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,n=t.style;t.classList.remove(bU),n.justifyContent=n.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}},SU=(()=>{class r{_injector=A(X);constructor(){}global(){return Ko()}flexibleConnectedTo(t){return y0(this._injector,t)}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function Ql(r,e){r.get(ba).load(CU);let t=r.get(Aw),n=r.get(Je),i=r.get(qi),a=r.get(Ml),s=r.get($a),o=n.createElement("div"),l=n.createElement("div");l.id=i.getId("cdk-overlay-"),l.classList.add("cdk-overlay-pane"),o.appendChild(l),t.getContainerElement().appendChild(o);let c=new Iw(l,a,r),u=new Xl(e),d=r.get(Rr,null,{optional:!0})||r.get(ca).createRenderer(null,null);return u.direction=u.direction||s.value,new Gf(c,o,l,u,r.get(Qe),r.get(EU),n,r.get(Bo),r.get(TU),e?.disableAnimations??r.get(Hv,null,{optional:!0})==="NoopAnimations",r.get(Ei),d)}var DU=(()=>{class r{scrollStrategies=A(IU);_positionBuilder=A(SU);_injector=A(X);constructor(){}create(t){return Ql(this._injector,t)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Hee=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],AU=new me("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let r=A(X);return()=>Wd(r)}}),ck=(()=>{class r{elementRef=A(mt);constructor(){}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return r})(),$ee=(()=>{class r{_dir=A($a,{optional:!0});_injector=A(X);_overlayRef;_templatePortal;_backdropSubscription=ai.EMPTY;_attachSubscription=ai.EMPTY;_detachSubscription=ai.EMPTY;_positionSubscription=ai.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=A(AU);_disposeOnNavigation=!1;_ngZone=A(Qe);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(t){this._disposeOnNavigation=t}backdropClick=new Rt;positionChange=new Rt;attach=new Rt;detach=new Rt;overlayKeydown=new Rt;overlayOutsideClick=new Rt;constructor(){let t=A(Aa),n=A(Rn);this._templatePortal=new Wo(t,n),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Hee);let t=this._overlayRef=Ql(this._injector,this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!Ms(n)&&(n.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let i=this._getOriginElement(),a=va(n);(!i||i!==a&&!i.contains(a))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let t=this._position=this.positionStrategy||this._createPositionStrategy(),n=new Xl({direction:this._dir||"ltr",positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(n.width=this.width),(this.height||this.height===0)&&(n.height=this.height),(this.minWidth||this.minWidth===0)&&(n.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(t){let n=this.positions.map(i=>({originX:i.originX,originY:i.originY,overlayX:i.overlayX,overlayY:i.overlayY,offsetX:i.offsetX||this.offsetX,offsetY:i.offsetY||this.offsetY,panelClass:i.panelClass||void 0}));return t.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let t=y0(this._injector,this._getOrigin());return this._updatePositionStrategy(t),t}_getOrigin(){return this.origin instanceof ck?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof ck?this.origin.elementRef.nativeElement:this.origin
53instanceof mt?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(fF(()=>this.positionChange.observers.length>0)).subscribe(t=>{this._ngZone.run(()=>this.positionChange.emit(t)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",cr],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",cr],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",cr],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",cr],push:[2,"cdkConnectedOverlayPush","push",cr],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",cr]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[En]})}return r})();function Gee(r){let e=A(X);return()=>Wd(e)}var Wee={provide:AU,useFactory:Gee},Jl=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({providers:[DU,Wee],imports:[tu,vo,sk,sk]})}return r})();function qee(r,e){if(r&1){let t=da();Se(0,"div",1)(1,"button",2),Gt("click",function(){Vi(t);let i=ge();return Ui(i.action())}),gr(2),Ae()()}if(r&2){let t=ge();te(2),rs(" ",t.data.action," ")}}var Kee=["label"];function Yee(r,e){}var Xee=Math.pow(2,31)-1,v0=class{_overlayRef;instance;containerInstance;_afterDismissed=new Ye;_afterOpened=new Ye;_onAction=new Ye;_durationTimeoutId;_dismissedByAction=!1;constructor(e,t){this._overlayRef=t,this.containerInstance=e,e._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(e){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(e,Xee))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},MU=new me("MatSnackBarData"),Wf=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},Qee=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return r})(),Jee=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return r})(),Zee=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return r})(),kU=(()=>{class r{snackBarRef=A(v0);data=A(MU);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(n){return new(n||r)};static \u0275cmp=dt({type:r,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(n,i){n&1&&(Se(0,"div",0),gr(1),Ae(),at(2,qee,3,1,"div",1)),n&2&&(te(),rs(" ",i.data.message,` 54`),te(),st(i.hasAction?2:-1))},dependencies:[lU,Qee,Jee,Zee],styles:[`.mat-mdc-simple-snack-bar{display:flex}.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label{max-height:50vh;overflow:auto} 55`],encapsulation:2,changeDetection:0})}return r})(),uk="_mat-snack-bar-enter",dk="_mat-snack-bar-exit",ete=(()=>{class r extends ru{_ngZone=A(Qe);_elementRef=A(mt);_changeDetectorRef=A(Ci);_platform=A(tr);_animationsDisabled=$n();snackBarConfig=A(Wf);_document=A(Je);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=A(X);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;
55_onAnnounce=new Ye;_onExit=new Ye;_onEnter=new Ye;_animationState="void";_live;_label;_role;_liveElementId=A(qi).getId("mat-snack-bar-container-live-");constructor(){super();let t=this.snackBarConfig;t.politeness==="assertive"&&!t.announcementMessage?this._live="assertive":t.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(t){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(t);return this._afterPortalAttached(),n}attachTemplatePortal(t){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(t);return this._afterPortalAttached(),n}attachDomPortal=t=>{this._assertNotAttached();let n=this._portalOutlet.attachDomPortal(t);return this._afterPortalAttached(),n};onAnimationEnd(t){t===dk?this._completeExit():t===uk&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?Yn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(uk)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(uk)},200)))}exit(){return this._destroyed?Xe(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?Yn(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(dk)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(dk),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let t=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;
55n&&(Array.isArray(n)?n.forEach(s=>t.classList.add(s)):t.classList.add(n)),this._exposeToModals();let i=this._label.nativeElement,a="mdc-snackbar__label";i.classList.toggle(a,!i.querySelector(`.${a}`))}_exposeToModals(){let t=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let i=0;i<n.length;i++){let a=n[i],s=a.getAttribute("aria-owns");this._trackedModals.add(a),s?s.indexOf(t)===-1&&a.setAttribute("aria-owns",s+" "+t):a.setAttribute("aria-owns",t)}}_clearFromModals(){this._trackedModals.forEach(t=>{let n=t.getAttribute("aria-owns");if(n){let i=n.replace(this._liveElementId,"").trim();i.length>0?t.setAttribute("aria-owns",i):t.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let t=this._elementRef.nativeElement,n=t.querySelector("[aria-hidden]"),i=t.querySelector("[aria-live]");if(n&&i){let a=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(a=document.activeElement),n.removeAttribute("aria-hidden"),i.appendChild(n),a?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(n){return new(n||r)};static \u0275cmp=dt({type:r,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,i){if(n&1&&(Fr(qo,7),Fr(Kee,7)),n&2){let a;Mt(a=kt())&&(i._portalOutlet=a.first),Mt(a=kt())&&(i._label=a.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(n,i){n&1&&Gt("animationend",function(s){return i.onAnimationEnd(s.animationName)})("animationcancel",function(s){return i.onAnimationEnd(s.animationName)}),n&2&&Zt("mat-snack-bar-container-enter",i._animationState==="visible")("mat-snack-bar-container-exit",i._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!i._animationsDisabled)},features:[Lt],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(n,i){n&1&&(Se(0,"div",1)(1,"div",2,0)(3,"div",3),St(4,Yee,0,0,"ng-template",4),Ae(),ot(5,"div"),Ae()()),n&2&&(te(5),Or("aria-live",i._live)("role",i._role)("id",i._liveElementId))},dependencies:[qo],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1} 56`],encapsulation:2})}return r})();function tte(){return new Wf}var rte=new me("mat-snack-bar-default-options",{providedIn:"root",factory:tte}),qd=(()=>{class r{_live=A(UM);_injector=A(X);_breakpointObserver=A(wa);_parentSnackBar=A(r,{optional:!0,skipSelf:!0});_defaultConfig=A(rte);_animationsDisabled=$n();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=kU;snackBarContainerComponent=ete;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}constructor(){}openFromComponent(t,n){return this._attach(t,n)}openFromTemplate(t,n){return this._attach(t,n)}open(t,n="",i){let a=de(de({},this._defaultConfig),i);return a.data={message:t,action:n}
56,a.announcementMessage===t&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(t,n){let i=n&&n.viewContainerRef&&n.viewContainerRef.injector,a=X.create({parent:i||this._injector,providers:[{provide:Wf,useValue:n}]}),s=new yo(this.snackBarContainerComponent,n.viewContainerRef,a),o=t.attach(s);return o.instance.snackBarConfig=n,o.instance}_attach(t,n){let i=de(de(de({},new Wf),this._defaultConfig),n),a=this._createOverlay(i),s=this._attachSnackBarContainer(a,i),o=new v0(s,a);if(t instanceof Aa){let l=new Wo(t,null,{$implicit:i.data,snackBarRef:o});o.instance=s.attachTemplatePortal(l)}else{let l=this._createInjector(i,o),c=new yo(t,void 0,l),u=s.attachComponentPortal(c);o.instance=u.instance}return this._breakpointObserver.observe(Kl.HandsetPortrait).pipe(dn(a.detachments())).subscribe(l=>{a.overlayElement.classList.toggle(this.handsetCssClass,l.matches)}),i.announcementMessage&&s._onAnnounce.subscribe(()=>{this._live.announce(i.announcementMessage,i.politeness)}),this._animateSnackBar(o,i),this._openedSnackBarRef=o,this._openedSnackBarRef}_animateSnackBar(t,n){t.afterDismissed().subscribe(()=>{this._openedSnackBarRef==t&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),n.duration&&n.duration>0&&t.afterOpened().subscribe(()=>t._dismissAfter(n.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter()}_createOverlay(t){let n=new Xl;n.direction=t.direction;let i=Ko(this._injector),a=t.direction==="rtl",s=t.horizontalPosition==="left"||t.horizontalPosition==="start"&&!a||t.horizontalPosition==="end"&&a,o=!s&&t.horizontalPosition!=="center";return s?i.left("0"):o?i.right("0"):i.centerHorizontally(),t.verticalPosition==="top"?i.top("0"):i.bottom("0"),n.positionStrategy=i,n.disableAnimations=this._animationsDisabled,Ql(this._injector,n)}_createInjector(t,n){let i=t&&t.viewContainerRef&&t.viewContainerRef.injector;return X.create({parent:i||this._injector,providers:[{provide:v0,useValue:n},{provide:MU,useValue:t.data}]})}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Rke=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({providers:[qd],imports:[Jl,vo,hU,Nr,kU,Nr]})}return r})();var _0=class{_doc;constructor(e){this._doc=e}manager},Mw=(()=>{class r extends _0{constructor(t){super(t)}supports(t){return!0}addEventListener(t,n,i,a){return t.addEventListener(n,i,a),()=>this.removeEventListener(t,n,i,a)}removeEventListener(t,n,i,a){return t.removeEventListener(n,i,a)}static \u0275fac=function(n){return new(n||r)(ee(Je))};static \u0275prov=G({token:r,factory:r.\u0275fac})}return r})(),Pw=new me(""),gk=(()=>{class r{_zone;_plugins;_eventNameToPlugin=new Map;constructor(t,n){this._zone=n,t.forEach(s=>{s.manager=this});let i=t.filter(s=>!(s instanceof Mw));this._plugins=i.slice().reverse();let a=t.find(s=>s instanceof Mw);a&&this._plugins.push(a)}addEventListener(t,n,i,a){return this._findPluginFor(n).addEventListener(t,n,i,a)}getZone(){return this._zone}_findPluginFor(t){let n=this._eventNameToPlugin.get(t);if(n)return n;if(n=this._plugins.find(a=>a.supports(t)),!n)throw new bt(5101,!1);return this._eventNameToPlugin.set(t,n),n}static \u0275fac=function(n){return new(n||r)(ee(Pw),ee(Qe))};static \u0275prov=G({token:r,factory:r.\u0275fac})}return r})(),hk="ng-app-id";function PU(r){for(let e of r)e.remove()}function RU(r,e){let t=e.createElement("style");return t.textContent=r,t}function ite(r,e,t,n){let i=r.head?.querySelectorAll(`style[${hk}="${e}"],link[${hk}="${e}"]`);if(i)for(let a of i)a.removeAttribute(hk),a instanceof HTMLLinkElement?n.set(a.href.slice(a.href.lastIndexOf("/")+1),{usage:0,elements:[a]}):a.textContent&&t.set(a.textContent,{usage:0,elements:[a]})}function mk(r,e){let t=e.createElement("link");return t.setAttribute("rel","stylesheet"),t.setAttribute("href",r),t}var yk=(()=>{class r{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(t,n,i,a={}){this.doc=t,this.appId=n,this.nonce=i,ite(t,n,this.inline,this.external),this.hosts.add(t.head)}addStyles(t,n){for(let i of t)this.addUsage(i,this.inline,RU);n?.forEach(i=>
vendor: 17,401 bytes, lines 56-57
56this.addUsage(i,this.external,mk))}removeStyles(t,n){for(let i of t)this.removeUsage(i,this.inline);n?.forEach(i=>this.removeUsage(i,this.external))}addUsage(t,n,i){let a=n.get(t);a?a.usage++:n.set(t,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,i(t,this.doc)))})}removeUsage(t,n){let i=n.get(t);i&&(i.usage--,i.usage<=0&&(PU(i.elements),n.delete(t)))}ngOnDestroy(){for(let[,{elements:t}]of[...this.inline,...this.external])PU(t);this.hosts.clear()}addHost(t){this.hosts.add(t);for(let[n,{elements:i}]of this.inline)i.push(this.addElement(t,RU(n,this.doc)));for(let[n,{elements:i}]of this.external)i.push(this.addElement(t,mk(n,this.doc)))}removeHost(t){this.hosts.delete(t)}addElement(t,n){return this.nonce&&n.setAttribute("nonce",this.nonce),t.appendChild(n)}static \u0275fac=function(n){return new(n||r)(ee(Je),ee(Zu),ee(eg,8),ee(hn))};static \u0275prov=G({token:r,factory:r.\u0275fac})}return r})(),fk={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/Math/MathML"},vk=/%COMP%/g;var FU="%COMP%",ate=`_nghost-${FU}`,ste=`_ngcontent-${FU}`,ote=!0,lte=new me("",{providedIn:"root",factory:()=>ote});function cte(r){return ste.replace(vk,r)}function ute(r){return ate.replace(vk,r)}function BU(r,e){return e.map(t=>t.replace(vk,r))}var _k=(()=>{class r{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(t,n,i,a,s,o,l,c=null,u=null){this.eventManager=t,this.sharedStylesHost=n,this.appId=i,this.removeStylesOnCompDestroy=a,this.doc=s,this.platformId=o,this.ngZone=l,this.nonce=c,this.tracingService=u,this.platformIsServer=!1,this.defaultRenderer=new b0(t,s,l,this.platformIsServer,this.tracingService)}createRenderer(t,n){if(!t||!n)return this.defaultRenderer;let i=this.getOrCreateRenderer(t,n);return i instanceof kw?i.applyToHost(t):i instanceof w0&&i.applyStyles(),i}getOrCreateRenderer(t,n){let i=this.rendererByCompId,a=i.get(n.id);if(!a){let s=this.doc,o=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer,f=this.tracingService;switch(n.encapsulation){case wC.Emulated:a=new kw(l,c,n,this.appId,u,s,o,d,f);break;case wC.ShadowDom:return new pk(l,c,t,n,s,o,this.nonce,d,f);default:a=new w0(l,c,n,u,s,o,d,f);break}i.set(n.id,a)}return a}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(t){this.rendererByCompId.delete(t)}static \u0275fac=function(n){return new(n||r)(ee(gk),ee(yk),ee(Zu),ee(lte),ee(Je),ee(hn),ee(Qe),ee(eg),ee(kF,8))};static \u0275prov=G({token:r,factory:r.\u0275fac})}return r})(),b0=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(e,t,n,i,a){this.eventManager=e,this.doc=t,this.ngZone=n,this.platformIsServer=i,this.tracingService=a}destroy(){}destroyNode=null;createElement(e,t){return t?this.doc.createElementNS(fk[t]||t,e):this.doc.createElement(e)}createComment(e){return this.doc.createComment(e)}createText(e){return this.doc.createTextNode(e)}appendChild(e,t){(OU(e)?e.content:e).appendChild(t)}insertBefore(e,t,n){e&&(OU(e)?e.content:e).insertBefore(t,n)}removeChild(e,t){t.remove()}selectRootElement(e,t){let n=typeof e=="string"?this.doc.querySelector(e):e;if(!n)throw new bt(-5104,!1);return t||(n.textContent=""),n}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,n,i){if(i){t=i+":"+t;let a=fk[i];a?e.setAttributeNS(a,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}removeAttribute(e,t,n){if(n){let i=fk[n];i?e.removeAttributeNS(i,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,i){i&(rd.DashCase|rd.Important)?e.style.setProperty(t,n,i&rd.Important?"important":""):e.style[t]=n}removeStyle(e,t,n){n&rd.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,n){e!=null&&(e[t]=n)}setValue(e,t){e.nodeValue=t}listen(e,t,n,i){if(typeof e=="string"&&(e=La().getGlobalEventTarget(this.doc,e),!e))throw new bt(5102,!1);let a=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(a=this.tracingService.wrapEventListener(e,t,a)),this.eventManager.addEventListener(e,t,a,i)}decoratePreventDefault(e){return t=>{if(t==="__ngUnwrap__")return e;e(t)===!1&&t.preventDefault()}}};function OU(r){return r.tagName==="TEMPLATE"&&r.content!==void 0}var pk=class extends b0{sharedStylesHost;hostEl;shadowRoot;constructor(e,t,n,i,a,s,o,l,c){super(e,a,s,l,c),this.sharedStylesHost=t,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let u=i.styles;u=BU(i.id,u);for(let f of u){let p=document.createElement("style");o&&p.setAttribute("nonce",o),p.textContent=f,this.shadowRoot.appendChild(p)}let d=i.getExternalStyles?.();if(d)for(let f of d){let p=mk(f,a);o&&p.setAttribute("nonce",o),this.shadowRoot.appendChild(p)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}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(null,t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},w0=class extends b0{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(e,t,n,i,a,s,o,l,c){super(e,a,s,o,l),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=i;let u=n.styles;this.styles=c?BU(c,u):u,this.styleUrls=n.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&MF.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},kw=class extends w0{contentAttr;hostAttr;constructor(e,t,n,i,a,s,o,l,c){let u=i+"-"+n.id;super(e,t,n,a,s,o,l,c,u),this.contentAttr=cte(u),this.hostAttr=ute(u)}applyToHost(e){this.applyStyles(),this.setAttribute(e,this.hostAttr,"")}createElement(e,t){let n=super.createElement(e,t);return super.setAttribute(n,this.contentAttr,""),n}};var Rw=class r extends cg{supportsDOMEvents=!0;static makeCurrent(){t1(new r)}onAndCancel(e,t,n,i){return e.addEventListener(t,n,i),()=>{e.removeEventListener(t,n,i)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.remove()}createElement(e,t){return t=t||this.getDefaultDocument(),t.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 t==="window"?window:t==="document"?e:t==="body"?e.body:null}getBaseHref(e){let t=dte();return t==null?null:hte(t)}resetBaseElement(){I0=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return pg(document.cookie,e)}},I0=null;function dte(){return I0=I0||document.head.querySelector("base"),I0?I0.getAttribute("href"):null}function hte(r){return new URL(r,document.baseURI).pathname}var Ow=class{addToWindow(e){Al.getAngularTestability=(n,i=!0)=>{let a=e.findTestabilityInTree(n,i);if(a==null)throw new bt(5103,!1);return a},Al.getAllAngularTestabilities=()=>e.getAllTestabilities(),Al.getAllAngularRootElements=()=>e.getAllRootElements();let t=n=>{let i=Al.getAllAngularTestabilities(),a=i.length,s=function(){a--,a==0&&n()};i.forEach(o=>{o.whenStable(s)})};Al.frameworkStabilizers||(Al.frameworkStabilizers=[]),Al.frameworkStabilizers.push(t)}findTestabilityInTree(e,t,n){if(t==null)return null;let i=e.getTestability(t);return i??(n?La().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null)}},fte=(()=>{class r{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac})}return r})(),NU=["alt","control","meta","shift"],mte={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},pte={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey},LU=(()=>{class r extends _0{constructor(t){super(t)}supports(t){return r.parseEventName(t)!=null}addEventListener(t,n,i,a){let s=r.parseEventName(n),o=r.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>La().onAndCancel(t,s.domEventName,o,a))}static parseEventName(t){let n=t.toLowerCase().split("."),i=n.shift();if(n.length===0||!(i==="keydown"||i==="keyup"))return null;let a=r._normalizeKey(n.pop()),s="",o=n.indexOf("code");if(o>-1&&(n.splice(o,1),s="code."),NU.forEach(c=>{let u=n.indexOf(c);u>-1&&(n.splice(u,1),s+=c+".")}),s+=a,n.length!=0||a.length===0)return null;let l={};return l.domEventName=i,l.fullKey=s,l}static matchEventFullKeyCode(t,n){let i=mte[t.key]||t.key,a="";return n.indexOf("code.")>-1&&(i=t.code,a="code."),i==null||!i?!1:(i=i.toLowerCase(),i===" "?i="space":i==="."&&(i="dot"),NU.forEach(s=>{if(s!==i){let o=pte[s];o(t)&&(a+=s+".")}}),a+=i,a===n)}static eventCallback(t,n,i){return a=>{r.matchEventFullKeyCode(a,t)&&i.runGuarded(()=>n(a))}}static _normalizeKey(t){return t==="esc"?"escape":t}static \u0275fac=function(n){return new(n||r)(ee(Je))};static \u0275prov=G({token:r,factory:r.\u0275fac})}return r})();function gte(){Rw.makeCurrent()}function yte(){return new Sc}function vte(){return _F(document),document}var _te=[{provide:hn,useValue:g1},{provide:bF,useValue:gte,multi:!0},{provide:Je,useFactory:vte}],bte=tB(rB,"browser",_te);var wte=[{provide:Wv,useClass:Ow},{provide:FF,useClass:qv,deps:[Qe,TC,Wv]},{provide:qv,useClass:qv,deps:[Qe,TC,Wv]}],Ite=[{provide:gF,useValue:"root"},{provide:Sc,useFactory:yte},{provide:Pw,useClass:Mw,multi:!0,deps:[Je]},{provide:Pw,useClass:LU,multi:!0,deps:[Je]},_k,yk,gk,{provide:ca,useExisting:_k},{provide:hd,useClass:fte},[]],xte=(()=>{class r{constructor(){}static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({providers:[...Ite,...wte],imports:[m1,nB]})}return r})();var Kf=class{},Yf=class{},Xo=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(e){e?typeof e=="string"?this.lazyInit=()=>{this.headers=new Map,e.split(` 57`).forEach(t=>{let n=t.indexOf(":");if(n>0){let i=t.slice(0,n),a=t.slice(n+1).trim();this.addHeaderEntry(i,a)}})}:typeof Headers<"u"&&e instanceof Headers?(this.headers=new Map,e.forEach((t,n)=>{this.addHeaderEntry(n,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(e).forEach(([t,n])=>{this.setHeaderEntries(t,n)})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();let t=this.headers.get(e.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,t){return this.clone({name:e,value:t,op:"a"})}set(e,t){return this.clone({name:e,value:t,op:"s"})}delete(e,t){return this.clone({name:e,value:t,op:"d"})}maybeSetNormalizedName(e,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,e)}init(){this.lazyInit&&(this.lazyInit instanceof r?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(t=>{this.headers.set(t,e.headers.get(t)),this.normalizedNames.set(t,e.normalizedNames.get(t))})}clone(e){let t=new r;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof r?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([e]),t}applyUpdate(e){let t=e.name.toLowerCase();switch(e.op){case"a":case"s":let n=e.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(e.name,t);let i=(e.op==="a"?this.headers.get(t):void 0)||[];i.push(...n),this.headers.set(t,i);break;case"d":let a=e.value;if(!a)this.headers.delete(t),this.normalizedNames.delete(t);else{let s=this.headers.get(t);if(!s)return;s=s.filter(o=>a.indexOf(o)===-1),s.length===0?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}break}}addHeaderEntry(e,t){let n=e.toLowerCase();this.maybeSetNormalizedName(e,n),this.headers.has(n)?this.headers.get(n).push(t):this.headers.set(n,[t])}setHeaderEntries(e,t){let n=(Array.isArray(t)?t:[t]).map(a=>a.toString()),i=e.toLowerCase();this.headers.set(i,n),this.maybeSetNormalizedName(e,i)}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>e(this.normalizedNames.get(t),this.headers.get(t)))}};var Nw=class{encodeKey(e){return VU(e)}encodeValue(e){return VU(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}};function Ete(r,e){let t=new Map;return r.length>0&&r.replace(/^\?/,"").split("&").forEach(i=>{let a=i.indexOf("="),[s,o]=a==-1?[e.decodeKey(i),""]:[e.decodeKey(i.slice(0,a)),e.decodeValue(i.slice(a+1))],l=t.get(s)||[];l.push(o),t.set(s,l)}),t}var Tte=/%(\d[a-f0-9])/gi,Cte={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function VU(r){return encodeURIComponent(r).replace(Tte,(e,t)=>Cte[t]??e)}function Fw(r){return`${r}`}var Zl=class r{map;encoder;updates=null;cloneFrom=null;constructor(e={}){if(this.encoder=e.encoder||new Nw,e.fromString){if(e.fromObject)throw new bt(2805,!1);this.map=Ete(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(t=>{let n=e.fromObject[t],i=Array.isArray(n)?n.map(Fw):[Fw(n)];this.map.set(t,i)})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();let t=this.map.get(e);return t?t[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,t){return this.clone({param:e,value:t,op:"a"})}appendAll(e){let t=[];return Object.keys(e).forEach(n=>{let i=e[n];Array.isArray(i)?i.forEach(a=>{t.push({param:n,value:a,op:"a"})}):t.push({param:n,value:i,op:"a"})}),this.clone(t)}set(e,t){return this.clone({param:e,value:t,op:"s"})}delete(e,t){return this.clone({param:e,value:t,op:"d"})}toString(){return this.init(),this.keys().map(e=>{let t=this.encoder.encodeKey(e);return this.map.get(e).map(n=>t+"="+this.encoder.encodeValue(n)).join("&")}).filter(e=>e!=="").join("&")}clone(e){let t=new r({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(e),t}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":let t=(e.op==="a"?this.map.get(e.param):void 0)||[];t.push(Fw(e.value)),this.map.set(e.param,t);break;case"d":if(e.value!==void 0){let n=this.map.get(e.param)||[],i=n.indexOf(Fw(e.value));i!==-1&&n.splice(i,1),n.length>0?this.map.set(e.param,n):this.map.delete(e.param)}else{this.map.delete(e.param);break}}}),this.cloneFrom=this.updates=null)}};var Lw=class{map=new Map;set(e,t){return this.map.set(e,t),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}};function Ste(r){switch(r){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function UU(r){return typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer}function zU(r){return typeof Blob<"u"&&r instanceof Blob}function jU(r){return typeof FormData<"u"&&r instanceof FormData}function Dte(r){return typeof URLSearchParams<"u"&&r instanceof URLSearchParams}var x0="Content-Type",Vw="Accept",Ek="X-Request-URL",$U="text/plain",GU="application/json",WU=`${GU}, ${$U}, */*`,qf=class r{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(e,t,n,i){this.url=t,this.method=e.toUpperCase();let a;if(Ste(this.method)||i?(this.body=n!==void 0?n:null,a=i):a=n,a){if(this.reportProgress=!!a.reportProgress,this.withCredentials=!!a.withCredentials,this.keepalive=!!a.keepalive,a.responseType&&(this.responseType=a.responseType),a.headers&&(this.headers=a.headers),a.context&&(this.context=a.context),a.params&&(this.params=a.params),a.priority&&(this.priority=a.priority),a.cache&&(this.cache=a.cache),a.credentials&&(this.credentials=a.credentials),typeof a.timeout=="number"){if(a.timeout<1||!Number.isInteger(a.timeout))throw new bt(2822,"");this.timeout=a.timeout}a.mode&&(this.mode=a.mode),a.redirect&&(this.redirect=a.redirect),a.integrity&&(this.integrity=a.integrity),a.referrer&&(this.referrer=a.referrer),this.transferCache=a.transferCache}if(this.headers??=new Xo,this.context??=new Lw,!this.params)this.params=new Zl,this.urlWithParams=t;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=t;else{let o=t.indexOf("?"),l=o===-1?"?":o<t.length-1?"&":"";this.urlWithParams=t+l+s}}}serializeBody(){return this.body===null?null:typeof this.body=="str
57ing"||UU(this.body)||zU(this.body)||jU(this.body)||Dte(this.body)?this.body:this.body instanceof Zl?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||jU(this.body)?null:zU(this.body)?this.body.type||null:UU(this.body)?null:typeof this.body=="string"?$U:this.body instanceof Zl?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?GU:null}clone(e={}){let t=e.method||this.method,n=e.url||this.url,i=e.responseType||this.responseType,a=e.keepalive??this.keepalive,s=e.priority||this.priority,o=e.cache||this.cache,l=e.mode||this.mode,c=e.redirect||this.redirect,u=e.credentials||this.credentials,d=e.referrer||this.referrer,f=e.integrity||this.integrity,p=e.transferCache??this.transferCache,g=e.timeout??this.timeout,y=e.body!==void 0?e.body:this.body,v=e.withCredentials??this.withCredentials,T=e.reportProgress??this.reportProgress,C=e.headers||this.headers,x=e.params||this.params,B=e.context??this.context;return e.setHeaders!==void 0&&(C=Object.keys(e.setHeaders).reduce((q,V)=>q.set(V,e.setHeaders[V]),C)),e.setParams&&(x=Object.keys(e.setParams).reduce((q,V)=>q.set(V,e.setParams[V]),x)),new r(t,n,y,{params:x,headers:C,context:B,reportProgress:T,responseType:i,withCredentials:v,transferCache:p,keepalive:a,cache:o,priority:s,timeout:g,mode:l,redirect:c,credentials:u,referrer:d,integrity:f})}},ec=(function(r){return r[r.Sent=0]="Sent",r[r.UploadProgress=1]="UploadProgress",r[r.ResponseHeader=2]="ResponseHeader",r[r.DownloadProgress=3]="DownloadProgress",r[r.Response=4]="Response",r[r.User=5]="User",r})(ec||{}),Xf=class{headers;status;statusText;url;ok;type;redirected;constructor(e,t=200,n="OK"){this.headers=e.headers||new Xo,this.status=e.status!==void 0?e.status:t,this.statusText=e.statusText||n,this.url=e.url||null,this.redirected=e.redirected,this.ok=this.status>=200&&this.status<300}},E0=class r extends Xf{constructor(e={}){super(e)}type=ec.ResponseHeader;clone(e={}){return new r({headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}},Qf=class r extends Xf{body;constructor(e={}){super(e),this.body=e.body!==void 0?e.body:null}type=ec.Response;clone(e={}){return new r({body:e.body!==void 0?e.body:this.body,headers:e.headers||this.headers,status:e.status!==void 0?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0,redirected:e.redirected??this.redirected})}},Yo=class extends Xf{name="HttpErrorResponse";message;error;ok=!1;constructor(e){super(e,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${e.url||"(unknown url)"}`:this.message=`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}},qU=200,Ate=204;function bk(r,e){return{body:e,headers:r.headers,context:r.context,observe:r.observe,params:r.params,reportProgress:r.reportProgress,responseType:r.responseType,withCredentials:r.withCredentials,credentials:r.credentials,transferCache:r.transferCache,timeout:r.timeout,keepalive:r.keepalive,priority:r.priority,cache:r.cache,mode:r.mode,redirect:r.redirect,integrity:r.integrity,referrer:r.referrer}}var Ps=(()=>{class r{handler;constructor(t){this.handler=t}request(t,n,i={}){let a;if(t instanceof qf)a=t;else{let l;i.headers instanceof Xo?l=i.headers:l=new Xo(i.headers);let c;i.params&&(i.params instanceof Zl?c=i.params:c=new Zl({fromObject:i.params})),a=new qf(t,n,i.body!==void 0?i.body:null,{headers:l,context:i.context,params:c,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache,keepalive:i.keepalive,priority:i.priority,cache:i.cache,mode:i.mode,redirect:i.redirect,credentials:i.credentials,referrer:i.referrer,integrity:i.integrity,timeout:i.timeout})}let s=Xe(a).pipe(Dl(l=>this.handler.handle(l)));if(t instanceof qf||i.observe==="events")return s;let o=s.pipe(Yt(l=>l instanceof Qf));switch(i.observe||"body"){case"body":switch(a.responseType){case"arraybuffer":return o.pi
vendor: 1,602 bytes, line 57
57pe(ft(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new bt(2806,!1);return l.body}));case"blob":return o.pipe(ft(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new bt(2807,!1);return l.body}));case"text":return o.pipe(ft(l=>{if(l.body!==null&&typeof l.body!="string")throw new bt(2808,!1);return l.body}));case"json":default:return o.pipe(ft(l=>l.body))}case"response":return o;default:throw new bt(2809,!1)}}delete(t,n={}){return this.request("DELETE",t,n)}get(t,n={}){return this.request("GET",t,n)}head(t,n={}){return this.request("HEAD",t,n)}jsonp(t,n){return this.request("JSONP",t,{params:new Zl().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,n={}){return this.request("OPTIONS",t,n)}patch(t,n,i={}){return this.request("PATCH",t,bk(i,n))}post(t,n,i={}){return this.request("POST",t,bk(i,n))}put(t,n,i={}){return this.request("PUT",t,bk(i,n))}static \u0275fac=function(n){return new(n||r)(ee(Kf))};static \u0275prov=G({token:r,factory:r.\u0275fac})}return r})(),Mte=/^\)\]\}',?\n/;function HU(r){if(r.url)return r.url;let e=Ek.toLocaleLowerCase();return r.headers.get(e)}var KU=new me(""),Bw=(()=>{class r{fetchImpl=A(wk,{optional:!0})?.fetch??((...t)=>globalThis.fetch(...t));ngZone=A(Qe);destroyRef=A(Cc);handle(t){return new Ot(n=>{let i=new AbortController;this.doRequest(t,i.signal,n).then(Ik,s=>n.error(new Yo({error:s})));let a;return t.timeout&&(a=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{i.signal.aborted||i.abort(new DOMException("signal timed out","TimeoutError"))},t.timeout))),()=>{a!==void 0&&clearTimeout(a),i.abort()}})}
57doRequest(t,n,i){return m(this,null,function*(){let a=this.createRequestInit(t),s;try{let g=this.ngZone.runOutsideAngular(()=>this.fetchImpl(t.urlWithParams,de({signal:n},a)));kte(g),i.next({type:ec.Sent}),s=yield g}catch(g){i.error(new Yo({error:g,status:g.status??0,statusText:g.statusText,url:t.urlWithParams,headers:g.headers}));return}let o=new Xo(s.headers),l=s.statusText,c=HU(s)??t.urlWithParams,u=s.status,d=null;if(t.reportProgress&&i.next(new E0({headers:o,status:u,statusText:l,url:c})),s.body){let g=s.headers.get("content-length"),y=[],v=s.body.getReader(),T=0,C,x,B=typeof Zone<"u"&&Zone.current,q=!1;if(yield this.ngZone.runOutsideAngular(()=>m(this,null,function*(){for(;;){if(this.destroyRef.destroyed){yield v.cancel(),q=!0;break}let{done:b,value:E}=yield v.read();if(b)break;if(y.push(E),T+=E.length,t.reportProgress){x=t.responseType==="text"?(x??"")+(C??=new TextDecoder).decode(E,{stream:!0}):void 0;let I=()=>i.next({type:ec.DownloadProgress,total:g?+g:void 0,loaded:T,partialText:x});B?B.run(I):I()}}})),q){i.complete();return}let V=this.concatChunks(y,T);try{let b=s.headers.get(x0)??"";d=this.parseBody(t,V,b,u)}catch(b){i.error(new Yo({error:b,headers:new Xo(s.headers),status:s.status,statusText:s.statusText,url:HU(s)??t.urlWithParams}));return}}u===0&&(u=d?qU:0);let f=u>=200&&u<300,p=s.redirected;f?(i.next(new Qf({body:d,headers:o,status:u,statusText:l,url:c,redirected:p})),i.complete()):i.error(new Yo({error:d,headers:o,status:u,statusText:l,url:c,redirected:p}))})}parseBody(t,n,i,a){switch(t.responseType){case"json":let s=new TextDecoder().decode(n).replace(Mte,"");if(s==="")return null;try{return JSON.parse(s)}catch(o){if(a<200||a>=300)return s;throw o}case"text":return new TextDecoder().decode(n);case"blob":return new Blob([n],{type:i});case"arraybuffer":return n.buffer}}createRequestInit(t){let n={},i;if(i=t.credentials,t.withCredentials&&(i="include"),t.headers.forEach((a,s)=>n[a]=s.join(",")),t.headers.has(Vw)||(n[Vw]=WU),!t.headers.has(x0)){let a=t.detectContentTypeHeader();a!==null&&(n[x0]=a)}return{body:t.serializeBody(),method:t.method,headers:n,credentials:i,keepalive:t.keepalive,cache:t.cache,priority:t.priority,mode:t.mode,redirect:t.redirect,referrer:t.referrer,integrity:t.integrity}}concatChunks(t,n){let i=new Uint8Array(n),a=0;for(let s of t)i.set(s,a),a+=s.length;return i}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac})}return r})(),wk=class{};function Ik(){}function kte(r){r.then(Ik,Ik)}function Pte(r,e){return e(r)}function Rte(r,e,t){return(n,i)=>Le(t,()=>e(n,a=>r(a,i)))}var YU=new me(""),XU=new me(""),QU=new me("",{providedIn:"root",factory:()=>!0});var Uw=(()=>{class r extends Kf{backend;injector;chain=null;pendingTasks=A(af);contributeToStability=A(QU);constructor(t,n){super(),this.backend=t,this.injector=n}handle(t){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(YU),...this.injector.get(XU,[])]));this.chain=n.reduceRight((i,a)=>Rte(i,a,this.injector),Pte)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(t,i=>this.backend.handle(i)).pipe(Ec(n))}else return this.chain(t,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||r)(ee(Yf),ee(Ei))};static \u0275prov=G({token:r,factory:r.\u0275fac})}return r})();var Ote=/^\)\]\}',?\n/,Fte=RegExp(`^${Ek}:`,"m");function Bte(r){return"responseURL"in r&&r.responseURL?r.responseURL:Fte.test(r.getAllResponseHeaders())?r.getResponseHeader(Ek):null}var xk=(()=>{class r{xhrFactory;constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new bt(-2800,!1);let n=this.xhrFactory;return Xe(null).pipe(xi(()=>new Ot(a=>{let s=n.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((v,T)=>s.setRequestHeader(v,T.join(","))),t.headers.has(Vw)||s.setRequestHeader(Vw,WU),!t.headers.has(x0)){let v=t.detectContentTypeHeader();v!==null&&s.setRequestHeader(x0,v)}if(t.timeout&&(s.timeout=t.timeout),t.responseType){let v=t.responseType.toLowerCase();s.responseType=v!=="json"?v:"text"}let o=t.serializeBody(),l=null,c=()=>
vendor: 1,956 bytes, line 57
57{if(l!==null)return l;let v=s.statusText||"OK",T=new Xo(s.getAllResponseHeaders()),C=Bte(s)||t.url;return l=new E0({headers:T,status:s.status,statusText:v,url:C}),l},u=()=>{let{headers:v,status:T,statusText:C,url:x}=c(),B=null;T!==Ate&&(B=typeof s.response>"u"?s.responseText:s.response),T===0&&(T=B?qU:0);let q=T>=200&&T<300;if(t.responseType==="json"&&typeof B=="string"){let V=B;B=B.replace(Ote,"");try{B=B!==""?JSON.parse(B):null}catch(b){B=V,q&&(q=!1,B={error:b,text:B})}}q?(a.next(new Qf({body:B,headers:v,status:T,statusText:C,url:x||void 0})),a.complete()):a.error(new Yo({error:B,headers:v,status:T,statusText:C,url:x||void 0}))},d=v=>{let{url:T}=c(),C=new Yo({error:v,status:s.status||0,statusText:s.statusText||"Unknown Error",url:T||void 0});a.error(C)},f=d;t.timeout&&(f=v=>{let{url:T}=c(),C=new Yo({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:T||void 0});a.error(C)});let p=!1,g=v=>{p||(a.next(c()),p=!0);let T={type:ec.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(T.total=v.total),t.responseType==="text"&&s.responseText&&(T.partialText=s.responseText),a.next(T)},y=v=>{let T={type:ec.UploadProgress,loaded:v.loaded};v.lengthComputable&&(T.total=v.total),a.next(T)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",f),s.addEventListener("abort",d),t.reportProgress&&(s.addEventListener("progress",g),o!==null&&s.upload&&s.upload.addEventListener("progress",y)),s.send(o),a.next({type:ec.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",f),t.reportProgress&&(s.removeEventListener("progress",g),o!==null&&s.upload&&s.upload.removeEventListener("progress",y)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(n){return new(n||r)(ee(hd))};static \u0275prov=G({token:r,factory:r.\u0275fac})}return r}
57)(),JU=new me(""),Nte="XSRF-TOKEN",Lte=new me("",{providedIn:"root",factory:()=>Nte}),Vte="X-XSRF-TOKEN",Ute=new me("",{providedIn:"root",factory:()=>Vte}),T0=class{},zte=(()=>{class r{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(t,n){this.doc=t,this.cookieName=n}getToken(){let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=pg(t,this.cookieName),this.lastCookieString=t),this.lastToken}static \u0275fac=function(n){return new(n||r)(ee(Je),ee(Lte))};static \u0275prov=G({token:r,factory:r.\u0275fac})}return r})();function jte(r,e){let t=r.url.toLowerCase();if(!A(JU)||r.method==="GET"||r.method==="HEAD"||t.startsWith("http://")||t.startsWith("https://"))return e(r);let n=A(T0).getToken(),i=A(Ute);return n!=null&&!r.headers.has(i)&&(r=r.clone({headers:r.headers.set(i,n)})),e(r)}var Tk=(function(r){return r[r.Interceptors=0]="Interceptors",r[r.LegacyInterceptors=1]="LegacyInterceptors",r[r.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",r[r.NoXsrfProtection=3]="NoXsrfProtection",r[r.JsonpSupport=4]="JsonpSupport",r[r.RequestsMadeViaParent=5]="RequestsMadeViaParent",r[r.Fetch=6]="Fetch",r})(Tk||{});function Hte(r,e){return{\u0275kind:r,\u0275providers:e}}function $te(...r){let e=[Ps,xk,Uw,{provide:Kf,useExisting:Uw},{provide:Yf,useFactory:()=>A(KU,{optional:!0})??A(xk)},{provide:YU,useValue:jte,multi:!0},{provide:JU,useValue:!0},{provide:T0,useClass:zte}];for(let t of r)e.push(...t.\u0275providers);return Li(e)}function Gte(){return Hte(Tk.Fetch,[Bw,{provide:KU,useExisting:Bw},{provide:Yf,useExisting:Bw}])}var ZU=(()=>{class r{_doc;_dom;constructor(t){this._doc=t,this._dom=La()}addTag(t,n=!1){return t?this._getOrCreateElement(t,n):null}addTags(t,n=!1){return t?t.reduce((i,a)=>(a&&i.push(this._getOrCreateElement(a,n)),i),[]):[]}getTag(t){return t&&this._doc.querySelector(`meta[${t}]`)||null}getTags(t){if(!t)return[];let n=this._doc.querySelectorAll(`meta[${t}]`);return n?[].slice.call(n):[]}updateTag(t,n){if(!t)return null;n=n||this._parseSelector(t);let i=this.getTag(n);return i?this._setMetaElementAttributes(t,i):this._getOrCreateElement(t,!0)}removeTag(t){this.removeTagElement(this.getTag(t))}removeTagElement(t){t&&this._dom.remove(t)}_getOrCreateElement(t,n=!1){if(!n){let s=this._parseSelector(t),o=this.getTags(s).filter(l=>this._containsAttributes(t,l))[0];if(o!==void 0)return o}let i=this._dom.createElement("meta");return this._setMetaElementAttributes(t,i),this._doc.getElementsByTagName("head")[0].appendChild(i),i}_setMetaElementAttributes(t,n){return Object.keys(t).forEach(i=>n.setAttribute(this._getMetaKeyMap(i),t[i])),n}_parseSelector(t){let n=t.name?"name":"property";return`${n}="${t[n]}"`}_containsAttributes(t,n){return Object.keys(t).every(i=>n.getAttribute(this._getMetaKeyMap(i))===t[i])}_getMetaKeyMap(t){return Kte[t]||t}static \u0275fac=function(n){return new(n||r)(ee(Je))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Kte={httpEquiv:"http-equiv"},zw=(()=>{class r{_doc;constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static \u0275fac=function(n){return new(n||r)(ee(Je))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Ck=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:function(n){let i=null;return n?i=new(n||r):i=ee(Yte),i},providedIn:"root"})}return r})(),Yte=(()=>{class r extends Ck{_doc;constructor(t){super(),this._doc=t}sanitize(t,n){if(n==null)return null;switch(t){case es.NONE:return n;case es.HTML:return sf(n,"HTML")?ed(n):SF(this._doc,String(n)).toString();case es.STYLE:return sf(n,"Style")?ed(n):n;case es.SCRIPT:if(sf(n,"Script"))return ed(n);throw new bt(5200,!1);case es.URL:return sf(n,"URL")?ed(n):CF(String(n));case es.RESOURCE_URL:if(sf(n,"ResourceURL"))return ed(n);throw new bt(5201,!1);default:throw new bt(5202,!1)}}bypassSecurityTrustHtml(t){return wF(t)}bypassSecurityTrustStyle(t){return IF(t)}bypassSecurityTrustScript(t){return xF(t)}bypassSecurityTrustUrl(t){return EF(t)}bypassSecurityTrustResourceUrl(t){return TF(t)}static \u0275fac=function(n){return new(n||r)(ee(Je))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Pt="primary",L0=Symbol("RouteTitle"),kk=class{params;constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){let t=this.params[e];return Array.isArray(t)?t[0]:t}return null}getAll(e){if(this.has(e)){let t=this.params[e];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}};function Xd(r){return new kk(r)}function l6(r,e,t){let n=t.path.split("/");if(n.length>r.length||t.pathMatch==="full"&&(e.hasChildren()||n.length<r.length))return null;let i={};for(let a=0;a<n.length;a++){let s=n[a],o=r[a];if(s[0]===":")i[s.substring(1)]=o;else if(s!==o.path)return null}return{consumed:r.slice(0,n.length),posParams:i}}function Xte(r,e){if(r.length!==e.length)return!1;for(let t=0;t<r.length;++t)if(!Qo(r[t],e[t]))return!1;return!0}function Qo(r,e){let t=r?Pk(r):void 0,n=e?Pk(e):void 0;if(!t||!n||t.length!=n.length)return!1;let i;for(let a=0;a<t.length;a++)if(i=t[a],!c6(r[i],e[i]))return!1;return!0}function Pk(r){return[...Object.keys(r),...Object.getOwnPropertySymbols(r)]}function c6(r,e){if(Array.isArray(r)&&Array.isArray(e)){if(r.length!==e.length)return!1;let t=[...r].sort(),n=[...e].sort();return t.every((i,a)=>n[a]===i)}else return r===e}function u6(r){return r.length>0?r[r.length-1]:null}function tc(r){return Qu(r)?r:of(r)?Bi(Promise.resolve(r)):Xe(r)}var Qte={exact:h6,subset:f6},d6={exact:Jte,subset:Zte,ignored:()=>!0};function t6(r,e,t){return Qte[t.paths](r.root,e.root,t.matrixParams)&&d6[t.queryParams](r.queryParams,e.queryParams)&&!(t.fragment==="exact"&&r.fragment!==e.fragment)}function Jte(r,e){return Qo(r,e)}function h6(r,e,t){if(!Kd(r.segments,e.segments)||!$w(r.segments,e.segments,t)||r.numberOfChildren!==e.numberOfChildren)return!1;
vendor: 35,013 bytes, line 57
57for(let n in e.children)if(!r.children[n]||!h6(r.children[n],e.children[n],t))return!1;return!0}function Zte(r,e){return Object.keys(e).length<=Object.keys(r).length&&Object.keys(e).every(t=>c6(r[t],e[t]))}function f6(r,e,t){return m6(r,e,e.segments,t)}function m6(r,e,t,n){if(r.segments.length>t.length){let i=r.segments.slice(0,t.length);return!(!Kd(i,t)||e.hasChildren()||!$w(i,t,n))}else if(r.segments.length===t.length){if(!Kd(r.segments,t)||!$w(r.segments,t,n))return!1;for(let i in e.children)if(!r.children[i]||!f6(r.children[i],e.children[i],n))return!1;return!0}else{let i=t.slice(0,r.segments.length),a=t.slice(r.segments.length);return!Kd(r.segments,i)||!$w(r.segments,i,n)||!r.children[Pt]?!1:m6(r.children[Pt],e,a,n)}}function $w(r,e,t){return e.every((n,i)=>d6[t](r[i].parameters,n.parameters))}var Zo=class{root;queryParams;fragment;_queryParamMap;constructor(e=new yr([],{}),t={},n=null){this.root=e,this.queryParams=t,this.fragment=n}get queryParamMap(){return this._queryParamMap??=Xd(this.queryParams),this._queryParamMap}toString(){return rre.serialize(this)}},yr=class{segments;children;parent=null;constructor(e,t){this.segments=e,this.children=t,Object.values(t).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Gw(this)}},iu=class{path;parameters;_parameterMap;constructor(e,t){this.path=e,this.parameters=t}get parameterMap(){return this._parameterMap??=Xd(this.parameters),this._parameterMap}toString(){return g6(this)}};function ere(r,e){return Kd(r,e)&&r.every((t,n)=>Qo(t.parameters,e[n].parameters))}function Kd(r,e){return r.length!==e.length?!1:r.every((t,n)=>t.path===e[n].path)}function tre(r,e){let t=[];return Object.entries(r.children).forEach(([n,i])=>{n===Pt&&(t=t.concat(e(i,n)))}),Object.entries(r.children).forEach(([n,i])=>{n!==Pt&&(t=t.concat(e(i,n)))}),t}var Qd=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:()=>new au,providedIn:"root"})}return r})(),au=class{parse(e){let t=new Ok(e);return new Zo(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(e){let t=`/${C0(e.root,!0)}`,n=are(e.queryParams),i=typeof e.fragment=="string"?`#${nre(e.fragment)}`:"";return`${t}${n}${i}`}},rre=new au;function Gw(r){return r.segments.map(e=>g6(e)).join("/")}function C0(r,e){if(!r.hasChildren())return Gw(r);if(e){let t=r.children[Pt]?C0(r.children[Pt],!1):"",n=[];return Object.entries(r.children).forEach(([i,a])=>{i!==Pt&&n.push(`${i}:${C0(a,!1)}`)}),n.length>0?`${t}(${n.join("//")})`:t}else{let t=tre(r,(n,i)=>i===Pt?[C0(r.children[Pt],!1)]:[`${i}:${C0(n,!1)}`]);return Object.keys(r.children).length===1&&r.children[Pt]!=null?`${Gw(r)}/${t[0]}`:`${Gw(r)}/(${t.join("//")})`}}function p6(r){return encodeURIComponent(r).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function jw(r){return p6(r).replace(/%3B/gi,";")}function nre(r){return encodeURI(r)}function Rk(r){return p6(r).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ww(r){return decodeURIComponent(r)}function r6(r){return Ww(r.replace(/\+/g,"%20"))}function g6(r){return`${Rk(r.path)}${ire(r.parameters)}`}function ire(r){return Object.entries(r).map(([e,t])=>`;${Rk(e)}=${Rk(t)}`).join("")}function are(r){let e=Object.entries(r).map(([t,n])=>Array.isArray(n)?n.map(i=>`${jw(t)}=${jw(i)}`).join("&"):`${jw(t)}=${jw(n)}`).filter(t=>t);return e.length?`?${e.join("&")}`:""}var sre=/^[^\/()?;#]+/;function Sk(r){let e=r.match(sre);return e?e[0]:""}var ore=/^[^\/()?;=#]+/;function lre(r){let e=r.match(ore);return e?e[0]:""}var cre=/^[^=?&#]+/;function ure(r){let e=r.match(cre);return e?e[0]:""}var dre=/^[^&#]+/;function hre(r){let e=r.match(dre);return e?e[0]:""}var Ok=class{url;remaining;constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new yr([],{}):new yr([],this.parseChildren())}parseQueryParams(){let e={};if(this.consumeOptional("?"))do this.parseQueryParam(e);while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(n[Pt]=new yr(e,t)),n}parseSegment(){let e=Sk(this.remaining);if(e===""&&this.peekStartsWith(";"))throw new bt(4009,!1);return this.capture(e),new iu(Ww(e),this.parseMatrixParams())}parseMatrixParams(){let e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){let t=lre(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let i=Sk(this.remaining);i&&(n=i,this.capture(n))}e[Ww(t)]=Ww(n)}parseQueryParam(e){let t=ure(this.remaining);if(!t)return;this.capture(t);let n="";if(this.consumeOptional("=")){let s=hre(this.remaining);s&&(n=s,this.capture(n))}let i=r6(t),a=r6(n);if(e.hasOwnProperty(i)){let s=e[i];Array.isArray(s)||(s=[s],e[i]=s),s.push(a)}else e[i]=a}parseParens(e){let t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=Sk(this.remaining),i=this.remaining[n.length];if(i!=="/"&&i!==")"&&i!==";")throw new bt(4010,!1);let a;n.indexOf(":")>-1?(a=n.slice(0,n.indexOf(":")),this.capture(a),this.capture(":")):e&&(a=Pt);let s=this.parseChildren();t[a??Pt]=Object.keys(s).length===1&&s[Pt]?s[Pt]:new yr([],s),this.consumeOptional("//")}return t}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return this.peekStartsWith(e)?(this.remaining=this.remaining.substring(e.length),!0):!1}capture(e){if(!this.consumeOptional(e))throw new bt(4011,!1)}};function y6(r){return r.segments.length>0?new yr([],{[Pt]:r}):r}function v6(r){let e={};for(let[n,i]of Object.entries(r.children)){let a=v6(i);if(n===Pt&&a.segments.length===0&&a.hasChildren())for(let[s,o]of Object.entries(a.children))e[s]=o;else(a.segments.length>0||a.hasChildren())&&(e[n]=a)}let t=new yr(r.segments,e);return fre(t)}function fre(r){if(r.numberOfChildren===1&&r.children[Pt]){let e=r.children[Pt];return new yr(r.segments.concat(e.segments),e.children)}return r}function su(r){return r instanceof Zo}function _6(r,e,t=null,n=null){let i=b6(r);return w6(i,e,t,n)}function b6(r){let e;function t(a){let s={};for(let l of a.children){let c=t(l);s[l.outlet]=c}let o=new yr(a.url,s);return a===r&&(e=o),o}let n=t(r.root),i=y6(n);return e??i}function w6(r,e,t,n){let i=r;for(;i.parent;)i=i.parent;if(e.length===0)return Dk(i,i,i,t,n);let a=mre(e);if(a.toRoot())return Dk(i,i,new yr([],{}),t,n);let s=pre(a,i,r),o=s.processChildren?D0(s.segmentGroup,s.index,a.commands):x6(s.segmentGroup,s.index,a.commands);return Dk(i,s.segmentGroup,o,t,n)}function qw(r){return typeof r=="object"&&r!=null&&!r.outlets&&!r.segmentPath}function M0(r){return typeof r=="object"&&r!=null&&r.outlets}function Dk(r,e,t,n,i){let a={};n&&Object.entries(n).forEach(([l,c])=>{a[l]=Array.isArray(c)?c.map(u=>`${u}`):`${c}`});let s;r===e?s=t:s=I6(r,e,t);let o=y6(v6(s));return new Zo(o,a,i)}function I6(r,e,t){let n={};return Object.entries(r.children).forEach(([i,a])=>{a===e?n[i]=t:n[i]=I6(a,e,t)}),new yr(r.segments,n)}var Kw=class{isAbsolute;numberOfDoubleDots;commands;constructor(e,t,n){if(this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=n,e&&n.length>0&&qw(n[0]))throw new bt(4003,!1);let i=n.find(M0);if(i&&i!==u6(n))throw new bt(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function mre(r){if(typeof r[0]=="string"&&r.length===1&&r[0]==="/")return new Kw(!0,0,r);let e=0,t=!1,n=r.reduce((i,a,s)=>{if(typeof a=="object"&&a!=null){if(a.outlets){let o={};return Object.entries(a.outlets).forEach(([l,c])=>{o[l]=typeof c=="string"?c.split("/"):c}),[...i,{outlets:o}]}if(a.segmentPath)return[...i,a.segmentPath]}return typeof a!="string"?[...i,a]:s===0?(a.split("/").forEach((o,l)=>{l==0&&o==="."||(l==0&&o===""?t=!0:o===".."?e++:o!=""&&i.push(o))}),i):[...i,a]},[]);return new Kw(t,e,n)}var em=class{segmentGroup;processChildren;index;constructor(e,t,n){this.segmentGroup=e,this.processChildren=t,this.index=n}};function pre(r,e,t){if(r.isAbsolute)return new em(e,!0,0);if(!t)return new em(e,!1,NaN);if(t.parent===null)return new em(t,!0,0);let n=qw(r.commands[0])?0:1,i=t.segments.length-1+n;return gre(t,i,r.numberOfDoubleDots)}function gre(r,e,t){let n=r,i=e,a=t;for(;a>i;){if(a-=i,n=n.parent,!n)throw new bt(4005,!1);i=n.segments.length}return new em(n,!1,i-a)}function yre(r){return M0(r[0])?r[0].outlets:{[Pt]:r}}function x6(r,e,t){if(r??=new yr([],{}),r.segments.length===0&&r.hasChildren())return D0(r,e,t);let n=vre(r,e,t),i=t.slice(n.commandIndex);if(n.match&&n.pathIndex<r.segments.length){let a=new yr(r.segments.slice(0,n.pathIndex),{});return a.children[Pt]=new yr(r.segments.slice(n.pathIndex),r.children),D0(a,0,i)}else return n.match&&i.length===0?new yr(r.segments,{}):n.match&&!r.hasChildren()?Fk(r,e,t):n.match?D0(r,0,i):Fk(r,e,t)}function D0(r,e,t){if(t.length===0)return new yr(r.segments,{});{let n=yre(t),i={};if(Object.keys(n).some(a=>a!==Pt)&&r.children[Pt]&&r.numberOfChildren===1&&r.children[Pt].segments.length===0){let a=D0(r.children[Pt],e,t);return new yr(r.segments,a.children)}return Object.entries(n).forEach(([a,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(i[a]=x6(r.children[a],e,s))}),Object.entries(r.children).forEach(([a,s])=>{n[a]===void 0&&(i[a]=s)}),new yr(r.segments,i)}}function vre(r,e,t){let n=0,i=e,a={match:!1,pathIndex:0,commandIndex:0};for(;i<r.segments.length;){if(n>=t.length)return a;let s=r.segments[i],o=t[n];if(M0(o))break;let l=`${o}`,c=n<t.length-1?t[n+1]:null;if(i>0&&l===void 0)break;if(l&&c&&typeof c=="object"&&c.outlets===void 0){if(!i6(l,c,s))return a;n+=2}else{if(!i6(l,{},s))return a;n++}i++}return{match:!0,pathIndex:i,commandIndex:n}}function Fk(r,e,t){let n=r.segments.slice(0,e),i=0;for(;i<t.length;){let a=t[i];if(M0(a)){let l=_re(a.outlets);return new yr(n,l)}if(i===0&&qw(t[0])){let l=r.segments[e];n.push(new iu(l.path,n6(t[0]))),i++;continue}let s=M0(a)?a.outlets[Pt]:`${a}`,o=i<t.length-1?t[i+1]:null;s&&o&&qw(o)?(n.push(new iu(s,n6(o))),i+=2):(n.push(new iu(s,{})),i++)}return new yr(n,{})}function _re(r){let e={};return Object.entries(r).forEach(([t,n])=>{typeof n=="string"&&(n=[n]),n!==null&&(e[t]=Fk(new yr([],{}),0,n))}),e}function n6(r){let e={};return Object.entries(r).forEach(([t,n])=>e[t]=`${n}`),e}function i6(r,e,t){return r==t.path&&Qo(e,t.parameters)}var tm="imperative",ei=(function(r){return r[r.NavigationStart=0]="NavigationStart",r[r.NavigationEnd=1]="NavigationEnd",r[r.NavigationCancel=2]="NavigationCancel",r[r.NavigationError=3]="NavigationError",r[r.RoutesRecognized=4]="RoutesRecognized",r[r.ResolveStart=5]="ResolveStart",r[r.ResolveEnd=6]="ResolveEnd",r[r.GuardsCheckStart=7]="GuardsCheckStart",r[r.GuardsCheckEnd=8]="GuardsCheckEnd",r[r.RouteConfigLoadStart=9]="RouteConfigLoadStart",r[r.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",r[r.ChildActivationStart=11]="ChildActivationStart",r[r.ChildActivationEnd=12]="ChildActivationEnd",r[r.ActivationStart=13]="ActivationStart",r[r.ActivationEnd=14]="ActivationEnd",r[r.Scroll=15]="Scroll",r[r.NavigationSkipped=16]="NavigationSkipped",r})(ei||{}),ms=class{id;url;constructor(e,t){this.id=e,this.url=t}},ou=class extends ms{type=ei.NavigationStart;navigationTrigger;restoredState;constructor(e,t,n="imperative",i=null){super(e,t),this.navigationTrigger=n,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},di=class extends ms{urlAfterRedirects;type=ei.NavigationEnd;constructor(e,t,n){super(e,t),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},Ia=(function(r){return r[r.Redirect=0]="Redirect",r[r.SupersededByNewNavigation=1]="SupersededByNewNavigation",r[r.NoDataFromResolver=2]="NoDataFromResolver",r[r.GuardRejected=3]="GuardRejected",r[r.Aborted=4]="Aborted",r})(Ia||{}),nm=(function(r){return r[r.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",r[r.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",r})(nm||{}),Jo=class extends ms{reason;code;type=ei.NavigationCancel;constructor(e,t,n,i){super(e,t),this.reason=n,this.code=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},el=class extends ms{reason;code;type=ei.NavigationSkipped;constructor(e,t,n,i){super(e,t),this.reason=n,this.code=i}},im=class extends ms{error;target;type=ei.NavigationError;constructor(e,t,n,i){super(e,t),this.error=n,this.target=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},k0=class extends ms{urlAfterRedirects;state;type=ei.RoutesRecognized;constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Yw=class extends ms{urlAfterRedirects;state;type=ei.GuardsCheckStart;constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Xw=class extends ms{urlAfterRedirects;state;shouldActivate;type=ei.GuardsCheckEnd;constructor(e,t,n,i,a){super(e,t),this.urlAfterRedirects=n,this.state=i,this.shouldActivate=a}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Qw=class extends ms{urlAfterRedirects;state;type=ei.ResolveStart;constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Jw=class extends ms{urlAfterRedirects;state;type=ei.ResolveEnd;constructor(e,t,n,i){super(e,t),this.urlAfterRedirects=n,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Zw=class{route;type=ei.RouteConfigLoadStart;constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},eI=class{route;type=ei.RouteConfigLoadEnd;constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},tI=class{snapshot;type=ei.ChildActivationStart;constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},rI=class{snapshot;type=ei.ChildActivationEnd;constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},nI=class{snapshot;type=ei.ActivationStart;constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},iI=class{snapshot;type=ei.ActivationEnd;constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},am=class{routerEvent;position;anchor;type=ei.Scroll;constructor(e,t,n){this.routerEvent=e,this.position=t,this.anchor=n}toString(){let e=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${e}')`}},P0=class{},sm=class{url;navigationBehaviorOptions;constructor(e,t){this.url=e,this.navigationBehaviorOptions=t}};function bre(r){return!(r instanceof P0)&&!(r instanceof sm)}function wre(r,e){return r.providers&&!r._injector&&(r._injector=Gv(r.providers,e,`Route: ${r.path}`)),r._injector??e}function _o(r){return r.outlet||Pt}function Ire(r,e){let t=r.filter(n=>_o(n)===e);return t.push(...r.filter(n=>_o(n)!==e)),t}function cm(r){if(!r)return null;if(r.routeConfig?._injector)return r.routeConfig._injector;for(let e=r.parent;e;e=e.parent){let t=e.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}var aI=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return cm(this.route?.snapshot)??this.rootInjector}constructor(e){this.rootInjector=e,this.children=new Jd(this.rootInjector)}},Jd=(()=>{class r{rootInjector;contexts=new Map;constructor(t){this.rootInjector=t}onChildOutletCreated(t,n){let i=this.getOrCreateContext(t);i.outlet=n,this.contexts.set(t,i)}onChildOutletDestroyed(t){let n=this.getContext(t);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let n=this.getContext(t);return n||(n=new aI(this.rootInjector),this.contexts.set(t,n)),n}getContext(t){return this.contexts.get(t)||null}static \u0275fac=function(n){return new(n||r)(ee(Ei))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),sI=class{_root;constructor(e){this._root=e}get root(){return this._root.value}parent(e){let t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null}children(e){let t=Bk(e,this._root);return t?t.children.map(n=>n.value):[]}firstChild(e){let t=Bk(e,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(e){let t=Nk(e,this._root);return t.length<2?[]:t[t.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return Nk(e,this._root).map(t=>t.value)}};function Bk(r,e){if(r===e.value)return e;for(let t of e.children){let n=Bk(r,t);if(n)return n}return null}function Nk(r,e){if(r===e.value)return[e];for(let t of e.children){let n=Nk(r,t);if(n.length)return n.unshift(e),n}return[]}var fs=class{value;children;constructor(e,t){this.value=e,this.children=t}toString(){return`TreeNode(${this.value})`}};function Zf(r){let e={};return r&&r.children.forEach(t=>e[t.value.outlet]=t),e}var R0=class extends sI{snapshot;constructor(e,t){super(e),this.snapshot=t,Gk(this,e)}toString(){return this.snapshot.toString()}};function E6(r){let e=xre(r),t=new Ii([new iu("",{})]),n=new Ii({}),i=new Ii({}),a=new Ii({}),s=new Ii(""),o=new Dn(t,n,a,s,i,Pt,r,e.root);return o.snapshot=e.root,new R0(new fs(o,[]),e)}function xre(r){let e={},t={},n={},a=new Yd([],e,n,"",t,Pt,r,null,{});return new O0("",new fs(a,[]))}var Dn=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(e,t,n,i,a,s,o,l){this.urlSubject=e,this.paramsSubject=t,this.queryParamsSubject=n,this.fragmentSubject=i,this.dataSubject=a,this.outlet=s,this.component=o,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ft(c=>c[L0]))??Xe(void 0),this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(ft(e=>Xd(e))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ft(e=>Xd(e))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function oI(r,e,t="emptyOnly"){let n,{routeConfig:i}=r;return e!==null&&(t==="always"||i?.path===""||!e.component&&!e.routeConfig?.loadComponent)?n={params:de(de({},e.params),r.params),data:de(de({},e.data),r.data),resolve:de(de(de(de({},r.data),e.data),i?.data),r._resolvedData)}:n={params:de({},r.params),data:de({},r.data),resolve:de(de({},r.data),r._resolvedData??{})},i&&C6(i)&&(n.resolve[L0]=i.title),n}var Yd=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[L0]}constructor(e,t,n,i,a,s,o,l,c){this.url=e,this.params=t,this.queryParams=n,this.fragment=i,this.data=a,this.outlet=s,this.component=o,this.routeConfig=l,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=Xd(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Xd(this.queryParams),this._queryParamMap}toString(){let e=this.url.map(n=>n.toString()).join("/"),t=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${e}', path:'${t}')`}},O0=class extends sI{url;constructor(e,t){super(t),this.url=e,Gk(this,t)}toString(){return T6(this._root)}};function Gk(r,e){e.value._routerState=r,e.children.forEach(t=>Gk(r,t))}function T6(r){let e=r.children.length>0?` { ${r.children.map(T6).join(", ")} } `:"";return`${r.value}${e}`}function Ak(r){if(r.snapshot){let e=r.snapshot,t=r._futureSnapshot;r.snapshot=t,Qo(e.queryParams,t.queryParams)||r.queryParamsSubject.next(t.queryParams),e.fragment!==t.fragment&&r.fragmentSubject.next(t.fragment),Qo(e.params,t.params)||r.paramsSubject.next(t.params),Xte(e.url,t.url)||r.urlSubject.next(t.url),Qo(e.data,t.data)||r.dataSubject.next(t.data)}else r.snapshot=r._futureSnapshot,r.dataSubject.next(r._futureSnapshot.data)}function Lk(r,e){let t=Qo(r.params,e.params)&&ere(r.url,e.url),n=!r.parent!=!e.parent;return t&&!n&&(!r.parent||Lk(r.parent,e.parent))}function C6(r){return typeof r.title=="string"||r.title===null}var S6=new me(""),Wk=(()=>{class r{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=Pt;activateEvents=new Rt;deactivateEvents=new Rt;attachEvents=new Rt;detachEvents=new Rt;routerOutletData=ZF();parentContexts=A(Jd);location=A(Rn);changeDetector=A(Ci);inputBinder=A(V0,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(t){if(t.name){let{firstChange:n,previousValue:i}=t.name;if(n)return;this.isTrackedInParentContexts(i)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(i)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new bt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new bt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new bt(4012,!1);this.location.detach();let t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,n){this.activated=t,this._activatedRoute=n,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){let t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,n){if(this.isActivated)throw new bt(4013,!1);this._activatedRoute=t;let i=this.location,s=t.snapshot.component,o=this.parentContexts.getOrCreateContext(this.name).children,l=new Vk(t,o,i.injector,this.routerOutletData);this.activated=i.createComponent(s,{index:i.length,injector:l,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[En]})}return r})(),Vk=class{route;childContexts;parent;outletData;constructor(e,t,n,i){this.route=e,this.childContexts=t,this.parent=n,this.outletData=i}get(e,t){return e===Dn?this.route:e===Jd?this.childContexts:e===S6?this.outletData:this.parent.get(e,t)}},V0=new me(""),qk=(()=>{class r{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){let{activatedRoute:n}=t,i=ef([n.queryParams,n.params,n.data]).pipe(xi(([a,s,o],l)=>(o=de(de(de({},a),s),o),l===0?Xe(o):Promise.resolve(o)))).subscribe(a=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(t);return}let s=aB(n.component);if(!s){this.unsubscribeFromRouteData(t);return}for(let{templateName:o}of s.inputs)t.activatedComponentRef.setInput(o,a[o])});this.outletDataSubscriptions.set(t,i)}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac})}return r})(),Kk=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275cmp=dt({type:r,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,i){n&1&&ot(0,"router-outlet")},dependencies:[Wk],encapsulation:2})}return r})();function Yk(r){let e=r.children&&r.children.map(Yk),t=e?rr(de({},r),{children:e}):de({},r);return!t.component&&!t.loadComponent&&(e||t.loadChildren)&&t.outlet&&t.outlet!==Pt&&(t.component=Kk),t}function Ere(r,e,t){let n=F0(r,e._root,t?t._root:void 0);return new R0(n,e)}function F0(r,e,t){if(t&&r.shouldReuseRoute(e.value,t.value.snapshot)){let n=t.value;n._futureSnapshot=e.value;let i=Tre(r,e,t);return new fs(n,i)}else{if(r.shouldAttach(e.value)){let a=r.retrieve(e.value);if(a!==null){let s=a.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(o=>F0(r,o)),s}}let n=Cre(e.value),i=e.children.map(a=>F0(r,a));return new fs(n,i)}}function Tre(r,e,t){return e.children.map(n=>{for(let i of t.children)if(r.shouldReuseRoute(n.value,i.value.snapshot))return F0(r,n,i);return F0(r,n)})}function Cre(r){return new Dn(new Ii(r.url),new Ii(r.params),new Ii(r.queryParams),new Ii(r.fragment),new Ii(r.data),r.outlet,r.component,r)}var om=class{redirectTo;navigationBehaviorOptions;constructor(e,t){this.redirectTo=e,this.navigationBehaviorOptions=t}},D6="ngNavigationCancelingError";function lI(r,e){let{redirectTo:t,navigationBehaviorOptions:n}=su(e)?{redirectTo:e,navigationBehaviorOptions:void 0}:e,i=A6(!1,Ia.Redirect);return i.url=t,i.navigationBehaviorOptions=n,i}function A6(r,e){let t=new Error(`NavigationCancelingError: ${r||""}`);return t[D6]=!0,t.cancellationCode=e,t}function Sre(r){return M6(r)&&su(r.url)}function M6(r){return!!r&&r[D6]}var Dre=(r,e,t,n)=>ft(i=>(new Uk(e,i.targetRouterState,i.currentRouterState,t,n).activate(r),i)),Uk=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(e,t,n,i,a){this.routeReuseStrategy=e,this.futureState=t,this.currState=n,this.forwardEvent=i,this.inputBindingEnabled=a}activate(e){let t=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,n,e),Ak(this.futureState.root),this.activateChildRoutes(t,n,e)}deactivateChildRoutes(e,t,n){let i=Zf(t);e.children.forEach(a=>{let s=a.value.outlet;this.deactivateRoutes(a,i[s],n),delete i[s]}),Object.values(i).forEach(a=>{this.deactivateRouteAndItsChildren(a,n)})}deactivateRoutes(e,t,n){let i=e.value,a=t?t.value:null;if(i===a)if(i.component){let s=n.getContext(i.outlet);s&&this.deactivateChildRoutes(e,t,s.children)}else this.deactivateChildRoutes(e,t,n);else a&&this.deactivateRouteAndItsChildren(t,n)}deactivateRouteAndItsChildren(e,t){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,t):this.deactivateRouteAndOutlet(e,t)}detachAndStoreRouteSubtree(e,t){let n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,a=Zf(e);for(let s of Object.values(a))this.deactivateRouteAndItsChildren(s,i);if(n&&n.outlet){let s=n.outlet.detach(),o=n.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:o})}}deactivateRouteAndOutlet(e,t){let n=t.getContext(e.value.outlet),i=n&&e.value.component?n.children:t,a=Zf(e);for(let s of Object.values(a))this.deactivateRouteAndItsChildren(s,i);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(e,t,n){let i=Zf(t);e.children.forEach(a=>{this.activateRoutes(a,i[a.value.outlet],n),this.forwardEvent(new iI(a.value.snapshot))}),e.children.length&&this.forwardEvent(new rI(e.value.snapshot))}activateRoutes(e,t,n){let i=e.value,a=t?t.value:null;if(Ak(i),i===a)if(i.component){let s=n.getOrCreateContext(i.outlet);this.activateChildRoutes(e,t,s.children)}else this.activateChildRoutes(e,t,n);else if(i.component){let s=n.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){let o=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),s.children.onOutletReAttached(o.contexts),s.attachRef=o.componentRef,s.route=o.route.value,s.outlet&&s.outlet.attach(o.componentRef,o.route.value),Ak(o.route.value),this.activateChildRoutes(e,null,s.children)}else s.attachRef=null,s.route=i,s.outlet&&s.outlet.activateWith(i,s.injector),this.activateChildRoutes(e,null,s.children)}else this.activateChildRoutes(e,null,n)}},cI=class{path;route;constructor(e){this.path=e,this.route=this.path[this.path.length-1]}},rm=class{component;route;constructor(e,t){this.component=e,this.route=t}};function Are(r,e,t){let n=r._root,i=e?e._root:null;return S0(n,i,t,[n.value])}function Mre(r){let e=r.routeConfig?r.routeConfig.canActivateChild:null;return!e||e.length===0?null:{node:r,guards:e}}function um(r,e){let t=Symbol(),n=e.get(r,t);return n===t?typeof r=="function"&&!pF(r)?r:e.get(r):n}function S0(r,e,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let a=Zf(e);return r.children.forEach(s=>{kre(s,a[s.value.outlet],t,n.concat([s.value]),i),delete a[s.value.outlet]}),Object.entries(a).forEach(([s,o])=>A0(o,t.getContext(s),i)),i}function kre(r,e,t,n,i={canDeactivateChecks:[],canActivateChecks:[]}){let a=r.value,s=e?e.value:null,o=t?t.getContext(r.value.outlet):null;if(s&&a.routeConfig===s.routeConfig){let l=Pre(s,a,a.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new cI(n)):(a.data=s.data,a._resolvedData=s._resolvedData),a.component?S0(r,e,o?o.children:null,n,i):S0(r,e,t,n,i),l&&o&&o.outlet&&o.outlet.isActivated&&i.canDeactivateChecks.push(new rm(o.outlet.component,s))}else s&&A0(e,o,i),i.canActivateChecks.push(new cI(n)),a.component?S0(r,null,o?o.children:null,n,i):S0(r,null,t,n,i);return i}function Pre(r,e,t){if(typeof t=="function")return t(r,e);switch(t){case"pathParamsChange":return!Kd(r.url,e.url);case"pathParamsOrQueryParamsChange":return!Kd(r.url,e.url)||!Qo(r.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Lk(r,e)||!Qo(r.queryParams,e.queryParams);case"paramsChange":default:return!Lk(r,e)}}function A0(r,e,t){let n=Zf(r),i=r.value;Object.entries(n).forEach(([a,s])=>{i.component?e?A0(s,e.children.getContext(a),t):A0(s,null,t):A0(s,e,t)}),i.component?e&&e.outlet&&e.outlet.isActivated?t.canDeactivateChecks.push(new rm(e.outlet.component,i)):t.canDeactivateChecks.push(new rm(null,i)):t.canDeactivateChecks.push(new rm(null,i))}function U0(r){return typeof r=="function"}function Rre(r){return typeof r=="boolean"}function Ore(r){return r&&U0(r.canLoad)}function Fre(r){return r&&U0(r.canActivate)}function Bre(r){return r&&U0(r.canActivateChild)}function Nre(r){return r&&U0(r.canDeactivate)}function Lre(r){return r&&U0(r.canMatch)}function k6(r){return r instanceof cF||r?.name==="EmptyError"}var Hw=Symbol("INITIAL_VALUE");function lm(){return xi(r=>ef(r.map(e=>e.pipe(Hr(1),to(Hw)))).pipe(ft(e=>{for(let t of e)if(t!==!0){if(t===Hw)return Hw;if(t===!1||Vre(t))return t}return!0}),Yt(e=>e!==Hw),Hr(1)))}function Vre(r){return su(r)||r instanceof om}function Ure(r,e){return Ni(t=>{let{targetSnapshot:n,currentSnapshot:i,guards:{canActivateChecks:a,canDeactivateChecks:s}}=t;return s.length===0&&a.length===0?Xe(rr(de({},t),{guardsResult:!0})):zre(s,n,i,r).pipe(Ni(o=>o&&Rre(o)?jre(n,a,r,e):Xe(o)),ft(o=>rr(de({},t),{guardsResult:o})))})}function zre(r,e,t,n){return Bi(r).pipe(Ni(i=>qre(i.component,i.route,t,e,n)),Tc(i=>i!==!0,!0))}function jre(r,e,t,n){return Bi(e).pipe(Dl(i=>zv($re(i.route.parent,n),Hre(i.route,n),Wre(r,i.path,t),Gre(r,i.route,t))),Tc(i=>i!==!0,!0))}function Hre(r,e){return r!==null&&e&&e(new nI(r)),Xe(!0)}function $re(r,e){return r!==null&&e&&e(new tI(r)),Xe(!0)}function Gre(r,e,t){let n=e.routeConfig?e.routeConfig.canActivate:null;if(!n||n.length===0)return Xe(!0);let i=n.map(a=>xc(()=>{let s=cm(e)??t,o=um(a,s),l=Fre(o)?o.canActivate(e,r):Le(s,()=>o(e,r));return tc(l).pipe(Tc())}));return Xe(i).pipe(lm())}function Wre(r,e,t){let n=e[e.length-1],a=e.slice(0,e.length-1).reverse().map(s=>Mre(s)).filter(s=>s!==null).map(s=>xc(()=>{let o=s.guards.map(l=>{let c=cm(s.node)??t,u=um(l,c),d=Bre(u)?u.canActivateChild(n,r):Le(c,()=>u(n,r));return tc(d).pipe(Tc())});return Xe(o).pipe(lm())}));return Xe(a).pipe(lm())}function qre(r,e,t,n,i){let a=e&&e.routeConfig?e.routeConfig.canDeactivate:null;if(!a||a.length===0)return Xe(!0);let s=a.map(o=>{let l=cm(e)??i,c=um(o,l),u=Nre(c)?c.canDeactivate(r,e,t,n):Le(l,()=>c(r,e,t,n));return tc(u).pipe(Tc())});return Xe(s).pipe(lm())}function Kre(r,e,t,n){let i=e.canLoad;if(i===void 0||i.length===0)return Xe(!0);let a=i.map(s=>{let o=um(s,r),l=Ore(o)?o.canLoad(e,t):Le(r,()=>o(e,t));return tc(l)});return Xe(a).pipe(lm(),P6(n))}function P6(r){return aF(lr(e=>{if(typeof e!="boolean")throw lI(r,e)}),ft(e=>e===!0))}function Yre(r,e,t,n){let i=e.canMatch;if(!i||i.length===0)return Xe(!0);let a=i.map(s=>{let o=um(s,r),l=Lre(o)?o.canMatch(e,t):Le(r,()=>o(e,t));return tc(l)});return Xe(a).pipe(lm(),P6(n))}var B0=class{segmentGroup;constructor(e){this.segmentGroup=e||null}}
57,N0=class extends Error{urlTree;constructor(e){super(),this.urlTree=e}};function Jf(r){return Xu(new B0(r))}function Xre(r){return Xu(new bt(4e3,!1))}function Qre(r){return Xu(A6(!1,Ia.GuardRejected))}var zk=class{urlSerializer;urlTree;constructor(e,t){this.urlSerializer=e,this.urlTree=t}lineralizeSegments(e,t){let n=[],i=t.root;for(;;){if(n=n.concat(i.segments),i.numberOfChildren===0)return Xe(n);if(i.numberOfChildren>1||!i.children[Pt])return Xre(`${e.redirectTo}`);i=i.children[Pt]}}applyRedirectCommands(e,t,n,i,a){return Jre(t,i,a).pipe(ft(s=>{if(s instanceof Zo)throw new N0(s);let o=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),e,n);if(s[0]==="/")throw new N0(o);return o}))}applyRedirectCreateUrlTree(e,t,n,i){let a=this.createSegmentGroup(e,t.root,n,i);return new Zo(a,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(e,t){let n={};return Object.entries(e).forEach(([i,a])=>{if(typeof a=="string"&&a[0]===":"){let o=a.substring(1);n[i]=t[o]}else n[i]=a}),n}createSegmentGroup(e,t,n,i){let a=this.createSegments(e,t.segments,n,i),s={};return Object.entries(t.children).forEach(([o,l])=>{s[o]=this.createSegmentGroup(e,l,n,i)}),new yr(a,s)}createSegments(e,t,n,i){return t.map(a=>a.path[0]===":"?this.findPosParam(e,a,i):this.findOrReturn(a,n))}findPosParam(e,t,n){let i=n[t.path.substring(1)];if(!i)throw new bt(4001,!1);return i}findOrReturn(e,t){let n=0;for(let i of t){if(i.path===e.path)return t.splice(n),i;n++}return e}};function Jre(r,e,t){if(typeof r=="string")return Xe(r);let n=r,{queryParams:i,fragment:a,routeConfig:s,url:o,outlet:l,params:c,data:u,title:d}=e;return tc(Le(t,()=>n({params:c,data:u,queryParams:i,fragment:a,routeConfig:s,url:o,outlet:l,title:d})))}var jk={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Zre(r,e,t,n,i){let a=R6(r,e,t);return a.matched?(n=wre(e,n),Yre(n,e,t,i).pipe(ft(s=>s===!0?a:de({},jk)))):Xe(a)}function R6(r,e,t){if(e.path==="**")return ene(t);if(e.path==="")return e.pathMatch==="full"&&(r.hasChildren()||t.length>0)?de({},jk):{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};let i=(e.matcher||l6)(t,r,e);if(!i)return de({},jk);let a={};Object.entries(i.posParams??{}).forEach(([o,l])=>{a[o]=l.path});let s=i.consumed.length>0?de(de({},a),i.consumed[i.consumed.length-1].parameters):a;return{matched:!0,consumedSegments:i.consumed,remainingSegments:t.slice(i.consumed.length),parameters:s,positionalParamSegments:i.posParams??{}}}function ene(r){return{matched:!0,parameters:r.length>0?u6(r).parameters:{},consumedSegments:r,remainingSegments:[],positionalParamSegments:{}}}function a6(r,e,t,n){return t.length>0&&nne(r,t,n)?{segmentGroup:new yr(e,rne(n,new yr(t,r.children))),slicedSegments:[]}:t.length===0&&ine(r,t,n)?{segmentGroup:new yr(r.segments,tne(r,t,n,r.children)),slicedSegments:t}:{segmentGroup:new yr(r.segments,r.children),slicedSegments:t}}function tne(r,e,t,n){let i={};for(let a of t)if(dI(r,e,a)&&!n[_o(a)]){let s=new yr([],{});i[_o(a)]=s}return de(de({},n),i)}function rne(r,e){let t={};t[Pt]=e;for(let n of r)if(n.path===""&&_o(n)!==Pt){let i=new yr([],{});t[_o(n)]=i}return t}function nne(r,e,t){return t.some(n=>dI(r,e,n)&&_o(n)!==Pt)}function ine(r,e,t){return t.some(n=>dI(r,e,n))}function dI(r,e,t){return(r.hasChildren()||e.length>0)&&t.pathMatch==="full"?!1:t.path===""}function ane(r,e,t){return e.length===0&&!r.children[t]}var Hk=class{};function sne(r,e,t,n,i,a,s="emptyOnly"){return new $k(r,e,t,n,i,s,a).recognize()}var one=31,$k=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(e,t,n,i,a,s,o){this.injector=e,this.configLoader=t,this.rootComponentType=n,this.config=i,this.urlTree=a,this.paramsInheritanceStrategy=s,this.urlSerializer=o,this.applyRedirects=new zk(this.urlSerializer,this.urlTree)}noMatchError(e){return new bt(4002,`'${e.segmentGroup}'`)}recognize(){let e=a6(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(e).pipe(ft(({children:t,rootSnapshot:n})=>
57{let i=new fs(n,t),a=new O0("",i),s=_6(n,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,a.url=this.urlSerializer.serialize(s),{state:a,tree:s}}))}match(e){let t=new Yd([],Object.freeze({}),Object.freeze(de({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),Pt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,e,Pt,t).pipe(ft(n=>({children:n,rootSnapshot:t})),la(n=>{if(n instanceof N0)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof B0?this.noMatchError(n):n}))}processSegmentGroup(e,t,n,i,a){return n.segments.length===0&&n.hasChildren()?this.processChildren(e,t,n,a):this.processSegment(e,t,n,n.segments,i,!0,a).pipe(ft(s=>s instanceof fs?[s]:[]))}processChildren(e,t,n,i){let a=[];for(let s of Object.keys(n.children))s==="primary"?a.unshift(s):a.push(s);return Bi(a).pipe(Dl(s=>{let o=n.children[s],l=Ire(t,s);return this.processSegmentGroup(e,l,o,s,i)}),dF((s,o)=>(s.push(...o),s)),mC(null),uF(),Ni(s=>{if(s===null)return Jf(n);let o=O6(s);return lne(o),Xe(o)}))}processSegment(e,t,n,i,a,s,o){return Bi(t).pipe(Dl(l=>this.processSegmentAgainstRoute(l._injector??e,t,l,n,i,a,s,o).pipe(la(c=>{if(c instanceof B0)return Xe(null);throw c}))),Tc(l=>!!l),la(l=>{if(k6(l))return ane(n,i,a)?Xe(new Hk):Jf(n);throw l}))}processSegmentAgainstRoute(e,t,n,i,a,s,o,l){return _o(n)!==s&&(s===Pt||!dI(i,a,n))?Jf(i):n.redirectTo===void 0?this.matchSegmentAgainstRoute(e,i,n,a,s,l):this.allowRedirects&&o?this.expandSegmentAgainstRouteUsingRedirect(e,i,t,n,a,s,l):Jf(i)}expandSegmentAgainstRouteUsingRedirect(e,t,n,i,a,s,o){let{matched:l,parameters:c,consumedSegments:u,positionalParamSegments:d,remainingSegments:f}=R6(t,i,a);if(!l)return Jf(t);typeof i.redirectTo=="string"&&i.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>one&&(this.allowRedirects=!1));let p=new Yd(a,c,Object.freeze(de({},this.urlTree.queryParams)),this.urlTree.fragment,s6(i),_o(i),i.component??i._loadedComponent??null,i,o6(i)),g=oI(p,o,this.paramsInheritanceStrategy);return p.params=Object.freeze(g.params),p.data=Object.freeze(g.data),this.applyRedirects.applyRedirectCommands(u,i.redirectTo,d,p,e).pipe(xi(v=>this.applyRedirects.lineralizeSegments(i,v)),Ni(v=>this.processSegment(e,n,t,v.concat(f),s,!1,o)))}matchSegmentAgainstRoute(e,t,n,i,a,s){let o=Zre(t,n,i,e,this.urlSerializer);return n.path==="**"&&(t.children={}),o.pipe(xi(l=>l.matched?(e=n._injector??e,this.getChildConfig(e,n,i).pipe(xi(({routes:c})=>{let u=n._loadedInjector??e,{parameters:d,consumedSegments:f,remainingSegments:p}=l,g=new Yd(f,d,Object.freeze(de({},this.urlTree.queryParams)),this.urlTree.fragment,s6(n),_o(n),n.component??n._loadedComponent??null,n,o6(n)),y=oI(g,s,this.paramsInheritanceStrategy);g.params=Object.freeze(y.params),g.data=Object.freeze(y.data);let{segmentGroup:v,slicedSegments:T}=a6(t,f,p,c);if(T.length===0&&v.hasChildren())return this.processChildren(u,c,v,g).pipe(ft(x=>new fs(g,x)));if(c.length===0&&T.length===0)return Xe(new fs(g,[]));let C=_o(n)===a;return this.processSegment(u,c,v,T,C?Pt:a,!0,g).pipe(ft(x=>new fs(g,x instanceof fs?[x]:[])))}))):Jf(t)))}getChildConfig(e,t,n){return t.children?Xe({routes:t.children,injector:e}):t.loadChildren?t._loadedRoutes!==void 0?Xe({routes:t._loadedRoutes,injector:t._loadedInjector}):Kre(e,t,n,this.urlSerializer).pipe(Ni(i=>i?this.configLoader.loadChildren(e,t).pipe(lr(a=>{t._loadedRoutes=a.routes,t._loadedInjector=a.injector})):Qre(t))):Xe({routes:[],injector:e})}};function lne(r){r.sort((e,t)=>e.value.outlet===Pt?-1:t.value.outlet===Pt?1:e.value.outlet.localeCompare(t.value.outlet))}function cne(r){let e=r.value.routeConfig;return e&&e.path===""}function O6(r){let e=[],t=new Set;for(let n of r){if(!cne(n)){e.push(n);continue}let i=e.find(a=>n.value.routeConfig===a.value.routeConfig);i!==void 0?(i.children.push(...n.children),t.add(i)):e.push(n)}for(let n of t){let i=O6(n.children);e.push(new fs(n.value,i))}return e.filter(n=>!t.has(n))}function s6(r){return r.data||{}}function o6(r){return r.resolve||{}}function une(r,e,t,n,i,a){return Ni(s=>sne(r,e,t,n,s.extractedUrl,i,a).pipe(ft(({state:o,tree:l})=>rr(de({},s),{targetSnapshot:o,urlAfterRedirects:l}))))}function dne(r,e){return Ni(t=>{let{targetSnapshot:n,guards:{canActivateChecks:i}}=t;if(!i.length)return Xe(t);let a=new Set(i.map(l=>l.route)),s=new Set;for(let l of a)if(!s.has(l))for(let c of F6(l))s.add(c);let o=0;return Bi(s).pipe(Dl(l=>a.has(l)?hne(l,n,r,e):(l.data=oI(l,l.parent,r).resolve,Xe(void 0))),lr(()=>o++),gC(1),Ni(l=>o===s.size?Xe(t):Zs))})}function F6(r){let e=r.children.map(t=>F6(t)).flat();return[r,...e]}function hne(r,e,t,n){let i=r.routeConfig,a=r._resolve;return i?.title!==void 0&&!C6(i)&&(a[L0]=i.title),xc(()=>(r.data=oI(r,r.parent,t).resolve,fne(a,r,e,n).pipe(ft(s=>(r._resolvedData=s,r.data=de(de({},r.data),s),null)))))}function fne(r,e,t,n){let i=Pk(r);if(i.length===0)return Xe({});let a={};return Bi(i).pipe(Ni(s=>mne(r[s],e,t,n).pipe(Tc(),lr(o=>{if(o instanceof om)throw lI(new au,o);a[s]=o}))),gC(1),ft(()=>a),la(s=>k6(s)?Zs:Xu(s)))}function mne(r,e,t,n){let i=cm(e)??n,a=um(r,i),s=a.resolve?a.resolve(e,t):Le(i,()=>a(e,t));return tc(s)}function Mk(r){return xi(e=>{let t=r(e);return t?Bi(t).pipe(ft(()=>e)):Xe(e)})}var Xk=(()=>{class r{buildTitle(t){let n,i=t.root;for(;i!==void 0;)n=this.getResolvedTitleForRoute(i)??n,i=i.children.find(a=>a.outlet===Pt);return n}getResolvedTitleForRoute(t){return t.data[L0]}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:()=>A(B6),providedIn:"root"})}return r})(),B6=(()=>{class r extends Xk{title;constructor(t){super(),this.title=t}updateTitle(t){let n=this.buildTitle(t);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||r)(ee(zw))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),lu=new me("",{providedIn:"root",factory:()=>({})}),dm=new me(""),hI=(()=>
57{class r{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=A(QF);loadComponent(t,n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return Xe(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let i=tc(Le(t,()=>n.loadComponent())).pipe(ft(L6),xi(V6),lr(s=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=s}),Ec(()=>{this.componentLoaders.delete(n)})),a=new Yp(i,()=>new Ye).pipe(uC());return this.componentLoaders.set(n,a),a}loadChildren(t,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return Xe({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let a=N6(n,this.compiler,t,this.onLoadEndListener).pipe(Ec(()=>{this.childrenLoaders.delete(n)})),s=new Yp(a,()=>new Ye).pipe(uC());return this.childrenLoaders.set(n,s),s}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function N6(r,e,t,n){return tc(Le(t,()=>r.loadChildren())).pipe(ft(L6),xi(V6),Ni(i=>i instanceof RF||Array.isArray(i)?Xe(i):Bi(e.compileModuleAsync(i))),ft(i=>{n&&n(r);let a,s,o=!1;return Array.isArray(i)?(s=i,o=!0):(a=i.create(t).injector,s=a.get(dm,[],{optional:!0,self:!0}).flat()),{routes:s.map(Yk),injector:a}}))}function pne(r){return r&&typeof r=="object"&&"default"in r}function L6(r){return pne(r)?r.default:r}function V6(r){return Xe(r)}var fI=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:()=>A(gne),providedIn:"root"})}return r})(),gne=(()=>{class r{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,n){return t}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),Qk=new me(""),Jk=new me("");function U6(r,e,t){let n=r.get(Jk),i=r.get(Je);if(!i.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(c=>setTimeout(c));let a,s=new Promise(c=>{a=c}),o=i.startViewTransition(()=>(a(),yne(r)));o.ready.catch(c=>{});let{onViewTransitionCreated:l}=n;return l&&Le(r,()=>l({transition:o,from:e,to:t})),s}function yne(r){return new Promise(e=>{Yn({read:()=>setTimeout(e)},{injector:r})})}var Zk=new me(""),mI=(()=>{class r{currentNavigation=Vr(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new Ye;transitionAbortWithErrorSubject=new Ye;configLoader=A(hI);environmentInjector=A(Ei);destroyRef=A(Cc);urlSerializer=A(Qd);rootContexts=A(Jd);location=A(Bo);inputBindingEnabled=A(V0,{optional:!0})!==null;titleStrategy=A(Xk);options=A(lu,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=A(fI);createViewTransition=A(Qk,{optional:!0});navigationErrorHandler=A(Zk,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>Xe(void 0);rootComponentType=null;destroyed=!1;constructor(){let t=i=>this.events.next(new Zw(i)),n=i=>this.events.next(new eI(i));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=t,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(t){let n=++this.navigationId;Yr(()=>{this.transitions?.next(rr(de({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:n}))})}setupNavigations(t){return this.transitions=new Ii(null),this.transitions.pipe(Yt(n=>n!==null),xi(n=>{let i=!1;return Xe(n).pipe(xi(a=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",Ia.SupersededByNewNavigation),Zs;this.currentTransition=n,this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?rr(de({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>a.abortController.abort()});let s=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),o=a.extras.onSameUrlNavigation??t.onSameUrlNavigation;if(!s&&o!=="reload")return this.events.next(new el(a.id,this.urlSerializer.serialize(a.rawUrl),"",nm.IgnoredSameUrlNavigation)),a.resolve(!1),Zs;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Xe(a).pipe(xi(l=>(this.events.next(new ou(l.id,this.urlSerializer.serialize(l.extractedUrl),l.source,l.restoredState)),l.id!==this.navigationId?Zs:Promise.resolve(l))),une(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),lr(l=>{n.targetSnapshot=l.targetSnapshot,n.urlAfterRedirects=l.urlAfterRedirects,this.currentNavigation.update(u=>(u.finalUrl=l.urlAfterRedirects,u));let c=new k0(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(c)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:l,extractedUrl:c,source:u,restoredState:d,extras:f}=a,p=new ou(l,this.urlSerializer.serialize(c),u,d);this.events.next(p);let g=E6(this.rootComponentType).snapshot;return this.currentTransition=n=rr(de({},a),{targetSnapshot:g,urlAfterRedirects:c,extras:rr(de({},f),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(y=>(y.finalUrl=c,y)),Xe(n)}else return this.events.next(new el(a.id,this.urlSerializer.serialize(a.extractedUrl),"",nm.IgnoredByUrlHandlingStrategy)),a.resolve(!1),Zs}),lr(a=>{let s=new Yw(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),ft(a=>(this.currentTransition=n=rr(de({},a),{guards:Are(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),n)),Ure(this.environmentInjector,a=>this.events.next(a)),lr(a=>{if(n.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw lI(this.urlSerializer,a.guardsResult);let s=new Xw(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(s)}),Yt(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",Ia.GuardRejected),!1)),Mk(a=>
57{if(a.guards.canActivateChecks.length!==0)return Xe(a).pipe(lr(s=>{let o=new Qw(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(o)}),xi(s=>{let o=!1;return Xe(s).pipe(dne(this.paramsInheritanceStrategy,this.environmentInjector),lr({next:()=>o=!0,complete:()=>{o||this.cancelNavigationTransition(s,"",Ia.NoDataFromResolver)}}))}),lr(s=>{let o=new Jw(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(o)}))}),Mk(a=>{let s=o=>{let l=[];if(o.routeConfig?.loadComponent){let c=cm(o)??this.environmentInjector;l.push(this.configLoader.loadComponent(c,o.routeConfig).pipe(lr(u=>{o.component=u}),ft(()=>{})))}for(let c of o.children)l.push(...s(c));return l};return ef(s(a.targetSnapshot.root)).pipe(mC(null),Hr(1))}),Mk(()=>this.afterPreactivation()),xi(()=>{let{currentSnapshot:a,targetSnapshot:s}=n,o=this.createViewTransition?.(this.environmentInjector,a.root,s.root);return o?Bi(o).pipe(ft(()=>n)):Xe(n)}),ft(a=>{let s=Ere(t.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=n=rr(de({},a),{targetRouterState:s}),this.currentNavigation.update(o=>(o.targetRouterState=s,o)),n}),lr(()=>{this.events.next(new P0)}),Dre(this.rootContexts,t.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),Hr(1),dn(new Ot(a=>{let s=n.abortController.signal,o=()=>a.next();return s.addEventListener("abort",o),()=>s.removeEventListener("abort",o)}).pipe(Yt(()=>!i&&!n.targetRouterState),lr(()=>{this.cancelNavigationTransition(n,n.abortController.signal.reason+"",Ia.Aborted)}))),lr({next:a=>{i=!0,this.lastSuccessfulNavigation=Yr(this.currentNavigation),this.events.next(new di(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{i=!0}}),dn(this.transitionAbortWithErrorSubject.pipe(lr(a=>{throw a}))),Ec(()=>{i||this.cancelNavigationTransition(n,"",Ia.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),la(a=>{if(this.destroyed)return n.resolve(!1),Zs;if(i=!0,M6(a))this.events.next(new Jo(n.id,this.urlSerializer.serialize(n.extractedUrl),a.message,a.cancellationCode)),Sre(a)?this.events.next(new sm(a.url,a.navigationBehaviorOptions)):n.resolve(!1);else{let s=new im(n.id,this.urlSerializer.serialize(n.extractedUrl),a,n.targetSnapshot??void 0);try{let o=Le(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(o instanceof om){let{message:l,cancellationCode:c}=lI(this.urlSerializer,o);this.events.next(new Jo(n.id,this.urlSerializer.serialize(n.extractedUrl),l,c)),this.events.next(new sm(o.redirectTo,o.navigationBehaviorOptions))}else throw this.events.next(s),a}catch(o){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(o)}}return Zs}))}))}cancelNavigationTransition(t,n,i){let a=new Jo(t.id,this.urlSerializer.serialize(t.extractedUrl),n,i);this.events.next(a),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let t=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=Yr(this.currentNavigation),i=n?.targetBrowserUrl??n?.extractedUrl;return t.toString()!==i?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function vne(r){return r!==tm}var z6=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:()=>A(_ne),providedIn:"root"})}return r})(),uI=class{shouldDetach(e){return!1}store(e,t){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,t){return e.routeConfig===t.routeConfig}},_ne=(()=>{class r extends uI{static \u0275fac=(()=>{let t;return function(i){return(t||(t=Pn(r)))(i||r)}})();static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),j6=(()=>
vendor: 18,987 bytes, line 57
57{class r{urlSerializer=A(Qd);options=A(lu,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=A(Bo);urlHandlingStrategy=A(fI);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new Zo;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:t,initialUrl:n,targetBrowserUrl:i}){let a=t!==void 0?this.urlHandlingStrategy.merge(t,n):n,s=i??a;return s instanceof Zo?this.urlSerializer.serialize(s):s}commitTransition({targetRouterState:t,finalUrl:n,initialUrl:i}){n&&t?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,i),this.routerState=t):this.rawUrlTree=i}routerState=E6(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:t}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t??this.rawUrlTree)}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:()=>A(bne),providedIn:"root"})}return r})(),bne=(()=>{class r extends j6{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{t(n.url,n.state,"popstate")})})}handleRouterEvent(t,n){t instanceof ou?this.updateStateMemento():t instanceof el?this.commitTransition(n):t instanceof k0?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):t instanceof P0?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):t instanceof Jo&&t.code!==Ia.SupersededByNewNavigation&&t.code!==Ia.Redirect?this.restoreHistory(n):t instanceof im?this.restoreHistory(n,!0):t instanceof di&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,{extras:n,id:i}){let{replaceUrl:a,state:s}=n;if(this.location.isCurrentPathEqualTo(t)||a){let o=this.browserPageId,l=de(de({},s),this.generateNgRouterState(i,o));this.location.replaceState(t,"",l)}else{let o=de(de({},s),this.generateNgRouterState(i,this.browserPageId+1));this.location.go(t,"",o)}}restoreHistory(t,n=!1){if(this.canceledNavigationResolution==="computed"){let i=this.browserPageId,a=this.currentPageId-i;a!==0?this.location.historyGo(a):this.getCurrentUrlTree()===t.finalUrl&&a===0&&(this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(t),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,n){return this.canceledNavigationResolution==="computed"?{navigationId:t,\u0275routerPageId:n}:{navigationId:t}}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Pn(r)))(i||r)}})();static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function pI(r,e){r.events.pipe(Yt(t=>t instanceof di||t instanceof Jo||t instanceof im||t instanceof el),ft(t=>t instanceof di||t instanceof el?0:(t instanceof Jo?t.code===Ia.Redirect||t.code===Ia.SupersededByNewNavigation:!1)?2:1),Yt(t=>t!==2),Hr(1)).subscribe(()=>{e()})}var wne={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Ine={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},$r=(()=>{class r{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=A(EC);stateManager=A(j6);options=A(lu,{optional:!0})||{};pendingTasks=A(vF);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=A(mI);urlSerializer=A(Qd);location=A(Bo);urlHandlingStrategy=A(fI);injector=A(Ei);_events=new Ye;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=A(z6);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=A(dm,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!A(V0,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}eventsSubscription=new ai;subscribeToNavigationEvents(){let t=this.navigationTransitions.events.subscribe(n=>{try{let i=this.navigationTransitions.currentTransition,a=Yr(this.navigationTransitions.currentNavigation);if(i!==null&&a!==null){if(this.stateManager.handleRouterEvent(n,a),n instanceof Jo&&n.code!==Ia.Redirect&&n.code!==Ia.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof di)this.navigated=!0;else if(n instanceof sm){let s=n.navigationBehaviorOptions,o=this.urlHandlingStrategy.merge(n.url,i.currentRawUrl),l=de({browserUrl:i.extras.browserUrl,info:i.extras.info,skipLocationChange:i.extras.skipLocationChange,replaceUrl:i.extras.replaceUrl||this.urlUpdateStrategy==="eager"||vne(i.source)},s);this.scheduleNavigation(o,tm,null,l,{resolve:i.resolve,reject:i.reject,promise:i.promise})}}bre(n)&&this._events.next(n)}catch(i){this.navigationTransitions.transitionAbortWithErrorSubject.next(i)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),tm,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,n,i)=>{this.navigateToSyncWithBrowser(t,i,n)})}navigateToSyncWithBrowser(t,n,i){let a={replaceUrl:!0},s=i?.navigationId?i:null;if(i){let l=de({},i);delete l.navigationId,delete l.\u0275routerPageId,Object.keys(l).length!==0&&(a.state=l)}let o=this.parseUrl(t);this.scheduleNavigation(o,n,s,a).catch(l=>{this.disposed||this.injector.get(nf)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Yr(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Yk),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,n={}){let{relativeTo:i,queryParams:a,fragment:s,queryParamsHandling:o,preserveFragment:l}=n,c=l?this.currentUrlTree.fragment:s,u=null;switch(o??this.options.defaultQueryParamsHandling){case"merge":u=de(de({},this.currentUrlTree.queryParams),a);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=a||null}u!==null&&(u=this.removeEmptyProps(u));let d;try{let f=i?i.snapshot:this.routerState.snapshot.root;d=b6(f)}catch{(typeof t[0]!="string"||t[0][0]!=="/")&&(t=[]),d=this.currentUrlTree.root}return w6(d,t,u,c??null)}navigateByUrl(t,n={skipLocationChange:!1}){let i=su(t)?t:this.parseUrl(t),a=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(a,tm,null,n)}navigate(t,n={skipLocationChange:!1}){return xne(t),this.navigateByUrl(this.createUrlTree(t,n),n)}serializeUrl(t){return this.urlSerializer.serialize(t)}parseUrl(t){try{return this.urlSerializer.parse(t)}catch{return this.console.warn(Ju(4018,!1)),this.urlSerializer.parse("/")}}isActive(t,n){let i;if(n===!0?i=de({},wne):n===!1?i=de({},Ine):i=n,su(t))return t6(this.currentUrlTree,t,i);let a=this.parseUrl(t);return t6(this.currentUrlTree,a,i)}removeEmptyProps(t){return Object.entries(t).reduce((n,[i,a])=>(a!=null&&(n[i]=a),n),{})}scheduleNavigation(t,n,i,a,s){if(this.disposed)return Promise.resolve(!1);let o,l,c;s?(o=s.resolve,l=s.reject,c=s.promise):c=new Promise((d,f)=>{o=d,l=f});let u=this.pendingTasks.add();return pI(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:a,resolve:o,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function xne(r){for(let e=0;e<r.length;e++)if(r[e]==null)throw new bt(4008,!1)}var H6=(()=>{class r{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=Vr(null);get href(){return Yr(this.reactiveHref)}set href(t){this.reactiveHref.set(t)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new Ye;applicationErrorHandler=A(nf);options=A(lu,{optional:!0});constructor(t,n,i,a,s,o){this.router=t,this.route=n,this.tabIndexAttribute=i,this.renderer=a,this.el=s,this.locationStrategy=o,this.reactiveHref.set(A(new Qv("href"),{optional:!0}));let l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l==="a"||l==="area"||!!(typeof customElements=="object"&&customElements.get(l)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let t=this.preserveFragment,n=i=>i==="merge"||i==="preserve";t||=n(this.queryParamsHandling),t||=!this.queryParamsHandling&&!n(this.options?.defaultQueryParamsHandling),t&&(this.subscription=this.router.events.subscribe(i=>{i instanceof di&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(t){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(t){t==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(su(t)?this.routerLinkInput=t:this.routerLinkInput=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0"))}onClick(t,n,i,a,s){let o=this.urlTree;if(o===null||this.isAnchorElement&&(t!==0||n||i||a||s||typeof this.target=="string"&&this.target!="_self"))return!0;let l={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(o,l)?.catch(c=>{this.applicationErrorHandler(c)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let t=this.urlTree;this.reactiveHref.set(t!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t))??"":null)}applyAttributeValue(t,n){let i=this.renderer,a=this.el.nativeElement;n!==null?i.setAttribute(a,t,n):i.removeAttribute(a,t)}get urlTree(){return this.routerLinkInput===null?null:su(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(n){return new(n||r)(Ce($r),Ce(Dn),_C("tabindex"),Ce(Rr),Ce(mt),Ce(so))};static \u0275dir=He({type:r,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,i){n&1&&Gt("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),n&2&&Or("href",i.reactiveHref(),AF)("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",cr],skipLocationChange:[2,"skipLocationChange","skipLocationChange",cr],replaceUrl:[2,"replaceUrl","replaceUrl",cr],routerLink:"routerLink"},features:[En]})}return r})();var z0=class{};var $6=(()=>{class r{router;injector;preloadingStrategy;loader;subscription;constructor(t,n,i,a){this.router=t,this.injector=n,this.preloadingStrategy=i,this.loader=a}setUpPreloading(){this.subscription=this.router.events.pipe(Yt(t=>t instanceof di),Dl(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,n){let i=[];for(let a of n){a.providers&&!a._injector&&(a._injector=Gv(a.providers,t,`Route: ${a.path}`));let s=a._injector??t,o=a._loadedInjector??s;(a.loadChildren&&!a._loadedRoutes&&a.canLoad===void 0||a.loadComponent&&!a._loadedComponent)&&i.push(this.preloadConfig(s,a)),(a.children||a._loadedRoutes)&&i.push(this.processRoutes(o,a.children??a._loadedRoutes))}return Bi(i).pipe(fC())}preloadConfig(t,n){return this.preloadingStrategy.preload(n,()=>{let i;n.loadChildren&&n.canLoad===void 0?i=this.loader.loadChildren(t,n):i=Xe(null);let a=i.pipe(Ni(s=>s===null?Xe(void 0):(n._loadedRoutes=s.routes,n._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));if(n.loadComponent&&!n._loadedComponent){let s=this.loader.loadComponent(t,n);return Bi([a,s]).pipe(fC())}else return a})}static \u0275fac=function(n){return new(n||r)(ee($r),ee(Ei),ee(z0),ee(hI))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),G6=new me(""),Ene=(()=>{class r{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=tm;restoredId=0;store={};constructor(t,n,i,a,s={}){this.urlSerializer=t,this.transitions=n,this.viewportScroller=i,this.zone=a,this.options=s,s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof ou?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof di?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof el&&t.code===nm.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{if(!(t instanceof am))return;let n={behavior:"instant"};t.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],n):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(t.position,n):t.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(t.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(t,n){this.zone.runOutsideAngular(()=>m(this,null,function*(){yield new Promise(i=>{setTimeout(i),typeof requestAnimationFrame<"u"&&requestAnimationFrame(i)}),this.zone.run(()=>{this.transitions.events.next(new am(t,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){PF()};static \u0275prov=G({token:r,factory:r.\u0275fac})}return r})();function Tne(r){return r.routerState.root}function j0(r,e){return{\u0275kind:r,\u0275providers:e}}function Cne(){let r=A(X);return e=>{let t=r.get(Ml);if(e!==t.components[0])return;let n=r.get($r),i=r.get(W6);r.get(tP)===1&&n.initialNavigation(),r.get(Y6,null,{optional:!0})?.setUpPreloading(),r.get(G6,null,{optional:!0})?.init(),n.resetRootComponentType(t.componentTypes[0]),i.closed||(i.next(),i.complete(),i.unsubscribe())}}var W6=new me("",{factory:()=>new Ye}),tP=new me("",{providedIn:"root",factory:()=>1});function q6(){let r=[{provide:bC,useValue:!0},{provide:tP,useValue:0},CC(()=>{let e=A(X);return e.get(r1,Promise.resolve()).then(()=>new Promise(n=>{let i=e.get($r),a=e.get(W6);pI(i,()=>{n(!0)}),e.get(mI).afterPreactivation=()=>(n(!0),a.closed?Xe(void 0):a),i.initialNavigation()}))})];return j0(2,r)}function K6(){let r=[CC(()=>{A($r).setUpLocationChangeListener()}),{provide:tP,useValue:2}];return j0(3,r)}var Y6=new me("");function X6(r){return j0(0,[{provide:Y6,useExisting:$6},{provide:z0,useExisting:r}])}function Q6(){return j0(8,[qk,{provide:V0,useExisting:qk}])}function J6(r){xC("NgRouterViewTransitions");let e=[{provide:Qk,useValue:U6},{provide:Jk,useValue:de({skipNextTransition:!!r?.skipInitialTransition},r)}];return j0(9,e)}var Z6=[Bo,{provide:Qd,useClass:au},$r,Jd,{provide:Dn,useFactory:Tne,deps:[$r]},hI,[]],Sne=(()=>{class r{constructor(){}static forRoot(t,n){return{ngModule:r,providers:[Z6,[],{provide:dm,multi:!0,useValue:t},[],n?.errorHandler?{provide:Zk,useValue:n.errorHandler}:[],{provide:lu,useValue:n||{}},n?.useHash?Ane():Mne(),Dne(),n?.preloadingStrategy?X6(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?kne(n):[],n?.bindToComponentInputs?Q6().\u0275providers:[],n?.enableViewTransitions?J6().\u0275providers:[],Pne()]}}static forChild(t){return{ngModule:r,providers:[{provide:dm,multi:!0,useValue:t}]}}static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({})}return r})();function Dne(){return{provide:G6,useFactory:()=>{let r=A(No),e=A(Qe),t=A(lu),n=A(mI),i=A(Qd);return t.scrollOffset&&r.setOffset(t.scrollOffset),new Ene(i,n,r,e,t)}}}function Ane(){return{provide:so,useClass:c1}}function Mne(){return{provide:so,useClass:d_}}function kne(r){return[r.initialNavigation==="disabled"?K6().\u0275providers:[],r.initialNavigation==="enabledBlocking"?q6().\u0275providers:[]]}var eP=new me("");function Pne(){return[{provide:eP,useFactory:Cne},{provide:NF,multi:!0,useExisting:eP}]}
57var Rne=Math.pow(10,8)*24*60*60*1e3,BRe=-Rne,gI=6048e5,t5=864e5,yI=6e4,r5=36e5,n5=1e3;var One=3600;var i5=One*24,NRe=i5*7,Fne=i5*365.2425,Bne=Fne/12,LRe=Bne*3,rP=Symbol.for("constructDateFrom");function ur(r,e){return typeof r=="function"?r(e):r&&typeof r=="object"&&rP in r?r[rP](e):r instanceof Date?new r.constructor(e):new Date(e)}function pt(r,e){return ur(e||r,r)}function vI(r,e,t){let n=pt(r,t?.in);return isNaN(e)?ur(t?.in||r,NaN):(e&&n.setDate(n.getDate()+e),n)}var Nne={};function Rs(){return Nne}function Ai(r,e){let t=Rs(),n=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??t.weekStartsOn??t.locale?.options?.weekStartsOn??0,i=pt(r,e?.in),a=i.getDay(),s=(a<n?7:0)+a-n;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}function bo(r,e){return Ai(r,rr(de({},e),{weekStartsOn:1}))}function _I(r,e){let t=pt(r,e?.in),n=t.getFullYear(),i=ur(t,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);let a=bo(i),s=ur(t,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);let o=bo(s);return t.getTime()>=a.getTime()?n+1:t.getTime()>=o.getTime()?n:n-1}function Zd(r){let e=pt(r),t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),+r-+t}function bI(r,...e){let t=ur.bind(null,r||e.find(n=>typeof n=="object"));return e.map(t)}function nP(r,e){let t=pt(r,e?.in);return t.setHours(0,0,0,0),t}function a5(r,e,t){let[n,i]=bI(t?.in,r,e),a=nP(n),s=nP(i),o=+a-Zd(a),l=+s-Zd(s);return Math.round((o-l)/t5)}function s5(r,e){let t=_I(r,e),n=ur(e?.in||r,0);return n.setFullYear(t,0,4),n.setHours(0,0,0,0),bo(n)}function o5(r){return r instanceof Date||typeof r=="object"&&Object.prototype.toString.call(r)==="[object Date]"}function xa(r){return!(!o5(r)&&typeof r!="number"||isNaN(+pt(r)))}function l5(r){return e=>{let n=(r?Math[r]:Math.trunc)(e);return n===0?0:n}}function c5(r,e){return+pt(r)-+pt(e)}function iP(r,e,t){let n=c5(r,e)/yI;return l5(t?.roundingMethod)(n)}function u5(r,e){let t=pt(r,e?.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}var Lne={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},d5=(r,e,t)=>{let n,i=Lne[r];return typeof i=="string"?n=i:e===1?n=i.one:n=i.other.replace("{{count}}",e.toString()),t?.addSuffix?t.comparison&&t.comparison>0?"in "+n:n+" ago":n};function cu(r){return(e={})=>{let t=e.width?String(e.width):r.defaultWidth;return r.formats[t]||r.formats[r.defaultWidth]}}var Vne={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Une={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},zne={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},h5={date:cu({formats:Vne,defaultWidth:"full"}),time:cu({formats:Une,defaultWidth:"full"}),dateTime:cu({formats:zne,defaultWidth:"full"})};var jne={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},f5=(r,e,t,n)=>jne[r];function Os(r){return(e,t)=>{let n=t?.context?String(t.context):"standalone",i;if(n==="formatting"&&r.formattingValues){let s=r.defaultFormattingWidth||r.defaultWidth,o=t?.width?String(t.width):s;i=r.formattingValues[o]||r.formattingValues[s]}else{let s=r.defaultWidth,o=t?.width?String(t.width):r.defaultWidth;i=r.values[o]||r.values[s]}let a=r.argumentCallback?r.argumentCallback(e):e;return i[a]}}var Hne={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},$ne={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Gne={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Wne={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
57ay","Saturday"]},qne={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Kne={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Yne=(r,e)=>{let t=Number(r),n=t%100;if(n>20||n<10)switch(n%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},m5={ordinalNumber:Yne,era:Os({values:Hne,defaultWidth:"wide"}),quarter:Os({values:$ne,defaultWidth:"wide",argumentCallback:r=>r-1}),month:Os({values:Gne,defaultWidth:"wide"}),day:Os({values:Wne,defaultWidth:"wide"}),dayPeriod:Os({values:qne,defaultWidth:"wide",formattingValues:Kne,defaultFormattingWidth:"wide"})};function Fs(r){return(e,t={})=>{let n=t.width,i=n&&r.matchPatterns[n]||r.matchPatterns[r.defaultMatchWidth],a=e.match(i);if(!a)return null;let s=a[0],o=n&&r.parsePatterns[n]||r.parsePatterns[r.defaultParseWidth],l=Array.isArray(o)?Qne(o,d=>d.test(s)):Xne(o,d=>d.test(s)),c;c=r.valueCallback?r.valueCallback(l):l,c=t.valueCallback?t.valueCallback(c):c;let u=e.slice(s.length);return{value:c,rest:u}}}function Xne(r,e){for(let t in r)if(Object.prototype.hasOwnProperty.call(r,t)&&e(r[t]))return t}function Qne(r,e){for(let t=0;t<r.length;t++)if(e(r[t]))return t}function wI(r){return(e,t={})=>{let n=e.match(r.matchPattern);if(!n)return null;let i=n[0],a=e.match(r.parsePattern);if(!a)return null;let s=r.valueCallback?r.valueCallback(a[0]):a[0];s=t.valueCallback?t.valueCallback(s):s;let o=e.slice(i.length);return{value:s,rest:o}}}var Jne=/^(\d+)(th|st|nd|rd)?/i,Zne=/\d+/i,eie={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},tie={any:[/^b/i,/^(a|c)/i]},rie={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},nie={any:[/1/i,/2/i,/3/i,/4/i]},iie={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},aie={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},sie={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},oie={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},lie={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},cie={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},p5={ordinalNumber:wI({matchPattern:Jne,parsePattern:Zne,valueCallback:r=>parseInt(r,10)}),era:Fs({matchPatterns:eie,defaultMatchWidth:"wide",parsePatterns:tie,defaultParseWidth:"any"}),quarter:Fs({matchPatterns:rie,defaultMatchWidth:"wide",parsePatterns:nie,defaultParseWidth:"any",valueCallback:r=>r+1}),month:Fs({matchPatterns:iie,defaultMatchWidth:"wide",parsePatterns:aie,defaultParseWidth:"any"}),day:Fs({matchPatterns:sie,defaultMatchWidth:"wide",parsePatterns:oie,defaultParseWidth:"any"}),dayPeriod:Fs({matchPatterns:lie,defaultMatchWidth:"any",parsePatterns:cie,defaultParseWidth:"any"})};var H0={code:"en-US",formatDistance:d5,formatLong:h5,formatRelative:f5,localize:m5,match:p5,options:{weekStartsOn:0,firstWeekContainsDate:1}};function g5(r,e){let t=pt(r,e?.in);return a5(t,u5(t))+1}function II(r,e){let t=pt(r,e?.in),n=+bo(t)-+s5(t);return Math.round(n/gI)+1}function hm(r,e){let t=pt(r,e?.in),n=t.getFullYear(),i=Rs(),a=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,s=ur(e?.in||r,0);s.setFullYear(n+1,0,a),s.setHours(0,0,0,0);let o=Ai(s,e),l=ur(e?.in||r,0);l.setFullYear(n,0,a),l.setHours(0,0,0,0);let c=Ai(l,e);return+t>=+o?n+1:+t>=+c?n:n-1}function y5(r,e){let t=Rs(),n=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??t.firstWeekContainsDate??t.locale?.options?.firstWeekContainsDate??1,i=hm(r,e),a=ur(e?.in||r,0);return a.setFullYear(i,0,n),a.setHours(0,0,0,0),Ai(a,e)}function xI(r,e){let t=pt(r,e?.in),n=+Ai(t,e)-+y5(t,e);return Math.round(n/gI)+1}function vr(r,e){let t=r<0?"-":"",n=Math.abs(r).toString().padStart(e,"0");return t+n}var rc={y(r,e){let t=r.getFullYear(),n=t>0?t:1-t;return vr(e==="yy"?n%100:n,e.length)},M(r,e){let t=r.getMonth();return e==="M"?String(t+1):vr(t+1,2)},d(r,e){return vr(r.getDate(),e.length)},a(r,e){let t=r.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(r,e){return vr(r.getHours()%12||12,e.length)},H(r,e){return vr(r.getHours(),e.length)},m(r,e){return vr(r.getMinutes(),e.length)},s(r,e){return vr(r.getSeconds(),e.length)},S(r,e){let t=e.length,n=r.getMilliseconds(),i=Math.trunc(n*Math.pow(10,t-3));return vr(i,e.length)}};var fm={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},aP={G:function(r,e,t){let n=r.getFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return t.era(n,{width:"abbreviated"});case"GGGGG":return t.era(n,{width:"narrow"});case"GGGG":default:return t.era(n,{width:"wide"})}},y:function(r,e,t){if(e==="yo"){let n=r.getFullYear(),i=n>0?n:1-n;return t.ordinalNumber(i,{unit:"year"})}return rc.y(r,e)},Y:function(r,e,t,n){let i=hm(r,n),a=i>0?i:1-i;if(e==="YY"){let s=a%100;return vr(s,2)}return e==="Yo"?t.ordinalNumber(a,{unit:"year"}):vr(a,e.length)},R:function(r,e){let t=_I(r);return vr(t,e.length)},u:function(r,e){let t=r.getFullYear();return vr(t,e.length)},Q:function(r,e,t){let n=Math.ceil((r.getMonth()+1)/3);switch(e){case"Q":return String(n);case"QQ":return vr(n,2);case"Qo":return t.ordinalNumber(n,{unit:"quarter"});case"QQQ":return t.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(n,{width:"wide",context:"formatting"})}},q:function(r,e,t){let n=Math.ceil((r.getMonth()+1)/3);switch(e){case"q":return String(n);case"qq":return vr(n,2);case"qo":return t.ordinalNumber(n,{unit:"quarter"});case"qqq":return t.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(n,{width:"wide",context:"standalone"})}},M:function(r,e,t){let n=r.getMonth();switch(e){case"M":case"MM":return rc.M(r,e);case"Mo":return t.ordinalNumber(n+1,{unit:"month"});case"MMM":return t.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(n,{width:"wide",context:"formatting"})}},L:function(r,e,t){let n=r.getMonth();switch(e){case"L":return String(n+1);case"LL":return vr(n+1,2);case"Lo":return t.ordinalNumber(n+1,{unit:"month"});case"LLL":return t.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(n,{width:"wide",context:"standalone"})}},w:function(r,e,t,n){let i=xI(r,n);return e==="wo"?t.ordinalNumber(i,{unit:"week"}):vr(i,e.length)},I:function(r,e,t){let n=II(r);return e==="Io"?t.ordinalNumber(n,{unit:"week"}):vr(n,e.length)},d:function(r,e,t){return e==="do"?t.ordinalNumber(r.getDate(),{unit:"date"}):rc.d(r,e)},D:function(r,e,t){let n=g5(r);return e==="Do"?t.ordinalNumber(n,{unit:"dayOfYear"}):vr(n,e.length)},E:function(r,e,t){let n=r.getDay();switch(e){case"E":case"EE":case"EEE":return t.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(n,{width:"short",context:"formatting"});case"EEEE":default:return t.day(n,{width:"wide",context:"formatting"})}},e:function(r,e,t,n){let i=r.getDay(),a=(i-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(a);case"ee":return vr(a,2);case"eo":return t.ordinalNumber(a,{unit:"day"});case"eee":return t.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(i,{width:"short",context:"formatting"});case"eeee":default:return t.day(i,{width:"wide",context:"formatting"})}},c:function(r,e,t,n){let i=r.getDay(),a=(i-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(a);case"cc":return vr(a,e.length);case"co":return t.ordinalNumber(a,{unit:"day"});case"ccc":return t.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(i,{width:"narrow",context:"standalone"});case"cccccc":return t.day(i,{width:"short",context:"standalone"});case"cccc":default:return t.day(i,{width:"wide",context:"standalone"})}},i:function(r,e,t){let n=r.getDay(),i=n===0?7:n;switch(e){case"i":return String(i);case"ii":return vr(i,e.length);case"io":return t.ordinalNumber(i,{unit:"day"});case"iii":return t.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(n,{width:"short",context:"formatting"});case"iiii":default:return t.day(n,{width:"wide",context:"formatting"})}},a:function(r,e,t){let i=r.getHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(r,e,t){let n=r.getHours(),i;switch(n===12?i=fm.noon:n===0?i=fm.midnight:i=n/12>
57=1?"pm":"am",e){case"b":case"bb":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(r,e,t){let n=r.getHours(),i;switch(n>=17?i=fm.evening:n>=12?i=fm.afternoon:n>=4?i=fm.morning:i=fm.night,e){case"B":case"BB":case"BBB":return t.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(r,e,t){if(e==="ho"){let n=r.getHours()%12;return n===0&&(n=12),t.ordinalNumber(n,{unit:"hour"})}return rc.h(r,e)},H:function(r,e,t){return e==="Ho"?t.ordinalNumber(r.getHours(),{unit:"hour"}):rc.H(r,e)},K:function(r,e,t){let n=r.getHours()%12;return e==="Ko"?t.ordinalNumber(n,{unit:"hour"}):vr(n,e.length)},k:function(r,e,t){let n=r.getHours();return n===0&&(n=24),e==="ko"?t.ordinalNumber(n,{unit:"hour"}):vr(n,e.length)},m:function(r,e,t){return e==="mo"?t.ordinalNumber(r.getMinutes(),{unit:"minute"}):rc.m(r,e)},s:function(r,e,t){return e==="so"?t.ordinalNumber(r.getSeconds(),{unit:"second"}):rc.s(r,e)},S:function(r,e){return rc.S(r,e)},X:function(r,e,t){let n=r.getTimezoneOffset();if(n===0)return"Z";switch(e){case"X":return _5(n);case"XXXX":case"XX":return eh(n);case"XXXXX":case"XXX":default:return eh(n,":")}},x:function(r,e,t){let n=r.getTimezoneOffset();switch(e){case"x":return _5(n);case"xxxx":case"xx":return eh(n);case"xxxxx":case"xxx":default:return eh(n,":")}},O:function(r,e,t){let n=r.getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+v5(n,":");case"OOOO":default:return"GMT"+eh(n,":")}},z:function(r,e,t){let n=r.getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+v5(n,":");case"zzzz":default:return"GMT"+eh(n,":")}},t:function(r,e,t){let n=Math.trunc(+r/1e3);return vr(n,e.length)},T:function(r,e,t){return vr(+r,e.length)}};function v5(r,e=""){let t=r>0?"-":"+",n=Math.abs(r),i=Math.trunc(n/60),a=n%60;return a===0?t+String(i):t+String(i)+e+vr(a,2)}function _5(r,e){return r%60===0?(r>0?"-":"+")+vr(Math.abs(r)/60,2):eh(r,e)}function eh(r,e=""){let t=r>0?"-":"+",n=Math.abs(r),i=vr(Math.trunc(n/60),2),a=vr(n%60,2);return t+i+e+a}var b5=(r,e)=>{switch(r){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},w5=(r,e)=>{switch(r){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},uie=(r,e)=>{let t=r.match(/(P+)(p+)?/)||[],n=t[1],i=t[2];if(!i)return b5(r,e);let a;switch(n){case"P":a=e.dateTime({width:"short"});break;case"PP":a=e.dateTime({width:"medium"});break;case"PPP":a=e.dateTime({width:"long"});break;case"PPPP":default:a=e.dateTime({width:"full"});break}return a.replace("{{date}}",b5(n,e)).replace("{{time}}",w5(i,e))},$0={p:w5,P:uie};var die=/^D+$/,hie=/^Y+$/,fie=["D","DD","YY","YYYY"];function EI(r){return die.test(r)}function TI(r){return hie.test(r)}function G0(r,e,t){let n=mie(r,e,t);if(console.warn(n),fie.includes(r))throw new RangeError(n)}function mie(r,e,t){let n=r[0]==="Y"?"years":"days of the month";return`Use \`${r.toLowerCase()}\` instead of \`${r}\` (in \`${e}\`) for formatting ${n} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var pie=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,gie=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,yie=/^'([^]*?)'?$/,vie=/''/g,_ie=/[a-zA-Z]/;function ti(r,e,t){let n=Rs(),i=t?.locale??n.locale??H0,a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,s=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,o=pt(r,t?.in);if(!xa(o))throw new RangeError("Invalid time value");let l=e.match(gie).map(u=>{let d=u[0];if(d==="p"||d==="P"){let f=$0[d];return f(u,i.formatLong)}return u}).join("").match(pie).map(u=>{if(u==="''")return{isToken:!1,value:"'"};let d=u[0];if(d==="'")return{isToken:!1,value:bie(u)};
vendor: 10,217 bytes, line 57
57if(aP[d])return{isToken:!0,value:u};if(d.match(_ie))throw new RangeError("Format string contains an unescaped latin alphabet character `"+d+"`");return{isToken:!1,value:u}});i.localize.preprocessor&&(l=i.localize.preprocessor(o,l));let c={firstWeekContainsDate:a,weekStartsOn:s,locale:i};return l.map(u=>{if(!u.isToken)return u.value;let d=u.value;(!t?.useAdditionalWeekYearTokens&&TI(d)||!t?.useAdditionalDayOfYearTokens&&EI(d))&&G0(d,e,String(r));let f=aP[d[0]];return f(o,d,i.localize,c)}).join("")}function bie(r){let e=r.match(yie);return e?e[1].replace(vie,"'"):r}function I5(){return Object.assign({},Rs())}function x5(r,e){let t=pt(r,e?.in).getDay();return t===0?7:t}function E5(r,e){let t=wie(e)?new e(0):ur(e,0);return t.setFullYear(r.getFullYear(),r.getMonth(),r.getDate()),t.setHours(r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()),t}function wie(r){return typeof r=="function"&&r.prototype?.constructor===r}var Iie=10,CI=class{subPriority=0;validate(e,t){return!0}},SI=class extends CI{constructor(e,t,n,i,a){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=i,a&&(this.subPriority=a)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},DI=class extends CI{priority=Iie;subPriority=-1;constructor(e,t){super(),this.context=e||(n=>ur(t,n))}set(e,t){return t.timestampIsSet?e:ur(e,E5(e,this.context))}};var it=class{run(e,t,n,i){let a=this.parse(e,t,n,i);return a?{setter:new SI(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}validate(e,t,n){return!0}};var AI=class extends it{priority=140;parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});case"GGGG":default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["R","u","t","T"]};var sr={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Bs={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Ir(r,e){return r&&{value:e(r.value),rest:r.rest}}function ir(r,e){let t=e.match(r);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function Ns(r,e){let t=e.match(r);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};let n=t[1]==="+"?1:-1,i=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,s=t[5]?parseInt(t[5],10):0;return{value:n*(i*r5+a*yI+s*n5),rest:e.slice(t[0].length)}}function MI(r){return ir(sr.anyDigitsSigned,r)}function Ft(r,e){switch(r){case 1:return ir(sr.singleDigit,e);case 2:return ir(sr.twoDigits,e);case 3:return ir(sr.threeDigits,e);case 4:return ir(sr.fourDigits,e);default:return ir(new RegExp("^\\d{1,"+r+"}"),e)}}function mm(r,e){switch(r){case 1:return ir(sr.singleDigitSigned,e);case 2:return ir(sr.twoDigitsSigned,e);case 3:return ir(sr.threeDigitsSigned,e);case 4:return ir(sr.fourDigitsSigned,e);default:return ir(new RegExp("^-?\\d{1,"+r+"}"),e)}}function pm(r){switch(r){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function kI(r,e){let t=e>0,n=t?e:1-e,i;if(n<=50)i=r||100;else{let a=n+50,s=Math.trunc(a/100)*100,o=r>=a%100;i=r+s-(o?100:0)}return t?i:1-i}function PI(r){return r%400===0||r%4===0&&r%100!==0}var RI=class extends it{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(e,t,n){let i=a=>({year:a,isTwoDigitYear:t==="yy"});switch(t){case"y":return Ir(Ft(4,e),i);case"yo":return Ir(n.ordinalNumber(e,{unit:"year"}),i);default:return Ir(Ft(t.length,e),i)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){let i=e.getFullYear();if(n.isTwoDigitYear){let s=kI(n.year,i);return e.setFullYear(s,0,1),e.setHours(0,0,0,0),e}let a=!("era"in t)||t.era===1?n.year:1-n.year;return e.setFullYear(a,0,1),e.setHours(0,0,0,0),e}};var OI=class extends it{priority=130;parse(e,t,n){let i=a=>({year:a,isTwoDigitYear:t==="YY"});switch(t){case"Y":return Ir(Ft(4,e),i);case"Yo":return Ir(n.ordinalNumber(e,{unit:"year"}),i);default:return Ir(Ft(t.length,e),i)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,i){let a=hm(e,i);if(n.isTwoDigitYear){let o=kI(n.year,a);return e.setFullYear(o,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),Ai(e,i)}let s=!("era"in t)||t.era===1?n.year:1-n.year;return e.setFullYear(s,0,i.firstWeekContainsDate),e.setHours(0,0,0,0),Ai(e,i)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var FI=class extends it{priority=130;parse(e,t){return t==="R"?mm(4,e):mm(t.length,e)}set(e,t,n){let i=ur(e,0);return i.setFullYear(n,0,4),i.setHours(0,0,0,0),bo(i)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var BI=class extends it{priority=130;parse(e,t){return t==="u"?mm(4,e):mm(t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var NI=class extends it{priority=120;parse(e,t,n){switch(t){case"Q":case"QQ":return Ft(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var LI=class extends it{priority=120;parse(e,t,n){switch(t){case"q":case"qq":return Ft(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var VI=class extends it{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(e,t,n){let i=a=>a-1;switch(t){case"M":return Ir(ir(sr.month,e),i);case"MM":return Ir(Ft(2,e),i);case"Mo":return Ir(n.ordinalNumber(e,{unit:"month"}),i);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}};var UI=class extends it{priority=110;parse(e,t,n){let i=a=>a-1;switch(t){case"L":return Ir(ir(sr.month,e),i);case"LL":return Ir(Ft(2,e),i);case"Lo":return Ir(n.ordinalNumber(e,{unit:"month"}),i);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function T5(r,e,t){let n=pt(r,t?.in),i=xI(n,t)-e;return n.setDate(n.getDate()-i*7),pt(n,t?.in)}var zI=class extends it{priority=100;parse(e,t,n){switch(t){case"w":return ir(sr.week,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return Ft(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,i){return Ai(T5(e,n,i),i)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function C5(r,e,t){let n=pt(r,t?.in),i=II(n,t)-e;return n.setDate(n.getDate()-i*7),n}var jI=class extends it{priority=100;parse(e,t,n){switch(t){case"I":return ir(sr.week,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return Ft(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return bo(C5(e,n))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var xie=[31,28,31,30,31,30,31,31,30,31,30,31],Eie=[31,29,31,30,31,30,31,31,30,31,30,31],HI=class extends it{priority=90;subPriority=1;parse(e,t,n){switch(t){case"d":return ir(sr.date,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return Ft(t.length,e)}}validate(e,t){let n=e.getFullYear(),i=PI(n),a=e.getMonth();return i?t>=1&&t<=Eie[a]:t>=1&&t<=xie[a]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var $I=class extends it{priority=90;subpriority=1;parse(e,t,n){switch(t){case"D":case"DD":return ir(sr.dayOfYear,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return Ft(t.length,e)}}validate(e,t){let n=e.getFullYear();return PI(n)?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};
57function gm(r,e,t){let n=Rs(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,a=pt(r,t?.in),s=a.getDay(),l=(e%7+7)%7,c=7-i,u=e<0||e>6?e-(s+c)%7:(l+c)%7-(s+c)%7;return vI(a,u,t)}var GI=class extends it{priority=90;parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEE":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,i){return e=gm(e,n,i),e.setHours(0,0,0,0),e}incompatibleTokens=["D","i","e","c","t","T"]};var WI=class extends it{priority=90;parse(e,t,n,i){let a=s=>{let o=Math.floor((s-1)/7)*7;return(s+i.weekStartsOn+6)%7+o};switch(t){case"e":case"ee":return Ir(Ft(t.length,e),a);case"eo":return Ir(n.ordinalNumber(e,{unit:"day"}),a);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeee":default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,i){return e=gm(e,n,i),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var qI=class extends it{priority=90;parse(e,t,n,i){let a=s=>{let o=Math.floor((s-1)/7)*7;return(s+i.weekStartsOn+6)%7+o};switch(t){case"c":case"cc":return Ir(Ft(t.length,e),a);case"co":return Ir(n.ordinalNumber(e,{unit:"day"}),a);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"cccc":default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,i){return e=gm(e,n,i),e.setHours(0,0,0,0),e}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function S5(r,e,t){let n=pt(r,t?.in),i=x5(n,t),a=e-i;return vI(n,a,t)}var KI=class extends it{priority=90;parse(e,t,n){let i=a=>a===0?7:a;switch(t){case"i":case"ii":return Ft(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return Ir(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i);case"iiiii":return Ir(n.day(e,{width:"narrow",context:"formatting"}),i);case"iiiiii":return Ir(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i);case"iiii":default:return Ir(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),i)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=S5(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var YI=class extends it{priority=80;parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(pm(n),0,0,0),e}incompatibleTokens=["b","B","H","k","t","T"]};var XI=class extends it{priority=80;
57parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(pm(n),0,0,0),e}incompatibleTokens=["a","B","H","k","t","T"]};var QI=class extends it{priority=80;parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setHours(pm(n),0,0,0),e}incompatibleTokens=["a","b","t","T"]};var JI=class extends it{priority=70;parse(e,t,n){switch(t){case"h":return ir(sr.hour12h,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return Ft(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){let i=e.getHours()>=12;return i&&n<12?e.setHours(n+12,0,0,0):!i&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["H","K","k","t","T"]};var ZI=class extends it{priority=70;parse(e,t,n){switch(t){case"H":return ir(sr.hour23h,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return Ft(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=["a","b","h","K","k","t","T"]};var ex=class extends it{priority=70;parse(e,t,n){switch(t){case"K":return ir(sr.hour11h,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return Ft(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=["h","H","k","t","T"]};var tx=class extends it{priority=70;parse(e,t,n){switch(t){case"k":return ir(sr.hour24h,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return Ft(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){let i=n<=24?n%24:n;return e.setHours(i,0,0,0),e}incompatibleTokens=["a","b","h","H","K","t","T"]};var rx=class extends it{priority=60;parse(e,t,n){switch(t){case"m":return ir(sr.minute,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return Ft(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=["t","T"]};var nx=class extends it{priority=50;parse(e,t,n){switch(t){case"s":return ir(sr.second,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return Ft(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=["t","T"]};var ix=class extends it{priority=30;parse(e,t){let n=i=>Math.trunc(i*Math.pow(10,-t.length+3));return Ir(Ft(t.length,e),n)}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=["t","T"]};var ax=class extends it{priority=10;parse(e,t){switch(t){case"X":return Ns(Bs.basicOptionalMinutes,e);case"XX":return Ns(Bs.basic,e);case"XXXX":return Ns(Bs.basicOptionalSeconds,e);case"XXXXX":return Ns(Bs.extendedOptionalSeconds,e);case"XXX":default:return Ns(Bs.extended,e)}}set(e,t,n){return t.timestampIsSet?e:ur(e,e.getTime()-Zd(e)-n)}incompatibleTokens=["t","T","x"]};var sx=class extends it{priority=10;parse(e,t){switch(t){case"x":return Ns(Bs.basicOptionalMinutes,e);case"xx":return Ns(Bs.basic,e);case"xxxx":return Ns(Bs.basicOptionalSeconds,e);case"xxxxx":return Ns(Bs.extendedOptionalSeconds,e);case"xxx":default:return Ns(Bs.extended,e)}}set(e,t,n){return t.timestampIsSet?e:ur(e,e.getTime()-Zd(e)-n)}incompatibleTokens=["t","T","X"]};var ox=class extends it{priority=40;parse(e){return MI(e)}set(e,t,n){return[ur(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var lx=class extends it{priority=20;parse(e){return MI(e)}set(e,t,n){return[ur(e,n),{timestampIsSet:!0}]}incompatibleTokens="*"};
vendor: 2,125 bytes, line 57
57var D5={G:new AI,y:new RI,Y:new OI,R:new FI,u:new BI,Q:new NI,q:new LI,M:new VI,L:new UI,w:new zI,I:new jI,d:new HI,D:new $I,E:new GI,e:new WI,c:new qI,i:new KI,a:new YI,b:new XI,B:new QI,h:new JI,H:new ZI,K:new ex,k:new tx,m:new rx,s:new nx,S:new ix,X:new ax,x:new sx,t:new ox,T:new lx};var Tie=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Cie=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Sie=/^'([^]*?)'?$/,Die=/''/g,Aie=/\S/,Mie=/[a-zA-Z]/;function A5(r,e,t,n){let i=()=>ur(n?.in||t,NaN),a=I5(),s=n?.locale??a.locale??H0,o=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,l=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(!e)return r?i():pt(t,n?.in);let c={firstWeekContainsDate:o,weekStartsOn:l,locale:s},u=[new DI(n?.in,t)],d=e.match(Cie).map(v=>{let T=v[0];if(T in $0){let C=$0[T];return C(v,s.formatLong)}return v}).join("").match(Tie),f=[];for(let v of d){!n?.useAdditionalWeekYearTokens&&TI(v)&&G0(v,e,r),!n?.useAdditionalDayOfYearTokens&&EI(v)&&G0(v,e,r);let T=v[0],C=D5[T];if(C){let{incompatibleTokens:x}=C;if(Array.isArray(x)){let q=f.find(V=>x.includes(V.token)||V.token===T);if(q)throw new RangeError(`The format string mustn't contain \`${q.fullToken}\` and \`${v}\` at the same time`)}else if(C.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${v}\` and any other token at the same time`);f.push({token:T,fullToken:v});let B=C.run(r,v,s.match,c);if(!B)return i();u.push(B.setter),r=B.rest}else{if(T.match(Mie))throw new RangeError("Format string contains an unescaped latin alphabet character `"+T+"`");if(v==="''"?v="'":T==="'"&&(v=kie(v)),r.indexOf(v)===0)r=r.slice(v.length);else return i()}}if(r.length>0&&Aie.test(r))return i();let p=u.map(v=>v.priority).sort((v,T)=>T-v).filter((v,T,C)=>C.indexOf(v)===T).map(v=>u.filter(T=>T.priority===v).sort((T,C)=>C.subPriority-T.subPriority)).map(v=>v[0]),g=pt(t,n?.in);if(isNaN(+g))return i();let y={};for(let v of p){if(!v.validate(g,c))return i();let T=v.set(g,y,c);
57Array.isArray(T)?(g=T[0],Object.assign(y,T[1])):g=T}return g}function kie(r){return r.match(Sie)[1].replace(Die,"'")}function sP(r,e,t){let[n,i]=bI(t?.in,r,e);return+Ai(n,t)==+Ai(i,t)}var th={production:!0,firebaseConfig:{apiKey:"AIzaSyAyiOj5HPbwul-S_khq_j-AeVoloKx-2DU",authDomain:"baldan-636b6.firebaseapp.com",projectId:"baldan-636b6",storageBucket:"baldan-636b6.appspot.com",messagingSenderId:"229762678515",appId:"1:229762678515:web:ef84d956907c714b728186",measurementId:"G-RZTVR8K6F4"}};var cx=class r{constructor(e){}showDebugToken(){return!1}getPublicRecaptchaEnterprise(){}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var ym=class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=G({token:r,factory:e=>cx.\u0275fac(e),providedIn:"root"})};var ue=class r{id;label;order;constructor(e,t,n,i){e!=null?(this.id=Number(e),this.label=this.getNameByEnum(e).toString(),this.order=this.getOrderByEnum(e)):(t!=null&&(this.id=t),n&&(this.label=n),i&&(this.order=i))}translation;loaded=!1;loading=!1;setTranslation(e){return m(this,null,function*(){this.translation||this.loaded||this.loading||(this.loading=!0,this.translation=e.translate?.global,this.loaded=!0,this.loading=!1)})}getIdAsNumber(){return this.id}getList(e,t,n,i){i&&this.setTranslation(i);let a=this.getEnumValues(),s=[],o=0,l=0;return a.forEach(c=>{let u=this.getInstance(c);u.translation=this.translation,u.label=this.getNameByEnum(c),typeof c=="string"&&((this.visible(c)||n)&&(u.id=l,s[o]=u,o++),l++)}),s.sort((c,u)=>{if(c.order!==void 0&&u.order!==void 0&&c.order!==-1&&u.order!==-1){if(c.order>u.order)return 1}else{if(c.order!==void 0&&c.order!==-1)return c.order;if(u.order!==void 0&&u.order!==-1)return u.order;if(c.getName()>u.getName())return 1}return-1}),(e==null||e)&&s.unshift(this.getInstanceAll()),t&&s.unshift(this.getInstanceSelection()),s}getInstanceAll(){return this.getInstance(void 0,r.getAllId(),this.translation?.base_list?.tutti??"Tutti")}getInstanceSelection(){return this.getInstance(void 0,r.getAllId(),this.translation?.base_list?.seleziona??"-- Seleziona --")}static getAllId(){return-1}getClass(){var e=this.id;let t=this.getEnumValues(),n=null,i=0;for(let a of t){if(n=this.getInstance(a),i===Number(e)){n.id=i;break}i++}return n}getEnum(){var e=this.getEnumValues();return e[Number(this.id)+e.length/2]}getNameSystem(){var e=this.getEnumValues();return e[Number(this.id)]}getName(){if(this.label)return this.label;var e=this.id;return e!=null?this.getNameByEnum(Number(e)):""}getStyle(){return{color:"#fff","background-color":this.getColorByEnum(this.id)}}getInstance(e,t,n,i){throw new Error("getInstance not Implemented")}getEnumValues(){return Object.values(r)}getNameByEnum(e){return"error role name"}getOrderByEnum(e){return-1}visible(e){return!0}getColorByEnum(e){return e==r.getAllId()?"#000000de":"#ffffff"}getColor(){return this.getColorByEnum(this.id)}getIconByEnum(e){return""}getIcon(){return this.getIconByEnum(this.id)}getImageByEnum(e){return""}getImage(){return this.getImageByEnum(this.id)}getTooltipTextByEnum(e){return""}getTooltipText(){return this.getTooltipTextByEnum(this.id)}};var uu=(c=>(c[c.Email=0]="Email",c[c.Phone=1]="Phone",c[c.Google=2]="Google",c[c.Facebook=3]="Facebook",c[c.Twitter=4]="Twitter",c[c.Github=5]="Github",c[c.Apple=6]="Apple",c[c.Yahoo=7]="Yahoo",c[c.Microsoft=8]="Microsoft",c))(uu||{}),tl=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(uu)}getNameByEnum(e){let t=Object.values(uu);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error role name"}visible(e){let t=Object.values(uu);return!0}getColorByEnum(e){return"#005e83"}getProviderName(e){let t=Object.values(uu);switch(e){case t[0]:case 0:return"password";case t[1]:case 1:return"phone";case t[2]:case 2:return"google.com";case t[3]:case 3:return"facebook.com";case t[4]:case 4:return"twitter.com";case t[5]:case 5:return"github.com";case t[6]:case 6:return"apple.com";
57case t[7]:case 7:return"yahoo.com";case t[8]:case 8:return"microsoft.com";default:return""}}};var du=(n=>(n[n.SuperAdmin=0]="SuperAdmin",n[n.Admin=1]="Admin",n[n.Utente=2]="Utente",n))(du||{}),nc=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(du)}getList(e,t,n){var i=super.getList(e,t,n);return i=i.filter(a=>a.id!==0 .valueOf()),i}getNameByEnum(e){let t=Object.values(du);switch(e){case t[0]:case 0:return"Super Admin";case t[1]:case 1:return"Admin";case t[2]:case 2:return"Utente";default:return"error role name"}}visible(e){let t=Object.values(du);return!0}getColorByEnum(e){return e==ue.getAllId()?"#000000de":"#005e83"}};function M5(r){return r==="totp"||r==="sms"||r==="both"}function ux(r){return r==="email-otp"}function OLe(r){return r==="totp"||r==="both"}function FLe(r){return r==="sms"||r==="both"}var dx=class r{constructor(e){this.injector=e}getRoleClass(e,t,n){return new nc(void 0).getList(e,t,n)}getNameRole(e){return new nc(e).getName()}getRoleStyle(e){return new nc(e).getStyle()}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var vm=class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=G({token:r,factory:e=>dx.\u0275fac(e),providedIn:"root"})};var hu=class r{constructor(e){this.injector=e;this.functions=e.get(mn),this.originImpl=e.get(Xt)}functions;originImpl;sendErrorEmail(e,t){return new Promise((n,i)=>{Ht(this.functions,"sendErrorEmailCallV2")({object:e,message:t}).then(o=>m(this,null,function*(){let l=o.data;l.success?n(l.data):i(l.message)})).catch(o=>{pe.checkFunctionCorsError(o,this.injector,"sendErrorEmailCallV2"),console.error("sendErrorEmailCall error",o),i(o)})})}sendEmail(e,t,n,i,a,s){return new Promise((o,l)=>{Ht(this.functions,"sendEmailCallV2")({to:e,object:t,body:n,template:i,templateData:JSON.stringify(a),sendAdmin:s}).then(d=>m(this,null,function*(){let f=d.data;f.success?o(f.data):l(f.message)})).catch(d=>{pe.checkFunctionCorsError(d,this.injector,"sendEmailCallV2"),console.error("sendEmailCall error",d),l(d)})})}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var br=class r{constructor(e){this.injector=e;this.originImpl=this.injector.get(Xt),this.titleService=this.injector.get(zw),this.meta=this.injector.get(ZU),this.router=this.injector.get($r),this.activatedRoute=this.injector.get(Dn),this.location=this.injector.get(pa),this._document=e.get(Je),this.platformId=e.get(hn)}titleService;meta;router;activatedRoute;location;_document;platformId;originImpl;isPlatformBrowser(){return!!Si(this.platformId)}getBaseUrl(){return`${this.location.protocol}//${this.location.hostname}`}getUrlComplete(){return`${this.location.pathname}`}getUrlCompleteWithParams(){return`${this.location.pathname}${this.location.search}`}addMetaTag(e,t){this.meta.addTag({name:e,content:t})}updateMetaTag(e,t){this.meta.updateTag({name:e,content:t})}updateMetaOG(e,t){this.meta.updateTag({property:e,content:t})}setNoIndex(){this.updateMetaTag("robots","noindex"),this.updateMetaTag("googlebot","noindex")}updateTitle(e){e?this.titleService.setTitle(e):this.router.events.pipe(Yt(t=>t instanceof di),ft(()=>this.activatedRoute),ft(t=>{for(;t.firstChild;)t=t.firstChild;return t}),Yt(t=>t.outlet==="primary"),Ni(t=>t.data)).subscribe(t=>{this.titleService.setTitle(t.title)})}setMetaDataBySeo(e,t){e&&(this.updateTitle(e?.title),this.updateMetaTag("description",e.description),this.updateMetaOG("og:title",e?.og_title),this.updateMetaOG("og:description",e?.og_description),e?.og_image?.isEmpty()?t&&this.updateMetaOG("og:image",t):this.updateMetaOG("og:image",e?.og_image?.url),this.setCanonicalURL())}removeNGLocalHost(e){let t=this.originImpl.getDomainSite();if(!t)return e;let n=t.endsWith("/")?t.substring(0,t.length-1):t;try{let i=new URL(e).origin;return n+e.substring(i.length)}catch{return e}}setCanonicalURL(){this.destroyLinkForCanonicalURL();let e=this._document.URL.split("?")[0];e=this.removeNGLocalHost(e),e=e.endsWith("/")?e:e+"/";let t=this._document.createElement("link");t.setAttribute("rel","canonical"),this._document.head.appendChild(t),t.setAttribute("href",e)}removePreLoading(){let e=this._document.querySelectorAll(".app-initializer");console.log("removePreLoading els",e.length);for(let t=0,n=e.length;t<n;t++)e[t].remove()}
57destroyLinkForCanonicalURL(){let e=this._document.querySelectorAll("link[rel='canonical']");for(let t=0,n=e.length;t<n;t++)e[t].remove()}addCustomScriptToHead(e,t){return e.appendChild(this._document.head,t),t}addScriptToHead(e,t,n,i="text/javascript",a){let s=e.createElement("script");if(s.type=i,s.async=!0,s.charset="utf-8",t!==void 0&&(s.src=`${t}`),n!==void 0&&(s.text=`${n}`),a!==void 0)for(var o in a){var l=a[o];s.setAttribute(o,l)}return this._document.head.querySelector(`script[src="${t}"]`)||e.appendChild(this._document.head,s),s}addScriptBySchemaOrg(e,t){t?.haveCode()&&this.addScriptToHead(e,void 0,t.code,"application/ld+json")}addScriptToBody(e,t,n,i="text/javascript",a,s){let o=e.createElement("script");if(o.type=i,o.async=!0,o.charset="utf-8",t!==void 0&&(o.src=`${t}`),n!==void 0&&(o.text=`${n}`),a!==void 0)for(var l in a){var c=a[l];o.setAttribute(l,c)}var u;return s&&(u=this._document.getElementById(s)),e.appendChild(u??this._document.body,o),o}removeScriptToHead(e,t){t!=null&&e.removeChild(this._document.head,t)}removeScriptIdToHead(e,t){var n=this._document.getElementById(t);n!=null&&e.removeChild(this._document.head,n)}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var k5=class{files;title;text;url},d4e={parse:{dateInput:"dd/MM/yyyy"},display:{dateInput:"dd/MM/yyyy",monthYearLabel:"MMM yyyy",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM yyyy"}};var pe=class r{constructor(){}static getDateFromObject(e){if(e==null)return null;if(e instanceof Date)return e;{let t=e,n=t._d.getTimezoneOffset();return new Date(t._d.getTime()-n*60*1e3)}}static getDateNowGMT(e){return e===null?new Date:e===void 0?null:e}static setSearchParam(e){let t=[];for(var n="",i=0;i<e.length;i++)n=n+e[i].toLowerCase(),t[i]=n;return t}static setSearchParamByWords(e){return e==null?[]:this.setSearchParamByWordsSimple(e)}static addAll(e,t){for(let n of t)e.add(n);return e}static setSearchParamByWordsSimple(e){if(e==null)return[];e=e.toString().replace(/[^:\s]+:\d+>|<a:[^:\s]+:\d+>|(\u00a9|\u00ae|[\u2000-\u3300]|\ud83c[\ud000-\udfff]|\ud83d[\ud000-\udfff]|\ud83e[\ud000-\udfff]|\ufe0f)/g,"");let t=[];t=t.concat(r.setSearchParam(e));var n=e.split(" ");return n.forEach(i=>{t=t.concat(r.setSearchParam(i))}),t}static getUniqueArrayForFirestore(e){return Array.from(new Set(e))}static copyMessageInClipboard(e){let t=document.createElement("textarea");t.style.position="fixed",t.style.left="0",t.style.top="0",t.style.opacity="0",t.innerText=e,document.body.appendChild(t),t.focus(),t.select(),document.execCommand("copy"),document.body.removeChild(t)}static share(e){window.navigator.share(e)}sendEmail(e){console.log("email",e)}static truncateString(e,t){return e.length>t?e.slice(0,t)+"...":e}static cleanHtml(e){let t=document.createElement("DIV");return t.innerHTML=e,t.textContent||t.innerText||""}static getNameCollectionById(e,t){if(!t)return"";let n=t?.findIndex(i=>i.id===e);return n!=null&&n>=0?t[n].getName():""}static getPeriodLabel(e,t,n="Sempre visibile"){let i=e!=null&&!isNaN(e.getTime())?e:void 0,a=t!=null&&!isNaN(t.getTime())?t:void 0;if(!i&&!a)return n;let s=new Date;return a&&s.getTime()>a.getTime()?`Terminato il ${r.formatDateTimeShort(a)}`:i&&s.getTime()<i.getTime()?a?`Dal ${r.formatDateTimeShort(i)} al ${r.formatDateTimeShort(a)}`:`Dal ${r.formatDateTimeShort(i)}`:a?`In corso, fino al ${r.formatDateTimeShort(a)}`:"In corso"}static getPeriodState(e,t){let n=e!=null&&!isNaN(e.getTime())?e:void 0,i=t!=null&&!isNaN(t.getTime())?t:void 0;if(!n&&!i)return"sempre";let a=new Date;return i&&a.getTime()>i.getTime()?"scaduto":n&&a.getTime()<n.getTime()?"futuro":"corso"}static formatDateTimeShort(e){let t=n=>n<10?"0"+n:""+n;return`${t(e.getDate())}/${t(e.getMonth()+1)}/${e.getFullYear()} ${t(e.getHours())}:${t(e.getMinutes())}`}static isDateIntoPeriod(e,t,n){let i=e.getTime();return t?n?i>=t.getTime()&&i<=n.getTime():i>=t.getTime():n?i<=n.getTime():!0}static checkIndexFromError(e,t){return m(this,null,function*(){if(!e||!e.message)return;var n=e.message;console.log("checkIndexFromError message",n);let i="You can create it here";if(n.includes(i)){let d=!1;try{let p=yield Le(t,()=>m(null,null,function*(){let g=t.get(mn);return yield Ht(g,"createIndexFromErrorCallV2")({message:n})}
57));p?.data?.success?(d=!0,console.log("[INDEX] creato automaticamente:",p.data.message)):console.warn("[INDEX] auto-creazione non riuscita:",p?.data?.message)}catch(p){console.warn("[INDEX] createIndexFromErrorCallV2 error",p)}if(d)return;let f=t.get(xr);if(f.production&&!f.myCustomer.isSuperAdmin())try{var a=t.get(br),s=a.getBaseUrl()+a?.getUrlCompleteWithParams();yield t.get(hu).sendErrorEmail(`Create index from ${f.myCustomer.getName()}`,`url: ${s} | message: ${n}`)}catch(p){console.error("checkIndexFromError error",p)}else{var o=n.indexOf(i)+i.length+2,l=n.substring(o,n.length),c=" ",u=l.indexOf(c);u>-1&&(l=l.substring(0,u),l=l.trimEnd()),t.get(br).isPlatformBrowser()&&window.open(l,"_blank")}}})}static describeError(e,t){let n=[];if(t&&n.push(`call: ${t}`),e==null)return n.push("message: (errore vuoto)"),n.join(" | ");if(typeof e=="string")return n.push(`message: ${e}`),r.truncateString(n.join(" | "),1500);let i=e?.code??e?.status;i!=null&&`${i}`!=""&&n.push(`code: ${i}`);let a=`${e?.message??""}`.trim();if(a==="")try{let o=JSON.stringify(e);a=o&&o!=="{}"?o:String(e)}catch{a=String(e)}n.push(`message: ${a}`);let s=e?.details??e?.customData;if(s!=null){let o;try{o=typeof s=="string"?s:JSON.stringify(s)}catch{o=String(s)}o&&o!=="{}"&&n.push(`details: ${o}`)}return e?.name&&e.name!=="Error"&&n.push(`name: ${e.name}`),r.truncateString(n.join(" | "),1500)}static checkFunctionCorsError(e,t,n){let i=(e?.code??"").toString().toLowerCase(),a=(e?.message??"").toString().toLowerCase();if(!(i==="functions/internal"&&a==="internal"||a.includes("failed to fetch")||a.includes("access-control-allow-origin")||a.includes("blocked by cors")||a.includes("preflight")))return!1;let o;try{o=t.get(xr)}catch{}let l=o?.projectId||"<projectId>",c="europe-west1";try{c=t.get(mn)?.region||c}catch{}let u=(n??"").toLowerCase().replace(/_/g,"-"),d=u?`https://console.cloud.google.com/run/detail/${c}/${u}/security?project=${l}`:`https://console.cloud.google.com/run/services?project=${l}`;console.error(`[FUNCTIONS] Callable ${n?`"${n}" `:""}non raggiunta: probabile function v2 PRIVATA dopo il deploy (manca allUsers -> run.invoker sul servizio Cloud Run). Non \xE8 un vero CORS. 58Fix: apri la function \u2192 tab "Sicurezza" \u2192 "Consenti accesso pubblico". ${d}`,e);let f=!1;try{f=o?.myCustomer?.isSuperAdmin?.()===!0}catch{}if(!f)return!1;try{if(!t.get(br).isPlatformBrowser())return!0;t.get(qd).open('Function non pubblica: aprila e nel tab "Sicurezza" seleziona "Consenti accesso pubblico".',"Apri Sicurezza",{duration:2e4}).onAction().subscribe(()=>window.open(d,"_blank"))}catch(p){console.warn("[FUNCTIONS] checkFunctionCorsError snackbar non mostrato",p)}return!0}static titleCaseWord(e){return e&&(e?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():"")}static \u0275fac=function(t){return new(t||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var wo=class r{static failFast=!1;static reservedAnchors=["contattaci"];static isReservedAnchor(e){if(!e)return!1;let t=e.trim().toLowerCase();return r.reservedAnchors.some(n=>n.toLowerCase()===t)}};function rh(r){return m(this,null,function*(){let t=(yield Promise.allSettled(r)).find(n=>n.status==="rejected");if(t)throw t.reason})}var Pie={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"pi\xF9 di un anno",other:"pi\xF9 di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},P5=(r,e,t)=>{let n,i=Pie[r];return typeof i=="string"?n=i:e===1?n=i.one:n=i.other.replace("{{count}}",e.toString()),t?.addSuffix?t.comparison&&t.comparison>0?"tra "+n:n+" fa":n};var Rie={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},Oie={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Fie={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},R5={date:cu({formats:Rie,defaultWidth:"full"}),time:cu({formats:Oie,defaultWidth:"full"}),dateTime:cu({formats:Fie,defaultWidth:"full"})};var oP=["domenica","luned\xEC","marted\xEC","mercoled\xEC","gioved\xEC","venerd\xEC","
58sabato"];function Bie(r){switch(r){case 0:return"'domenica scorsa alle' p";default:return"'"+oP[r]+" scorso alle' p"}}function O5(r){return"'"+oP[r]+" alle' p"}function Nie(r){switch(r){case 0:return"'domenica prossima alle' p";default:return"'"+oP[r]+" prossimo alle' p"}}var Lie={lastWeek:(r,e,t)=>{let n=r.getDay();return sP(r,e,t)?O5(n):Bie(n)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:(r,e,t)=>{let n=r.getDay();return sP(r,e,t)?O5(n):Nie(n)},other:"P"},F5=(r,e,t,n)=>{let i=Lie[r];return typeof i=="function"?i(e,t,n):i};var Vie={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},Uie={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1\xBA trimestre","2\xBA trimestre","3\xBA trimestre","4\xBA trimestre"]},zie={narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},jie={narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","luned\xEC","marted\xEC","mercoled\xEC","gioved\xEC","venerd\xEC","sabato"]},Hie={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},$ie={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},Gie=(r,e)=>{let t=Number(r);return String(t)},B5={ordinalNumber:Gie,era:Os({values:Vie,defaultWidth:"wide"}),quarter:Os({values:Uie,defaultWidth:"wide",argumentCallback:r=>r-1}),month:Os({values:zie,defaultWidth:"wide"}),day:Os({values:jie,defaultWidth:"wide"}),dayPeriod:Os({values:Hie,defaultWidth:"wide",formattingValues:$ie,defaultFormattingWidth:"wide"})};var Wie=/^(\d+)(º)?/i,qie=/\d+/i,Kie={narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},Yie={any:[/^a/i,/^(d|e)/i]},Xie={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},Qie={any:[/1/i,/2/i,/3/i,/4/i]},Jie={narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},Zie={narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},eae={narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},tae={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},rae={narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},nae={any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},N5={ordinalNumber:wI({matchPattern:Wie,parsePattern:qie,valueCallback:r=>parseInt(r,10)}),era:Fs({matchPatterns:Kie,defaultMatchWidth:"wide",parsePatterns:Yie,defaultParseWidth:"any"}),quarter:Fs({matchPatterns:Xie,defaultMatchWidth:"wide",parsePatterns:Qie,defaultParseWidth:"any",valueCallback:r=>r+1}),month:Fs({matchPatterns:Jie,defaultMatchWidth:"wide",parsePatterns:Zie,defaultParseWidth:"any"}),day:Fs({matchPatterns:eae,defaultMatchWidth:"wide",parsePatterns:tae,defaultParseWidth:"any"}),dayPeriod:Fs({matchPatterns:rae,defaultMatchWidth:"any",parsePatterns:nae,defaultParseWidth:"any"})};var Io={code:"it",formatDistance:P5,formatLong:R5,formatRelative:F5,localize:B5,match:N5,options:{weekStartsOn:1,firstWeekContainsDate:4}};var ic=class{pageSize;pageNumber;searchField;searchFieldFirebase;orderField;order;paramsOrder;lastDocument;firstDocument;forward;deleted;constructor(e,t,n,i,a,s,o,l,c,u){this.pageSize=e,this.searchField=t,this.orderField=n,this.order=i,this.lastDocument=a,this.firstDocument=s,this.forward=o,this.pageNumber=l,this.deleted=c,this.paramsOrder=u}},Ki=class{params;getAll;languageSigla;fromBigQ;fromStartDate;toStartDate;fromUpdateDate;toUpdateDate;constructor(e,t,n,i,a,s,o,l){this.params=e,this.getAll=t,this.languageSigla=n,this.fromBigQ=i,this.fromStartDate=a,this.toStartDate=s,this.fromUpdateDate=o,this.toUpdateDate=l}};function L5(r){return r?r.code==="permission-denied"||typeof r.message=="string"&&r.message.includes("Missing or insufficient permissions"):!1}function V5(r,e,t){return r?e<t?"retry":"give-up":"give-up-no-user"}function U5(r){return 500*(r+1)}
58var hx=class r{constructor(e){this.injector=e;this.seoService=A(br),this.manager=A(xr),this.appCheckImpl=A(ym),this.db=e.get(mo),this.functions=A(mn)}seoService;manager;appCheckImpl;db;functions;isLocalhost=!1;functionsEmulatorUrl="http://127.0.0.1";QueryFilterInMaxCount=10;debugBigQ=!1;getDb(){return this.db}getFunctions(){return this.functions}authReadMaxRetries=2;runReadWithAuthRetry(e,t){return m(this,null,function*(){let n=this.injector.get(as);yield n.authStateReady();for(let i=0;;i++)try{return yield Le(this.injector,()=>t())}catch(a){if(!L5(a))throw a;yield n.authStateReady();let s=V5(!!n.currentUser,i,this.authReadMaxRetries);if(s==="give-up-no-user")throw console.error(`[AUTH] ${e}: read senza utente dopo auth-ready (signOut esplicito/cross-tab?), non ritento`,a),a;if(s==="give-up")throw console.error(`[AUTH] ${e}: permission-denied persistente dopo ${i+1} tentativi`,a),a;console.warn(`[AUTH] ${e}: permission-denied con utente presente, ritento (${i+1}/${this.authReadMaxRetries})`),yield new Promise(o=>setTimeout(o,U5(i)))}})}getDetailGeneric(e,t){return new Promise((n,i)=>m(this,null,function*(){let a=ci(this.getDb(),t,e),s=yield Xc(a);if(!s.exists()){console.log("getDetailGeneric No such document!"),n(void 0);return}n(s.data())}))}getDetail(e,t,n,i,a){return Le(this.injector,()=>new Promise((s,o)=>m(this,null,function*(){try{let c=ci(this.getDb(),t.GetNameCollection(),e),u=yield this.runReadWithAuthRetry(`getDetail '${t.GetNameCollection()}'`,()=>Xc(c));if(!u.exists()){a||console.warn(`getDetail No such document! '${t.GetNameCollection()}'`,e),s(void 0);return}let d=t?.getNewInstance(u);(d.haveToFillOtherModelsInDetail()||n!==void 0&&n)&&!i&&(yield d.fillOtherModelsInDetail(this.injector)),s(d)}catch(c){if(console.error("getDetail error:",c,t,e,this),c instanceof Tn){var l=c;switch(console.error("getDetail FirebaseError:",l),l.message){case"Missing or insufficient permissions.":console.error("getDetail eccolo!:",l);break}}o(c)}})))}getGenericDetailById(e,t){return new Promise((n,i)=>m(this,null,function*(){let a=ci(this.getDb(),e,t),s=yield Xc(a);if(!s.exists()){console.log("getGenericDetailById No such document!"),n(void 0);return}n(s.data())}))}getGenericDetailBySlug(e,t,n,i){return new Promise((a,s)=>m(this,null,function*(){var o=[];i?o.push(xe("fullSlug","==",t)):o.push(xe("slug","==",t)),n&&o.push(xe("language","==",n)),o.push(ui(1));let l=gn(Jr(this.getDb(),e),...o);var u=(yield Jn(l)).docs.map(d=>this.getJson(d));if(u.length==0){s(`Documento ${e} non trovato`);return}a(u[0])}))}getJson(e){var t=void 0;try{t=e.data()}catch{t=e}return t}getDetailOnChanges(e,t){return new Ot(i=>{let a=ci(this.getDb(),t.GetNameCollection(),e),s=hM(a,o=>{i.next(o.data())},o=>i.error(o));return()=>s()})}newId(e){return ci(Jr(this.getDb(),e)).id}create(e,t){return m(this,null,function*(){return new Promise((n,i)=>m(this,null,function*(){try{var a;t?a=t:a=this.newId(e.GetNameCollection());var s=e.getDocumentData(a);s=yield e.getDocumentDataAfter(this.injector,s);let o=ci(this.getDb(),e.GetNameCollection(),a);yield TV(o,s),a=o.id,e.id=a,n(a)}catch(o){console.error("Error adding document: ",o),i(o)}}))})}createBulk(e){return m(this,null,function*(){try{for(let t=0;t<e.length;t+=r.BATCH_SIZE){let n=e.slice(t,t+r.BATCH_SIZE),i=yield Promise.all(n.map(s=>m(this,null,function*(){let o=ci(Jr(this.getDb(),s.GetNameCollection())).id,l=s.getDocumentData(o);return l=yield s.getDocumentDataAfter(this.injector,l),{instance:s,id:o,data:l}}))),a=mM(this.getDb());for(let s of i)a.set(ci(this.getDb(),s.instance.GetNameCollection(),s.id),s.data),s.instance.id=s.id;yield a.commit()}}catch(t){throw console.error("createBulk failed: ",t),t}})}update(e){return new Promise((t,n)=>m(this,null,function*(){try{let a=ci(this.getDb(),e.GetNameCollection(),e.id);var i=e.getDocumentData(void 0);i=yield e.getDocumentDataAfter(this.injector,i),yield fM(a,i),t()}catch(a){console.error(`Error writing document ${e.GetNameCollection()}: `,a),n(a)}}))}updateBulk(e){return new Promise((t,n)=>m(this,null,function*(){try{yield EV(this.getDb(),i=>m(this,null,function*(){yield Promise.all(e.map(a=>m(this,null,function*(){let s=a.getDocumentData(void 0);s=yield a.getDocumentDataAfter(this.injector,s);let o=ci(this.getDb(),a.GetNameCollection(),a.id);i.update(o,s)})))})),t()}catch(i){console.error("Transaction failed: ",i),n(i)}}))}updateCustom(e,t,n){return new Promise((i,a)=>m(this,null,function*(){try{let s=ci(this.getDb(),e,n);yield fM(s,t),i()}catch(s){console.error(`Error writing document ${e}`,s,n,t),a(s)}}))}delete(e){return new Promise((t,n)=>m(this,null,function*(){try{yield e.preDeleteModel(this.injector),yield bV(ci(this.getDb(),e.GetNameCollection(),e.id)),t()}catch(i){console.error(`Error writing document ${e.GetNameCollection()}: `,i),n(i)}}))}static BATCH_SIZE=500;deleteBulk(e){return m(this,null,function*(){for(let t=0;t<e.length;t+=r.BATCH_SIZE){let n=e.slice(t,t+r.BATCH_SIZE),i=mM(this.getDb());for(let a of n)i.delete(ci(this.getDb(),a.GetNameCollection(),a.id));yield i.commit()}})}getCount(e,t){return new Promise((n,i)=>m(this,null,function*(){try{let a=gn(Jr(this.getDb(),e.GetNameCollection()),...t),s=yield this.runReadWithAuthRetry(`getCount '${e.GetNameCollection()}'`,()=>IV(a));n(s.data().count)}
58catch(a){console.error(`getCount ${e.GetNameCollection()} error`,a,t),yield pe.checkIndexFromError(a,this.injector),i(a)}}))}_getList(e,t){return new Ot(i=>{let a=gn(Jr(this.getDb(),e.GetNameCollection()),...t);this.runReadWithAuthRetry(`_getList '${e.GetNameCollection()}'`,()=>Jn(a)).then(s=>{var o=s.docs.map(l=>{var c=e.getNewInstance(l);return c});i.next(o),i.complete()}).catch(s=>{console.error(`_getList ${e.GetNameCollection()} error`,s),i.error(s)})})}getListOnChanges(e,t){return new Ot(i=>{try{var a=e;let s=gn(Jr(this.getDb(),a.GetNameCollection()),...t),o=hM(s,l=>{var c=l.docChanges().map(u=>e?.getNewInstance(u.doc));i.next([c,o])})}catch(s){console.error(`getListOnChanges ${e.GetNameCollection()} error`,s),pe.checkIndexFromError(s,this.injector)}})}hasLang(e){return e?.languageSigla&&e?.languageSigla?.length==2}getFilters(e,t){let n=[];return n=this.setBaseFilters(n,e,!t),n}setBaseFilters(e,t,n,i){return t&&t?.params&&t?.params?.deleted!=null&&(e.push(xe("deleteDate",t?.params?.deleted?"!=":"==",null)),e.push(Go("deleteDate","desc"))),t?.params&&(t.params.forward=t.params.forward||t.params.forward===void 0),(n==null||n)&&t?.params?.paramsOrder!=null&&t?.params?.paramsOrder.length>0?t?.params?.paramsOrder.forEach(s=>{e.push(Go(s.orderField,s.order))}):(n==null||n)&&t?.params?.orderField!=null&&t?.params?.orderField.length>0&&t?.params?.order!=null&&e.push(Go(t?.params?.orderField,t?.params?.order)),t?.params?.searchField!=null&&t?.params?.searchField.length>0&&(t?.params?.searchFieldFirebase!=null&&t?.params?.searchFieldFirebase.length>0?e.push(xe(t?.params?.searchFieldFirebase,"array-contains",t?.params?.searchField.toLowerCase())):e.push(xe("querySearch","array-contains",t?.params?.searchField.toLowerCase()))),t?.params?.forward?t?.params?.lastDocument!=null&&e.push(CV(t?.params?.lastDocument.queryDocumentSnapshot)):t?.params?.firstDocument!=null&&e.push(wV(t?.params?.firstDocument?.queryDocumentSnapshot)),(i==null||!i)&&t?.params?.pageSize!=null&&(t?.params?.forward?e.push(ui(t?.params?.pageSize)):e.push(xV(t?.params?.pageSize))),this.hasLang(t)&&e.push(xe("language","==",t?.languageSigla)),t?.fromStartDate!=null&&e.push(xe("startDate",">=",t.fromStartDate)),t?.toStartDate!=null&&e.push(xe("startDate","<=",t.toStartDate)),t?.fromUpdateDate!=null&&e.push(xe("updateDate",">=",t.fromUpdateDate)),t?.toUpdateDate!=null&&e.push(xe("updateDate","<=",t.toUpdateDate)),e}getContentTranslated(e,t,n){return new Promise((i,a)=>m(this,null,function*(){var s=[];s.push(xe("idTranslate","==",t)),n&&s.push(xe("language","==",n)),s.push(ui(1));let o=gn(Jr(this.getDb(),e.GetNameCollection()),...s);var c=(yield Jn(o)).docs.map(u=>e?.getNewInstance(u));if(c.length==0){i(void 0);return}i(c[0])}))}getOtherContentTranslated(e,t,n){return new Promise((i,a)=>m(this,null,function*(){var s=[];s.push(xe("idTranslate","==",e)),s.push(xe("id","!=",t.id)),n&&s.push(xe("language","==",n));let o=gn(Jr(this.getDb(),t.GetNameCollection()),...s);var c=(yield Jn(o)).docs.map(u=>t?.getNewInstance(u));i(c)}))}getCustomDataByBigQuery(e){return new Promise((t,n)=>{this.isLocalhost&&SN(this.functions,this.functionsEmulatorUrl,5001);let i="bigQSqlQueryCallV2";Ht(this.getFunctions(),i)({query:e,authorization:"51RyS7eM9SEt"}).then(s=>m(this,null,function*(){let o=s.data;o.success?t(o.data):(console.log("getCustomDataByBigQuery reject data",i,o),n(o.message))})).catch(s=>{pe.checkFunctionCorsError(s,this.injector,"bigQSqlQueryCallV2"),console.error("getCustomDataByBigQuery bigQSqlQueryCall error",s),n(s)})})}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var ke=class r{constructor(e){this.injector=e;this.seoService=e.get(br),this.manager=e.get(xr),this.db=e.get(mo),this.firebaseAngularManager=e.get(hx)}QueryFilterInMaxCount=10;static QueryMaxCount=1e4;static orderAscKey="asc";static orderDescKey="desc";static bigQueryFormatDate="yyyy-MM-dd'T'HH:mm:ss";seoService;manager;firebaseAngularManager;debugBigQ=!1;db;getDb(){return this.firebaseAngularManager.getDb()}getFunctions(){return this.firebaseAngularManager.getFunctions()}getDetailGeneric(e,t){return Le(this.injector,()=>this.firebaseAngularManager.getDetailGeneric(e,t))}getDetail(e,t,n,i,a){return Le(this.injector,()=>(t??=this.getInstanceModel(),this.firebaseAngularManager.getDetail(e,t,n,i,a)))}getGenericDetailById(e,t){return Le(this.injector,()=>this.firebaseAngularManager.getGenericDetailById(e,t))}getGenericDetailBySlug(e,t,n,i){return Le(this.injector,()=>this.firebaseAngularManager.getGenericDetailBySlug(e,t,n,i))}getDetailByEmail(e){return Le(this.injector,()=>new Promise((t,n)=>m(this,null,function*(){var i=[];i.push(xe("email","==",e)),i.push(ui(1));let a=gn(Jr(this.getDb(),this.getInstanceModel().GetNameCollection()),...i);var o=(yield Jn(a)).docs.map(l=>this.getNewModel(l));if(o.length==0){t(void 0);return}
58t(o[0])})))}getJson(e){var t=void 0;try{t=e.data()}catch{t=e}return t}getDetailOnChanges(e,t){return t??=this.getInstanceModel(),this.firebaseAngularManager.getDetailOnChanges(e,t)}newId(e){return Le(this.injector,()=>(e??=this.getInstanceModel(),this.firebaseAngularManager.newId(e.GetNameCollection())))}create(e,t){return m(this,null,function*(){return Le(this.injector,()=>(e??=this.getInstanceModel(),this.firebaseAngularManager.create(e,t)))})}createBulk(e){return Le(this.injector,()=>this.firebaseAngularManager.createBulk(e))}update(e){return Le(this.injector,()=>this.firebaseAngularManager.update(e))}updateBulk(e){return Le(this.injector,()=>this.firebaseAngularManager.updateBulk(e))}updateCustom(e,t,n){return Le(this.injector,()=>this.firebaseAngularManager.updateCustom(e,t,n))}delete(e){return Le(this.injector,()=>this.firebaseAngularManager.delete(e))}deleteBulk(e){return Le(this.injector,()=>this.firebaseAngularManager.deleteBulk(e))}deleteAll(e,t,n){return Le(this.injector,()=>new Promise((i,a)=>{n||(n=this.getInstanceModel()),e||(e=new Ki,e.getAll=!0),this.getList(e,t,n).subscribe(s=>m(this,null,function*(){yield Promise.all(s.map(o=>o.preDeleteModel(this.injector))),yield this.firebaseAngularManager.deleteBulk(s),i()}))}))}getListPromise(e,t,n,i){return Le(this.injector,()=>new Promise((a,s)=>{this.getList(e,t,n,i).subscribe({error:o=>{console.error(`getListPromise error -> instance: '${n?n.GetNameCollection():this.getInstanceModel().GetNameCollection()}'`,o,e),s(o)},next:o=>{a(o)}})}))}getList(e,t,n,i){return Le(this.injector,()=>new Ot(s=>{this.getListFull(e,t,n,i).then(o=>{s.next(o),s.complete()}).catch(o=>{console.error(`getList -> instance: '${n?n.GetNameCollection():this.getInstanceModel().GetNameCollection()}' `,o,this.seoService.isPlatformBrowser()?e:void 0),s.error(o)})}))}getCount(e,t){return Le(this.injector,()=>new Promise((n,i)=>m(this,null,function*(){try{t??=this.getInstanceModel(),e?.fromBigQ?this.handleBigQ(e).then(a=>m(this,null,function*(){n(a.length)})).catch(a=>{console.error("getCount _getList error:",a),i(a)}):n(this.firebaseAngularManager.getCount(t,this.getFilters(e)))}catch(a){i(a)}})))}getListFull(e,t,n,i){return Le(this.injector,()=>new Promise((a,s)=>m(this,null,function*(){try{this._getList(e,n).subscribe({error:o=>{console.error(`getListFull error ${n?n.GetNameCollection():this.getInstanceModel().GetNameCollection()} error`,o),pe.checkIndexFromError(o,this.injector),s(o)},next:o=>{var l=n||this.getInstanceModel(),c=!l.haveToFillOtherModels()&&(t==null||!t)||e?.getAll||t==!1||i;if(c||e?.fromBigQ&&!this.fillModelsBigQItems()){a(o);return}return Le(this.injector,()=>m(this,null,function*(){yield Promise.all(o.map(u=>m(this,null,function*(){yield u.fillOtherModels(this.injector,e)}))),a(o)}))}})}catch(o){console.error(`getListFull catch ${n?.GetNameCollection()} error`,o),pe.checkIndexFromError(o,this.injector)}})))}handleBigQ(e){return m(this,null,function*(){let t=this.getBigQuery(e);if(this.debugBigQ){console.log("--query",t);let a=th.firebaseConfig.projectId;console.log("--debug",`https://console.cloud.google.com/bigquery?project=${a}&p=${a}&d=firestore_export`)}var n=yield this.getCustomDataByBigQuery(t),i=yield this.parseBigQItems(n,e);return i})}_getList(e,t){return Le(this.injector,()=>(t??=this.getInstanceModel(),new Ot(i=>{if(e?.fromBigQ){if(!this.seoService.isPlatformBrowser()){i.next([]);return}this.handleBigQ(e).then(a=>m(this,null,function*(){i.next(a),i.complete()})).catch(a=>{console.error("getCustomDataByBigQuery _getList error:",a),i.error(a)})}else this.firebaseAngularManager._getList(t,this.getFilters(e,void 0,t)).subscribe({next:a=>{i.next(a),i.complete()},error:a=>{console.error("_getList error:",a),i.error(a)}})})))}getListOnChanges(e){return Le(this.injector,()=>{var t=this.getInstanceModel();return this.firebaseAngularManager.getListOnChanges(t,this.getFilters(e))})}hasLang(e){return e?.languageSigla!=null&&e?.languageSigla?.length==2}getFilters(e,t,n){return this.firebaseAngularManager.getFilters(e,t)}setBaseFilters(e,t,n,i){return this.firebaseAngularManager.setBaseFilters(e,t,n,i)}getContentTranslated(e,t,n){return Le(this.injector,()=>(n??=this.getInstanceModel(),this.firebaseAngularManager.getContentTranslated(n,e,t)))}getOtherContentTranslated(e,t,n){return Le(this.injector,()=>(t??=this.getInstanceModel(),this.firebaseAngularManager.getOtherContentTranslated(e,t,n)))}getTranslatedModelId(e,t,n,i){return m(this,null,function*(){if(t&&i&&n){let a=yield this.getTranslatedModelIds(e,t,n,[i]);return a&&a.length>0?a[0]:void 0}})}getTranslatedModelIdsAnyCollection(e,t,n){return m(this,null,function*(){if(!n||n.length===0)return n;let{GeneralModel:i}=yield import("./chunk-F5PI2FPD.js"),{ISectionBaseManager:a}=yield import("./chunk-OQBGJGIQ.js"),s=e.get(a).getDynamicModels(),o=[];for(let l of n){let c;for(let u of s){let[d]=yield i.fillDynamicModel(e,l,u.nameCollection);if(!d)continue;if(d.language===t){c=l;break}let p=(yield this.getOtherContentTranslated(d.idTranslate,d,t))?.find(g=>g.language===t);
58p?.id&&(c=p.id);break}c?o.push(c):console.warn("getTranslatedModelIdsAnyCollection: nessun gemello "+t+" per "+l+", riferimento rimosso")}return o})}getTranslatedModelIds(e,t,n,i){return m(this,null,function*(){if(!i)return;let{GeneralModel:a}=yield import("./chunk-F5PI2FPD.js");for(let u of i){var[s,o]=yield a.fillDynamicModel(e,u,n);if(s){var l=!1,c=yield this.getOtherContentTranslated(s.idTranslate,s,t);if(c){for(let d of c)if(d.language==t){i=i.map(f=>f==u?d.id:f),l=!0;break}}l||(i=i.filter(d=>d!=u))}}return i})}getNameById(e,t){if(!t)return"";let n=t.findIndex(i=>i.id===e);return n!=null&&n>=0?t[n].getName():""}getCustomPagination(e,t){if(t?.orderField!=null&&t?.orderField.length>0&&t?.order!=null&&(e=e.sort((i,a)=>{var s=t.orderField,o=i[s],l=a[s];return o>l?t.order===r.orderAscKey?1:-1:o<l?t.order===r.orderAscKey?-1:1:0})),t!=null&&t.pageSize!=null){var n=Math.min(t.pageSize,e.length);e=e.slice(0,n)}return e}getPaginationQuery(e){let t=this.QueryFilterInMaxCount;for(var n=[],i=0;i<e.length;i+=t)n.push(e.slice(i,i+t));return n}setBigQueryByBaseListParams(e,t,n,i,a,s,o,l,c,u){let d=th.firebaseConfig.projectId;var f="";s?.params&&(f=`${s?.params?.orderField=="order"?"myOrder":s?.params?.orderField??""}`,f&&(f+=","));let p=` 59 WITH 60 input_table AS ( 61 SELECT 62 document_id as id, 63 JSON_EXTRACT_STRING_ARRAY(DATA, "$.querySearch") AS querySearch, 64 JSON_EXTRACT(DATA, "$.language") AS language, 65 JSON_EXTRACT(DATA, "$.name") AS name, 66 PARSE_DATETIME("%s", JSON_EXTRACT_SCALAR(JSON_EXTRACT(DATA, "$.insertDate"), "$['_seconds']")) AS insertDate, 67 PARSE_DATETIME("%s", JSON_EXTRACT_SCALAR(JSON_EXTRACT(DATA, "$.updateDate"), "$['_seconds']")) AS updateDate, 68 PARSE_DATETIME("%s", JSON_EXTRACT_SCALAR(JSON_EXTRACT(DATA, "$.deleteDate"), "$['_seconds']")) AS deleteDate, 69 JSON_EXTRACT(data, "$.idTranslate") AS idTranslate, 70 ${e??""} 71 * 72 FROM 73 \`${d}.firestore_export.${this.getInstanceModel().GetNameCollection()}_raw_latest\` ) 74 75 ${t} 76 77 SELECT ${c?"distinct":""} 78 ${this.setBigQuerySelectParamsOrder()&&f||""} 79 ${n??""} 80 DATA as data 81 FROM 82 input_table 83 84 ${i} 85 86 WHERE TRUE 87 `;return u&&(p=this.setBigQueryBaseWhere(p,s)),a&&(p+=a),p=this.setBigQueryBaseOrder(p,s,o),p=this.setBigQueryBaseLimit(p,s,l),p}setBigQuerySelectParamsOrder(){return!0}cleanTextForBigQuery(e){return e=e?.toLowerCase().split("\\").join("\\\\"),e=e?.split("'").join("\\'"),e}setBigQueryBaseWhere(e,t){let n=this.hasLang(t);return t?.params?.searchField!=null&&t?.params?.searchField.length>0&&(t?.params?.searchFieldFirebase!=null&&t?.params?.searchFieldFirebase.length>0?e+=` AND "${this.cleanTextForBigQuery(t?.params?.searchFieldFirebase)}" IN UNNEST(querySearch)`:e+=` AND "${this.cleanTextForBigQuery(t?.params?.searchField)}" IN UNNEST(querySearch)`),n&&(e+=` AND language = '"${t?.languageSigla}"' `),e}setBigQueryBaseOrder(e,t,n){if(n&&t?.params?.orderField!=null&&t?.params?.orderField.length>0&&t?.params?.order!=null){var i=t?.params?.orderField;i=="order"&&(i="myOrder"),e+=` ORDER BY ${i} ${t?.params?.order}`}return e}setBigQueryBaseLimit(e,t,n){return(n==null||!n)&&t?.params?.pageSize!=null&&(e+=` 88 LIMIT ${t?.params?.pageSize} 89 OFFSET ${t?.params?.pageSize*(t?.params?.pageNumber??0)} 90 `),e}static formatBigQueryDateFrom="yyyy-MM-dd HH:mm";static formatBigQueryDateTo="%Y-%m-%d %H:%M";getBigQDateFormat(e){return`PARSE_DATETIME('${r.formatBigQueryDateTo}', '${e?ti(e,r.formatBigQueryDateFrom):""}')`}fillModelsBigQItems(){return!0}parseBigQItems(e,t){return Le(this.injector,()=>m(this,null,function*(){try{var n=[];return e.forEach(i=>{n.push(this.getNewModel(JSON.parse(i.data)))}),!this.fillModelsBigQItems()||!this.getInstanceModel().haveToFillOtherModels()||t?.getAll||(yield Promise.all(n.map(i=>m(this,null,function*(){yield i.fillOtherModels(this.injector)})))),n}catch(i){throw console.error("parseBigQItems error:",i,this),"parseBigQItems error:"+i}}))}getCustomDataByBigQuery(e){return Le(this.injector,()=>this.firebaseAngularManager.getCustomDataByBigQuery(e))}getBigQuerySelectSource(e){return""}getBigQueryLeftJoinSource(e){return""}getBigQuerySelectDest(e){return""}getBigQueryLeftJoinDest(e){return""}getBigQueryWhere(e){let t="";return e?.languageSigla!=null&&(t+=` AND language = '"${e?.languageSigla}"' `),t}getBigQuery(e){let t=this.getBigQuerySelectSource(e),n=this.getBigQueryLeftJoinSource(e),i=this.getBigQueryLeftJoinDest(e),a=this.getBigQuerySelectDest(e),s=this.getBigQueryWhere(e);return this.setBigQueryByBaseListParams(t,n,a,i,s,e,!0,void 0,this.getBigQueryDistinct(e),this.doBigQueryWhereBase())}getBigQueryDistinct(e){return!1}doBigQueryWhereBase(){return!0}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var Y5="firebasestorage.googleapis.com",X5="storageBucket",iae=120*1e3,aae=600*1e3,sae=1e3;var an=class r extends Tn{constructor(e,t,n=0){super(lP(e),`Firebase Storage: ${t} (${lP(e)})`),this.status_=n,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,r.prototype)}get status(){return this.status_}set status(e){this.status_=e}_codeEquals(e){return lP(e)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(e){this.customData.serverResponse=e,this.customData.serverResponse?this.message=`${this._baseMessage} 91${this.customData.serverResponse}`:this.message=this._baseMessage}},Zr=(function(r){return r.UNKNOWN="unknown",r.OBJECT_NOT_FOUND="object-not-found",r.BUCKET_NOT_FOUND="bucket-not-found",r.PROJECT_NOT_FOUND="project-not-found",r.QUOTA_EXCEEDED="quota-exceeded",r.UNAUTHENTICATED="unauthenticated",r.UNAUTHORIZED="unauthorized",r.UNAUTHORIZED_APP="unauthorized-app",r.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",r.INVALID_CHECKSUM="invalid-checksum",r.CANCELED="canceled",r.INVALID_EVENT_NAME="invalid-event-name",r.INVALID_URL="invalid-url",r.INVALID_DEFAULT_BUCKET="invalid-default-bucket",r.NO_DEFAULT_BUCKET="no-default-bucket",r.CANNOT_SLICE_BLOB="cannot-slice-blob",r.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",r.NO_DOWNLOAD_URL="no-download-url",r.INVALID_ARGUMENT="invalid-argument",r.INVALID_ARGUMENT_COUNT="invalid-argument-count",r.APP_DELETED="app-deleted",r.INVALID_ROOT_OPERATION="invalid-root-operation",r.INVALID_FORMAT="invalid-format",r.INTERNAL_ERROR="internal-error",r.UNSUPPORTED_ENVIRONMENT="unsupported-environment",r})(Zr||{});function lP(r){return"storage/"+r}function vP(){let r="An unknown error occurred, please check the error payload for server response.";return new an(Zr.UNKNOWN,r)}function oae(r){return new an(Zr.OBJECT_NOT_FOUND,"Object '"+r+"' does not exist.")}function lae(r){return new an(Zr.QUOTA_EXCEEDED,"Quota for bucket '"+r+"' exceeded, please view quota on https://firebase.google.com/pricing/.")}function cae(){let r="User is not authenticated, please authenticate using Firebase Authentication and try again.";return new an(Zr.UNAUTHENTICATED,r)}function uae(){return new an(Zr.UNAUTHORIZED_APP,"This app does not have permission to access Firebase Storage on this project.")}function dae(r){return new an(Zr.UNAUTHORIZED,"User does not have permission to access '"+r+"'.")}function Q5(){return new an(Zr.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function J5(){return new an(Zr.CANCELED,"User canceled the upload/download.")}function hae(r){return new an(Zr.INVALID_URL,"Invalid URL '"+r+"'.")}function fae(r){return new an(Zr.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+r+"'.")}function mae(){return new an(Zr.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+X5+"' property when initializing the app?")}function Z5(){return new an(Zr.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function pae(){return new an(Zr.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.")}function gae(){return new an(Zr.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")}function yae(r){return new an(Zr.UNSUPPORTED_ENVIRONMENT,`${r} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`)}function uP(r){return new an(Zr.INVALID_ARGUMENT,r)}function e8(){return new an(Zr.APP_DELETED,"The Firebase app was deleted.")}function vae(r){return new an(Zr.INVALID_ROOT_OPERATION,"The operation '"+r+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}function q0(r,e){return new an(Zr.INVALID_FORMAT,"String does not match format '"+r
vendor: 9,518 bytes, line 91
91+"': "+e)}function W0(r){throw new an(Zr.INTERNAL_ERROR,"Internal error: "+r)}var ps=class r{constructor(e,t){this.bucket=e,this.path_=t}get path(){return this.path_}get isRoot(){return this.path.length===0}fullServerUrl(){let e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(e,t){let n;try{n=r.makeFromUrl(e,t)}catch{return new r(e,"")}if(n.path==="")return n;throw fae(e)}static makeFromUrl(e,t){let n=null,i="([A-Za-z0-9.\\-_]+)";function a(B){B.path.charAt(B.path.length-1)==="/"&&(B.path_=B.path_.slice(0,-1))}let s="(/(.*))?$",o=new RegExp("^gs://"+i+s,"i"),l={bucket:1,path:3};function c(B){B.path_=decodeURIComponent(B.path)}let u="v[A-Za-z0-9_]+",d=t.replace(/[.]/g,"\\."),f="(/([^?#]*).*)?$",p=new RegExp(`^https?://${d}/${u}/b/${i}/o${f}`,"i"),g={bucket:1,path:3},y=t===Y5?"(?:storage.googleapis.com|storage.cloud.google.com)":t,v="([^?#]*)",T=new RegExp(`^https?://${y}/${i}/${v}`,"i"),x=[{regex:o,indices:l,postModify:a},{regex:p,indices:g,postModify:c},{regex:T,indices:{bucket:1,path:2},postModify:c}];for(let B=0;B<x.length;B++){let q=x[B],V=q.regex.exec(e);if(V){let b=V[q.indices.bucket],E=V[q.indices.path];E||(E=""),n=new r(b,E),q.postModify(n);break}}if(n==null)throw hae(e);return n}},dP=class{constructor(e){this.promise_=Promise.reject(e)}getPromise(){return this.promise_}cancel(e=!1){}};function _ae(r,e,t){let n=1,i=null,a=null,s=!1,o=0;function l(){return o===2}let c=!1;function u(...v){c||(c=!0,e.apply(null,v))}function d(v){i=setTimeout(()=>{i=null,r(p,l())},v)}function f(){a&&clearTimeout(a)}function p(v,...T){if(c){f();return}if(v){f(),u.call(null,v,...T);return}if(l()||s){f(),u.call(null,v,...T);return}n<64&&(n*=2);let x;o===1?(o=2,x=0):x=(n+Math.random())*1e3,d(x)}let g=!1;function y(v){g||(g=!0,f(),!c&&(i!==null?(v||(o=2),clearTimeout(i),d(0)):v||(o=1)))}return d(0),a=setTimeout(()=>{s=!0,y(!0)},t),y}function bae(r){r(!1)}function wae(r){return r!==void 0}function Iae(r){return typeof r=="function"}function xae(r){return typeof r=="object"&&!Array.isArray(r)}function gx(r){return typeof r=="string"||r instanceof String}function z5(r){return _P()&&r instanceof Blob}function _P(){return typeof Blob<"u"}function hP(r,e,t,n){if(n<e)throw uP(`Invalid value for '${r}'. Expected ${e} or greater.`);if(n>t)throw uP(`Invalid value for '${r}'. Expected ${t} or less.`)}function nh(r,e,t){let n=e;return t==null&&(n=`https://${e}`),`${t}://${n}/v0${r}`}function t8(r){let e=encodeURIComponent,t="?";for(let n in r)if(r.hasOwnProperty(n)){let i=e(n)+"="+e(r[n]);t=t+i+"&"}return t=t.slice(0,-1),t}var wm=(function(r){return r[r.NO_ERROR=0]="NO_ERROR",r[r.NETWORK_ERROR=1]="NETWORK_ERROR",r[r.ABORT=2]="ABORT",r})(wm||{});function r8(r,e){let t=r>=500&&r<600,i=[408,429].indexOf(r)!==-1,a=e.indexOf(r)!==-1;return t||i||a}var fP=class{constructor(e,t,n,i,a,s,o,l,c,u,d,f=!0,p=!1){this.url_=e,this.method_=t,this.headers_=n,this.body_=i,this.successCodes_=a,this.additionalRetryCodes_=s,this.callback_=o,this.errorCallback_=l,this.timeout_=c,this.progressCallback_=u,this.connectionFactory_=d,this.retry=f,this.isUsingEmulator=p,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((g,y)=>{this.resolve_=g,this.reject_=y,this.start_()})}start_(){let e=(n,i)=>{if(i){n(!1,new bm(!1,null,!0));return}let a=this.connectionFactory_();this.pendingConnection_=a;let s=o=>{let l=o.loaded,c=o.lengthComputable?o.total:-1;this.progressCallback_!==null&&this.progressCallback_(l,c)};this.progressCallback_!==null&&a.addUploadProgressListener(s),a.send(this.url_,this.method_,this.isUsingEmulator,this.body_,this.headers_).then(()=>{this.progressCallback_!==null&&a.removeUploadProgressListener(s),this.pendingConnection_=null;let o=a.getErrorCode()===wm.NO_ERROR,l=a.getStatus();if(!o||r8(l,this.additionalRetryCodes_)&&this.retry){let u=a.getErrorCode()===wm.ABORT;n(!1,new bm(!1,null,u));return}let c=this.successCodes_.indexOf(l)!==-1;n(!0,new bm(c,a))})},t=(n,i)=>{let a=this.resolve_,s=this.reject_,o=i.connection;if(i.wasSuccessCode)try{let l=this.callback_(o,o.getResponse());wae(l)?a(l):a()}catch(l){s(l)}else if(o!==null){let l=vP();l.serverResponse=o.getErrorText(),this.errorCallback_?s(this.errorCallback_(o,l)):s(l)}else if(i.canceled){let l=this.appDelete_?e8():J5();s(l)}else{let l=Q5();s(l)}};this.canceled_?t(!1,new bm(!1,null,!0)):this.backoffId_=_ae(e,t,this.timeout_)}getPromise(){return this.promise_}cancel(e){this.canceled_=!0,this.appDelete_=e||!1,this.backoffId_!==null&&bae(this.backoffId_),this.pendingConnection_!==null&&this.pendingConnection_.abort()}},bm=class{constructor(e,t,n){this.wasSuccessCode=e,this.connection=t,this.canceled=!!n}};function Eae(r,e){e!==null&&e.length>0&&(r.Authorization="Firebase "+e)}function Tae(r,e){r["X-Firebase-Storage-Version"]="webjs/"+(e??"AppManager")}function Cae(r,e){e&&(r["X-Firebase-GMPID"]=e)}function Sae(r,e){e!==null&&(r["X-Firebase-AppCheck"]=e)}function Dae(r,e,t,n,i,a,s=!0,o=!1){let l=t8(r.urlParams),c=r.url+l,u=Object.assign({},r.headers);return Cae(u,e),Eae(u,t),Tae(u,a),Sae(u,n),new fP(c,r.method,u,r.body,r.successCodes,r.additionalRetryCodes,r.handler,r.errorHandler,r.timeout,r.progressCallback,i,s,o)}function Aae(){return typeof BlobBuilder<"u"?BlobBuilder:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:void 0}function Mae(...r){let e=Aae();if(e!==void 0){let t=new e;for(let n=0;n<r.length;n++)t.append(r[n]);return t.getBlob()}else{if(_P())return new Blob(r);throw new an(Zr.UNSUPPORTED_ENVIRONMENT,"This browser doesn't seem to support creating Blobs")}}function kae(r,e,t){return r.webkitSlice?r.webkitSlice(e,t):r.mozSlice?r.mozSlice(e,t):r.slice?r.slice(e,t):null}function Pae(r){if(typeof atob>"u")throw yae("base-64");return atob(r)}var rl={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"},K0=class{constructor(e,t){this.data=e,this.contentType=t||null}};function Rae(r,e){switch(r){case rl.RAW:return new K0(n8(e));case rl.BASE64:case rl.BASE64URL:return new K0(i8(r,e));case rl.DATA_URL:return new K0(Fae(e),Bae(e))}throw vP()}function n8(r){let e=[];for(let t=0;t<r.length;t++){let n=r.charCodeAt(t);if(n<=127)e.push(n);else if(n<=2047)e.push(192|n>>6,128|n&63);else if((n&64512)===55296)if(!(t<r.length-1&&(r.charCodeAt(t+1)&64512)===56320))e.push(239,191,189);else{let a=n,s=r.charCodeAt(++t);n=65536|(a&1023)<<10|s&1023,e.push(240|n>>18,128|n>>12&63,128|n>>6&63,128|n&63)}else(n&64512)===56320?e.push(239,191,189):e.push(224|n>>12,128|n>>6&63,128|n&63)}return new Uint8Array(e)}function Oae(r){let e;try{e=decodeURIComponent(r)}catch{throw q0(rl.DATA_URL,"Malformed data URL.")}return n8(e)}function i8(r,e){switch(r){case rl.BASE64:{let i=e.indexOf("-")!==-1,a=e.indexOf("_")!==-1;if(i||a)throw q0(r,"Invalid character '"+(i?"-":"_")+"' found: is it base64url encoded?");break}case rl.BASE64URL:{let i=e.indexOf("+")!==-1,a=e.indexOf("/")!==-1;if(i||a)throw q0(r,"Invalid character '"+(i?"+":"/")+"' found: is it base64 encoded?");e=e.replace(/-/g,"+").replace(/_/g,"/");break}}let t;try{t=Pae(e)}catch(i){throw i.message.includes("polyfill")?i:q0(r,"Invalid character found")}let n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}var mx=class{constructor(e){this.base64=!1,this.contentType=null;let t=e.match(/^data:([^,]+)?,/);if(t===null)throw q0(rl.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],<data>");let n=t[1]||null;n!=null&&(this.base64=Nae(n,";base64"),this.contentType=this.base64?n.substring(0,n.length-7):n),this.rest=e.substring(e.indexOf(",")+1)}};function Fae(r){let e=new mx(r);return e.base64?i8(rl.BASE64,e.rest):Oae(e.rest)}function Bae(r){return new mx(r).contentType}function Nae(r,e){return r.length>=e.length?r.substring(r.length-e.length)===e:!1}var px=class r{constructor(e,t){let n=0,i="";z5(e)?(this.data_=e,n=e.size,i=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=i}size(){return this.size_}type(){return this.type_}slice(e,t){if(z5(this.data_)){let n=this.data_,i=kae(n,e,t);return i===null?null:new r(i)}else{let n=new Uint8Array(this.data_.buffer,e,t-e);return new r(n,!0)}}static getBlob(...e){if(_P()){let t=e.map(n=>n instanceof r?n.data_:n);return new r(Mae.apply(null,t))}else{let t=e.map(s=>gx(s)?Rae(rl.RAW,s).data:s.data_),n=0;t.forEach(s=>{n+=s.byteLength});let i=new Uint8Array(n),a=0;return t.forEach(s=>{for(let o=0;o<s.length;o++)i[a++]=s[o]}),new r(i,!0)}}uploadData(){return this.data_}};function bP(r){let e;try{e=JSON.parse(r)}catch{return null}return xae(e)?e:null}function Lae(r){if(r.length===0)return null;let e=r.lastIndexOf("/");return e===-1?"":r.slice(0,e)}function Vae(r,e){let t=e.split("/").filter(n=>n.length>0).join("/");return r.length===0?t:r+"/"+t}function a8(r){let e=r.lastIndexOf("/",r.length-2);return e===-1?r:r.slice(e+1)}function Uae(r,e){return e}var Mi=class{constructor(e,t,n,i){this.server=e,this.local=t||e,this.writable=!!n,this.xform=i||Uae}},fx=null;function zae(r){return!gx(r)||r.length<2?r:a8(r)}function wP(){if(fx)return fx;let r=[];r.push(new Mi("bucket")),r.push(new Mi("generation")),r.push(new Mi("metageneration")),r.push(new Mi("name","fullPath",!0));function e(a,s){return zae(s)}let t=new Mi("name");
91t.xform=e,r.push(t);function n(a,s){return s!==void 0?Number(s):s}let i=new Mi("size");return i.xform=n,r.push(i),r.push(new Mi("timeCreated")),r.push(new Mi("updated")),r.push(new Mi("md5Hash",null,!0)),r.push(new Mi("cacheControl",null,!0)),r.push(new Mi("contentDisposition",null,!0)),r.push(new Mi("contentEncoding",null,!0)),r.push(new Mi("contentLanguage",null,!0)),r.push(new Mi("contentType",null,!0)),r.push(new Mi("metadata","customMetadata",!0)),fx=r,fx}function jae(r,e){function t(){let n=r.bucket,i=r.fullPath,a=new ps(n,i);return e._makeStorageReference(a)}Object.defineProperty(r,"ref",{get:t})}function Hae(r,e,t){let n={};n.type="file";let i=t.length;for(let a=0;a<i;a++){let s=t[a];n[s.local]=s.xform(n,e[s.server])}return jae(n,r),n}function s8(r,e,t){let n=bP(e);return n===null?null:Hae(r,n,t)}function $ae(r,e,t,n){let i=bP(e);if(i===null||!gx(i.downloadTokens))return null;let a=i.downloadTokens;if(a.length===0)return null;let s=encodeURIComponent;return a.split(",").map(c=>{let u=r.bucket,d=r.fullPath,f="/b/"+s(u)+"/o/"+s(d),p=nh(f,t,n),g=t8({alt:"media",token:c});return p+g})[0]}function o8(r,e){let t={},n=e.length;for(let i=0;i<n;i++){let a=e[i];a.writable&&(t[a.server]=r[a.local])}return JSON.stringify(t)}var j5="prefixes",H5="items";function Gae(r,e,t){let n={prefixes:[],items:[],nextPageToken:t.nextPageToken};if(t[j5])for(let i of t[j5]){let a=i.replace(/\/$/,""),s=r._makeStorageReference(new ps(e,a));n.prefixes.push(s)}if(t[H5])for(let i of t[H5]){let a=r._makeStorageReference(new ps(e,i.name));n.items.push(a)}return n}function Wae(r,e,t){let n=bP(t);return n===null?null:Gae(r,e,n)}var il=class{constructor(e,t,n,i){this.url=e,this.method=t,this.handler=n,this.timeout=i,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}};function nl(r){if(!r)throw vP()}function IP(r,e){function t(n,i){let a=s8(r,i,e);return nl(a!==null),a}return t}function qae(r,e){function t(n,i){let a=Wae(r,e,i);return nl(a!==null),a}return t}function Kae(r,e){function t(n,i){let a=s8(r,i,e);return nl(a!==null),$ae(a,i,r.host,r._protocol)}return t}function Em(r){function e(t,n){let i;return t.getStatus()===401?t.getErrorText().includes("Firebase App Check token is invalid")?i=uae():i=cae():t.getStatus()===402?i=lae(r.bucket):t.getStatus()===403?i=dae(r.path):i=n,i.status=t.getStatus(),i.serverResponse=n.serverResponse,i}return e}function xP(r){let e=Em(r);function t(n,i){let a=e(n,i);return n.getStatus()===404&&(a=oae(r.path)),a.serverResponse=i.serverResponse,a}return t}function l8(r,e,t){let n=e.fullServerUrl(),i=nh(n,r.host,r._protocol),a="GET",s=r.maxOperationRetryTime,o=new il(i,a,IP(r,t),s);return o.errorHandler=xP(e),o}function Yae(r,e,t,n,i){let a={};e.isRoot?a.prefix="":a.prefix=e.path+"/",t&&t.length>0&&(a.delimiter=t),n&&(a.pageToken=n),i&&(a.maxResults=i);let s=e.bucketOnlyServerUrl(),o=nh(s,r.host,r._protocol),l="GET",c=r.maxOperationRetryTime,u=new il(o,l,qae(r,e.bucket),c);return u.urlParams=a,u.errorHandler=Em(e),u}function Xae(r,e,t){let n=e.fullServerUrl(),i=nh(n,r.host,r._protocol),a="GET",s=r.maxOperationRetryTime,o=new il(i,a,Kae(r,t),s);return o.errorHandler=xP(e),o}function Qae(r,e){let t=e.fullServerUrl(),n=nh(t,r.host,r._protocol),i="DELETE",a=r.maxOperationRetryTime;function s(l,c){}let o=new il(n,i,s,a);return o.successCodes=[200,204],o.errorHandler=xP(e),o}function Jae(r,e){return r&&r.contentType||e&&e.type()||"application/octet-stream"}function c8(r,e,t){let n=Object.assign({},t);return n.fullPath=r.path,n.size=e.size(),n.contentType||(n.contentType=Jae(null,e)),n}function Zae(r,e,t,n,i){let a=e.bucketOnlyServerUrl(),s={"X-Goog-Upload-Protocol":"multipart"};function o(){let x="";for(let B=0;B<2;B++)x=x+Math.random().toString().slice(2);return x}let l=o();s["Content-Type"]="multipart/related; boundary="+l;let c=c8(e,n,i),u=o8(c,t),d="--"+l+`\r 92Content-Type: application/json; charset=utf-8\r 93\r 94`+u+`\r 95--`+l+`\r 96Content-Type: `+c.contentType+`\r 97\r 98`,f=`\r 99--`+l+"--",p=px.getBlob(d,n,f);if(p===null)throw Z5();let g={name:c.fullPath},y=nh(a,r.host,r._protocol),v="POST",T=r.maxUploadRetryTime,C=new il(y,v,IP(r,t),T);
vendor: 10,415 bytes, line 99
99return C.urlParams=g,C.headers=s,C.body=p.uploadData(),C.errorHandler=Em(e),C}var Im=class{constructor(e,t,n,i){this.current=e,this.total=t,this.finalized=!!n,this.metadata=i||null}};function EP(r,e){let t=null;try{t=r.getResponseHeader("X-Goog-Upload-Status")}catch{nl(!1)}return nl(!!t&&(e||["active"]).indexOf(t)!==-1),t}function ese(r,e,t,n,i){let a=e.bucketOnlyServerUrl(),s=c8(e,n,i),o={name:s.fullPath},l=nh(a,r.host,r._protocol),c="POST",u={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":`${n.size()}`,"X-Goog-Upload-Header-Content-Type":s.contentType,"Content-Type":"application/json; charset=utf-8"},d=o8(s,t),f=r.maxUploadRetryTime;function p(y){EP(y);let v;try{v=y.getResponseHeader("X-Goog-Upload-URL")}catch{nl(!1)}return nl(gx(v)),v}let g=new il(l,c,p,f);return g.urlParams=o,g.headers=u,g.body=d,g.errorHandler=Em(e),g}function tse(r,e,t,n){let i={"X-Goog-Upload-Command":"query"};function a(c){let u=EP(c,["active","final"]),d=null;try{d=c.getResponseHeader("X-Goog-Upload-Size-Received")}catch{nl(!1)}d||nl(!1);let f=Number(d);return nl(!isNaN(f)),new Im(f,n.size(),u==="final")}let s="POST",o=r.maxUploadRetryTime,l=new il(t,s,a,o);return l.headers=i,l.errorHandler=Em(e),l}var $5=256*1024;function rse(r,e,t,n,i,a,s,o){let l=new Im(0,0);if(s?(l.current=s.current,l.total=s.total):(l.current=0,l.total=n.size()),n.size()!==l.total)throw pae();let c=l.total-l.current,u=c;i>0&&(u=Math.min(u,i));let d=l.current,f=d+u,p="";u===0?p="finalize":c===u?p="upload, finalize":p="upload";let g={"X-Goog-Upload-Command":p,"X-Goog-Upload-Offset":`${l.current}`},y=n.slice(d,f);if(y===null)throw Z5();function v(B,q){let V=EP(B,["active","final"]),b=l.current+u,E=n.size(),I;return V==="final"?I=IP(e,a)(B,q):I=null,new Im(b,E,V==="final",I)}let T="POST",C=e.maxUploadRetryTime,x=new il(t,T,v,C);return x.headers=g,x.body=y.uploadData(),x.progressCallback=o||null,x.errorHandler=Em(r),x}var Ga={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function cP(r){switch(r){case"running":case"pausing":case"canceling":return Ga.RUNNING;case"paused":return Ga.PAUSED;case"success":return Ga.SUCCESS;case"canceled":return Ga.CANCELED;case"error":return Ga.ERROR;default:return Ga.ERROR}}var mP=class{constructor(e,t,n){if(Iae(e)||t!=null||n!=null)this.next=e,this.error=t??void 0,this.complete=n??void 0;else{let a=e;this.next=a.next,this.error=a.error,this.complete=a.complete}}};function _m(r){return(...e)=>{Promise.resolve().then(()=>r(...e))}}var G5=null,pP=class{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=wm.NO_ERROR,this.sendPromise_=new Promise(e=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=wm.ABORT,e()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=wm.NETWORK_ERROR,e()}),this.xhr_.addEventListener("load",()=>{e()})})}send(e,t,n,i,a){if(this.sent_)throw W0("cannot .send() more than once");if(ns(e)&&n&&(this.xhr_.withCredentials=!0),this.sent_=!0,this.xhr_.open(t,e,!0),a!==void 0)for(let s in a)a.hasOwnProperty(s)&&this.xhr_.setRequestHeader(s,a[s].toString());return i!==void 0?this.xhr_.send(i):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw W0("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw W0("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw W0("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw W0("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(e){return this.xhr_.getResponseHeader(e)}addUploadProgressListener(e){this.xhr_.upload!=null&&this.xhr_.upload.addEventListener("progress",e)}removeUploadProgressListener(e){this.xhr_.upload!=null&&this.xhr_.upload.removeEventListener("progress",e)}},gP=class extends pP{initXhr(){this.xhr_.responseType="text"}};function ac(){return G5?G5():new gP}var yP=class{isExponentialBackoffExpired(){return this.sleepTime>this.maxSleepTime}constructor(e,t,n=null){this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=e,this._blob=t,this._metadata=n,this._mappings=wP(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=i=>{if(this._request=void 0,this._chunkMultiplier=1,i._codeEquals(Zr.CANCELED))this._needToFetchStatus=!0,this.completeTransitions_();else{let a=this.isExponentialBackoffExpired();if(r8(i.status,[]))if(a)i=Q5();else{this.sleepTime=Math.max(this.sleepTime*2,sae),this._needToFetchStatus=!0,this.completeTransitions_();return}this._error=i,this._transition("error")}},this._metadataErrorHandler=i=>{this._request=void 0,i._codeEquals(Zr.CANCELED)?this.completeTransitions_():(this._error=i,this._transition("error"))},this.sleepTime=0,this.maxSleepTime=this._ref.storage.maxUploadRetryTime,this._promise=new Promise((i,a)=>{this._resolve=i,this._reject=a,this._start()}),this._promise.then(null,()=>{})}_makeProgressCallback(){let e=this._transferred;return t=>this._updateProgress(e+t)}_shouldDoResumable(e){return e.size()>256*1024}_start(){this._state==="running"&&this._request===void 0&&(this._resumable?this._uploadUrl===void 0?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this.pendingTimeout=setTimeout(()=>{this.pendingTimeout=void 0,this._continueUpload()},this.sleepTime):this._oneShotUpload())}_resolveToken(e){Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then(([t,n])=>{switch(this._state){case"running":e(t,n);break;case"canceling":this._transition("canceled");break;case"pausing":this._transition("paused");break}})}_createResumable(){this._resolveToken((e,t)=>{let n=ese(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),i=this._ref.storage._makeRequest(n,ac,e,t);this._request=i,i.getPromise().then(a=>{this._request=void 0,this._uploadUrl=a,this._needToFetchStatus=!1,this.completeTransitions_()},this._errorHandler)})}_fetchStatus(){let e=this._uploadUrl;this._resolveToken((t,n)=>{let i=tse(this._ref.storage,this._ref._location,e,this._blob),a=this._ref.storage._makeRequest(i,ac,t,n);this._request=a,a.getPromise().then(s=>{s=s,this._request=void 0,this._updateProgress(s.current),this._needToFetchStatus=!1,s.finalized&&(this._needToFetchMetadata=!0),this.completeTransitions_()},this._errorHandler)})}_continueUpload(){let e=$5*this._chunkMultiplier,t=new Im(this._transferred,this._blob.size()),n=this._uploadUrl;this._resolveToken((i,a)=>{let s;try{s=rse(this._ref._location,this._ref.storage,n,this._blob,e,this._mappings,t,this._makeProgressCallback())}catch(l){this._error=l,this._transition("error");return}let o=this._ref.storage._makeRequest(s,ac,i,a,!1);this._request=o,o.getPromise().then(l=>{this._increaseMultiplier(),this._request=void 0,this._updateProgress(l.current),l.finalized?(this._metadata=l.metadata,this._transition("success")):this.completeTransitions_()},this._errorHandler)})}_increaseMultiplier(){$5*this._chunkMultiplier*2<32*1024*1024&&(this._chunkMultiplier*=2)}_fetchMetadata(){this._resolveToken((e,t)=>{let n=l8(this._ref.storage,this._ref._location,this._mappings),i=this._ref.storage._makeRequest(n,ac,e,t);this._request=i,i.getPromise().then(a=>{this._request=void 0,this._metadata=a,this._transition("success")},this._metadataErrorHandler)})}_oneShotUpload(){this._resolveToken((e,t)=>{let n=Zae(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),i=this._ref.storage._makeRequest(n,ac,e,t);this._request=i,i.getPromise().then(a=>{this._request=void 0,this._metadata=a,this._updateProgress(this._blob.size()),this._transition("success")},this._errorHandler)})}_updateProgress(e){let t=this._transferred;this._transferred=e,this._transferred!==t&&this._notifyObservers()}_transition(e){if(this._state!==e)switch(e){case"canceling":case"pausing":this._state=e,this._request!==void 0?this._request.cancel():this.pendingTimeout&&(clearTimeout(this.pendingTimeout),this.pendingTimeout=void 0,this.completeTransitions_());break;case"running":let t=this._state==="paused";this._state=e,t&&(this._notifyObservers(),this._start());break;case"paused":this._state=e,this._notifyObservers();break;case"canceled":this._error=J5(),this._state=e,this._notifyObservers();break;case"error":this._state=e,this._notifyObservers();break;case"success":this._state=e,this._notifyObservers();break}}completeTransitions_(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start();break}}get snapshot(){let e=cP(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:e,metadata:this._metadata,task:this,ref:this._ref}}on(e,t,n,i){let a=new mP(t||void 0,n||void 0,i||void 0);return this._addObserver(a),()=>{this._removeObserver(a)}}then(e,t){return this._promise.then(e,t)}catch(e){return this.then(null,e)}_addObserver(e){this._observers.push(e),this._notifyObserver(e)}_removeObserver(e){let t=this._observers.indexOf(e);t!==-1&&this._observers.splice(t,1)}_notifyObservers(){this._finishPromise(),this._observers.slice().forEach(t=>{this._notifyObserver(t)})}_finishPromise(){if(this._resolve!==void 0){let e=!0;switch(cP(this._state)){case Ga.SUCCESS:_m(this._resolve.bind(null,this.snapshot))();break;case Ga.CANCELED:case Ga.ERROR:let t=this._reject;_m(t.bind(null,this._error))();break;default:e=!1;break}e&&(this._resolve=void 0,this._reject=void 0)}}_notifyObserver(e){switch(cP(this._state)){case Ga.RUNNING:case Ga.PAUSED:e.next&&_m(e.next.bind(e,this.snapshot))();break;case Ga.SUCCESS:e.complete&&_m(e.complete.bind(e))();break;case Ga.CANCELED:case Ga.ERROR:e.error&&_m(e.error.bind(e,this._error))();break;default:e.error&&_m(e.error.bind(e,this._error))()}}resume(){let e=this._state==="paused"||this._state==="pausing";return e&&this._transition("running"),e}pause(){let e=this._state==="running";return e&&this._transition("pausing"),e}cancel(){let e=this._state==="running"||this._state==="pausing";return e&&this._transition("canceling"),e}};
99var xm=class r{constructor(e,t){this._service=e,t instanceof ps?this._location=t:this._location=ps.makeFromUrl(t,e.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(e,t){return new r(e,t)}get root(){let e=new ps(this._location.bucket,"");return this._newRef(this._service,e)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return a8(this._location.path)}get storage(){return this._service}get parent(){let e=Lae(this._location.path);if(e===null)return null;let t=new ps(this._location.bucket,e);return new r(this._service,t)}_throwIfRoot(e){if(this._location.path==="")throw vae(e)}};function nse(r,e,t){return r._throwIfRoot("uploadBytesResumable"),new yP(r,new px(e),t)}function ise(r){let e={prefixes:[],items:[]};return u8(r,e).then(()=>e)}function u8(r,e,t){return m(this,null,function*(){let i=yield d8(r,{pageToken:t});e.prefixes.push(...i.prefixes),e.items.push(...i.items),i.nextPageToken!=null&&(yield u8(r,e,i.nextPageToken))})}function d8(r,e){e!=null&&typeof e.maxResults=="number"&&hP("options.maxResults",1,1e3,e.maxResults);let t=e||{},n=Yae(r.storage,r._location,"/",t.pageToken,t.maxResults);return r.storage.makeRequestWithTokens(n,ac)}function ase(r){r._throwIfRoot("getMetadata");let e=l8(r.storage,r._location,wP());return r.storage.makeRequestWithTokens(e,ac)}function sse(r){r._throwIfRoot("getDownloadURL");let e=Xae(r.storage,r._location,wP());return r.storage.makeRequestWithTokens(e,ac).then(t=>{if(t===null)throw gae();return t})}function ose(r){r._throwIfRoot("deleteObject");let e=Qae(r.storage,r._location);return r.storage.makeRequestWithTokens(e,ac)}function lse(r,e){let t=Vae(r._location.path,e),n=new ps(r._location.bucket,t);return new xm(r.storage,n)}function cse(r){return/^[A-Za-z]+:\/\//.test(r)}function use(r,e){return new xm(r,e)}function h8(r,e){if(r instanceof Y0){let t=r;if(t._bucket==null)throw mae();let n=new xm(t,t._bucket);return e!=null?h8(n,e):n}else return e!==void 0?lse(r,e):r}function dse(r,e){if(e&&cse(e)){if(r instanceof Y0)return use(r,e);throw uP("To use ref(service, url), the first argument must be a Storage instance.")}else return h8(r,e)}function W5(r,e){let t=e?.[X5];return t==null?null:ps.makeFromBucketSpec(t,r)}function hse(r,e,t,n={}){r.host=`${e}:${t}`;let i=ns(e);i&&(kc(`https://${r.host}/b`),od("Storage",!0)),r._isUsingEmulator=!0,r._protocol=i?"https":"http";let{mockUserToken:a}=n;a&&(r._overrideAuthToken=typeof a=="string"?a:HC(a,r.app.options.projectId))}var Y0=class{constructor(e,t,n,i,a,s=!1){this.app=e,this._authProvider=t,this._appCheckProvider=n,this._url=i,this._firebaseVersion=a,this._isUsingEmulator=s,this._bucket=null,this._host=Y5,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=iae,this._maxUploadRetryTime=aae,this._requests=new Set,i!=null?this._bucket=ps.makeFromBucketSpec(i,this._host):this._bucket=W5(this._host,this.app.options)}get host(){return this._host}set host(e){this._host=e,this._url!=null?this._bucket=ps.makeFromBucketSpec(this._url,e):this._bucket=W5(e,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(e){hP("time",0,Number.POSITIVE_INFINITY,e),this._maxUploadRetryTime=e}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(e){hP("time",0,Number.POSITIVE_INFINITY,e),this._maxOperationRetryTime=e}_getAuthToken(){return m(this,null,function*(){if(this._overrideAuthToken)return this._overrideAuthToken;let e=this._authProvider.getImmediate({optional:!0});if(e){let t=yield e.getToken();if(t!==null)return t.accessToken}return null})}_getAppCheckToken(){return m(this,null,function*(){if(Cn(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;let e=this._appCheckProvider.getImmediate({optional:!0});return e?(yield e.getToken()).token:null})}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(e=>e.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(e){return new xm(this,e)}_makeRequest(e,t,n,i,a=!0){if(this._deleted)return new dP(e8());{let s=Dae(e,this._appId,n,i,t,this._firebaseVersion,a,this._isUsingEmulator);return this._requests.add(s),s.getPromise().then(()=>this._requests.delete(s),()=>this._requests.delete(s)),s}}makeRequestWithTokens(e,t){return m(this,null,function*(){let[n,i]=yield Promise.all([this._getAuthToken(),this._getAppCheckToken()]);
99return this._makeRequest(e,t,n,i).getPromise()})}},q5="@firebase/storage",K5="0.13.14";var f8="storage";function m8(r,e,t){return r=At(r),nse(r,e,t)}function p8(r){return r=At(r),ase(r)}function g8(r,e){return r=At(r),d8(r,e)}function y8(r){return r=At(r),ise(r)}function v8(r){return r=At(r),sse(r)}function _8(r){return r=At(r),ose(r)}function b8(r,e){return r=At(r),dse(r,e)}function w8(r=Fa(),e){r=At(r);let n=fa(r,f8).getImmediate({identifier:e}),i=sg("storage");return i&&I8(n,...i),n}function I8(r,e,t,n={}){hse(r,e,t,n)}function fse(r,{instanceIdentifier:e}){let t=r.getProvider("app").getImmediate(),n=r.getProvider("auth-internal"),i=r.getProvider("app-check-internal");return new Y0(t,n,i,e,Fo)}function mse(){On(new Xr(f8,fse,"PUBLIC").setMultipleInstances(!0)),jt(q5,K5,""),jt(q5,K5,"esm2017")}mse();var ih=class{constructor(e){return e}},x8="storage",TP=class{constructor(){return Cs(x8)}};var CP=new me("angularfire2.storage-instances");function pse(r,e){let t=io(x8,r,e);return t&&new ih(t)}function gse(r){return(e,t)=>{let n=e.runOutsideAngular(()=>r(t));return new ih(n)}}var yse={provide:TP,deps:[[new Dr,CP]]},vse={provide:ih,useFactory:pse,deps:[[new Dr,CP],ma]};function zVe(r,...e){return jt("angularfire",Ba.full,"gcs"),Li([vse,yse,{provide:CP,useFactory:gse(r),multi:!0,deps:[Qe,X,Na,is,[new Dr,Vl],[new Dr,Lo],...e]}])}var yx=ht(_8,!0,2);var Tm=ht(v8,!0),E8=ht(p8,!0),jVe=ht(w8,!0);var T8=ht(g8,!0),C8=ht(y8,!0),al=ht(b8,!0,2);var S8=ht(m8,!0);var X0=(n=>(n[n.Come_da_impostazioni=0]="Come_da_impostazioni",n[n.Mostra=1]="Mostra",n[n.Nascondi=2]="Nascondi",n))(X0||{});function A8(r,e){return r===1?!0:r===2?!1:e}var D8=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(X0)}getNameByEnum(e){let t=Object.values(X0);switch(e){case t[0]:case 0:return"Come da impostazioni del sito";case t[1]:case 1:return"Mostra sempre l'avviso";case t[2]:case 2:return"Non mostrare l'avviso";default:return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error AiDisclosureOverride name"}}getOrderByEnum(e){let t=this.getEnumValues();switch(e){case t[0]:case 0:return 0;case t[1]:case 1:return 1;case t[2]:case 2:return 2;default:return-1}}visible(e){return!0}getIconByEnum(e){switch(e){case 0:return"settings_suggest";case 1:return"visibility";case 2:return"visibility_off";default:return"settings_suggest"}}getColor(){return"var(--black-color)"}};var fu=(a=>(a[a.Link_Interno=0]="Link_Interno",a[a.Link_Esterno=1]="Link_Esterno",a[a.Ancora=2]="Ancora",a[a.Pdf=3]="Pdf",a[a.Form=4]="Form",a))(fu||{}),Q0=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(fu)}getNameByEnum(e){let t=Object.values(fu);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error CommentTypology name"}getInstanceAll(){return this.getInstance(void 0,ue.getAllId(),"Nessuno")}visible(e){let t=Object.values(fu);return!0}getIconByEnum(e){switch(e){case 0:return"link";case 1:return"open_in_new";case 2:return"anchor";case 3:return"picture_as_pdf";case 4:return"email";default:return"block"}}getColor(){return"var(--black-color)"}};var J0=(n=>(n[n.Nessuna_AI=0]="Nessuna_AI",n[n.Generata_con_AI=1]="Generata_con_AI",n[n.Modificata_con_AI=2]="Modificata_con_AI",n))(J0||{});function Z0(r){return r===1||r===2}var M8=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(J0)}getNameByEnum(e){let t=Object.values(J0);switch(e){case t[0]:case 0:return"Nessuna AI";case t[1]:case 1:return"Generata con AI";case t[2]:case 2:return"Modificata con AI";default:return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error AiSourceType name"}}getOrderByEnum(e){let t=this.getEnumValues();switch(e){case t[0]:case 0:return 0;case t[1]:case 1:return 1;case t[2]:case 2:return 2;default:return-1}}visible(e){return!0}getIconByEnum(e){switch(e){case 0:return"photo_camera";case 1:return"auto_awesome";case 2:return"auto_fix_high";default:return"photo_camera"}}getColor(){return"var(--black-color)"}
99getTooltipText(){let e=Number(this.id);switch(e){case 0:return"Foto/immagine reale: nessun avviso sul sito.";case 1:return"Immagine creata interamente da un sistema di AI.";case 2:return"Immagine reale ritoccata/alterata in modo sostanziale con l'AI.";default:return this.getNameByEnum(e)}}isAi(){return Z0(Number(this.id))}};var vx=class{url;path;id;description;alt;title;aiSourceTypeId;aiDisclosureId;constructor(e){e&&this.setData(e)}setData(e){e&&(this.url=e.url,this.path=e.path,this.id=e.id,this.description=e.description,this.alt=e.alt,this.title=e.title,this.aiSourceTypeId=e.aiSourceTypeId,this.aiDisclosureId=e.aiDisclosureId)}getDocumentData(e,t){var n={};return n.url=this.url?this.url:null,n.path=this.path?this.path:null,n.id=this.id?this.id:null,n.description=this.description?this.description:null,n.alt=this.alt?this.alt:null,n.title=this.title?this.title:null,n.aiSourceTypeId=this.aiSourceTypeId!==void 0?this.aiSourceTypeId:null,n.aiDisclosureId=this.aiDisclosureId!==void 0?this.aiDisclosureId:null,n}getAiSourceType(){return this.aiSourceTypeId??0}isAiGenerated(){return Z0(this.aiSourceTypeId)}getAiDisclosureOverride(){return this.aiDisclosureId??0}hasData(){return this.hasImage()||this.hasPath()}hasDescription(){return this.description!==void 0&&this.description?.length>0}hasImage(){return this.url!=null}hasPath(){return this.path!=null}getName(){return this.hasImage()?this.url?.split("/").pop():""}getAlt(){return this.alt??this.description}getTitle(){return this.title??this.getName()}getImageForGallery(){var e=[];return this&&(e[0]={image:this.url,thumbImage:this.url,title:this.description}),e}};var qe=class r{name;label;isHtml;mode;isList;get;set;constructor(e,t,n=!1,i="text",a=!1){this.name=e,this.label=t,this.isHtml=n,this.mode=i,this.isList=a}static text(e,t){return new r(e,t,!1,"text",!1)}static html(e,t,n=!0){return new r(e,t,n,"text",!1)}static list(e,t,n=!1){return new r(e,t,n,"text",!0)}static slug(e,t){return new r(e,t,!1,"slug",!1)}static anchor(e,t){return new r(e,t,!1,"anchor",!1)}withAccessors(e,t){return this.get=e,this.set=t,this}resolveIsHtml(e){if(typeof this.isHtml!="function")return this.isHtml===!0;if(!e)return!1;try{return this.isHtml(e)===!0}catch(t){return console.warn("resolveIsHtml fallita per "+this.name,t),!1}}},Re=class r{name;label;value;constructor(e,t,n){this.name=e,this.label=t,this.value=n}static one(e,t,n){return new r(e,t,n)}static many(e,t,n){return new r(e,t,n)}},_x=class{path;label;value;isHtml;mode;owner;target;field;index;constructor(e,t,n,i,a,s,o){this.path=e,this.label=t,this.owner=n,this.target=i,this.field=a,this.isHtml=s,this.mode=a.mode,this.index=o,this.value=this.read()}read(){if(this.field.get)return this.field.get(this.target);let e=this.target?.[this.field.name];return this.index!==void 0?Array.isArray(e)?e[this.index]:void 0:e}set(e){if(this.value=e,this.field.set){this.field.set(this.target,e);return}if(this.index!==void 0){let t=this.target?.[this.field.name];Array.isArray(t)&&(t[this.index]=e);return}this.target[this.field.name]=e}};function bx(r,e,t="",n=""){if(!r)return[];let i=[],a=r.constructor?.name??"sconosciuto",s=(l,c,u)=>l?l+u+c:c,o=typeof r.getTranslatableFields=="function"?r.getTranslatableFields():[];for(let l of o){let c=l.resolveIsHtml(e),u=s(t,l.name,"."),d=s(n,l.label," > ");if(!l.isList){i.push(new _x(u,d,a,r,l,c));continue}let f=r[l.name];Array.isArray(f)&&f.forEach((p,g)=>{i.push(new _x(u+"["+g+"]",d+" "+(g+1),a,r,l,c,g))})}if(typeof r.getTranslatableChildren!="function")return i;for(let l of r.getTranslatableChildren()){let c=s(t,l.name,"."),u=s(n,l.label," > ");Array.isArray(l.value)?l.value.forEach((d,f)=>{i.push(...bx(d,e,c+"["+f+"]",u+" "+(f+1)))}):i.push(...bx(l.value,e,c,u))}return i}var Qt=class r{url;name;id;alt;link;description;typeId;order;path;size;fromStorage;optimizedVersion;aiSourceTypeId;aiDisclosureId;aiModel;headerTitle;headerSubtitle;headerCta;headerCtaLink;headerCtaAnchor;generalButton;headerOverlay;base64;file;changes;default=!1;constructor(e){e&&this.setData(e)}setData(e){e&&(this.url=e.url,this.name=e.name,this.alt=e.alt,this.link=e.link,this.id=e.id,this.description=e.description,this.typeId=e.typeId,this.order=e.order,this.path=e.path,this.size=e.size,this.fromStorage=e.fromStorage,this.optimizedVersion=e.optimizedVersion,this.aiSourceTypeId=e.aiSourceTypeId,this.aiDisclosureId=e.aiDisclosureId,this.aiModel=e.aiModel,this.headerTitle=e.headerTitle,this.headerSubtitle=e.headerSubtitle,this.headerCta=e.headerCta,this.headerCtaLink=e.headerCtaLink,this.headerCtaAnchor=e.headerCtaAnchor,this.headerOverlay=e.headerOverlay,this.generalButton=r.buildGeneralButton(e))}getDocumentData(){var e={};return this.default?this.clear():(e.url=this.url?this.url:null,e.name=this.name?this.name:null,e.alt=this.alt?this.alt:null,e.link=this.link?this.link:null,e.id=this.id?this.id:null,e.description=this.description?this.description:null,e.typeId=this.typeId!==void 0?this.typeId:null,e.order=this.order!==void 0?this.order:0,e.path=this.path!==void 0?this.path:null,e.size=this.size!==void 0?this.size:null,e.fromStorage=this.fromStorage!==void 0?this.fromStorage:null,e.optimizedVersion=this.optimizedVersion!==void 0?this.optimizedVersion:null,e.aiSourceTypeId=this.aiSourceTypeId!==void 0?this.aiSourceTypeId:null,e.aiDisclosureId=this.aiDisclosureId!==void 0?this.aiDisclosureId:null,e.aiModel=this.aiModel!==void 0?this.aiModel:null,e.headerTitle=this.headerTitle!==void 0?this.headerTitle:null,e.headerSubtitle=this.headerSubtitle!==void 0?this.headerSubtitle:null,e.headerCta=this.headerCta!==void 0?this.headerCta:null,e.headerCtaLink=this.headerCtaLink!==void 0?this.headerCtaLink:null,e.headerOverlay=this.headerOverlay!==void 0?this.headerOverlay:null,e.generalButton=this.generalButton?typeof this.generalButton.getDocumentData=="function"?this.generalButton.getDocumentData():this.generalButton:null,e.headerCta=this.generalButton?.buttonText??null,e.headerCtaLink=this.generalButton?.buttonLink??null,e.headerCtaAnchor=this.generalButton?.buttonAnchor??null),e}isNew(){return!(this.id&&this.id!==null&&this.id!==void 0)}isNewForUpload(){return!(this.file||this.base64||this.url)}
99getUrl(){return this.getSafeUrl()}getSafeUrl(){return this.url?this.url.trim().replace("(","%28").replace(")","%29"):void 0}isHeaderTitle(){return this.headerTitle!=null&&this.headerTitle!=null}isHeaderSubtitle(){return this.headerSubtitle!=null&&this.headerSubtitle!=null}clear(){this.url=void 0,this.name=void 0,this.alt=void 0,this.link=void 0,this.description=void 0,this.id=void 0,this.typeId=void 0,this.order=void 0,this.path=void 0,this.size=void 0,this.aiSourceTypeId=void 0,this.aiDisclosureId=void 0,this.aiModel=void 0,this.headerTitle=void 0,this.headerSubtitle=void 0,this.headerCta=void 0,this.generalButton=void 0}isEmpty(){return this.id==null}isEmptyAll(){return this.isEmpty()&&!this.hasUrl()&&!this.base64&&!this.file}hasUrl(){return this.url!=null}getName(){return this.name??""}hasName(){return this.name!=null}getAlt(){return this.alt??this.getTitle()}getLink(){return this.link??void 0}haveLink(){return!!this.link}getTitle(){return this.name??""}static buildGeneralButton(e){if(e?.generalButton)return e.generalButton;let t=e?.headerCta;if(!t)return;let n=e?.headerCtaAnchor;return{buttonText:t,buttonAnchor:n,buttonLink:e?.headerCtaLink,buttonTypologyId:n?2 .valueOf():1 .valueOf()}}haveCta(){let e=this.generalButton?.buttonText??this.headerCta;return!!(e&&e.length>0)}haveCtaLink(){let e=this.generalButton?.buttonLink??this.headerCtaLink;return!!(e&&e.length>0)}haveCtaAnchor(){let e=this.generalButton?.buttonAnchor??this.headerCtaAnchor;return!!(e&&e.length>0)}getOverlay(){return!this.headerTitle&&!this.headerSubtitle?!1:this.headerOverlay??!0}getImageForGallery(){var e=[];return this&&(e[0]={image:this.url,thumbImage:this.url,title:this.description}),e}getMultimediaTypeClass(){return new sl(this.typeId).getClass()}getMultimediaTypeEnum(){return this.typeId!==void 0?this.typeId:this.getMultimediaTypeEnumByName()}getMultimediaTypeEnumName(){return this.getMultimediaTypeClass().getName()}getImageContent(){var e=new vx;return e.url=this.url,e.id=this.id,e.description=this.description,e.alt=this.alt,e.title=this.name,e.aiSourceTypeId=this.aiSourceTypeId,e.aiDisclosureId=this.aiDisclosureId,e}getAiSourceType(){return this.aiSourceTypeId??0}isAiGenerated(){return Z0(this.aiSourceTypeId)}getAiDisclosureOverride(){return this.aiDisclosureId??0}hasAiDisclosureOverride(){return this.getAiDisclosureOverride()!==0}setAiGenerated(e,t=1){this.aiSourceTypeId=t,e&&(this.aiModel=e)}deleteFile(e){return m(this,null,function*(){try{yield e.get(ol).deleteFile(this)}catch(t){console.error("deleteFile",t)}})}static deleteMultimedias(e,t){return m(this,null,function*(){t&&(yield Promise.all(t.map(n=>m(null,null,function*(){yield n.deleteFile(e)}))))})}getExtension(){if(this.file)return this.file.name.split(".").pop();if(this.path)return this.path.split(".").pop();if(this.name)return this.name.split(".").pop()}getTypeBlob(){return sl.getTypeBlob(this.typeId,this.getExtension())}getMultimediaTypeEnumByName(){return sl.getMultimediaTypeEnumByName(this.getExtension())}duplicate(e,t,n){return m(this,null,function*(){var i=a=>{n&&n(a.toFixed(2)+"%")};return yield e.get(ol).duplicatFile(this,t,i)})}getTranslatableFields(){return[qe.text("alt","Testo alternativo"),qe.text("description","Descrizione")]}duplicateByReplaceId(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){var u=this?.path;if(!u&&this?.url&&(u=ol.extractPathFromUrl(this.url)),u){u=u.split(t).join(n),a&&s&&(u=u.split(a).join(s));var d=u.lastIndexOf("/");d>=0&&(u=u.substring(0,d))}var f=yield this.duplicate(e,u,i);if((!f||!f.url)&&u)try{let p=(this.path||this.name||"").split("/").pop();if(p){let g=new r;g.path=`uploads/${sl.getTotalsPath(this.getMultimediaTypeEnum())}/${p}`,g.url=g.path,g.typeId=this.typeId,g.name=this.name,g.description=this.description,g.aiSourceTypeId=this.aiSourceTypeId,g.aiDisclosureId=this.aiDisclosureId,g.aiModel=this.aiModel;let y=yield g.duplicate(e,u,i);y&&y.url&&(f=y)}}catch(p){console.warn("duplicateByReplaceId: fallback da totals fallito",p)}if(l&&o){let p=[];p.push(e.get(Ge).getTranslationGeminiText(this.alt,o,!0,!1).then(g=>f.alt=g)),p.push(e.get(Ge).getTranslationGeminiText(this.description,o,!0,!1).then(g=>
99f.description=g)),yield Promise.all(p)}return f})}};var ol=class r{constructor(e){this.injector=e;this.http=A(Ps),this.originImpl=A(Xt),this.managerBase=A(xr),this.functions=A(mn),this.storage=A(ih)}basePathCorrect="uploads";basePath="/"+this.basePathCorrect;static basePathTotal="totals";storage;http;functions;managerBase;originImpl;ngOnDestroy(){}static sanitizeFileName(e){if(!e)return"file";let t=e.lastIndexOf("."),n=t>0?e.substring(0,t):e,i=t>0?e.substring(t+1):"";return n=n.normalize("NFD").replace(/[Ì-ͯ]/g,"").replace(/[^a-zA-Z0-9._-]+/g,"-").replace(/-+/g,"-").replace(/^[-_.]+|[-_.]+$/g,""),n||(n="file"),i=i.normalize("NFD").replace(/[Ì-ͯ]/g,"").replace(/[^a-zA-Z0-9]+/g,"").toLowerCase(),i?`${n}.${i}`:n}getCorrectUrl(e,t){return m(this,null,function*(){var n=`${this.basePath}`;return t&&(n=`${n}/${t}`),n=`${n}/${e}`,n})}getUploadPath(e,t){return m(this,null,function*(){return(yield this.getCorrectUrl(r.sanitizeFileName(e),t)).substring(1)})}uploadFile(e,t,n,i,a=5,s,o,l,c,u){return new Promise((d,f)=>m(this,null,function*(){if(e.size/1e6>=a){console.log(`file size ${e.size/1e6} MB`),f(new Error(`Max ${a} MB`));return}let p=Date.now().toString();var g=r.sanitizeFileName(c??e.name);let y=yield this.getCorrectUrl(`${g}`,t);return Le(this.injector,()=>{let v=al(this.storage,y),T={contentType:e.type,cacheControl:"public,max-age=31536000,immutable"},C=S8(v,e,T);u&&u(C),C.on("state_changed",x=>{if(n){let B=x.bytesTransferred/x.totalBytes;n(B)}},x=>{switch(x.code){case"storage/unauthorized":break;case"storage/canceled":break;case"storage/unknown":break}f(x)},()=>Le(this.injector,()=>{Tm(C.snapshot.ref).then(x=>m(this,null,function*(){var B=new Qt;if(B.url=x,B.name=g,B.id=p,B.description=i,B.alt=l,B.path=y.substring(1,y.length),B.typeId=s??B.getMultimediaTypeEnumByName().valueOf(),B.size=e.size,o&&B.getMultimediaTypeEnumByName()==0&&B.getExtension()!=="webp"){let q=yield this.getCorrectUrl(`${p}.webp`,t);q=q.substring(1);try{B=yield this.convertToWebp(B,q);let V=al(this.storage,x);yx(V).then(()=>{}).catch(b=>{console.error("delete error",b)})}catch(V){console.warn("convertToWebp fallita, mantengo l'originale:",V)}}d(B)}))}))})}))}convertToWebp(e,t){return new Promise((n,i)=>{var a=e.url;Ht(this.functions,"convertToWebpCallV2")({urlImage:a,destPath:t}).then(l=>m(this,null,function*(){let c=l.data;if(c.success){var u=c.data;e.url=u,e.path=t,n(e)}else i(c.message)})).catch(l=>{pe.checkFunctionCorsError(l,this.injector,"convertToWebpCallV2"),console.error("convertToWebp error",l),i(l)})})}optimizeAllImages(e=!0,t,n){return Le(this.injector,()=>new Promise((i,a)=>{Ht(this.functions,"optimizeAllImagesCallV2",{timeout:36e5})({skipOptimized:e,limit:t,onlyPath:n}).then(o=>{let l=o.data;l.success?i(l.data):a(l.message)}).catch(o=>{console.error("optimizeAllImages error",o),pe.checkFunctionCorsError(o,this.injector,"optimizeAllImagesCallV2"),a(o)})}))}optimizeAllVideos(e=!0,t,n){return Le(this.injector,()=>new Promise((i,a)=>{Ht(this.functions,"optimizeAllVideosCallV2",{timeout:36e5})({skipOptimized:e,limit:t,onlyPath:n}).then(o=>{let l=o.data;l.success?i(l.data):a(l.message)}).catch(o=>{console.error("optimizeAllVideos error",o),pe.checkFunctionCorsError(o,this.injector,"optimizeAllVideosCallV2"),a(o)})}))}optimizeAllMedia(e=!0,t,n){return Le(this.injector,()=>new Promise((i,a)=>{Ht(this.functions,"optimizeAllMediaCallV2",{timeout:36e5})({skipOptimized:e,limit:t,onlyPath:n}).then(o=>{let l=o.data;l.success?i(l.data):a(l.message)}).catch(o=>{console.error("optimizeAllMedia error",o),pe.checkFunctionCorsError(o,this.injector,"optimizeAllMediaCallV2"),a(o)})}))}getDownloadUrlByPath(e){return Le(this.injector,()=>{let t=al(this.storage,e);return Tm(t)})}getSizeByPath(e){return Le(this.injector,()=>{let t=al(this.storage,e);return E8(t).then(n=>n?.size)})}deleteFile(e){return new Promise((t,n)=>{if(e.url==null){t(e);return}try{return Le(this.injector,()=>{let i=al(this.storage,e.url);yx(i).then(()=>{e.clear(),t(e)}).catch(a=>{console.error("delete error",a),n(a)})})}catch{e.clear(),t(e)}})}deleteFolder(e){return new Promise((t,n)=>{if(!e){t();return}try{let i=[],a=this.basePath+"/"+e;console.log("deleteFolder",a);let s=al(this.storage,a);C8(s).then(o=>
99{if(console.log(" delete files",o.items.length),o.items.forEach(l=>{i.push(yx(l))}),i.length==0){t();return}eo(i).subscribe(l=>{t()},l=>{console.error("error",l),t()})})}catch(i){console.error("deleteFolder",i),t()}})}duplicatFile(e,t,n){return new Promise((i,a)=>m(this,null,function*(){if(e.url==null){i(e);return}if(!t){i(new Qt);return}try{let o=t.includes(this.basePathCorrect)?t:`${this.basePathCorrect}/${t}`;var s=yield this.duplicateFile(e,o);i(s||new Qt)}catch(o){console.error("duplicatFile error",o),i(new Qt)}}))}duplicateFileIntoTotals(e){return m(this,null,function*(){var t=`${this.basePathCorrect}/${sl.getTotalsPath(e.getMultimediaTypeEnum())}`,n=yield this.duplicateFile(e,t);return n})}duplicateFile(e,t){return m(this,null,function*(){return new Promise((n,i)=>m(this,null,function*(){let a=[];if(e.path&&a.push(e.path),e.url){let d=r.extractPathFromUrl(e.url);d&&!a.includes(d)&&a.push(d)}if(a.length===0){n(void 0);return}for(let d of a)try{var s=yield this.duplicateFileCall(d,t),o=s[0],l=s[1],c=o.split("/").pop(),u=c?.substring(0,c.lastIndexOf("."));let f=al(this.storage,o);return Le(this.injector,()=>{Tm(f).then(p=>{var g=new Qt;g.url=p,g.name=c,g.id=u,g.typeId=e.typeId,g.alt=e.alt,g.path=o,g.size=l,g.aiSourceTypeId=e.aiSourceTypeId,g.aiDisclosureId=e.aiDisclosureId,g.aiModel=e.aiModel,n(g)}).catch(p=>{console.error("delete error",p),i(p)})})}catch(f){if((f instanceof Error?f.message:String(f)).includes("No such object"))continue;console.error("duplicatFile2 error",f),i(f);return}n(void 0)}))})}static extractPathFromUrl(e){try{let t=new URL(e);if(t.hostname==="storage.googleapis.com"){let n=t.pathname.split("/");if(n.length>=3)return decodeURIComponent(n.slice(2).join("/"))}else if(t.hostname==="firebasestorage.googleapis.com"){let n=t.pathname.match(/\/v0\/b\/[^/]+\/o\/(.+)/);if(n)return decodeURIComponent(n[1].split("?")[0])}}catch{}}duplicateFileCall(e,t){return Le(this.injector,()=>new Promise((n,i)=>{Ht(this.functions,"duplicateFileCallV2")({sourcePath:e,destPath:t}).then(s=>m(this,null,function*(){let o=s.data;if(o.success){var l=o.data,c=l[0].name,u=l[1].objectSize;n([c,u])}else i(o.message)})).catch(s=>{pe.checkFunctionCorsError(s,this.injector,"duplicateFileCallV2"),console.error("duplicateFileCall error",s),i(s)})}))}renameFile(e){return m(this,null,function*(){return new Promise((t,n)=>m(this,null,function*(){if(!e.path){t(void 0);return}try{var i=e.path,a=r.sanitizeFileName(e.name),s=yield this.renameFileCall(i,a),o=s[0],l=s[1],c=o.split("/").pop(),u=c?.substring(0,c.lastIndexOf("."));let d=al(this.storage,o);return Le(this.injector,()=>{Tm(d).then(f=>{var p=new Qt;p.url=f,p.name=a,p.id=u,p.typeId=e.typeId,p.path=o,p.size=l,t(p)}).catch(f=>{console.error("delete error",f),n(f)})})}catch(d){n(d)}}))})}renameFileCall(e,t){return new Promise((n,i)=>{Ht(this.functions,"renameFileCallV2")({sourcePath:e,destName:t}).then(o=>m(this,null,function*(){let l=o.data;if(l.success){var c=l.data,u=c[0].name,d=c[1].objectSize;n([u,d])}else i(l.message)})).catch(o=>{pe.checkFunctionCorsError(o,this.injector,"renameFileCallV2"),console.error("renameFileCall error",o),i(o)})})}getListMedia(e,t){return Le(this.injector,()=>new Promise((n,i)=>m(this,null,function*(){var a=yield this.getListMediaInner(e,void 0,void 0,t),s=a[0],o=a[1],l=[];yield Promise.all(s.map(c=>m(this,null,function*(){var u=new Qt;u.url=yield Tm(c),u.name=c.name,u.typeId=u.getMultimediaTypeEnumByName().valueOf(),u.path=c.fullPath,l.push(u)}))),n([l,o])})))}getListMediaInner(e,t,n,i){return new Promise((a,s)=>m(this,null,function*(){n=n||[];let o=al(this.storage,t||this.basePath+"/"+sl.getTotalsPath(e));var l={};l.maxResults=100,l.pageToken=i,T8(o,l).then(c=>{let u=c.nextPageToken;var d=[];if(c.prefixes.forEach(f=>{d.push(this.getListMediaInner(e,f.fullPath,n,u))}),c.items.forEach(f=>{n.push(f)}),d.length===0){a([n,u]);return}eo(d).subscribe(f=>{a([n,u])})})}))}
99blobToFile=(e,t,n)=>new File([e],t,{lastModified:new Date().getTime(),type:n});download(e){return m(this,null,function*(){return new Promise((t,n)=>m(this,null,function*(){if(!e||!e.hasUrl()){n("No multimedia");return}try{let a=e.getTypeBlob();var i=yield this.getBase64FileCall(e.url);fetch(i).then(s=>m(this,null,function*(){var o=yield s.blob(),l=this.blobToFile(o,e.name,a);t(l)}))}catch(a){console.error(a),n(a)}}))})}getBase64FileCall(e){return new Promise((t,n)=>m(this,null,function*(){Ht(this.functions,"getBase64FileCallV2")({url:e}).then(s=>m(this,null,function*(){let o=s.data;o.success?t(o.data):n(o.message)})).catch(s=>{pe.checkFunctionCorsError(s,this.injector,"getBase64FileCallV2"),console.error("getBase64FileCall error",s),n(s)})}))}getBlobFileCall(e){return new Promise((t,n)=>{Ht(this.functions,"getBlobFileCallV2")({url:e}).then(s=>m(this,null,function*(){let o=s.data;console.log("data",o),o.success?t(o.data):n(o.message)})).catch(s=>{pe.checkFunctionCorsError(s,this.injector,"getBlobFileCallV2"),console.error("getBlobFileCall error",s),n(s)})})}createZipPathCall(e,t){return new Promise((n,i)=>{Ht(this.functions,"createZipPathCallV2",{timeout:54e4})({path:e,destPath:t}).then(o=>m(this,null,function*(){let l=o.data;console.log("data",l),l.success?n(l.data):i(l.message)})).catch(o=>{pe.checkFunctionCorsError(o,this.injector,"createZipPathCallV2"),console.error("createZipPathCall error",o),i(o)})})}downloadFileWithName(e,t){this.http.get(e,{responseType:"blob",observe:"response"}).subscribe(n=>{if(!t){let o=e,l=o.split("/");l.length>0?(o=l.pop(),l=o.split("%2F"),console.log("names",l,o),l.length>0?(o=l.pop(),t=o):t=e):t=e;var i="?",a=t.indexOf(i);a>0&&(t=t.substring(0,a)),t=t.replace("%20"," "),console.log("fileName",t)}var s=document.createElement("a");s.href=window.URL.createObjectURL(n.body),s.download=t,s.click()})}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var xo=(d=>(d[d.Image=0]="Image",d[d.Video=1]="Video",d[d.Pdf=2]="Pdf",d[d.Word=3]="Word",d[d.Gif=4]="Gif",d[d.Excel=5]="Excel",d[d.Dwg=6]="Dwg",d[d.Dxf=7]="Dxf",d[d.Zip=8]="Zip",d[d.Step=9]="Step",d[d.Audio=10]="Audio",d))(xo||{}),sl=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(xo)}getNameByEnum(e){let t=Object.values(xo);switch(e){case t[0]:case 0:return"Immagine";default:return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error multimedia type name"}}visible(e){let t=Object.values(xo);return!0}getColorByEnum(e){return e==ue.getAllId()?"#000000de":"#19b817"}static getFileAcceptForType(e){switch(e){case 2:return".pdf";case 0:return".png, .jpg, .webp, .jpeg, .svg";case 1:return".mp4, .mov, .webm";case 3:return".doc, .docx";case 4:return".gif";case 5:return".xlsx";case 6:return".dwg";case 7:return".dxf";case 8:return".zip";case 9:return".step";case 10:return".mp3";default:return""}}getIconByEnum(e){return r.getIcon(e)}static getIcon(e){switch(e){case 2:return"picture_as_pdf";case 0:return"photo_library";case 1:return"ondemand_video";case 3:return"description";case 4:return"ondemand_video";case 5:return"fa-table";case 8:return"folder_zip";case 10:return"equalizer";default:return"description"}}static getTotalsPath(e){var t="";switch(e?.valueOf()){case 2:t="/Pdfs";break;case 0:t="/Images";break;case 1:t="/Videos";break;case 10:t="/Audios";break;case 3:t="/Word";break;case 4:t="/Gif";break;case 5:t="/Excel";break;default:t="/"+Object.values(xo)[e]}return`${ol.basePathTotal}${t}`}static getTypeBlob(e,t){switch(e){case 2:return"application/pdf";case 0:switch(t){case"mp4":case"mov":case"webm":return`video/${t}`;default:return`image/${t}`}case 1:return`video/${t}`;case 10:return`audio/${t}`;default:return""}}static getMultimediaTypeEnumByName(e){switch(e){case"pdf":return 2;case"gif":return 4;case"png":case"jpg":case"webp":case"jpeg":case"svg":return 0;case"mp4":case"mov":case"webm":return 1;case"doc":case"docx":return 3;case"xlsx":return 5;case"dwg":return 6;case"dxf":return 7;case"zip":return 8;case"step":return 9;
99case"mp3":return 10;default:return 0}}};var wx=class r{translate;moduleKey="_module";langKey="_lang";globalKey="global";http;seoService;set currentLang(e){this._currentLang=e}get currentLang(){return this._currentLang}_currentLang;siteObservers=[];wantObservers=[];document;managerBase;location;languageList=[];constructor(e){this.http=e.get(Ps),this.seoService=e.get(br),this.document=e.get(Je),this.managerBase=e.get(xr),this.location=e.get(pa),this.currentLang=this.getDefaultLang(),this.languageList=this.managerBase.config.languages,this.isActive()&&this.loadDataDefault()}getLanguages(){return this.languageList}getBaseUrl(){return`${this.location.protocol}//${this.location.hostname}`}setHrefLangGeneral(e,t){var n=e+"/"+t;n=n.replace("//","/");let i=this.getBaseUrl();i=this.seoService.removeNGLocalHost(i);let a=i+"/"+n;a=a.endsWith("/")?a:a+"/";let s=this.document?.createElement("link");s.setAttribute("rel","alternate"),this.document?.head.appendChild(s),s.setAttribute("hreflang",e),s.setAttribute("href",a)}setHrefLangXDefault(e){let n=this.getDefaultLang()+"/"+e;n=n.replace("//","/");let i=this.getBaseUrl();i=this.seoService.removeNGLocalHost(i);let a=i+"/"+n;a=a.endsWith("/")?a:a+"/";let s=this.document?.createElement("link");s.setAttribute("rel","alternate"),s.setAttribute("hreflang","x-default"),s.setAttribute("href",a),this.document?.head.appendChild(s)}destroyAllHrefLang(){let e=this.document?.querySelectorAll("link[hreflang]");for(let t=0,n=e.length;t<n;t++)e[t].remove()}getDefaultLang(){return"it"}getCurrentLang(){return this.isActive()?this.currentLang:void 0}_getCurrentLang(){return this.getCurrentLang()??this.getDefaultLang()}getThankYouSlugs(){var e=[];
99return this.managerBase?.config.languages.forEach(t=>{e.push(this.getThankYouSlug(t.sigla))}),e.length==0&&e.push(this.getThankYouSlug("")),e}getThankYouSlug(e){switch(e??this.getCurrentLang()){case"it":return"grazie";case"en":return"thanks";case"de":return"danke";default:return"grazie"}}isActive(){return!1}showFlagLanguageFront(){return!1}getObservableChangeLanguage(){return new Ot(t=>{this.siteObservers.push(t)})}setChangeLanguage(e){return m(this,null,function*(){this.currentLang=e,this.currentLang&&(this.document.documentElement.lang=this.currentLang,yield this.loadData(this.currentLang))})}getObservableWantChangeLanguage(){return new Ot(t=>{this.wantObservers.push(t)})}setWantChangeLanguage(e){if(e){if(!this.seoService.isPlatformBrowser()){this.wantObservers.forEach(t=>{let n=t;n&&n.next(e)});return}setTimeout(()=>{this.wantObservers.forEach(t=>{let n=t;n&&n.next(e)})},0)}}setData(e){if(!this.seoService.isPlatformBrowser()){this.siteObservers.forEach(t=>{let n=t;n&&n.next(e)});return}setTimeout(()=>{this.siteObservers.forEach(t=>{let n=t;n&&n.next(e)})},0)}loading=!1;loadDataDefault(){return this.translate?this.translate:this.loadData(this._getCurrentLang())}loadModule(e){return m(this,null,function*(){return this.translate&&this.translate[e]?this.translate:yield this.loadData(this._getCurrentLang(),e)})}subscriptions=[];ngOnDestroy(){this.unsubscribe()}unsubscribe(){this.subscriptions.forEach(e=>{e.unsubscribe()}),this.subscriptions=[]}loadData(e,t){return new Promise((n,i)=>{this.getObservableChangeLanguage().subscribe(a=>{n(a)}),!this.loading&&(this.loading=!0,this.loadModuleBase(e,t).subscribe(a=>{this.translate=this.transformContent(a),n(this.translate),this.setData(this.translate),this.loading=!1}))})}loadModuleBase(e,t){let n=[];if(n.push(this.http.get(`assets/i18n/${e}/global.json`).pipe(lr(i=>i[this.langKey]=e),lr(i=>i[this.moduleKey]=this.globalKey),la(()=>Xe({})))),t&&n.push(this.http.get(`assets/i18n/${e}/${t}.json`).pipe(lr(i=>i[this.langKey]=this.currentLang),lr(i=>i[this.moduleKey]=t),la(()=>Xe({})))),this.translate)for(let i of Object.keys(this.translate))i!=this.globalKey&&i!=t&&n.push(this.http.get(`assets/i18n/${e}/${i}.json`).pipe(lr(a=>a[this.langKey]=this.currentLang),lr(a=>a[this.moduleKey]=i),la(()=>Xe({}))));return n.length===0?new Ot(i=>{i.next({})}):eo(n).pipe()}transformContent(e){return this.translate||(this.translate=[]),!e||!Array.isArray(e)?this.translate:(e?.forEach(t=>{this.translate[t[this.moduleKey]]=t}),this.translate)}parse(e,t,n){return e==null||t===void 0||t===null||n===void 0||n.length===0?e:e.replace(t,`${n}`)}parseMultiple(e,t){for(let i of t)for(var n in i)e=this.parse(e,n,i[n]);return e}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var Yi=class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=G({token:r,factory:e=>wx.\u0275fac(e),providedIn:"root"})};var Ix=class r{taskName;triggerTimestamp;triggerDate;targetDate;groupIndex;constructor(e){e&&this.setData(e)}setData(e){e&&(this.taskName=e.taskName,this.triggerTimestamp=e.triggerTimestamp,this.groupIndex=e.groupIndex,this.triggerDate=Ea.setDateFromDocumentData(e,"triggerDate"),this.targetDate=Ea.setDateFromDocumentData(e,"targetDate"))}getDocumentData(){let e={};return e.taskName=this.taskName?this.taskName:null,e.triggerTimestamp=this.triggerTimestamp!==void 0?this.triggerTimestamp:null,e.triggerDate=this.triggerDate!==void 0?this.triggerDate:null,e.targetDate=this.targetDate!==void 0?this.targetDate:null,e.groupIndex=this.groupIndex!==void 0?this.groupIndex:null,e}static setDataInner(e){return new r(e)}static setItems(e){let t=[];return e&&e.taskModels!=null?(t=e.taskModels,t.forEach((n,i)=>{t[i]=r.setDataInner(n)})):t=[],t}static getItems(e,t,n="taskModels"){if(t){let i=[];t.forEach((a,s)=>{let o=a.getDocumentData();i[s]=o}),e[n]=i}else e[n]=null;return e}preDeleteModel(){return m(this,null,function*(){})}duplicate(e,t){return m(this,null,function*(){})}},Ea=class r{static DefaultID="DEFAULT";getTranslatableFields(){return[]}getTranslatableChildren(){return[]}id;insertDate;updateDate;deleteDate;email;name;querySearch=[];taskModels;language;idTranslate;json;otherTranslates;nameModello;queryDocumentSnapshot;constructor(e){e&&(this.queryDocumentSnapshot=e,this.json=this.getJson(e),this.setData(this.json))}static getProperties(e,t){var n=e;if(e.prototype){n=e.prototype;return}e&&(console.log("model:",e.constructor.name),Object.getOwnPropertyNames(n).forEac
99h(i=>{var a=n[i]?.constructor.name;switch(console.log(` ${i}: ${a} -> ${n[i]}`),a){case"String":break}}))}getJson(e,t){var n=void 0;try{n=e.data()}catch{n=e}return t||(n=this.getJsonDataPre(n)),n}getJsonDataPre(e){return e}setData(e){var t=this.getJson(e);return this.id=t?.id,this.insertDate=this.setDateFromDocumentData(t,"insertDate"),this.updateDate=this.setDateFromDocumentData(t,"updateDate"),this.deleteDate=this.setDateFromDocumentData(t,"deleteDate"),this.language=t?.language,this.email=t?.email,this.name=t?.name,this.idTranslate=t?.idTranslate,this.taskModels=Ix.setItems(t),this}setQuerySearch(e,t){t!=null&&t.length>0&&(e.querySearch=pe.getUniqueArrayForFirestore(t))}static setDateFromDocumentData(e,t,n){if(e){if(e[t]){var i=new Date(e[t].seconds*1e3);if(xa(i)||(i=new Date(e[t]._seconds*1e3)),xa(i)||(i=new Date(e[t])),!xa(i)&&n){let a=A5(e[t],n,new Date);xa(a)&&(i=a)}return i}return e[t]}return pe.getDateNowGMT(null)}setDateFromDocumentData(e,t){return r.setDateFromDocumentData(e,t)}isDeleted(){return this.deleteDate!=null}setDelete(){this.deleteDate=pe.getDateNowGMT(null)}removeDelete(){this.deleteDate=void 0}isNew(){return!(this.id&&this.id!==null)}getDocumentData(e,t,n){var i={};return this.id!==void 0&&this.id!==null&&this.id?.length>0?(i.id=this.id,this.insertDate&&(i.insertDate=pe.getDateFromObject(this.insertDate))):(i.id=e??null,i.insertDate=pe.getDateNowGMT(null)),i.updateDate=pe.getDateNowGMT(null),this.language&&(i.language=this.language),this.setIdTranslate(),this.idTranslate&&(i.idTranslate=this.idTranslate),this.email&&!n&&(i.email=this.email),this.name&&!t&&(i.name=this.name),i.deleteDate=this.deleteDate!=null?this.deleteDate:null,this.isNew()&&(i.deleteDate=null),this.taskModels&&this.taskModels.length>0&&(i=Ix.getItems(i,this.taskModels,"taskModels")),i}setIdTranslate(){this.isNew()&&!this.idTranslate&&(this.idTranslate=new Date().getTime())}hasLanguage(){return this.language!==void 0&&this.language!==null}fillOtherTranslate(e){return m(this,null,function*(){try{if(!this.idTranslate||this.otherTranslates!=null||!Si(e.get(hn)))return;if(e.get(Yi).isActive()){let n=e.get(ke);this.otherTranslates=yield n.getOtherContentTranslated(this.idTranslate,this)}}catch(t){t?.code!==205&&console.error("fillOtherTranslate error",t)}})}getDocumentDataAfter(e,t){return t}insertDateFormat(){return this.insertDate?ti(this.insertDate,"dd/MM/yyyy HH:mm",{locale:Io}):""}insertDateForGraphicFormat(){return this.insertDate?ti(this.insertDate,"MMM yyyy",{locale:Io}):""}updateDateFormat(){return this.updateDate?ti(this.updateDate,"dd/MM/yyyy HH:mm",{locale:Io}):""}updateDateForGraphicFormat(){return this.updateDate?ti(this.updateDate,"MMM yyyy",{locale:Io}):""}deleteDateFormat(){return this.deleteDate?ti(this.deleteDate,"dd/MM/yyyy HH:mm",{locale:Io}):""}getName(){return this.name!=null?`${this.name}`:this.id!=null?`${this.id}`:""}getNameBackoffice(){return this.name??this.getName()}getIcon(){return""}haveToFillOtherModels(){return!1}fillOtherModels(e){return m(this,null,function*(){return this})}haveToFillOtherModelsInDetail(){return!1}fillOtherModelsInDetail(e){return m(this,null,function*(){return this})}preDeleteModel(e){return m(this,null,function*(){})}deleteMultimedias(e,t){return m(this,null,function*(){return yield Qt.deleteMultimedias(e,t)})}duplicateMultimedias(e,t,n,i){return m(this,null,function*(){if(!t||t.length===0)return[];try{let a=t.map(s=>s.duplicate(e,n));return yield Promise.all(a)}catch(a){return console.error("Error duplicating multimedias:",a),[]}})}duplicateMultimediasByReplaceId(e,t,n,i,a,s,o,l,c,u){return m(this,null,function*(){return r.duplicateMultimediasByReplaceId(e,t,n,i,a,s,o,l,c,u)})}static duplicateMultimediasByReplaceId(e,t,n,i,a,s,o,l,c,u){return m(this,null,function*(){if(!t||t.length===0)return[];try{let d=t.map(f=>f.duplicateByReplaceId(e,n,i,a,s,o,l,c));return yield Promise.all(d)}catch(d){return console.error("Error duplicating multimedias by replacing ID:",d),[]}})}clearMultimedias(e){e&&e?.forEach(t=>{t.clear()})}getOtherTranslateLanguages(){return this.otherTranslates?.map(e=>e.language).join(", ")}getUrlsFromString(e){if(!e)return[];for(var t,n=[],i=e,a=/<img[^>]+src="(https:\/\/[^">]+)"/g;t=a.exec(i);)n.push(t[1]);return n}deleteFolder(e,t){return m(this,null,function*(){yield e.get(ol).deleteFolder(t)})}deleteImagesFromEditor(e,t){return m(this,null,function*(){let n=this.getUrlsFromString(t);if(!(!n||n.length===0))try{let i=n.map(a=>{let s=new Qt;return s.url=a,s.deleteFile(e)});yield Promise.all(i)}catch(i){console.error("Error deleting images from editor:",i)}})}cleanHtml(e){return e?e.replace(/<\/?[^>]+(>|$)/g,""):""}duplicate(e,t,n,i,a){return m(this,null,function*(){let s=e.get(ke),o=this.id;var l=this;n&&(l.language=n),t&&t("Creazione...");let c=s.newId(this);l.id=c,yield s.create(this,c),l.insertDate=pe.getDateNowGMT(null),l.idTranslate=new Date().getTime();try{t&&t("Aggiornamento..."),yield s.update(l)}catch(u){console.error("error",u),yield s.update(l)}return l})}};
99var Ee=class r extends Ea{multimedia;setData(e){super.setData(e);var t=this.getJson(e);return this.multimedia=r.setDataInner(t?.multimedia),this}static setDataInner(e,t){var n;return e?n=new Qt(e):(n=new Qt,n.typeId=t||0 .valueOf(),n.order=1),n}setMultimediaContentData(e,t){return e?e[t]?new Qt(e[t]):e[t]:new Qt}getDocumentData(e){var t=super.getDocumentData(e);return t=r.getDocumentDataInner(t,this.multimedia),t}static getDocumentDataInner(e,t,n="multimedia"){return t&&(e[n]=t.getDocumentData()),e}preDeleteModel(e){return m(this,null,function*(){yield Fe(r.prototype,this,"preDeleteModel").call(this,e),yield this.multimedia?.deleteFile(e)})}};var hi=class r extends Ea{multimedias=[];constructor(e){super(e),e&&this.setData(e)}setAddImage(e){var t=Ee.setDataInner(void 0,e);return this.multimedias?.push(t),this.multimedias}setData(e){super.setData(e);var t=this.getJson(e);return this.multimedias=r.setDataInner(t?.multimedias),this}static setDataInner(e){var t=[];return e?(t=e,t.forEach((n,i)=>{t[i]=Ee.setDataInner(n)})):t=[],t}getDocumentData(e,t,n){var i=super.getDocumentData(e,t,n);return i=r.getDocumentDataInner(i,this.multimedias),i}static getDocumentDataInner(e,t,n="multimedias"){if(t){var i=[],a=0;t.forEach((s,o)=>{var l=s?.getDocumentData();l.url&&(i[a]=l,i[a].order=a,a++)}),e[n]=i}else e[n]=null;return e}getMultimediasForGallery(){if(this.multimedias){var e=[];return this.multimedias.forEach((t,n)=>{var i=t.url;i==null&&(i="/assets/img/logo.webp"),e[n]={image:i,thumbImage:i}}),e}return[]}preDeleteModel(e){return m(this,null,function*(){yield Fe(r.prototype,this,"preDeleteModel").call(this,e),yield this.deleteMultimedias(e,this.multimedias)})}duplicate(e,t,n,i,a){return m(this,null,function*(){let s=this.id;var o=yield Fe(r.prototype,this,"duplicate").call(this,e,t,n,i,a),l=o.id;try{t&&t("Multimedias..."),o.multimedias=yield this.duplicateMultimediasByReplaceId(e,this.multimedias,s,l,t,void 0,void 0,n,i,a),t&&t("Aggiornamento..."),yield e.get(ke).update(o)}catch(c){console.error("error",c),this.clearMultimedias(o.multimedias),yield e.get(ke).update(o)}return o})}getOneMultimediaByType(e,t=!1){return r.getOneMultimediaByType(this.multimedias,e,t)}static getOneMultimediaByType(e,t,n=!1){if(!(!e||e.length==0)){var i=e.filter(a=>a.getMultimediaTypeEnum()==t.valueOf());if(i.length!=0)return n?i[0]:i[i.length-1]}}getNotEmptyMulimedias(){return this.multimedias?.filter(e=>!e.isEmpty())}};var Ls=class r extends hi{originId;order;active;multimedia;imageMobile;publishDate;publishDateDesired;publishDateDesiredEmailTarget;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);var t=this.getJson(e);return t&&(this.originId=t.originId,this.order=t.order,this.active=t.active,this.multimedia=Ee.setDataInner(t?.multimedia),this.imageMobile=Ee.setDataInner(t?.imageMobile),this.publishDate=this.setDateFromDocumentData(t,"publishDate"),this.publishDateDesired=this.setDateFromDocumentData(t,"publishDateDesired"),this.publishDateDesiredEmailTarget=t.publishDateDesiredEmailTarget),this}getDocumentData(e,t,n){var i=super.getDocumentData(e,t,n);return this.originId!==void 0?i.originId=this.originId:i.originId=null,this.order!==void 0&&this.order!==null&&this.order.toString().length>0?i.order=this.order:i.order=0,this.active!==void 0&&(i.active=this.active),i=Ee.getDocumentDataInner(i,this.multimedia,"multimedia"),i=Ee.getDocumentDataInner(i,this.imageMobile,"imageMobile"),i.publishDate=this.publishDate!==void 0?this.publishDate:null,i.publishDateDesired=this.publishDateDesired!==void 0?this.publishDateDesired:null,i.publishDateDesiredEmailTarget=this.publishDateDesiredEmailTarget??null,i}getActive(){return this.active??!1}getPublishDateFormat(e){return this.isPublished()?ti(this.publishDate,e||"dd MMMM yyyy HH:mm",{locale:Io}):"-"}isPublished(){return this.publishDate&&this.active}haveToFillOtherModels(){return!0}fillOtherModels(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModels").call(this,e),yield this.fillOtherTranslate(e),this})}haveToFillOtherModelsInDetail(){return!0}fillOtherModelsInDetail(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModelsInDetail").call(this,e),yield this.fillOtherTranslate(e),this})}haveMultimedia(){return this.multimedia?.hasUrl()}getImage(e){return e?this.imageMobile!=null&&this.imageMobile.url?this.imageMobile:this.multimedia:this.multimedia}preDeleteModel(e){return m(this,null,function*(){yield Fe(r.prototype,this,"preDeleteModel").call(this,e),yield this.multimedia?.deleteFile(e),yield this.imageMobile?.deleteFile(e)})}duplicate(e,t,n,i,a){return m(this,null,function*(){let s=this.id;var o=yield Fe(r.prototype,this,"duplicate").call(this,e,t,n,i,a),l=o.id;o.active=a??!1,o.publishDate=pe.getDateNowGMT(null);try{t&&t("Immagine principale..."),o.multimedia=yield this.multimedia?.duplicateByReplaceId(e,s,l,t,void 0,void 0,n,i,a),t&&t("Immagine mobile..."),o.imageMobile=yield this.imageMobile?.duplicateByReplaceId(e,s,l,t,void 0,void 0,n,i,a),t&&t("Multimedias..."),o.multimedias=yield this.duplicateMultimediasByReplaceId(e,this.multimedias,s,l,t,void 0,void 0,n,i,a),t&&t("Aggiornamento..."),yield e.get(ke).update(o)}catch(c){console.error("error",c),o.multimedia?.clear(),this.clearMultimedias(o.multimedias),yield e.get(ke).update(o)}return o}
99)}static duplicateSections(e,t,n,i,a,s,o){return m(this,null,function*(){n&&(yield rh(n.map(l=>m(null,null,function*(){yield l?.duplicateSection(e,i,a,t,s,o)}))))})}};var sn=class extends Ls{nameCollection="";getDocumentData(e,t,n){var i=super.getDocumentData(e,!0,!0);return i}};var xx=class r extends sn{GetNameCollection(){return this.nameCollection}getNewInstance(e){var t=new r(e);return t.nameCollection=this.nameCollection,t}positionBaseModel;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return t&&(this.positionBaseModel=new ah(t.positionBaseModel)),this}getDocumentData(e){var t=super.getDocumentData(e);return this.positionBaseModel&&(t.positionBaseModel=this.positionBaseModel.getDocumentData()),t}},ah=class{place_id;address;lat;lng;nation;nation_long;region;region_long;province;province_long;city;postal_code;constructor(e){e&&this.setData(e)}fillOtherModels(e,t){return m(this,null,function*(){})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){})}preDeleteModel(e){return m(this,null,function*(){})}duplicate(e,t,n,i,a,s,o){return new Promise((l,c)=>m(null,null,function*(){l()}))}setData(e){e&&(this.place_id=e.place_id,this.address=e.address,this.lat=e.lat,this.lng=e.lng,this.nation=e.nation,this.nation_long=e.nation_long,this.region=e.region,this.region_long=e.region_long,this.province=e.province,this.province_long=e.province_long,this.city=e.city,this.postal_code=e.postal_code)}getDocumentData(){var e={};return e.place_id=this.place_id?this.place_id:null,e.address=this.address?this.address:null,e.lat=this.lat?this.lat:null,e.lng=this.lng?this.lng:null,e.nation=this.nation?this.nation:null,e.nation_long=this.nation_long?this.nation_long:null,e.region=this.region?this.region:null,e.region_long=this.region_long?this.region_long:null,e.province=this.province?this.province:null,e.province_long=this.province_long?this.province_long:null,e.city=this.city?this.city:null,e.postal_code=this.postal_code?this.postal_code:null,e}static getIcon(){return"place"}getName(){return this.address??""}getCity(){return this.city??""}getPosition(){return!this.lat||!this.lng?{lat:0,lng:0}:{lat:this.lat,lng:this.lng}}getCustomPosition(){return!this.lat||!this.lng?[0,0]:[this.lat,this.lng]}getGoogleMapoHref(){return`https://www.google.com/maps/search/?api=1&query=${this.lat},${this.lng}`}haveMap(){return this.address}clear(){this.place_id=void 0,this.address=void 0,this.lat=void 0,this.lng=void 0,this.nation=void 0,this.nation_long=void 0,this.region=void 0,this.region_long=void 0,this.province=void 0,this.province_long=void 0,this.city=void 0,this.postal_code=void 0}setDataFromPlace(e){this.clear(),this.place_id=e.place_id,this.address=e.formatted_address,this.lat=e.geometry.location.lat,this.lng=e.geometry.location.lng;var t=this.getAddressComponentIndex(e.address_components,"country");t!=-1&&(this.nation=e.address_components[t].short_name,this.nation_long=e.address_components[t].long_name);var n=this.getAddressComponentIndex(e.address_components,"postal_code");n!=-1&&(this.postal_code=e.address_components[n].short_name);var i=this.getAddressComponentIndex(e.address_components,"administrative_area_level_1");i!=-1&&(this.region=e.address_components[i].short_name,this.region_long=e.address_components[i].long_name);var a=this.getAddressComponentIndex(e.address_components,"administrative_area_level_2");a!=-1&&(this.province=e.address_components[a].short_name,this.province_long=e.address_components[a].long_name);var s=this.getAddressComponentIndex(e.address_components,"administrative_area_level_3");s==-1&&(s=this.getAddressComponentIndex(e.address_components,"locality")),s!=-1&&(this.city=e.address_components[s].short_name,this.city&&(this.city=this.city.toLowerCase()[0].toUpperCase()+this.city.toLowerCase().substring(1)))}getAddressComponentIndex(e,t){var n=-1;return e.forEach((i,a)=>{i.types[0]==t&&(n=a)}),n}};var Cm=class r{uid;nameProvider;constructor(e){e&&this.setData(e)}setData(e){e&&(this.uid=e.uid,this.nameProvider=e.nameProvider)}getDocumentData(e,t){var n={};return n.uid=this.uid?this.uid:null,n.nameProvider=this.nameProvider?this.nameProvider:null,n}getProviderName(){var e="-";let t=Object.values(uu);for(let i of t){var n=new tl(0).getProviderName(i);if(n==this.nameProvider){e=i;break}}return e}static setDataInner(e){return new r(e)}static getDocumentDataInner(e,t,n="providers"){return t&&(e[n]=t.getDocumentData()),e}static setItems(e,t="providers"){var n=[];
99return e[t]?(n=e[t],n.forEach((i,a)=>{n[a]=r.setDataInner(i)})):n=[],n}static getItems(e,t,n="providers"){if(t){var i=[];t.forEach((a,s)=>{var o=a.getDocumentData();i[s]=o}),e[n]=i}else e[n]=null;return e}};var sh=class r extends xx{getNewInstance(e){return new r(e)}GetNameCollection(){return"customers"}origin;surname;roleIds;tokens;providers;disabled;lastPswChanged;authUser;authUsers;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);var t=this.getJson(e);return t&&(this.email=t.email,this.name=t.name,this.surname=t.surname,this.roleIds=t.roleIds,this.tokens=t.tokens,this.providers=Cm.setItems(t),this.disabled=t.disabled,this.lastPswChanged=this.setDateFromDocumentData(t,"lastPswChanged")),this}getDocumentData(e){var t=super.getDocumentData(e);return this.email&&(t.email=this.email),this.name&&(t.name=this.name),this.surname&&(t.surname=this.surname),this.roleIds&&(t.roleIds=this.roleIds),this.disabled!=null&&(t.disabled=this.disabled),t.lastPswChanged=pe.getDateFromObject(this.lastPswChanged),this.tokens!=null&&this.tokens!=null&&(t.tokens=this.tokens),t=Cm.getItems(t,this.providers,"providers"),this.name!=null&&(this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(this.name))),this.surname!=null&&(this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(this.surname))),this.name!=null&&this.surname!=null&&(this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(`${this.name} ${this.surname}`)),this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(`${this.surname} ${this.name}`))),this.email!=null&&(this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(this.email))),this.setQuerySearch(t,this.querySearch),t}getName(){return this.name!=null&&this.surname!=null?`${this.name} ${this.surname}`:this.email?this.email:""}getNameBackoffice(){return this.getName()}haveTokens(){return this.tokens!==void 0&&this.tokens!==null&&this.tokens.length>0}getRolesClass(){let e=[];
99if(this.roleIds==null)return e;let t=Object.values(du);return this.roleIds.forEach(n=>{let i=t[n],a=new nc(void 0,n,i?.toString());e.push(a)}),e}hasRole(e){return this.getRolesClass().findIndex((i,a)=>i.id===e.valueOf())>=0}addRole(e,t){return m(this,null,function*(){this.roleIds||(this.roleIds=[]),this.roleIds?.includes(t.valueOf())||(console.log("add role",t),this.roleIds?.push(t.valueOf()),yield e.get(Vs).update(this))})}canAccess(){return this.isSuperAdmin()||this.isAdmin()||this.isUtente()}isGeneralAdmin(){return this.isSuperAdmin()||this.isAdmin()}isSuperAdmin(){return this.hasRole(0)}isAdmin(){return this.hasRole(1)}isUtente(){return this.hasRole(2)}getRoleStyle(){return new nc(void 0).getStyle()}getRoleEnum(e){return Object.values(du)[e]}getNameRoles(e){var t=e.get(vm),n=t.getRoleClass(!0,void 0,!0);let i="";return this.roleIds?.forEach((a,s)=>{var o=n.find(l=>l.id==a);o=o?o.getName():a==0?"Super Admin":"",s==0?i=o:i+=", "+o}),i=="Tutti"?"Super Admin":i}isDisabled(){return this.disabled??!1}setUserEnabled(e,t){return m(this,null,function*(){this.disabled=!t,yield e.get(Vs).update(this)})}getLastPswChanged(){return this.lastPswChanged}setLastPswChanged(e){return m(this,null,function*(){let t={};t.lastPswChanged=pe.getDateNowGMT(null),yield e.get(Vs).updateCustom(this.GetNameCollection(),t,this.id)})}getStyle(){return{color:"#fff","background-color":r.getColor()}}static getColor(){return"#3e9d20"}static getIcon(){return"manage_accounts"}haveToFillOtherModels(){return!0}fillOtherModels(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModels").call(this,e),this})}haveToFillOtherModelsInDetail(){return!1}fillOtherModelsInDetail(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModelsInDetail").call(this,e),this})}fillAuthUser(e){return m(this,null,function*(){try{this.authUser=yield this.fillAuthUserById(e,this.id)}catch(t){console.error("fillAuthUser error",this.email,this.id,t)}})}fillAuthUserById(e,t){return m(this,null,function*(){try{var n=yield e.get(ll).getAuthUserById(t);return n}catch(i){console.error("fillAuthUser error",this.email,this.id,i);return}})}fillAuthUserByProvider(e,t){return m(this,null,function*(){try{var n=this.getProviderByEnum(t);if(!n)return;var i=yield e.get(ll).getAuthUserById(n?.uid);return i}catch(a){console.error("fillAuthUser error",this.email,this.id,a);return}})}fillAuthUsers(e){return m(this,null,function*(){try{this.authUsers=yield e.get(ll).getAuthUsers(this.providers.map(t=>t.uid))}catch(t){console.error("fillAuthUsers error",this.email,this.id,t)}})}addProvider(e,t){this.providers||(this.providers=[]);var n=new tl(t),i=n.getProviderName(t),a=this.providers.find(o=>o?.nameProvider==i);if(a!=null){a.uid=e;return}var s=new Cm;s.uid=e,s.nameProvider=i,this.providers.push(s)}getProviderName(e){return new tl(e).getProviderName(e)}haveEmailVerifiedByProvider(e){var t=this.getUserByProvider(e);return t?t.user.emailVerified:!1}getUserByProvider(e){if(this.authUsers){for(var t of this.authUsers)if(this._haveUserProvider(e,t))return t}}getProviderByEnum(e){return this.providers?.find(t=>t.nameProvider==this.getProviderName(e))}haveProvider(e){var t=this.getUserByProvider(e)!=null;return t?!0:this.providers?.find(n=>n.nameProvider==this.getProviderName(e))!=null}_haveUserProvider(e,t){return t.user.providerData.find(n=>n.providerId==this.getProviderName(e))!=null}getPosition(){return this.positionBaseModel.getPosition()}};var Ex=class extends Ki{role;filterByAdmins;withPosition;constructor(e,t,n,i,a,s,o){super(e,t,i,a),this.role=n,this.filterByAdmins=s,this.withPosition=o}},Tx=class r extends ke{constructor(e){super(e)}createCustomerProcedure(e,t,n,i,a,s){return new Promise((o,l)=>{Ht(this.getFunctions(),"procedureCreateCustomerOnCallV2")({utente:e,password:t,emailTemplateName:n,dontSendEmail:i,objectEmail:a,fromAnonymous:s}).then(u=>m(this,null,function*(){let d=u.data;d.success?o(d.data):l(d)})).catch(u=>{pe.checkFunctionCorsError(u,this.injector,"procedureCreateCustomerOnCallV2"),console.error("createCustomer error",u),l(u)})})}getFilters(e,t){let n=super.getFilters(e,t),i=!1;return e?.role!=null&&e?.role?.id!==ue.getAllId()&&n.push(xe("roleIds","array-contains",e?.role.id)),i||e?.params?.orderField!=null&&e?.params?.order!=null,e?.withPosition!=null&&e?.withPosition&&(n.push(xe("positionBaseModel","!=",null)),n.push(Go("positionBaseModel","asc"))),n}getBigQuerySelectSource(e){return super.getBigQuerySelectSource(e)+` 100 JSON_EXTRACT_STRING_ARRAY(DATA, "$.roleIds") AS roleIds, 101 CAST(JSON_EXTRACT_SCALAR(data, "$.positionBaseModel.lat") AS FLOAT64) AS lat, 102 CAST(JSON_EXTRACT_SCALAR(data, "$.positionBaseModel.lng") AS FLOAT64) AS lng, 103 `}getBigQuerySelectDest(e){return super.getBigQuerySelectDest(e)+` 104 roleIds, 105 `}getBigQueryWhere(e){let t=super.getBigQueryWhere(e);return e?.role!=null&&e?.role?.id!==ue.getAllId()?t+=` AND '${e.role.id}' IN UNNEST(roleIds)`:this.manager?.getFilterAdminList()!=null&&e?.filterByAdm
105ins&&(t+=" AND ( ",this.manager.getFilterAdminList().forEach((n,i)=>{t+=` ${i>0?"OR":""} '${n}' IN UNNEST(roleIds)`}),t+=" )"),e?.withPosition!=null&&(e?.withPosition?t+="AND lat IS NOT NULL":t+="AND lat IS NULL"),t}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var k8=class extends Ex{constructor(e,t,n,i,a,s){super(e,t,n,i,a,s)}},Vs=class r extends Tx{getInstanceModel(){return new sh}getNewModel(e){return new sh(e)}constructor(e){super(e)}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var Cx=class r{constructor(e){this.injector=e;this.originImpl=e.get(Xt),this.seoService=e.get(br),this.http=e.get(Ps),this.loadDataDefault()}moduleKey="_module";langKey="_lang";originImpl;seoService;http;translate;translateObservers=[];getCurrentLang(){return"it"}getObservable(){return new Ot(t=>{this.translateObservers.push(t)})}setData(e){this.translateObservers.forEach(t=>{let n=t;n&&n.next(e)})}loading=!1;loadDataDefault(){return this.translate?this.translate:this.loadData(this.getCurrentLang())}loadData(e){return new Promise((t,n)=>{this.getObservable().subscribe(i=>{t(i)}),!this.loading&&(this.loading=!0,this.loadModuleBase(e).subscribe(i=>{this.translate=this.transformContent(i),this.setData(this.translate),this.loading=!1}))})}loadModuleBase(e){let t=[];return t.push(this.http.get(`/app/FirebaseBackofficeLib/assets/i18n/${e}/global.json`).pipe(lr(n=>n[this.langKey]=e),lr(n=>n[this.moduleKey]="global"),la(()=>Xe({})))),t.length===0?new Ot(n=>{n.next({})}):eo(t).pipe()}transformContent(e){return this.translate||(this.translate=[]),!e||!Array.isArray(e)?this.translate:(e?.forEach(t=>{this.translate[t[this.moduleKey]]=t}),this.translate)}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var mu=class r{translate;static \u0275fac=function(t){return new(t||r)};static \u0275prov=G({token:r,factory:e=>Cx.\u0275fac(e),providedIn:"root"})};var bse=["email","profile"];function P8(r,e){if(!e)return r;let t={};return e.tenantId&&(t.tenant=e.tenantId),e.prompt&&(t.prompt=e.prompt),e.loginHint&&(t.login_hint=e.loginHint),Object.keys(t).length>0&&r.setCustomParameters(t),(e.scopes??bse).forEach(n=>r.addScope(n)),r}function u6e(r,e){let t=r?.code??"",n=`${r?.message??""} ${r?.customData?.message??""}`,i=e?.tenantLabel?`dell'organizzazione ${e.tenantLabel}`:"dell'organizzazione abilitata";if(t==="auth/popup-closed-by-user"||t==="auth/cancelled-popup-request")return;if(/AADSTS(50020|90072)(?!\d)/i.test(n))return`Questo account Microsoft non fa parte ${i}. Se sei un cliente, accedi con email e password.`;if(/AADSTS50105(?!\d)/i.test(n))return`Questo account Microsoft non \xE8 abilitato ad accedere a questa applicazione: chiedi l'assegnazione all'amministratore ${i}.`;if(/AADSTS7000222(?!\d)/i.test(n))return"Il collegamento con Microsoft \xE8 scaduto (segreto client): segnalalo all'amministratore del sito. Nel frattempo accedi con email e password.";let a=n.match(/AADSTS(50011|7000215|700016|900023|50194)(?!\d)/i);if(a)return`Il login Microsoft non \xE8 configurato correttamente su questo sito (codice ${a[0]}): segnalalo all'amministratore. Nel frattempo accedi con email e password.`;switch(t){case"auth/user-cancelled":return"Accesso annullato: non hai concesso a Microsoft i permessi richiesti. Riprova e accetta, oppure entra con email e password.";case"auth/account-exists-with-different-credential":return"Esiste gi\xE0 un accesso con questa email: entra con email e password.";case"auth/popup-blocked":return"Il browser ha bloccato la finestra di accesso Microsoft: consenti i popup per questo sito e riprova.";case"auth/operation-not-allowed":return"Il login Microsoft non \xE8 abilitato su questo progetto.";case"auth/unauthorized-domain":return"Questo dominio non \xE8 autorizzato per il login Microsoft.";case"auth/network-request-failed":return"Connessione non riuscita durante l'accesso Microsoft: riprova.";default:break}return typeof r=="string"&&r.trim().length>0?r:r?.message??"Accesso Microsoft non riuscito."}
105var Sx=class r{constructor(e){this.injector=e;this.managerBase=A(xr),this.firestoreManagerBase=A(ke),this.translationBackofficeManager=e.get(mu),this.customerManager=A(Vs),this.seoService=A(br),this.auth=A(as),this.functions=A(mn),this.seoService.isPlatformBrowser()&&this.setPersistence(this.managerBase?.config.persistence),this.setTranslation()}subscriptions=[];managerBase;customerManager;functions;seoService;auth;firestoreManagerBase;translationBackofficeManager;translate_base_list;translate_general;translation;setTranslation(){return m(this,null,function*(){yield this.translationBackofficeManager.loadDataDefault(),this.translation=this.translationBackofficeManager.translate?.global,this.translate_general=this.translation?.general})}sendEmailVerificationToMyUser(){return m(this,null,function*(){yield hN(this.auth.currentUser)})}getRolesOnCreate(){return[2]}getTemplateOnCreate(){}ngOnDestroy(){this.unsubscribe()}unsubscribe(){this.subscriptions.forEach(e=>{e.unsubscribe()}),this.subscriptions=[]}getAnonymouslyAuthentication(){return new Promise((e,t)=>m(this,null,function*(){yield this.logout(),yd(this.auth).then(n=>m(this,null,function*(){this.managerBase.setUserCredential(n),e(this.managerBase.user?.uid)})).catch(n=>{console.error(n.message),t(n)})}))}logout(){return m(this,null,function*(){return console.warn("[AUTH] logout()/signOut chiamato. Stack:",new Error().stack),new Promise((e,t)=>{yN(this.auth).then(()=>{e()}).catch(n=>{console.error("logout error",n),t(n)})})})}sendPasswordResetEmail(e){return new Promise((t,n)=>m(this,null,function*(){fN(this.auth,e).then(()=>{t()},i=>{console.error(i),n(i)})}))}setPersistence(e){return m(this,null,function*(){yield this.auth.setPersistence(e)})}signInWithEmailAndPassword(e,t){return Le(this.injector,()=>new Promise((n,i)=>m(this,null,function*(){pN(this.auth,e,t).then(a=>{this.subscriptions.push(this.managerBase.onChangeMyCustomer.subscribe(s=>{s!==null&&(n(),this.unsubscribe())})),this.managerBase.setUserCredential(a)},a=>{if(console.warn(a),a?.code==="auth/multi-factor-auth-required"){i(a);return}var s=a;switch(a.code){case"auth/user-not-found":s=this.translation?.auth?.user_not_found;break;case"auth/wrong-password":s=this.translation?.auth?.wrong_password;break;case"auth/invalid-credential":s=this.translation?.auth?.invalid_credential;break}i(s)})})))}getMicrosoftAuthConfig(){}getProviderCustomParams(e,t){switch(t){case 8:return P8(e,this.getMicrosoftAuthConfig());default:return e}}getProvidersLogin(){return[0]}getMfaMode(){return"off"}getProviderRoles(e){return[]}signInWithProvider(e){return new Promise((t,n)=>m(this,null,function*(){var i=new tl;let a=new Mg(i.getProviderName(e));a=this.getProviderCustomParams(a,e),gN(this.auth,a).then(s=>m(this,null,function*(){console.log("userCredential",s),console.log("user",s.user);var o=this.managerBase?.getNewModel(),l=!1;try{var c=yield this.firestoreManagerBase?.getDetail(s.user?.uid,o);c||(o.id=s.user?.uid,o.insertDate=new Date,o.email=s.user?.email??void 0,o.name=s.user?.displayName??s.user?.email??void 0,this.getProviderRoles(e).forEach(u=>{o.addRole(this.injector,u)}),console.log("create customer",o),yield this.firestoreManagerBase?.create(o,o?.id),l=!0)}catch(u){console.error("signInWithProvider error",u)}setTimeout(()=>m(this,null,function*(){yield this.managerBase.setUserCredential(s),console.log("user!",this.managerBase.user),t()}),l?1500:0)})).catch(s=>{console.error(s);var o=s;switch(s.code){case"auth/user-not-found":o=this.translation?.auth?.user_not_found;break;case"auth/wrong-password":o=this.translation?.auth?.wrong_password;break;case"auth/invalid-credential":o=this.translation?.auth?.invalid_credential;break}n(o)})}))}createAuthentication(e,t){return new Promise((n,i)=>{uN(this.auth,e,t).then(a=>{a.user!=null?n(a.user.uid):(console.error("UID undefined: "),i("UID undefined"))}).catch(a=>{console.error("Error createAuthentication: ",a),i(a)})})}changePassword(e,t){return new Promise((n,i)=>m(this,null,function*(){var a=yield this.customerManager.getDetail(e);if(!a){console.error("utente non trovato"),n(this.translation?.auth?.user_not_found_id);return}Ht(this.functions,"changePasswordCallV2")({uid:e,nuovaPassword:t}).then(l=>{let c=l.data;console.log("changePassword data",c),c.success?n(void 0):n(c.message)}
105).catch(l=>{pe.checkFunctionCorsError(l,this.injector,"changePasswordCallV2"),console.error("changePassword error",l),i(l)})}))}resetMfa(e){return new Promise((t,n)=>{Ht(this.functions,"resetMfaCallV2")({uid:e}).then(s=>{let o=s.data;o.success?t(void 0):t(o.message)}).catch(s=>{pe.checkFunctionCorsError(s,this.injector,"resetMfaCallV2"),console.error("resetMfa error",s),n(s)})})}sendEmailOtp(){return new Promise((e,t)=>{Ht(this.functions,"emailOtpSendCallV2")({}).then(a=>{let s=a.data;e(s.success?void 0:s.message??"Invio del codice non riuscito")}).catch(a=>{pe.checkFunctionCorsError(a,this.injector,"emailOtpSendCallV2"),console.error("sendEmailOtp error",a),t(a)})})}verifyEmailOtp(e){return Le(this.injector,()=>new Promise((t,n)=>{Ht(this.functions,"emailOtpVerifyCallV2")({code:e}).then(s=>m(this,null,function*(){let o=s.data;if(!o.success||!o.data){n(o.message??"Codice non valido");return}try{yield mN(this.auth,o.data),t()}catch(l){console.error("signInWithCustomToken error",l),n(l)}})).catch(s=>{pe.checkFunctionCorsError(s,this.injector,"emailOtpVerifyCallV2"),console.error("verifyEmailOtp error",s),n(s)})}))}sendUtenteEmailVerified(e,t){return new Promise((n,i)=>m(this,null,function*(){var a=yield this.customerManager.getDetail(e);if(!a){console.error("utente non trovato"),n(this.translation?.auth?.user_not_found_id);return}Ht(this.functions,"sendUtenteEmailVerifiedCallV2")({customerId:e,email:t}).then(l=>{let c=l.data;console.log("sendUtenteEmailVerified data",c),c.success?n(void 0):n(c.message)}).catch(l=>{pe.checkFunctionCorsError(l,this.injector,"sendUtenteEmailVerifiedCallV2"),console.error("sendUtenteEmailVerified error",l),i(l)})}))}deleteAuthentication(e,t=!0,n=!0){return new Promise((i,a)=>m(this,null,function*(){if(e==null){a("No uid");return}if(t&&e==this.managerBase.myCustomer?.id){a("Non puoi cancellare te stesso");return}if(n){var s=yield this.customerManager.getDetail(e);if(!s){console.error("utente non trovato"),a("Utente non trovato");return}if(s?.isSuperAdmin()){a("Non puoi cancellare un SuperAdmin");return}}Ht(this.functions,"deleteAuthenticationOnCallV2")({uid:e}).then(c=>{let u=c.data;u.success?i():a(u.message)}).catch(c=>{pe.checkFunctionCorsError(c,this.injector,"deleteAuthenticationOnCallV2"),console.error("deleteAuthentication error",c),a(c)})}))}getAuthUsers(e){return new Promise((t,n)=>{Ht(this.functions,"getAuthUsersCallV2")({ids:e}).then(s=>m(this,null,function*(){let o=s.data;if(o.success){var l=o.data.map(c=>new ey(c,c.metadata.lastRefreshTime));t(l)}else n(o.message)})).catch(s=>{pe.checkFunctionCorsError(s,this.injector,"getAuthUsersCallV2"),console.error("getAuthUsers error",s),n(s)})})}getAuthUserById(e){return new Promise((t,n)=>{Ht(this.functions,"getAuthUserByIdCallV2")({id:e}).then(s=>m(this,null,function*(){let o=s.data;o.success?t(new ey(o.data,o.data.metadata.lastRefreshTime)):n(o.message)})).catch(s=>{pe.checkFunctionCorsError(s,this.injector,"getAuthUserByIdCallV2"),console.error("getAuthUserById error",s),n(s)})})}getAuthUserByEmail(e){return new Promise((t,n)=>{Ht(this.functions,"getAuthUserByEmailCallV2")({id:e}).then(s=>m(this,null,function*(){let o=s.data;o.success?t(new ey(o.data,o.data.metadata.lastRefreshTime)):n(o.message)})).catch(s=>{pe.checkFunctionCorsError(s,this.injector,"getAuthUserByEmailCallV2"),console.error("getAuthUserByEmail error",s),n(s)})})}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})},ey=class{constructor(e,t){this.user=e;this.lastRefreshTime=t}getLastRefreshTimeFormat(){if(!this.lastRefreshTime)return"-";var e=pt(this.lastRefreshTime);return xa(e)?ti(e,"dd/MM/yyyy HH:mm"):"-"}getLastSignInTime(){if(!this.user?.metadata.lastSignInTime)return"-";var e=pt(this.user?.metadata.lastSignInTime);return xa(e)?ti(e,"dd/MM/yyyy HH:mm"):"-"}getProvidersName(){var e=new tl().getList(!1);return this.user.providerData.map(t=>{var n=e.find(i=>i.getProviderName(i.getEnum())==t.providerId);return n.getNameByEnum(n.getEnum())}).join(", ")}};var ll=class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=G({token:r,factory:e=>Sx.\u0275fac(e),providedIn:"root"})};
105var Dx=class r{constructor(e){this.injector=e;this.manager=e.get(xr),this.seoService=e.get(br),this.authManager=e.get(ll)}manager;seoService;authManager;accessDeniedUrl(){return`${this.backofficeUrl()}/accessDenied`}loginUrl(){return"/login"}backofficeUrl(){return"/backoffice"}changePswUrl(){return"/change-password"}enrollmentUrl(){return"/enrollment"}superAdminRoutes(){return[]}adminRoutes(){return[]}goToLogin(){return m(this,null,function*(){yield this.manager.router.navigate([this.loginUrl()])})}goToLoading(){console.log("goToLoading"),this.manager.router.navigate(["/_loading"])}goToBackoffice(){this.manager.router.navigate([this.backofficeUrl()])}goToChangePsw(){this.manager.router.navigate([this.changePswUrl()])}goToEnrollment(){this.manager.router.navigate([this.enrollmentUrl()])}canActivate(e,t){return new Promise((n,i)=>{this.manager?.initialized?(n(this.checkAuth(t)),this.seoService.setNoIndex()):this.manager?.onChangeMyCustomer.subscribe(a=>{this.manager?.user!==null&&(this.manager?.user?.isAnonymous||this.manager?.myCustomer?.id)&&n(this.checkAuth(t))})})}canAccess(){return this.manager.myCustomer.canAccess()}checkExtraRoutes(e,t){return!0}checkAuth(e){if(!this.seoService.isPlatformBrowser()||this.manager===void 0)return!1;if(!this.manager.isLoggedIn())return this.manager.router&&(console.log("not logged goToLogin"),this.goToLogin()),!1;if(!this.canAccess())return console.log("not access goToLogin"),this.goToLogin(),!1;let t=this.authManager?.getMfaMode();if(t&&ux(t)&&!this.manager.otpVerified)return console.log("emailOtp not verified goToLogin"),this.goToLogin(),!1;var n=[],i=e.url.split("/");if(n=i,i.forEach(s=>{var o=s.split("#");o.forEach(l=>{n.push(l)})}
105),i.forEach(s=>{var o=s.split("?");o.forEach(l=>{n.push(l)})}),e!=null&&this.findRoute(n,this.adminRoutes())&&!this.manager.myCustomer.isSuperAdmin()&&!this.manager.myCustomer.isAdmin())return console.error("accessDenied admin"),this.manager.router.navigate([this.accessDeniedUrl()]),!1;if(e!=null&&this.findRoute(n,this.superAdminRoutes())&&!this.manager.myCustomer.isSuperAdmin())return console.error("accessDenied superAdmin"),this.manager.router.navigate([this.accessDeniedUrl()]),!1;var a=this.checkExtraRoutes(e,n);return a?!0:(console.log("checkExtraRoutes not access goToLogin"),this.goToLogin(),!1)}canActivateChild(e,t){return this.canActivate(e,t)}findRoute(e,t){var n=!1;for(var i of e)for(var a of t)if(i===a){n=!0;break}return n}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var pu=class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=G({token:r,factory:e=>Dx.\u0275fac(e),providedIn:"root"})};var Sm=class r{constructor(e,t,n){this._document=e;this.platformId=t;this.injector=n;this.setVisibility(!0)}completedInitializer=Vr(0);totalInitializer=Vr(4);progressEaseDuration=600;variableVisible="--app-initializer-visible";variablePercentual="--app-initializer-percentual";variableHeight="--app-initializer-height";tettoAttesaDisegno=45e3;attesaPrimaDellAvviso=12e3;chiusuraProgrammata=!1;timerAvviso;nodoAvviso;setVisibility(e){this._document?.documentElement.style.setProperty(this.variableVisible,e?"visible":"hidden")}setPercentual(e,t=!0){if(Si(this.platformId)&&(this._document?.documentElement.style.setProperty(this.variablePercentual,`${e}`),e==1)){if(!t){this.nascondi();return}this.nascondiQuandoDisegnato()}}nascondi(){this.timerAvviso&&(clearTimeout(this.timerAvviso),this.timerAvviso=void 0),this.nodoAvviso?.remove(),this.nodoAvviso=void 0,this.setVisibility(!1),this.setPercentual(0)}mostraAvvisoAttesa(){if(this.nodoAvviso||!Si(this.platformId))return;let e=this._document?.querySelector(".app-initializer");if(!e)return;let n=(this._document.defaultView?.getComputedStyle(e).backgroundColor??"").match(/\d+(\.\d+)?/g)?.slice(0,3).map(Number)??[0,0,0],a=n[0]*.299+n[1]*.587+n[2]*.114>150?"#111111":"#ffffff",s=this._document.createElement("div");s.setAttribute("role","status"),s.style.cssText="display:flex;flex-direction:column;align-items:center;gap:12px;font-family:system-ui,-apple-system,sans-serif;font-size:15px;line-height:1.4;text-align:center;padding:0 24px;max-width:320px;color:"+a+";";let o=this._document.createElement("span");o.textContent="Ci sta mettendo pi\xF9 del solito.";let l=this._document.createElement("button");l.type="button",l.textContent="Ricarica",l.style.cssText="cursor:pointer;padding:8px 20px;border-radius:999px;font:inherit;background:transparent;border:1px solid "+a+";color:"+a+";",l.addEventListener("click",()=>this._document.defaultView?.location.reload()),s.appendChild(o),s.appendChild(l),e.appendChild(s),this.nodoAvviso=s}nascondiQuandoDisegnato(){if(this.chiusuraProgrammata)return;this.chiusuraProgrammata=!0;let e=this.injector.get($r,null);if(!e){setTimeout(()=>this.nascondi(),1e3);return}let t=!1,n=()=>{t||(t=!0,this.nascondi())},i=()=>Yn(()=>n(),{injector:this.injector});e.navigated?i():e.events.pipe(Yt(a=>a instanceof di),Hr(1)).subscribe(()=>i()),this.timerAvviso=setTimeout(()=>this.mostraAvvisoAttesa(),this.attesaPrimaDellAvviso),setTimeout(()=>n(),this.tettoAttesaDisegno)}static \u0275fac=function(t){return new(t||r)(ee(Je),ee(hn),ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var Wa=class extends ue{getConfigList(){}},Eo=(o=>(o[o.Grid=0]="Grid",o[o.Masonry=1]="Masonry",o[o.Carousel=2]="Carousel",o[o.List=3]="List",o[o.Timeline=4]="Timeline",o[o.Timeline_sfalsato=5]="Timeline_sfalsato",o[o.Accordion=6]="Accordion",o))(Eo||{}),Ax=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(Eo)}getNameByEnum(e){let t=Object.values(Eo);return isNaN(e)?"":e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error origin name"}visible(e){let t=Object.values(Eo);return!0}getImageByEnum(e){return r.getImage(e)}static getImage(e){var t="/app/FirebaseBackofficeLib/assets/img/layout/";switch(e){case 0:return t+"grid.webp";case 1:return t+"masonry.webp";case 2:return t+"carousel.webp";case 3:return t+"list.webp";case 4:return t+"timeline.webp";case 5:return t+"timeline.webp";default:return""}}};var or=class{desktop;laptop;tablet;mobile;constructor(e){e&&this.setData(e)}setData(e){e&&(this.desktop=e.desktop,this.laptop=e.laptop,this.tablet=e.tablet,this.mobile=e.mobile)}getDocumentData(){var e={};return e.desktop=this.desktop?this.desktop:null,e.laptop=this.laptop?this.laptop:null,e.tablet=this.tablet?this.tablet:null,e.mobile=this.mobile?this.mobile:null,e}preDeleteModel(e){return m(this,null,function*(){})}};var yn=class{layoutRepeaterId;itemNumber;carouselDot;hideNav;autoHeight;constructor(e){e&&this.setData(e)}setData(e){e&&(e.itemNumber&&(this.itemNumber=new or(e.itemNumber)),this.layoutRepeaterId=e.layoutRepeaterId,this.carouselDot=e.carouselDot,this.hideNav=e.hideNav,this.autoHeight=e.autoHeight)}getDocumentData(){var e={};return this.itemNumber!=null&&(e.itemNumber=this.itemNumber.getDocumentData()),this.layoutRepeaterId!=null&&(e.layoutRepeaterId=this.layoutRepeaterId),this.carouselDot!=null&&(e.carouselDot=this.carouselDot),this.hideNav!=null&&(e.hideNav=this.hideNav),this.autoHeight!=null&&(e.autoHeight=this.autoHeight),e}preDeleteModel(e){return m(this,null,function*(){})}getLayoutBaseRepeaterEnum(){return new Ax(this.layoutRepeaterId).getEnum()}hideAll(){return!this.itemNumber&&!this.carouselDot==null}};var Dm=(u=>(u[u.Testo_gallery_griglia=0]="Testo_gallery_griglia",u[u.Testo_gallery_masonry=1]="Testo_gallery_masonry",u[u.Testo_gallery_carousel=2]="Testo_gallery_carousel",u[u.Testo_gallery_carousel_due_colonne=3]="Testo_gallery_carousel_due_colonne",u[u.Testo_gallery_carousel_due_colonne_sx=4]="Testo_gallery_carousel_due_colonne_sx",u[u.Testo_gallery_griglia_fullscreen=5]="Testo_gallery_griglia_fullscreen",u[u.Testo_gallery_griglia_fullscreen_2=6]="Testo_gallery_griglia_fullscreen_2",u[u.Testo_gallery_griglia_fullscreen_3=7]="Testo_gallery_griglia_fullscreen_3",u[u.Testo_gallery_carousel_active_element=8]="Testo_gallery_carousel_active_element",u[u.Testo_gallery_carousel_active_element_sx=9]="Testo_gallery_carousel_active_element_sx",u))(Dm||{}),Mx=class r extends Wa{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(Dm)}getNameByEnum(e){let t=Object.values(Dm);switch(e){case t[5]:case 5:return"Griglia brand indentity";case t[6]:case 6:return"Griglia 2-1-1-1-1-2";case t[7]:case 7:return"Griglia stile instagram";case t[8]:case 8:return"Testo a sinistra, carousel active element a destra";case t[9]:case 9:return"Testo a destra, carousel active element a sinistra";default:return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error origin name"}}
105visible(e){let t=Object.values(Dm);return!0}getColorByEnum(e){return"#582F4D"}getListByOriginEnum(e,t){var n=this.getEnumValues().filter(o=>!isNaN(Number(o))),i=[];let a=0,s=0;return n.forEach(o=>{let l=this.getInstance(o);typeof o=="string"||typeof o=="number"&&(this.visible(o)&&(l.id=s,i[a]=l,a++),s++)}),n=this.getEnumValues(),i.sort((o,l)=>{if(o.order!==void 0&&l.order!==void 0&&o.order!==-1&&l.order!==-1){if(o.order>l.order)return 1}else if(o.getName()>l.getName())return 1;return-1}),(e==null||e)&&i.unshift(this.getInstanceAll()),i}getTooltipText(){let e=Object.values(Dm),t=Number(this.id);switch(t){case e[0]:case 0:return"Una colonna - testo sopra e gallery di tipo griglia sotto";case e[1]:case 1:return"Una colonna - testo sopra e gallery di tipo masonry sotto";case e[2]:case 2:return"Una colonna - testo sopra e gallery di tipo carousel sotto";case 3:return"Due colonne - testo a sinistra e carousel a destra";case 4:return"Due colonne - testo a destra e carousel a sinistra";case 5:return"Una colonna - testo sopra e gallery di tipo griglia fullescreen sotto";case 6:return"Una colonna - testo sopra e gallery di tipo griglia fullescreen alternating (2-1-2-1) sotto";case 7:return"Una colonna - testo sopra e gallery di tipo griglia fullescreen alternating (pavimentazione) sotto";case 8:return"Due colonne - testo a sinistra e carousel con active element a destra";case 9:return"Due colonne - testo a destra e carousel con active element a sinistra";default:return this.getNameByEnum(t)}}getDescription(){let e=Object.values(Dm),t=Number(this.id);return this.getNameByEnum(t)}getImageByEnum(e){return r.getImage(e)}static getImage(e){var t="/app/FirebaseBackofficeLib/assets/img/layout/gallerySTD/";switch(e){case 0:return t+"testo_gallery_griglia.webp";case 1:return t+"testo_gallery_masonry.webp";case 2:return t+"testo_gallery_carousel.webp";case 3:return t+"testo_carousel_due_colonne.webp";case 4:return t+"testo_carousel_item-due_colonne_reverse.webp";case 5:return t+"testo_gallery_griglia_FullScreen.webp";case 6:return t+"testo_gallery_masonry_FullScreen_2.webp";case 7:return t+"testo_gallery_masonry_FullScreen_3.webp";case 8:return t+"testo_gallery_carousel_active_element.webp";case 9:return t+"testo_gallery_carousel_active_element_sx.webp";default:return""}}getConfigList(){let e=Number(this.id);var t=new yn;switch(t.layoutRepeaterId=e,e){case 2:case 3:case 4:case 8:case 9:t.layoutRepeaterId=2;break;case 0:t.layoutRepeaterId=0;break}switch(e){case 2:return t.itemNumber=new or({desktop:4,laptop:3,tablet:2,mobile:1}),t.carouselDot=!0,t;case 3:case 4:return t.itemNumber=new or({desktop:1,laptop:1,tablet:1,mobile:1}),t.carouselDot=!0,t;case 8:case 9:return t.itemNumber=new or({desktop:3,laptop:3,tablet:3,mobile:3}),t.carouselDot=!1,t;case 0:return t.itemNumber=new or({desktop:3,laptop:3,tablet:3,mobile:3}),t;default:return}}};var Am=(b=>(b[b.Testo_accordion=0]="Testo_accordion",b[b.Testo_accordion_due_colonne=1]="Testo_accordion_due_colonne",b[b.Testo_carousel=2]="Testo_carousel",b[b.Testo_carousel_due_colonne=3]="Testo_carousel_due_colonne",b[b.Testo_griglia=4]="Testo_griglia",b[b.Testo_griglia_sfalsato=5]="Testo_griglia_sfalsato",b[b.Testo_timeline=6]="Testo_timeline",b[b.Testo_timeline_sfalsato=7]="Testo_timeline_sfalsato",b[b.Testo_griglia_quattro_item=8]="Testo_griglia_quattro_item",b[b.Testo_griglia_due_item=9]="Testo_griglia_due_item",b[b.Testo_lista=10]="Testo_lista",b[b.Testo_timeline_immagini_sfalsato=11]="Testo_timeline_immagini_sfalsato",b[b.Testo_stepper_orizzontale=12]="Testo_stepper_orizzontale",b[b.Testo_masonry=13]="Testo_masonry",b[b.Testo_masonry_due_colonne=14]="Testo_masonry_due_colonne",b[b.Testo_Media_parallax=15]="Testo_Media_parallax",b[b.Testo_Media_parallax_sfalsato=16]="Testo_Media_parallax_sfalsato",b[b.Testo_timeline_immagini_horizontal=17]="Testo_timeline_immagini_horizontal",b[b.Testo_lista_due_colonne=18]="Testo_lista_due_colonne",b[b.Testo_lista_due_colonne_reverse=19]="Testo_lista_due_colonne_reverse",b[b.Testo_con_chips=20]="Testo_con_chips",b[b.Testo_griglia_quattro_item_accordion=21]="Testo_griglia_quattro_item_accordion",b[b.Testo_carousel_oltre_il_bordo=22]="Testo_carousel_oltre_il_bordo",b))(Am||{}),kx=class r extends Wa{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(Am)}getNameByEnum(e){let t=Object.values(Am);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error origin name"}visible(e){let t=Object.values(Am);return!0}getColorByEnum(e){return"#582F4D"}getListByOriginEnum(e,t){var n=this.getEnumValues().filter(o=>!isNaN(Number(o))),i=[];let a=0,s=0;
105return n.forEach(o=>{let l=this.getInstance(o);typeof o=="string"||typeof o=="number"&&(this.visible(o)&&(l.id=s,i[a]=l,a++),s++)}),n=this.getEnumValues(),i.sort((o,l)=>{if(o.order!==void 0&&l.order!==void 0&&o.order!==-1&&l.order!==-1){if(o.order>l.order)return 1}else if(o.getName()>l.getName())return 1;return-1}),(e==null||e)&&i.unshift(this.getInstanceAll()),i}getTooltipText(){let e=Object.values(Am),t=Number(this.id);switch(t){case e[0]:case 0:return"Una colonna - testo sopra e accordion sotto";case e[1]:case 1:return"Due colonne - testo a sinistra e accordion a destra";case e[2]:case 2:return"Una colonna - testo sopra e carousel sotto";case e[3]:case 3:return"Due colonne - testo a sinistra e carousel a destra";case e[4]:case 4:return"Una colonna - testo sopra e griglia sotto";case e[8]:case 8:return"Una colonna - testo sopra e griglia a 4 elementi sotto";case e[21]:case 21:return"Accordion contenente una griglia a 4 elementi";case e[22]:case 22:return"Una colonna - testo sopra e carousel sotto che esce dal bordo destro della pagina: l'ultima scheda resta tagliata a meta' e si capisce che la lista continua";case e[9]:case 9:return"Una colonna - testo sopra e griglia a 2 elementi sotto";case e[5]:case 5:return"Una colonna - testo sopra e griglia sotto, la griglia presenta l'elemento centrale pi\xF9 in alto";case e[6]:case 6:return"Una colonna - testo e immagini si trovano alla destra della linea";case e[7]:case 7:return"Una colonna - testo e immagini si alternano tenendo la linea al centro";case e[11]:case 11:return"Due colonne - testo e immagini si alternano tenendo la linea al centro";case e[10]:case 10:return"Una colonna - lista di elementi";case e[12]:case 12:return"Una colonna - Un elemento per volta";case e[13]:case 13:return"Una colonna - testo sopra e masonry sotto (3 colonne su desktop)";case e[14]:case 14:return"Due colonne - testo a sinistra e masonry a destra (2 colonne su desktop)";case e[15]:case 15:return"Due colonne - paragrafo da un lato e multimedia fullscreen (100vh) dall'altro con effetto parallax";case e[16]:case 16:return"Due colonne - paragrafo da un lato e multimedia fullscreen (100vh) dall'altro con effetto parallax e disposizione alternata";case e[17]:case 17:return"Due colonne (Testo e immagine) e navigatore a timeline orizzontale superiore";case e[18]:case 18:return"Due colonne - testo a sinistra e lista di elementi a destra";case 19:case e[19]:return"Due colonne - lista di elementi a sinistra e testo a destra";case e[20]:case 20:return"Due colonne - testo a sinistra e chips a destra";default:return this.getNameByEnum(t)}}getDescription(){let e=Object.values(Am),t=Number(this.id);return this.getNameByEnum(t)}getImageByEnum(e){return r.getImage(e)}static getImage(e){var t="/app/FirebaseBackofficeLib/assets/img/layout/itemsSTD/";switch(e){case 0:return t+"testo_accordion.webp";case 1:return t+"testo_accordion_due_colonne.webp";case 2:return t+"testo_carousel.webp";case 3:return t+"testo_carousel_due_colonne.webp";case 4:return t+"testo_griglia.webp";case 8:return t+"testo_griglia_quattro_item.webp";case 21:return t+"testo_griglia_quattro_item.webp";case 9:return t+"testo_griglia_due_item.webp";case 5:return t+"testo_griglia_sfalsato.webp";case 6:return t+"testo_timeline.webp";case 7:return t+"testo_timeline_sfalsato.webp";case 10:return t+"testo_lista.webp";case 11:return t+"testo_immagine_timeline_sfalsato.webp";case 12:return t+"testo_timeline_item_stepper.webp";case 13:return t+"testo_masonry.webp";case 14:return t+"testo_masonry_due_colonne.webp";case 15:return t+"testo_Media_parallax.webp";case 16:return t+"testo_Media_parallax_sfalsato.webp";case 17:return t+"testo_stepper_orizzontale.webp";case 18:return t+"testo_item_image-due_colonne.webp";case 19:return t+"testo_item_image-due_colonne_reverse.webp";case 20:return t+"testo_con_chips.webp";case 22:return t+"testo_carousel_oltre_il_bordo.webp";default:return""}}getConfigList(){let e=Number(this.id);var t=new yn;switch(t.layoutRepeaterId=e,e){case 2:case 3:case 12:case 17:case 22:t.layoutRepeaterId=2;break;case 4:case 8:case 9:case 21:t.layoutRepeaterId=0;break;case 10:case 18:case 19:case 20:t.layoutRepeaterId=3;break;case 13:case 14:t.layoutRepeaterId=1;break}switch(e){case 2:return t.itemNumber=new or({desktop:4,laptop:3,tablet:2,mobile:1}),t.carouselDot=!0,t;case 22:return t.itemNumber=new or({desktop:4,laptop:3,tablet:2,mobile:1}),t.carouselDot=!0,t;case 12:return t.itemNumber=new or({desktop:1,laptop:1,tablet:1,mobile:1}),t.carouselDot=!0,t;case 17:return t.itemNumber=new or({desktop:1,laptop:1,tablet:1,mobile:1}),t.carouselDot=!1,t;case 3:return t.itemNumber=new or({desktop:1,laptop:1,tablet:1,mobile:1}),t.carouselDot=!0,t;case 4:return t.itemNumber=new or({desktop:3,laptop:3,tablet:2,mobile:1}),t;case 8:case 21:return t.itemNumber=new or({desktop:4,laptop:4,tablet:2,mobile:1}),t;case 9:return t.itemNumber=new or({desktop:2,laptop:2,tablet:2,mobile:1}),t;case 10:case 18:case 19:case 20:return t.itemNumber=new or({desktop:1,laptop:1,tablet:1,mobile:1}),t;case 13:return t.itemNumber=new or({desktop:3,laptop:3,tablet:2,mobile:1}),t;case 14:return t.itemNumber=new or({desktop:3,laptop:3,tablet:2,mobile:1}),t;case 15:case 16:return t.itemNumber=new or({desktop:1,laptop:1,tablet:1,mobile:1}),t;default:return}}};var Mm=(p=>(p[p.Testo_accordion=0]="Testo_accordion",p[p.Testo_accordion_due_colonne=1]="Testo_accordion_due_colonne",p[p.Testo_carousel=2]="Testo_carousel",p[p.Testo_carousel_due_colonne=3]="Testo_carousel_due_colonne",p[p.Testo_griglia=4]="Testo_griglia",p[p.Testo_griglia_sfalsato=5]="Testo_griglia_sfalsato",p[p.Testo_timeline=6]="Testo_timeline",p[p.Testo_timeline_sfalsato=7]="Testo_timeline_sfalsato",p[p.Test_Image_Link=8]="Test_Image_Link",p[p.Test_Image_Link_reverse=9]="Test_Image_Link_reverse",p[p.Testo_List_link=10]="Testo_List_link",p[p.Testo_List_link_reverse=11]="Testo_List_link_reverse",p[p.Testo_carousel_oltre_il_bordo=12]="Testo_carousel_oltre_il_bordo",p))(Mm||{}),Px=class r extends Wa{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(Mm)}getNameByEnum(e){let t=Object.values(Mm);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error origin name"}visible(e){let t=Object.values(Mm);return!0}getColorByEnum(e){return"#582F4D"}getListByOriginEnum(e,t){var n=this.getEnumValues().filter(o=>!isNaN(Number(o))),i=[];let a=0,s=0;
105return n.forEach(o=>{let l=this.getInstance(o);typeof o=="string"||typeof o=="number"&&(this.visible(o)&&(l.id=s,i[a]=l,a++),s++)}),n=this.getEnumValues(),i.sort((o,l)=>{if(o.order!==void 0&&l.order!==void 0&&o.order!==-1&&l.order!==-1){if(o.order>l.order)return 1}else if(o.getName()>l.getName())return 1;return-1}),(e==null||e)&&i.unshift(this.getInstanceAll()),i}getTooltipText(){let e=Object.values(Mm),t=Number(this.id);switch(t){case e[0]:case 0:return"Una colonna - testo sopra e accordion sotto";case e[1]:case 1:return"Due colonne - testo a sinistra e accordion a destra";case e[2]:case 2:return"Una colonna - testo sopra e carousel sotto";case e[12]:case 12:return"Una colonna - testo sopra e carousel sotto che esce dal bordo destro della pagina: l'ultima scheda resta tagliata a meta' e si capisce che la lista continua";case e[3]:case 3:return"Due colonne - testo a sinistra e carousel a destra";case e[4]:case 4:return"Una colonna - testo sopra e griglia sotto";case e[5]:case 5:return"Una colonna - testo sopra e griglia sotto, la griglia presenta l'elemento centrale pi\xF9 in alto";case e[6]:case 6:return"Una colonna - testo e immagini si trovano alla destra della linea";case e[7]:case 7:return"Una colonna - testo e immagini si alternano tenendo la linea al centro";case e[8]:case 8:return"Due colonne - testo e link su una colonna e immagine generica nell'altra colonna";case e[9]:case 9:return"Due colonne - immagine generica sulla prima colonna, testo e link sull'altra colonna";case e[10]:case 10:return"Due colonne - testo su una colonna e lista di link sull'altra colonna";case e[11]:case 11:return"Due colonne - lista di link sulla prima colonna e testo sull'altra colonna";default:return this.getNameByEnum(t)}}getDescription(){let e=Object.values(Mm),t=Number(this.id);return this.getNameByEnum(t)}getImageByEnum(e){return r.getImage(e)}static getImage(e){var t="/app/FirebaseBackofficeLib/assets/img/layout/itemsSTD/";switch(e){case 0:return t+"testo_accordion.webp";case 1:return t+"testo_accordion_due_colonne.webp";case 2:return t+"testo_carousel.webp";case 12:return t+"testo_carousel_oltre_il_bordo.webp";case 3:return t+"testo_carousel_due_colonne.webp";case 4:return t+"testo_griglia.webp";case 5:return t+"testo_griglia_sfalsato.webp";case 6:return t+"testo_timeline.webp";case 7:return t+"testo_timeline_sfalsato.webp";case 8:return t+"testo_item_image-due_colonne.webp";case 9:return t+"testo_item_image-due_colonne_reverse.webp";case 10:return t+"testo_list_link.webp";case 11:return t+"testo_list_link_reverse.webp";default:return""}}getConfigList(){let e=Number(this.id);var t=new yn;switch(t.layoutRepeaterId=e,e){case 2:case 3:case 12:t.layoutRepeaterId=2;break;case 4:t.layoutRepeaterId=0;break}switch(e){case 12:case 2:return t.itemNumber=new or({desktop:4,laptop:3,tablet:2,mobile:1}),t.carouselDot=!0,t;case 3:return t.itemNumber=new or({desktop:1,laptop:1,tablet:1,mobile:1}),t.carouselDot=!0,t;case 4:return t.itemNumber=new or({desktop:3,laptop:3,tablet:2,mobile:1}),t;default:return}}};var km=(x=>(x[x.Grid=0]="Grid",x[x.Masonry=1]="Masonry",x[x.Carousel=2]="Carousel",x[x.List=3]="List",x[x.Timeline=4]="Timeline",x[x.Timeline_sfalsato=5]="Timeline_sfalsato",x[x.Grid_Quattro_Item=6]="Grid_Quattro_Item",x[x.Testo_accordion=7]="Testo_accordion",x[x.Testo_accordion_due_colonne=8]="Testo_accordion_due_colonne",x[x.List_due_colonne=9]="List_due_colonne",x[x.List_Item_con_categorie=10]="List_Item_con_categorie",x[x.List_Item_con_categorie_tab=11]="List_Item_con_categorie_tab",x[x.Accordion_con_categorie_tab=12]="Accordion_con_categorie_tab",x[x.Carousel_singolo=13]="Carousel_singolo",x[x.Testo_Media_parallax=14]="Testo_Media_parallax",x[x.Testo_Media_parallax_sfalsato=15]="Testo_Media_parallax_sfalsato",x[x.Grid_Due_item=16]="Grid_Due_item",x[x.Griglia_accordion=17]="Griglia_accordion",x[x.Carousel_oltre_il_bordo=18]="Carousel_oltre_il_bordo",x))(km||{});var Rx=class r extends Wa{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(km)}getNameByEnum(e){let t=Object.values(km);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error origin name"}getColorByEnum(e){return"#582F4D"}getListByOriginEnum(e,t){var n=this.getEnumValues().filter(o=>!isNaN(Number(o))),i=[];let a=0,s=0;
105return n.forEach(o=>{let l=this.getInstance(o);typeof o=="string"||typeof o=="number"&&(this.visible(o)&&(l.id=s,i[a]=l,a++),s++)}),n=this.getEnumValues(),i.sort((o,l)=>{if(o.order!==void 0&&l.order!==void 0&&o.order!==-1&&l.order!==-1){if(o.order>l.order)return 1}else if(o.getName()>l.getName())return 1;return-1}),(e==null||e)&&i.unshift(this.getInstanceAll()),i}getTooltipText(){let e=Object.values(km),t=Number(this.id);switch(t){case e[0]:case 0:return"Una colonna - testo sopra e griglia a 3 item sotto";case e[6]:case 6:return"Una colonna - testo sopra e griglia a 4 item sotto";case e[1]:case 1:return"Due colonne - testo a sinistra e carousel a destra";case e[2]:case 2:return"Una colonna - testo sopra e carousel sotto";case e[13]:case 13:return"Un elemento - testo sopra e carousel sotto";case e[3]:case 3:return"Una colonna - testo sopra e griglia sotto, la griglia presenta l'elemento centrale pi\xF9 in alto";case e[9]:case 9:return"Due colonne - testo sopra e lista a destra";case e[4]:case 4:return"Una colonna - testo e immagini si trovano alla destra della linea";case e[5]:case 5:return"Una colonna - testo e immagini si alternano a destra e sinistra della linea";case e[7]:case 7:return"Una colonna - testo sopra e accordion sotto";case e[8]:case 8:return"Due colonne - testo a sinistra e accordion a destra";case e[10]:case 10:return"Lista modello con raggruppamento per categoria";case e[11]:case 11:return"Lista modello con raggruppamento per categoria a tab";case e[12]:case 12:return"Accordion con raggruppamento per categoria a tab";case e[14]:case 14:return"Due colonne - paragrafo da un lato e multimedia fullscreen (100vh) dall'altro con effetto parallax";case e[15]:case 15:return"Due colonne - paragrafo da un lato e multimedia fullscreen (100vh) dall'altro con effetto parallax e disposizione alternata";case e[16]:case 16:return"Una colonna - testo sopra e griglia a 2 item sotto";case e[17]:case 17:return"Una colonna - testo sopra e griglia a 2 colonne di accordion sotto";case e[18]:case 18:return"Una colonna - testo sopra e carousel sotto che esce dal bordo destro della pagina: l'ultima scheda resta tagliata a meta' e si capisce che la lista continua";default:return"MY DEFAULT: "+this.getNameByEnum(t)}}getOrderByEnum(e){let t=Object.values(km);switch(e){case t[0]:case 0:return 0;case t[6]:case 6:return 1;case t[1]:case 1:return 2;case t[2]:case 2:return 3;case t[13]:case 13:return 3;case t[3]:case 3:return 4;case t[9]:case 9:return 5;case t[4]:case 4:return 6;case t[5]:case 5:return 7;case t[7]:case 7:return 8;case t[8]:case 8:return 9;case t[10]:case 10:return 10;case t[11]:case 11:return 11;case t[12]:case 12:return 12;case t[14]:case 14:return 13;case t[15]:case 15:return 14;case t[16]:case 16:return 15;case t[17]:case 17:return 16;case t[18]:case 18:return 17;default:return 0}}getDescription(){let e=Object.values(km),t=Number(this.id);return this.getNameByEnum(t)}getImageByEnum(e){return r.getImage(e)}static getImage(e){var t="/app/FirebaseBackofficeLib/assets/img/layout/listSTD/";switch(e){case 0:return t+"testo_griglia.webp";case 6:return t+"testo_griglia_quattro_item.webp";case 1:return t+"testo_masonry.webp";case 2:return t+"testo_carousel.webp";case 13:return t+"testo_carousel.webp";case 3:return t+"testo_lista.webp";case 9:return t+"testo_lista_due_colonne.webp";case 4:return t+"testo_timeline.webp";case 5:return t+"testo_timeline_sfalsato.webp";case 7:return t+"testo_accordion.webp";case 8:return t+"testo_accordion_due_colonne.webp";case 10:return t+"testo_lista_item_con_categoria.webp";case 11:return t+"testo_tab_item_column_con_categoria.webp";case 12:return t+"testo_tab_item_accordion_con_categoria.webp";case 14:return t+"testo_Media_parallax.webp";case 15:return"/app/FirebaseBackofficeLib/assets/img/layout/itemsSTD/testo_Media_parallax_sfalsato.webp";case 16:return t+"testo_griglia_due_item.webp";case 17:return t+"testo_griglia_accordion.webp";case 18:return t+"testo_carousel_oltre_il_bordo.webp";default:return""}}getConfigList(){let e=Number(this.id);var t=new yn;switch(t.layoutRepeaterId=e,e){case 0:case 1:case 2:case 3:case 4:case 5:break;case 13:case 18:t.layoutRepeaterId=2;break;case 6:case 16:t.layoutRepeaterId=0;break;case 7:case 8:case 17:t.layoutRepeaterId=6;break;case 9:t.layoutRepeaterId=3;break}switch(e){case 0:case 3:case 2:return t.itemNumber=new or({desktop:3,laptop:3,tablet:2,mobile:1}),e==2&&(t.carouselDot=!0),t;case 13:return t.itemNumber=new or({desktop:1,laptop:1,tablet:1,mobile:1}),t.carouselDot=!0,t.hideNav=!0,t.autoHeight=!0,t;case 6:return t.itemNumber=new or({desktop:4,laptop:4,tablet:2,mobile:1}),t;case 18:return t.itemNumber=new or({desktop:4,laptop:3,tablet:2,mobile:1}),t.carouselDot=!0,t;case 16:return t.itemNumber=new or({desktop:2,laptop:2,tablet:2,mobile:1}),t;case 17:return t.itemNumber=new or({desktop:2,laptop:2,tablet:1,mobile:1}),t;case 14:case 15:return t.itemNumber=new or({desktop:1,laptop:1,tablet:1,mobile:1}),t;default:return t}}};var Pm=(a=>(a[a.Default=0]="Default",a[a.Map_With_Card=1]="Map_With_Card",a[a.Solo_Mappa=2]="Solo_Mappa",a[a.Mappa_Griglia_Card=3]="Mappa_Griglia_Card",a[a.Solo_Mappa_two_column=4]="Solo_Mappa_two_column",a))(Pm||{}),Ox=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(Pm)}getNameByEnum(e){let t=Object.values(Pm);switch(e){case t[0]:case 0:return"Accordion e mappa";case t[1]:case 1:return"Card e mappa";case t[2]:case 2:return"Solo mappa";case t[3]:case 3:return"Mappa e griglia card";case t[4]:case 4:return"Solo mappa due colonne";default:return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error LayoutsPreconfiguratedMapBaseEnum name"}}visible(e){let t=Object.values(Pm);return!0}getColorByEnum(e){return"#582F4D"}getListByOriginEnum(e,t){var n=this.getEnumValues().filter(o=>!isNaN(Number(o))),i=[];let a=0,s=0;
105return n.forEach(o=>{let l=this.getInstance(o);typeof o=="string"||typeof o=="number"&&(this.visible(o)&&(l.id=s,i[a]=l,a++),s++)}),n=this.getEnumValues(),i.sort((o,l)=>{if(o.order!==void 0&&l.order!==void 0&&o.order!==-1&&l.order!==-1){if(o.order>l.order)return 1}else if(o.getName()>l.getName())return 1;return-1}),(e==null||e)&&i.unshift(this.getInstanceAll()),i}getTooltipText(){let e=Object.values(Pm),t=Number(this.id);switch(t){case e[0]:case 0:return"Lista di accordion di ogni luogo + Mappa con i pin dei posti";case e[1]:case 1:return"Lista di card di ogni luogo + Mappa con i pin dei posti";case e[2]:case 2:return"Mappa con i pin dei posti (senza lista)";case e[3]:case 3:return"Mappa full width e griglia di card dei luoghi";case e[4]:case 4:return"Testo a sinistra + Mappa a destra con i pin dei posti (senza lista)";default:return this.getNameByEnum(t)}}getDescription(){let e=Object.values(Pm),t=Number(this.id);return this.getNameByEnum(t)}getImageByEnum(e){return r.getImage(e)}static getImage(e){var t="/app/FirebaseBackofficeLib/assets/img/layout/mappaSTD/";switch(e){case 0:return t+"testo_mappa_accordion.webp";case 1:return t+"testo_mappa_card.webp";case 2:return t+"testo_solo_mappa.webp";case 3:return t+"testo_mappa_card.webp";case 4:return t+"testo_mappa_due colonne.webp";default:return""}}};var gu=(u=>(u[u.Immagine_testo_due_colonne=0]="Immagine_testo_due_colonne",u[u.Immagine_testo=1]="Immagine_testo",u[u.Testo_immagine_due_colonne=2]="Testo_immagine_due_colonne",u[u.Testo_immagine=3]="Testo_immagine",u[u.Immagine_testo_due_colonne_full=4]="Immagine_testo_due_colonne_full",u[u.Testo_immagine_due_colonne_full=5]="Testo_immagine_due_colonne_full",u[u.Immagine_testo_full=6]="Immagine_testo_full",u[u.Testo_immagine_full=7]="Testo_immagine_full",u[u.Immagine_testo_centrale=8]="Immagine_testo_centrale",u[u.Testo_immagine_centrale=9]="Testo_immagine_centrale",u))(gu||{}),Fx=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(gu)}getNameByEnum(e){let t=Object.values(gu);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error origin name"}visible(e){let t=Object.values(gu);return!0}getColorByEnum(e){return"#582F4D"}getListByOriginEnum(e,t){var n=this.getEnumValues().filter(o=>!isNaN(Number(o))),i=[];let a=0,s=0;return n.forEach(o=>{let l=this.getInstance(o);typeof o=="string"||typeof o=="number"&&(this.visible(o)&&(l.id=s,i[a]=l,a++),s++)}),n=this.getEnumValues(),i.sort((o,l)=>{if(o.order!==void 0&&l.order!==void 0&&o.order!==-1&&l.order!==-1){if(o.order>l.order)return 1}else if(o.getName()>l.getName())return 1;return-1}),(e==null||e)&&i.unshift(this.getInstanceAll()),i}getTooltipText(){let e=Object.values(gu),t=Number(this.id);switch(t){case e[2]:case 2:return"Due colonne - testo a sinistra e immagine a destra";case e[3]:case 3:return"Una colonna - testo sopra e immagine sotto";case e[0]:case 0:return"Due colonne - immagine a destra e testo a sinistra";case e[1]:case 1:return"Una colonna - immagine sopra e testo sotto";case e[5]:case 5:return"Due colonne - testo a sinistra e immagine a destra a tutto schermo";case e[7]:case 7:return"Una colonna - testo sopra e immagine sotto a tutto schermo";case e[4]:case 4:return"Due colonne - immagine a destra e testo a sinistra a tutto schermo";case e[6]:case 6:return"Una colonna - immagine sopra e testo sotto a tutto schermo";case e[8]:case 8:return"Una colonna - immagine sopra e testo sotto tutto centrato";case e[9]:case 9:return"Una colonna - testo sopra e immagine sotto tutto centrato";default:return this.getNameByEnum(t)}}getDescription(){let e=Object.values(gu),t=Number(this.id);return this.getNameByEnum(t)}getImageByEnum(e){return r.getImage(e)}static getImage(e){var t="/app/FirebaseBackofficeLib/assets/img/layout/paragrafoSTD/";switch(e){case 2:return t+"testo_immagine_due_colonne.webp";case 3:return t+"testo_immagine.webp";case 0:return t+"immagine_testo_due_colonne.webp";case 1:return t+"immagine_testo.webp";case 5:return t+"testo_immagine_due_colonne_full.webp";case 7:return t+"testo_immagine_full.webp";case 4:return t+"immagine_testo_due_colonne_full.webp";case 6:return t+"immagine_testo_full.webp";case 8:return t+"immagine_testo_centrale.webp";case 9:return t+"testo_immagine_centrale.webp";default:return""}}};var Rm=(e=>(e[e.Testo_tabella=0]="Testo_tabella",e))(Rm||{}),ry=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(Rm)}getNameByEnum(e){let t=Object.values(Rm);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error origin name"}visible(e){let t=Object.values(Rm);return!0}getColorByEnum(e){return"#582F4D"}getListByOriginEnum(e,t){var n=this.getEnumValues().filter(o=>!isNaN(Number(o))),i=[];let a=0,s=0;
105return n.forEach(o=>{let l=this.getInstance(o);typeof o=="string"||typeof o=="number"&&(this.visible(o)&&(l.id=s,i[a]=l,a++),s++)}),n=this.getEnumValues(),i.sort((o,l)=>{if(o.order!==void 0&&l.order!==void 0&&o.order!==-1&&l.order!==-1){if(o.order>l.order)return 1}else if(o.getName()>l.getName())return 1;return-1}),(e==null||e)&&i.unshift(this.getInstanceAll()),i}getTooltipText(){let e=Object.values(Rm),t=Number(this.id);switch(t){case e[0]:case 0:return"Una colonna - testo sopra e tabella sotto";default:return this.getNameByEnum(t)}}getDescription(){let e=Object.values(Rm),t=Number(this.id);return this.getNameByEnum(t)}getImageByEnum(e){return r.getImage(e)}static getImage(e){var t="/app/FirebaseBackofficeLib/assets/img/layout/tabellaSTD/";switch(e){case 0:return t+"testo_tabella.webp";default:return""}}};var Om=(i=>(i[i.Video_testo_H=0]="Video_testo_H",i[i.Video_testo_V=1]="Video_testo_V",i[i.Testo_video_H=2]="Testo_video_H",i[i.Testo_video_V=3]="Testo_video_V",i))(Om||{}),Bx=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(Om)}getNameByEnum(e){let t=Object.values(Om);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error origin name"}visible(e){let t=Object.values(Om);return!0}getColorByEnum(e){return"#582F4D"}getListByOriginEnum(e,t){var n=this.getEnumValues().filter(o=>!isNaN(Number(o))),i=[];let a=0,s=0;return n.forEach(o=>{let l=this.getInstance(o);typeof o=="string"||typeof o=="number"&&(this.visible(o)&&(l.id=s,i[a]=l,a++),s++)}),n=this.getEnumValues(),i.sort((o,l)=>{if(o.order!==void 0&&l.order!==void 0&&o.order!==-1&&l.order!==-1){if(o.order>l.order)return 1}else if(o.getName()>l.getName())return 1;return-1}),(e==null||e)&&i.unshift(this.getInstanceAll()),i}getTooltipText(){let e=Object.values(Om),t=Number(this.id);switch(t){case e[2]:case 2:return"Due colonne - testo a sinistra e video a destra";case e[3]:case 3:return"Una colonna - testo sopra e video sotto";case e[0]:case 0:return"Due colonne - video a destra e testo a sinistra";case e[1]:case 1:return"Una colonna - video sopra e testo sotto";default:return this.getNameByEnum(t)}}getDescription(){let e=Object.values(Om),t=Number(this.id);return this.getNameByEnum(t)}getImageByEnum(e){return r.getImage(e)}static getImage(e){var t="/app/FirebaseBackofficeLib/assets/img/layout/videoSTD/";switch(e){case 2:return t+"testo_video_H.webp";case 3:return t+"testo_video_V.webp";case 0:return t+"video_testo_H.webp";case 1:return t+"video_testo_V.webp";default:return""}}};var sc=(t=>(t[t.Attivo=0]="Attivo",t[t.NonAttivo=1]="NonAttivo",t))(sc||{}),ny=class r extends ue{getList(e,t,n,i){return super.getList(e,t,n,i)}getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(sc)}getNameByEnum(e){let t=Object.values(sc);switch(e){case t[0]:case 0:return this.translation?.enum_active?.attivo??"Attivo";case t[1]:case 1:return this.translation?.enum_active?.non_attivo??"Non Attivo";default:return"error group name"}}visible(e){let t=Object.values(sc);return!0}getOrderByEnum(e){let t=Object.values(sc);switch(e){case t[0]:case 0:return 0;case t[1]:case 1:return 1;default:return 0}}getColorByEnum(e){return e==ue.getAllId()?"#000000de":"#a7287a"}};var oh=(n=>(n[n.Libraries=0]="Libraries",n[n.Image=1]="Image",n[n.Base64=2]="Base64",n))(oh||{}),Nx=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(oh)}getNameByEnum(e){let t=Object.values(oh);switch(e){case t[2]:case 2:return"Url o Base64";default:return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error IconsCataloguesTypologyClass name"}}getInstanceAll(){return this.getInstance(void 0,ue.getAllId(),"Nessuno")}visible(e){let t=Object.values(oh);return!0}getIconByEnum(e){switch(e){case 0:return"photo_album";case 1:return"image";case 2:return"link";default:return"block"}}getColor(){return"#242424"}};var yu=(a=>(a[a.Primary=0]="Primary",a[a.Accent=1]="Accent",a[a.White=2]="White",a[a.Tertiary=3]="Tertiary",a[a.Gradient=4]="Gradient",a))(yu||{}),oc=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(yu)}getNameByEnum(e){let t=Object.values(yu);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error CommentTypology name"}getInstanceAll(){return this.getInstance(void 0,ue.getAllId(),"Nessuno")}visible(e){let t=Object.values(yu);return!0}getClassColors(e){let t=Object.values(yu);switch(e){case 0:return"primary";case 1:return"accent";case 2:return"white";case 3:return"tertiary";default:return""}}};var Lx=class r{transform(e){return e.toString().toLowerCase().replace(/\s+/g,"-").replace(/[^\w\-]+/g,"").replace(/\-\-+/g,"-").replace(/^-+/,"").replace(/-+$/,"")}static \u0275fac=function(t){return new(t||r)};static \u0275pipe=nd({name:"slugify",type:r,pure:!0,standalone:!1})};var R8=new Map;function Vx(r,e,t){if(!e||!t||wo.isReservedAnchor(e))return Promise.resolve(e);let n=`${t}|${e}`,i=R8.get(n);if(i)return i;let a=new Lx,s=r.get(Ge).getTranslationGeminiText(e,t,!0,!1).then(o=>a.transform(o??e)).catch(o=>(console.error("translateAnchor",e,o),a.transform(e)));return R8.set(n,s),s}var Ke=class{buttonText;buttonAnchor;buttonLink;buttonLinkOriginId;buttonTypologyId;buttonColorId;buttonId;
105buttonClasses;multimedia;downloadAutomatico;dynamicModelId;dynamicModelCollectionName;contactForm;buttonLinkOrigin;dynamicModel;constructor(e){e&&this.setData(e)}setData(e){e&&(this.buttonText=e.buttonText,this.buttonAnchor=e.buttonAnchor,this.buttonLink=e.buttonLink,this.buttonLinkOriginId=e.buttonLinkOriginId,this.buttonTypologyId=e.buttonTypologyId,this.buttonColorId=e.buttonColorId,this.buttonId=e.buttonId,this.buttonClasses=e.buttonClasses,this.downloadAutomatico=e.downloadAutomatico,this.dynamicModelId=e.dynamicModelId,this.dynamicModelCollectionName=e.dynamicModelCollectionName,this.multimedia=Ee.setDataInner(e?.multimedia),e?.contactForm&&(this.contactForm=new lh(e.contactForm)))}getDocumentData(){var e={};return e.buttonText=this.buttonText?this.buttonText:null,e.buttonAnchor=this.buttonAnchor?this.buttonAnchor:null,e.buttonLink=this.buttonLink?this.buttonLink:null,e.buttonLinkOriginId=this.buttonLinkOriginId!=null?this.buttonLinkOriginId:null,e.buttonTypologyId=this.buttonTypologyId!=null?this.buttonTypologyId:null,e.buttonColorId=this.buttonColorId!=null?this.buttonColorId:null,e.buttonId=this.buttonId?this.buttonId:null,e.buttonClasses=this.buttonClasses?this.buttonClasses:null,e.downloadAutomatico=this.downloadAutomatico!=null?this.downloadAutomatico:null,e.dynamicModelId=this.dynamicModelId?this.dynamicModelId:null,e.dynamicModelCollectionName=this.dynamicModelCollectionName?this.dynamicModelCollectionName:null,e=Ee.getDocumentDataInner(e,this.multimedia,"multimedia"),this.contactForm&&(e.contactForm=this.contactForm.getDocumentData()),e}isEmpty(){return!this.buttonText&&!this.buttonAnchor&&!this.buttonLink&&this.buttonLinkOriginId==null&&(this.buttonTypologyId==null||this.buttonTypologyId==ue.getAllId())&&this.dynamicModelId==null&&this.dynamicModelCollectionName==null&&this.multimedia?.isEmpty()}haveTitle(){return!!(this.buttonText&&this.buttonText.length>0)}hasLink(){return this.buttonAnchor||this.buttonLink||this.buttonLinkOriginId!=null||this.dynamicModelId!=null||this.multimedia!=null&&this.multimedia.hasUrl()||this.showModalForm()}isLinkEsterno(){return this.buttonTypologyId==1}hasCompleteFinalLink(){return!!this.getCompleteFinalLink()}hasContent(){return this.hasCompleteFinalLink()||this.showModalForm()?!0:this.buttonAnchor!=null}hasButtonLink(){return this.buttonLink&&this.buttonLinkOriginId==null}getButtonLinkGeneralId(e){return e?this.dynamicModelId:this.buttonLinkOriginId}getCompleteFinalLink(){if(this.buttonLink)return this.buttonLink;if(this.buttonLinkOrigin)return this.buttonLinkOrigin.getFullSlug();switch(this.buttonTypologyId){case 3:return this.multimedia?.getUrl();case 4:return this.multimedia?.getUrl();case 0:return this.dynamicModel?.fullSlug;case 1:return this.buttonLink;case 2:return;default:return this.buttonLink?this.buttonLink:this.buttonAnchor?this.buttonAnchor:this.multimedia?.getUrl()?this.multimedia.getUrl():this.dynamicModel?.fullSlug?this.dynamicModel?.fullSlug:void 0}}getButtonText(){return this.buttonText}getButtonColor(){return new oc(this.buttonColorId).getName()}getButtonSecondaryColor(){return this.buttonColorId!=null?new oc(this.buttonColorId).getName():new oc(3).getName()}getButtonId(){return this.buttonId}getButtonLink(){return this.getCompleteFinalLink()}getButtonAnchor(){return this.buttonAnchor}getButtonTypologyId(){return this.buttonTypologyId}getButtonLinkOriginId(){return this.buttonLinkOriginId}showModalForm(){return this.buttonTypologyId==4}clearOtherLinks(){switch(this.buttonTypologyId){case 2:this.buttonLink=void 0,this.buttonLinkOriginId=void 0,this.dynamicModelId=void 0,this.multimedia?.clear();break;case 1:this.buttonAnchor=void 0,this.buttonLinkOriginId=void 0,this.dynamicModelId=void 0,this.multimedia?.clear();break;case 0:this.buttonLink=void 0,this.multimedia?.clear();break;case 3:this.buttonLink=void 0,this.buttonAnchor=void 0,this.dynamicModelId=void 0;break;case 4:this.buttonLink=void 0,this.buttonAnchor=void 0,this.dynamicModelId=void 0;break;default:this.buttonAnchor=void 0,this.buttonLink=void 0,this.buttonLinkOriginId=void 0,this.dynamicModelId=void 0,this.buttonText=void 0,this.multimedia?.clear()}}getIcon(){switch(this.buttonTypologyId){case 3:return"download";case 4:return this.multimedia?.getUrl()?"download":void 0;default:return}}fillButtonLinkOrigin(e,t){return m(this,null,function*(){if(this.buttonLinkOriginId!=null&&this.buttonLinkOriginId!=null)return this.buttonLinkOrigin=yield gs.getDetailByOriginEnum(e,this.buttonLinkOriginId,t,void 0,!0),this.buttonLinkOrigin.fullSlug;if(this.dynamicModelId!=null)return yield this.fillDynamicModel(e),this.dynamicModel?this.dynamicModel.fullSlug:void 0})}fillDynamicModel(e){return m(this,null,function*(){var[t,n]=yield Us.fillDynamicModel(e,this.dynamicModelId,this.dynamicModelCollectionName,this.dynamicModel);this.dynamicModel=t})}fillOtherModels(e,t){return m(this,null,function*(){yield this.fillButtonLinkOrigin(e,t)})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){yield this.fillButtonLinkOrigin(e,t)})}preDeleteModel(e){return m(this,null,function*(){yield this.multimedia?.deleteFile(e)})}getTranslatableFields(){return[qe.text("buttonText","Testo del bottone"),qe.anchor("buttonAnchor","Ancora")]}getTranslatableChildren(){return[Re.one("contactForm","Form di contatto",this.contactForm)]}duplicateSectionBase(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){let u=[];this.multimedia&&u.push(this.multimedia.duplicateByReplaceId(e,t,n,i,a,s,o,l,c).then(d=>
105this.multimedia=d)),l&&o&&(u.push(e.get(Ge).getTranslationGeminiText(this.buttonText,o,!0,!1).then(d=>this.buttonText=d)),u.push(Vx(e,this.buttonAnchor,o).then(d=>{d&&(this.buttonAnchor=d)}))),yield Promise.all(u),o&&(this.dynamicModelId=yield e.get(ke).getTranslatedModelId(e,o,this.dynamicModelCollectionName,this.dynamicModelId),this.dynamicModelId||(this.dynamicModelCollectionName=void 0))})}getTextToSpeech(e){return m(this,null,function*(){})}};var Xi=class{iconTypologyId;selectedLibraryId;iconBase64;iconBase64Alt;iconColorId;multimedia;selectedLibraryMultimedia;constructor(e){e&&this.setData(e)}setData(e){e&&(this.iconTypologyId=e.iconTypologyId,this.selectedLibraryId=e.selectedLibraryId,this.iconBase64=e.iconBase64,this.iconBase64Alt=e.iconBase64Alt,this.iconColorId=e.iconColorId,this.multimedia=Ee.setDataInner(e?.multimedia),this.selectedLibraryMultimedia=Ee.setDataInner(e?.selectedLibraryMultimedia))}getDocumentData(){var e={};return e.iconTypologyId=this.iconTypologyId!=null?this.iconTypologyId:null,e.selectedLibraryId=this.selectedLibraryId!=null?this.selectedLibraryId:null,e.iconBase64=this.iconBase64!=null?this.iconBase64:null,e.iconBase64Alt=this.iconBase64Alt!=null?this.iconBase64Alt:null,e.iconColorId=this.iconColorId!=null?this.iconColorId:null,e=Ee.getDocumentDataInner(e,this.multimedia,"multimedia"),e=Ee.getDocumentDataInner(e,this.selectedLibraryMultimedia,"selectedLibraryMultimedia"),e}fillOtherModels(e,t){return m(this,null,function*(){})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){})}preDeleteModel(e){return m(this,null,function*(){yield this.multimedia?.deleteFile(e),yield this.selectedLibraryMultimedia?.deleteFile(e)})}duplicateSectionBase(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){let u=[];this.multimedia&&u.push(this.multimedia.duplicateByReplaceId(e,t,n,i,a,s,o,l,c).then(d=>this.multimedia=d)),this.selectedLibraryMultimedia&&u.push(this.selectedLibraryMultimedia.duplicateByReplaceId(e,t,n,i,a,s,o,l,c).then(d=>this.selectedLibraryMultimedia=d)),yield Promise.all(u)})}getUrlPath(){switch(this.iconTypologyId){case 2:return this.iconBase64;case 1:return this.multimedia?.getUrl();case 0:return this?.selectedLibraryMultimedia?.getUrl();default:return""}}getAlt(){switch(this.iconTypologyId){case 2:return this.iconBase64Alt??this.iconBase64;case 1:return this.multimedia?.getAlt();case 0:return this?.selectedLibraryMultimedia?.getAlt();default:return""}}filter;setFilterScss(e){this.filter=this.getFilterScss(e)}getFilterScss(e){switch(this.iconTypologyId){case 0:return this.getFilterScssInner(e,this.iconColorId)}}getFoto(){switch(this.iconTypologyId){case 1:return this.multimedia;case 2:var e=new Qt;return e.url=this.iconBase64,e.alt=this.iconBase64Alt,e;case 0:return this.selectedLibraryMultimedia;default:return}}getTextToSpeech(e){return m(this,null,function*(){})}getFilterScssInner(e,t){var n=e.get(en).getIconTypeColorsClass(!1),i=n?.find(o=>o.id==t);if(i){var a=i.getColorByEnum(t);a.includes("var(")&&(a=a.substring(4,a.length-1),a=this.readProperty(e,a));var s=this.applyFilter(a);return s&&(s=s?.endsWith(";")?s.substring(0,s.length-1):s),s}}readProperty(e,t){return!e.get(br).isPlatformBrowser()||!document||!document?.body?"":(window?.getComputedStyle(document?.body)).getPropertyValue(t)}applyFilter(e){let t=this.hexToRgb(e);if(t?.length!==3)return;let n=new Ux(t[0],t[1],t[2]),a=new SP(n).solve(),s;return a.loss<1?s="This is a perfect result.":a.loss<5?s="The is close enough.":a.loss<15?s="The color is somewhat off. Consider running it again.":s="The color is extremely off. Run it again!",a.filter}hexToRgb(e){let t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,(i,a,s,o)=>a+a+s+s+o+o);let n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]:null}};var Ux=class{r;g;b;constructor(e,t,n){this.set(e,t,n)}toString(){return`rgb(${Math.round(this.r)}, ${Math.round(this.g)}, ${Math.round(this.b)})`}set(e,t,n){this.r=this.clamp(e),this.g=this.clamp(t),this.b=this.clamp(n)}hueRotate(e=0){e=e/180*Math.PI;let t=Math.sin(e),n=Math.cos(e);this.multiply([.213+n*.787-t*.213,.715-n*.715-t*.715,.072-n*.072+t*.928,.213-n*.213+t*.143,.715+n*.285+t*.14,.072-n*.072-t*.283,.213-n*.213-t*.787,.715-n*.715+t*.715,.072+n*.928+t*.072])}grayscale(e=1){this.multiply([.2126+.7874*(1-e),.7152-.7152*(1-e),.0722-.0722*(1-e),.2126-.2126*(1-e),.7152+.2848*(1-e),.0722-.0722*(1-e),.2126-.2126*(1-e),.7152-.7152*(1-e),.0722+.9278*(1-e)])}sepia(e=1){this.multiply([.393+.607*(1-e),.769-.769*(1-e),.189-.189*(1-e),.349-.349*(1-e),.686+.314*(1-e),.168-.168*(1-e),.272-.272*(1-e),.534-.534*(1-e),.131+.869*(1-e)])}saturate(e=1){this.multiply([.213+.787*e,.715-.715*e,.072-.072*e,.213-.213*e,.715+.285*e,.072-.072*e,.213-.213*e,.715-.715*e,.072+.928*e])}multiply(e){let t=this.clamp(this.r*e[0]+this.g*e[1]+this.b*e[2]),n=this.clamp(this.r*e[3]+this.g*e[4]+this.b*e[5]),i=this.clamp(this.r*e[6]+this.g*e[7]+this.b*e[8]);this.r=t,this.g=n,this.b=i}brightness(e=1){this.linear(e)}contrast(e=1){this.linear(e,-(.5*e)+.5)}linear(e=1,t=0){this.r=this.clamp(this.r*e+t*255),this.g=this.clamp(this.g*e+t*255),this.b=this.clamp(this.b*e+t*255)}invert(e=1){this.r=this.clamp((e+this.r/255*(1-2*e))*255),this.g=this.clamp((e+this.g/255*(1-2*e))*255),this.b=this.clamp((e+this.b/255*(1-2*e))*255)}hsl(){let e=this.r/255,t=this.g/255,n=this.b/255,i=Math.max(e,t,n
105),a=Math.min(e,t,n),s=(i+a)/2,o=(i+a)/2,l=(i+a)/2;if(i===a)s=o=0;else{let c=i-a;switch(o=l>.5?c/(2-i-a):c/(i+a),i){case e:s=(t-n)/c+(t<n?6:0);break;case t:s=(n-e)/c+2;break;case n:s=(e-t)/c+4;break}s/=6}return{h:s*100,s:o*100,l:l*100}}clamp(e){return e>255?e=255:e<0&&(e=0),e}},SP=class{target;targetHSL;reusedColor;constructor(e,t){this.target=e,this.targetHSL=e.hsl(),this.reusedColor=new Ux(0,0,0)}solve(){let e=this.solveNarrow(this.solveWide());return{values:e.values,loss:e.loss,filter:this.css(e.values)}}solveWide(){let n=[60,180,18e3,600,1.2,1.2],i={loss:1/0};for(let a=0;i.loss>25&&a<3;a++){let s=[50,20,3750,50,100,100],o=this.spsa(5,n,15,s,1e3);o.loss<i.loss&&(i=o)}return i}solveNarrow(e){let t=e.loss,n=2,i=t+1,a=[.25*i,.25*i,i,.25*i,.2*i,.2*i];return this.spsa(t,a,n,e.values,500)}spsa(e,t,n,i,a){let o=.16666666666666666,l=null,c=1/0,u=new Array(6),d=new Array(6),f=new Array(6);for(let g=0;g<a;g++){let y=n/Math.pow(g+1,o);for(let C=0;C<6;C++)u[C]=Math.random()>.5?1:-1,d[C]=i[C]+y*u[C],f[C]=i[C]-y*u[C];let v=this.loss(d)-this.loss(f);for(let C=0;C<6;C++){let x=v/(2*y)*u[C],B=t[C]/Math.pow(e+g+1,1);i[C]=p(i[C]-B*x,C)}let T=this.loss(i);T<c&&(l=i.slice(0),c=T)}return{values:l,loss:c};function p(g,y){let v=100;return y===2?v=7500:(y===4||y===5)&&(v=200),y===3?g>v?g%=v:g<0&&(g=v+g%v):g<0?g=0:g>v&&(g=v),g}}loss(e){let t=this.reusedColor;t.set(0,0,0),t.invert(e[0]/100),t.sepia(e[1]/100),t.saturate(e[2]/100),t.hueRotate(e[3]*3.6),t.brightness(e[4]/100),t.contrast(e[5]/100);let n=t.hsl();return Math.abs(t.r-this.target.r)+Math.abs(t.g-this.target.g)+Math.abs(t.b-this.target.b)+Math.abs(n.h-this.targetHSL.h)+Math.abs(n.s-this.targetHSL.s)+Math.abs(n.l-this.targetHSL.l)}css(e){function t(n,i=1){return Math.round(e[n]*i)}return`invert(${t(0)}%) sepia(${t(1)}%) saturate(${t(2)}%) hue-rotate(${t(3,3.6)}deg) brightness(${t(4)}%) contrast(${t(5)}%);`}};var vu=(l=>(l[l.H1=0]="H1",l[l.H2=1]="H2",l[l.H3=2]="H3",l[l.H4=3]="H4",l[l.H5=4]="H5",l[l.H6=5]="H6",l[l.P=6]="P",l[l.Small=7]="Small",l))(vu||{}),O8=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(vu)}getNameByEnum(e){let t=Object.values(vu);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error section type name"}getColorByEnum(e){return"#19b817"}};var $t=class r{title;subtitle;description;descriptionCollassable;eyelet;description2;signature;_iconBase64;h1;iconsCataloguesSelector;tagTitleId;tagSubtitleId;tagEyeletId;constructor(e){e&&this.setData(e)}setData(e){e&&(this.title=e.title,this.subtitle=e.subtitle,this.eyelet=e.eyelet,this.signature=e.signature,this.description=e.description??null,this.description2=e.description2??null,this.descriptionCollassable=e.descriptionCollassable,this._iconBase64=e.iconBase64,this.h1=e.h1,e.iconsCataloguesSelector?this.iconsCataloguesSelector=new Xi(e.iconsCataloguesSelector):(this.iconsCataloguesSelector=new Xi,this._iconBase64?(this.iconsCataloguesSelector.iconTypologyId=2 .valueOf(),this.iconsCataloguesSelector.iconBase64=this._iconBase64):this.iconsCataloguesSelector.iconTypologyId=ue.getAllId()),e.tagTitleId!=null?this.tagTitleId=e.tagTitleId:this.tagTitleId=this.h1?0 .valueOf():1 .valueOf(),e.tagSubtitleId!=null?this.tagSubtitleId=e.tagSubtitleId:this.tagSubtitleId=this.h1?1 .valueOf():2 .valueOf(),e.tagEyeletId!=null?this.tagEyeletId=e.tagEyeletId:this.tagEyeletId=6 .valueOf())}getDocumentData(){var e={};return e.title=this.title?this.title:null,e.subtitle=this.subtitle?this.subtitle:null,e.eyelet=this.eyelet?this.eyelet:null,e.signature=this.signature?this.signature:null,e.description=this.description?this.description:null,e.description2=this.description2?this.description2:null,e.descriptionCollassable=this.descriptionCollassable?this.descriptionCollassable:null,e.h1=this.h1?this.h1:null,this.iconsCataloguesSelector&&(e.iconsCataloguesSelector=this.iconsCataloguesSelector.getDocumentData()),e.tagTitleId=this.tagTitleId!=null?this.tagTitleId:null,e.tagSubtitleId=this.tagSubtitleId!=null?this.tagSubtitleId:null,e.tagEyeletId=this.tagEyeletId!=null?this.tagEyeletId:null,e}setIconBase64(e){this.iconsCataloguesSelector&&(this.iconsCataloguesSelector.iconBase64=e)}getName(){return this.title??this.subtitle??this.eyelet}getIconBase64(){return this.iconsCataloguesSelector?.iconBase64?this.iconsCataloguesSelector?.iconBase64:this._iconBase64}isH1(){return this.h1??!1}hasDescription(){return this.description||this.description2}hasContent(){return!!(this.title||this.hasDescription()||this.eyelet||this.subtitle)}preDeleteModel(e){return m(this,null,function*(){})}getTranslatableFields(){return[qe.text("title","Titolo"),qe.text("subtitle","Sottotitolo"),qe.text("eyelet","Occhiello"),qe.html("description","Descrizione"),qe.html("description2","Descrizione 2"),qe.text("signature","Firma")]}duplicateSectionBase(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){let u=[];this.iconsCataloguesSelector&&u.push(this.iconsCataloguesSelector.duplicateSectionBase(e,t,n,i,void 0,void 0,o,l,c)),l&&o&&(u.pu
105sh(e.get(Ge).getTranslationGeminiText(this.title,o,!0,!1).then(d=>this.title=d)),u.push(e.get(Ge).getTranslationGeminiText(this.subtitle,o,!0,!1).then(d=>this.subtitle=d)),u.push(e.get(Ge).getTranslationGeminiText(this.description,o,!0,!0).then(d=>this.description=d)),u.push(e.get(Ge).getTranslationGeminiText(this.eyelet,o,!0,!1).then(d=>this.eyelet=d)),u.push(e.get(Ge).getTranslationGeminiText(this.description2,o,!0,!0).then(d=>this.description2=d)),u.push(e.get(Ge).getTranslationGeminiText(this.signature,o,!0,!1).then(d=>this.signature=d))),yield Promise.all(u)})}getTextToSpeech(e){return m(this,null,function*(){var t="";return this.eyelet&&(t+=this.eyelet,t+=` 106`),this.title&&(t+=this.title,t+=` 107`),this.subtitle&&(t+=this.subtitle,t+=` 108`),this.description&&(t+=this.description,t+=` 109`),r.stripHtml(t)})}static stripHtml(e){return e?`${e.replace(/<br\s*\/?>/gi,'<break time="400ms"/>').replace(/<\/p>/gi,'<break time="600ms"/>').replace(/<\/h[1-6]>/gi,'<break time="700ms"/>').replace(/<strong[^>]*>(.*?)<\/strong>/gi,'<emphasis level="strong">$1</emphasis>').replace(/<b[^>]*>(.*?)<\/b>/gi,'<emphasis level="strong">$1</emphasis>').replace(/<em[^>]*>(.*?)<\/em>/gi,'<emphasis level="moderate">$1</emphasis>').replace(/<i[^>]*>(.*?)<\/i>/gi,'<emphasis level="moderate">$1</emphasis>').replace(/<li[^>]*>/gi,'<break time="300ms"/>').replace(/<[^>]+>/g,"").replace(/ /g," ").replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').trim()}`:void 0}};var Fm=(t=>(t[t.Multimedia=0]="Multimedia",t[t.Youtube=1]="Youtube",t))(Fm||{}),F8=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(Fm)}getNameByEnum(e){let t=Object.values(Fm);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error CommentTypology name"}visible(e){let t=Object.values(Fm);return!0}getColor(){return"var(--black-color)"}getIconByEnum(e){switch(e){case 0:return"upload";case 1:return"play_circle_filled";default:return"block"}}};var tn=class{multimedia;videoPlaceholder;youtubeId;typologyId;sizeId;muted;controls;allowDownload;loop;autoplay;overlay;constructor(e){e?this.setData(e):(this.sizeId=0,this.muted=!1,this.controls=!0,this.allowDownload=!1,this.loop=!1,this.autoplay=!1,this.overlay=!1)}setData(e){e&&(this.typologyId=e.typologyId,this.youtubeId=e.youtubeId,this.sizeId=e.sizeId??0,this.multimedia=Ee.setDataInner(e?.multimedia),this.videoPlaceholder=Ee.setDataInner(e?.videoPlaceholder),this.muted=e.muted??!1,this.controls=e.controls??!0,this.allowDownload=e.allowDownload??!1,this.loop=e.loop??!1,this.autoplay=e.autoplay??!1,this.overlay=e.overlay??!1)}getDocumentData(){var e={};return e.typologyId=this.typologyId!=null?this.typologyId:null,e.youtubeId=this.youtubeId?this.youtubeId:null,e.sizeId=this.sizeId!=null?this.sizeId:null,e=Ee.getDocumentDataInner(e,this.multimedia,"multimedia"),e=Ee.getDocumentDataInner(e,this.videoPlaceholder,"videoPlaceholder"),e.muted=this.muted,e.controls=this.controls,e.allowDownload=this.allowDownload,e.loop=this.loop,e.autoplay=this.autoplay,e.overlay=this.overlay??!1,e}isYouTube(){return this.youtubeId!==void 0&&this.youtubeId!==null&&this.youtubeId!==""}haveVideo(){switch(this.typologyId){case 0:return!!(this.multimedia&&this.multimedia.hasUrl());case 1:return this.isYouTube();default:return!1}}getVideoUrl(){switch(this.typologyId){case 0:return this.multimedia?.getUrl();case 1:let e=`https://www.youtube-nocookie.com/embed/${this.youtubeId}?rel=0`;return(this.muted||this.autoplay)&&(e+="&mute=1"),this.controls===!1&&(e+="&controls=0"),this.autoplay&&(e+="&autoplay=1"),this.loop&&(e+=`&loop=1&playlist=${this.youtubeId}`),e;default:return}}preDeleteModel(e){return m(this,null,function*(){yield this.multimedia?.deleteFile(e),yield this.videoPlaceholder?.deleteFile(e)})}getTranslatableChildren(){return[Re.one("multimedia","Video",this.multimedia),Re.one("videoPlaceholder","Copertina del video",this.videoPlaceholder)]}duplicateSectionBase(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){let u=[];this.multimedia&&u.push(this.multimedia.duplicateByReplaceId(e,t,n,i,a,s,o,l,c).then(d=>this.multimedia=d)),this.videoPlaceholder&&u.push(this.videoPlaceholder.duplicateByReplaceId(e,t,n,i,a,s,o,l,c).then(d=>this.videoPlaceholder=d)),yield Promise.all(u)})}};var Bm=class r{title;occhiello;subtitle;description;video;_iconBase64;multimedia;iconsCataloguesSelector;tagTitleId;generalButton;constructor(e){e&&this.setData(e)}setData(e){e&&(this.title=e.title,this.occhiello=e.occhiello,this.subtitle=e.subtitle,this.description=e.description,e?.video?this.video=new tn(e.video):this.video=new tn,this._iconBase64=e.iconBase64,this.multimedia=Ee.setDataInner(e?.multimedia),e?.iconsCataloguesSelector?this.iconsCataloguesSelector=new Xi(e.iconsCataloguesSelector):(this.iconsCataloguesSelector=new Xi,this._iconBase64?(this.iconsCataloguesSelector.iconTypologyId=2 .valueOf(),this.iconsCataloguesSelector.iconBase64=this._iconBase64):this.iconsCataloguesSelector.iconTypologyId=ue.getAllId()),e.tagTitleId?this.tagTitleId=e.tagTitleId:this.tagTitleId=2 .valueOf(),e?.generalButton?this.generalButton=new Ke(e.generalButton):this.generalButton=new Ke)}getDocumentData(){var e={};return e.title=this.title?this.title:null,e.occhiello=this.occhiello?this.occhiello:null,e.subtitle=this.subtitle?this.subtitle:null,e.description=this.description?this.description:null,this.video&&(e.video=this.video.getDocumentData()),e=Ee.getDocumentDataInner(e,this.multimedia,"multimedia"),this.iconsCataloguesSelector&&(e.iconsCataloguesSelector=this.iconsCataloguesSelector.getDocumentData()),this.tagTitleId!=null&&(e.tagTitleId=this.tagTitleId),this.generalButton&&(e.generalButton=this.generalButton.getDocumentData()),e}static setDataInner(e){return new r(e)}static getDocumentDataInner(e,t,n="item"){return t&&(e[n]=t.getDocumentData()),e}preDeleteModel(e){return m(this,null,function*(){yield this.multimedia?.deleteFile(e),yield this.generalButton?.preDeleteModel(e),yield this.video?.preDeleteModel(e)})}getTitle(){return this.title}getDescription(){return this.description}getFoto(){if(this.multimedia&&this.multimedia.hasUrl())return this.multimedia;var e=new Qt;return e.url=this.getIconBase64(),e.name=this.title,e.alt=this.title,e}getIconBase64(){return this.iconsCataloguesSelector?.iconBase64?this.iconsCataloguesSelector?.iconBase64:this._iconBase64}fillOtherModels(e,t){return m(this,null,function*(){yield this.generalButton?.fillOtherModels(e,t)})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){yield this.generalButton?.fillOtherModelsInDetail(e,t)})}getTranslatableFields(){return[qe.text("title","Titolo"),qe.text("occhiello","Occhiello"),qe.html("subtitle","Sottotitolo"),qe.html("description","Descrizione")]}getTranslatableChildren(){return[Re.one("generalButton","Bottone",this.generalButton),Re.one("video","Video",this.video)]}duplicateSectionBase(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){let u=[];this.multimedia&&u.push(this.multimedia.duplicateByReplaceId(e,t,n,i,a,s,o,l,c).then(d=>this.multimedia=d)),this.generalButton&&u.push(this.generalButton.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.iconsCataloguesSelector&&u.push(this.iconsCataloguesSelector.duplicateSectionBase(e,t,n,i,void 0,void 0,o,l,c)),this.video&&u.push(this.video.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),l&&o&&(u.pu
109sh(e.get(Ge).getTranslationGeminiText(this.title,o,!0,!1).then(d=>this.title=d)),u.push(e.get(Ge).getTranslationGeminiText(this.occhiello,o,!0,!1).then(d=>this.occhiello=d)),u.push(e.get(Ge).getTranslationGeminiText(this.subtitle,o,!0,!0).then(d=>this.subtitle=d)),u.push(e.get(Ge).getTranslationGeminiText(this.description,o,!0,!0).then(d=>this.description=d))),yield Promise.all(u)})}getTextToSpeech(e){return m(this,null,function*(){var t="";return this.occhiello&&(t+=this.occhiello),this.title&&(t+=(t?` 110 111`:"")+this.title),this.subtitle&&(t+=` 112 113`+this.subtitle),this.description&&(t+=` 114 115`+this.description),$t.stripHtml(t)})}};var B8=class r extends sn{GetNameCollection(){return this.nameCollection}getNewInstance(e){var t=new r(e);return t.nameCollection=this.nameCollection,t}contactForm;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return t&&(this.contactForm=new lh(t.contactForm)),this}getDocumentData(e){var t=super.getDocumentData(e);return this.contactForm&&(t.contactForm=this.contactForm.getDocumentData()),t}},lh=class{formEyelet;formTitle;formDescription;formButtonText;targetEmail;sendEmailToUser;hideForm;typologyForm;image;imageMobile;itemsModel;constructor(e){e?this.setData(e):this.typologyForm=0}setData(e){e&&(this.formEyelet=e.formEyelet,this.formTitle=e.formTitle,this.formDescription=e.formDescription,this.formButtonText=e.formButtonText,this.targetEmail=e.targetEmail,this.hideForm=e.hideForm,this.sendEmailToUser=e.sendEmailToUser,this.targetEmail=e.targetEmail,this.typologyForm=e.typologyForm??0,this.image=Ee.setDataInner(e?.image),this.imageMobile=Ee.setDataInner(e?.imageMobile),e?.itemsModel&&(this.itemsModel=e.itemsModel.map(t=>new Bm(t))))}getDocumentData(){var e={};return e.formEyelet=this.formEyelet?this.formEyelet:null,e.formTitle=this.formTitle?this.formTitle:null,e.formDescription=this.formDescription?this.formDescription:null,e.formButtonText=this.formButtonText?this.formButtonText:null,e.targetEmail=this.targetEmail?this.targetEmail:null,e.hideForm=this.hideForm!=null?this.hideForm:null,e.sendEmailToUser=this.sendEmailToUser!=null?this.sendEmailToUser:null,e.targetEmail=this.targetEmail!=null?this.targetEmail:null,e.typologyForm=this.typologyForm!=null?this.typologyForm:0,e=Ee.getDocumentDataInner(e,this.image,"image"),e=Ee.getDocumentDataInner(e,this.imageMobile,"imageMobile"),this.itemsModel&&(e.itemsModel=this.itemsModel.map(t=>t.getDocumentData())),e}haveEyelet(){return!!(this.formEyelet&&this.formEyelet.length>0)}haveTitle(){return!!(this.formTitle&&this.formTitle.length>0)}haveDescription(){return!!(this.formDescription&&this.formDescription.length>0)}haveFormButtonText(){return!!(this.formButtonText&&this.formButtonText.length>0)}haveTargetEmail(){return!!(this.targetEmail&&this.targetEmail.length>0)}isHideForm(){return this.hideForm??!1}getTranslatableFields(){return[qe.text("formEyelet","Occhiello del form"),qe.text("formTitle","Titolo del form"),qe.html("formDescription","Descrizione del form"),qe.text("formButtonText","Testo del pulsante del form")]}getTranslatableChildren(){return[Re.many("itemsModel","Elementi del form",this.itemsModel)]}fillOtherModels(e,t){return m(this,null,function*(){})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){})}preDeleteModel(e){return m(this,null,function*(){yield this.image?.deleteFile(e),yield this.imageMobile?.deleteFile(e),this.itemsModel&&(yield Promise.all(this.itemsModel.map(t=>t.preDeleteModel(e))))})}duplicate(e,t,n,i,a,s,o){return m(this,null,function*(){return new Promise((l,c)=>m(this,null,function*(){if(i&&i("Immagine..."),this.image=yield this.image?.duplicateByReplaceId(e,t,n,i,void 0,void 0,a,s,o),i&&i("Immagine mobile..."),this.imageMobile=yield this.imageMobile?.duplicateByReplaceId(e,t,n,i,void 0,void 0,a,s,o),this.itemsModel&&(i&&i("Elementi form..."),yield Promise.all(this.itemsModel.map(u=>m(this,null,function*(){yield u.duplicateSectionBase(e,t,n,i,void 0,void 0,a,s,o)})))),s&&a){let u=[];u.push(e.get(Ge).getTranslationGeminiText(this.formEyelet,a,!0,!1).then(d=>this.formEyelet=d)),u.push(e.get(Ge).getTranslationGeminiText(this.formTitle,a,!0,!1).then(d=>this.formTitle=d)),u.push(e.get(Ge).getTranslationGeminiText(this.formDescription,a,!0,!0).then(d=>this.formDescription=d)),u.push(e.get(Ge).getTranslationGeminiText(this.formButtonText,a,!0,!1).then(d=>this.formButtonText=d)),yield Promise.all(u)}l()}))})}getImage(e){return e?this.imageMobile!=null&&this.imageMobile.url?this.imageMobile:this.image:this.image}};var ch=(i=>(i[i.Image=0]="Image",i[i.Video=1]="Video",i[i.Gallery=2]="Gallery",i[i.Colore=3]="Colore",i))(ch||{}),uh=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(ch)}getNameByEnum(e){let t=Object.values(ch);switch(e){case t[2]:case 2:return"Galleria";default:return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error CommentTypology name"}}getOrderByEnum(e){let t=this.getEnumValues();switch(e){case t[0]:case 0:return 0;case t[1]:case 1:return 1;case t[2]:case 2:return 2;case t[3]:case 3:return 3;default:return-1}}getInstanceAll(){return this.getInstance(void 0,ue.getAllId(),"Nessuno")}visible(e){let t=Object.values(ch);return!0}getColor(){return"var(--black-color)"}getIconByEnum(e){switch(e){case 0:return"image";case 1:return"play_circle_filled";case 2:return"collections";
115case 3:return"palette";default:return"block"}}};var iy=class r{title;subtitle;description;multimedia;generalButton;iconsCataloguesSelector;constructor(e){e&&this.setData(e)}setData(e){e&&(this.title=e.title,this.subtitle=e.subtitle,this.description=e.description,this.multimedia=Ee.setDataInner(e?.multimedia),e?.generalButton?this.generalButton=new Ke(e.generalButton):this.generalButton=new Ke,e?.iconsCataloguesSelector?this.iconsCataloguesSelector=new Xi(e.iconsCataloguesSelector):this.iconsCataloguesSelector=new Xi)}getDocumentData(){var e={};return e.title=this.title?this.title:null,e.subtitle=this.subtitle?this.subtitle:null,e.description=this.description?this.description:null,e=Ee.getDocumentDataInner(e,this.multimedia,"multimedia"),this.generalButton&&(e.generalButton=this.generalButton.getDocumentData()),this.iconsCataloguesSelector&&(e.iconsCataloguesSelector=this.iconsCataloguesSelector.getDocumentData()),e}getTranslatableFields(){return[qe.text("title","Titolo"),qe.html("subtitle","Sottotitolo"),qe.html("description","Descrizione")]}getTranslatableChildren(){return[Re.one("multimedia","Immagine",this.multimedia),Re.one("generalButton","Bottone",this.generalButton)]}static setDataInner(e){return new r(e)}static getDocumentDataInner(e,t,n="items"){return t&&t.length>0?e[n]=t.map(i=>i.getDocumentData()):e[n]=null,e}static setDataListInner(e,t="items"){return!e||!e[t]?[]:e[t].map(n=>new r(n))}};var N8=class r extends sn{GetNameCollection(){return this.nameCollection}getNewInstance(e){var t=new r(e);return t.nameCollection=this.nameCollection,t}headerSite;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return t&&(this.headerSite=new cl(t.headerSite)),this}getDocumentData(e){var t=super.getDocumentData(e);return this.headerSite&&(t.headerSite=this.headerSite.getDocumentData()),t}preDeleteModel(e){return m(this,null,function*(){yield Fe(r.prototype,this,"preDeleteModel").call(this,e),yield this.headerSite?.preDeleteModel(e)})}duplicate(e,t,n,i,a){return m(this,null,function*(){var s=yield Fe(r.prototype,this,"duplicate").call(this,e,t,n,i,a);return yield s.headerSite?.duplicate(e,this.id,s.id,t,n,i,a),s})}};function zx(r){return e=>{if(!e)return!1;let t=e.get(Xt,null);return t?t[r]()===!0:!1}}var cl=class{title;subtitle;eyelet;description;overlay;textExtra;typologyId;_cta;_ctaLink;_ctaAnchor;_buttonTypologyId;generalButton;generalButtonSecondary;image;imageMobile;video;videoPlaceholder;multimedias=[];multimedias_mobile=[];backgroundColorTypeId;hide;layoutId;layoutMobileId;slideDuration;items=[];constructor(e){e&&this.setData(e)}setData(e){if(e){if(this.title=e.title,this.subtitle=e.subtitle??null,this.eyelet=e.eyelet,this.textExtra=e.textExtra,this.description=e.description??null,this.overlay=e.overlay??!1,this.backgroundColorTypeId=e.backgroundColorTypeId,this.hide=e.hide??!1,this.slideDuration=e.slideDuration??void 0,this.layoutId=e.layoutId,this.layoutMobileId=e.layoutMobileId,this.multimedias=hi.setDataInner(e?.multimedias),this.multimedias_mobile=hi.setDataInner(e?.multimedias_mobile),this._cta=e.cta,this._ctaLink=e.ctaLink,this._ctaAnchor=e.ctaAnchor,this._buttonTypologyId=e.buttonTypologyId,e?.generalButton?this.generalButton=new Ke(e.generalButton):(this.generalButton=new Ke,this.generalButton.buttonText=this._cta,this.generalButton.buttonAnchor=this._ctaAnchor,this.generalButton.buttonLink=this._ctaLink,this.generalButton.buttonTypologyId=this._buttonTypologyId,this.generalButton.buttonTypologyId==null&&(this._ctaAnchor?this.generalButton.buttonTypologyId=2:this._ctaLink&&(this.generalButton.buttonTypologyId=1))),e?.generalButtonSecondary?this.generalButtonSecondary=new Ke(e.generalButtonSecondary):this.generalButtonSecondary=new Ke,this.image=Ee.setDataInner(e?.image),this.imageMobile=Ee.setDataInner(e?.imageMobile),this.video=Ee.setDataInner(e?.video),this.videoPlaceholder=Ee.setDataInner(e?.videoPlaceholder),this.typologyId=e.typologyId,this.typologyId==null)if(this.typologyId=0 .valueOf(),this.multimedias.length>1)this.typologyId=2 .valueOf();else{var t=hi.getOneMultimediaByType(this.multimedias,0,!0);t&&!t.isEmpty()&&(this.image=t,t.headerTitle&&(this.title=t.headerTitle),t.headerSubtitle&&(this.subtitle=t.headerSubtitle),t.headerCta&&(this.generalButton.buttonText=t.headerCta,this.generalButton.buttonAnchor=t.headerCtaAnchor,this.generalButton.buttonLink=t.headerCtaLink),t.haveCtaAnchor()?this.generalButton.buttonTypologyId=2 .valueOf():t.haveCtaLink()&&(this.generalButton.buttonTypologyId=1 .valueOf()));var n=hi.getOneMultimediaByType(this.multimedias,1,!0);
115n&&!n.isEmpty()&&(this.typologyId=1 .valueOf(),this.video=n),this.multimedias=[]}e.items&&Array.isArray(e.items)?this.items=e.items.map(i=>new iy(i)):this.items=[]}}getDocumentData(){var e={};return e.title=this.title?this.title:null,e.textExtra=this.textExtra?this.textExtra:null,e.subtitle=this.subtitle!==void 0?this.subtitle:null,e.eyelet=this.eyelet!==void 0?this.eyelet:null,e.description=this.description!==void 0?this.description:null,e.overlay=this.overlay!==void 0?this.overlay:null,e.backgroundColorTypeId=this.backgroundColorTypeId!==void 0?this.backgroundColorTypeId:null,e.hide=this.hide!==void 0?this.hide:null,e.layoutId=this.layoutId!==void 0?this.layoutId:null,e.layoutMobileId=this.layoutMobileId!==void 0?this.layoutMobileId:null,e=hi.getDocumentDataInner(e,this.multimedias,"multimedias"),e=hi.getDocumentDataInner(e,this.multimedias_mobile,"multimedias_mobile"),this.generalButton&&(e.generalButton=this.generalButton.getDocumentData()),this.generalButtonSecondary&&(e.generalButtonSecondary=this.generalButtonSecondary.getDocumentData()),e.typologyId=this.typologyId!=null?this.typologyId:null,e.slideDuration=this.slideDuration!=null?this.slideDuration:null,e=Ee.getDocumentDataInner(e,this.image,"image"),e=Ee.getDocumentDataInner(e,this.imageMobile,"imageMobile"),e=Ee.getDocumentDataInner(e,this.video,"video"),e=Ee.getDocumentDataInner(e,this.videoPlaceholder,"videoPlaceholder"),e=iy.getDocumentDataInner(e,this.items,"items"),e}isHide(){return this.hide??!1}getSlideTimeoutMs(e){let t=this.slideDuration;return t==null||isNaN(t)||t<1||t>60?e:Math.round(t*1e3)}isEmpty(){return!this.title&&!this.subtitle&&!this.eyelet&&!this.description&&this.overlay==null&&this.image?.isEmpty()&&this.imageMobile?.isEmpty()&&this.video?.isEmpty()&&this.multimedias?.filter(e=>e.isEmpty()).length==0&&this.multimedias_mobile?.filter(e=>e.isEmpty()).length==0&&this.generalButton?.isEmpty()&&this.generalButtonSecondary?.isEmpty()}getImage(e){return e?this.imageMobile!=null&&this.imageMobile.url?this.imageMobile:this.image:this.image}getMultimedias(e){return e?this.multimedias_mobile&&this.multimedias_mobile?.length>0?this.multimedias_mobile:this.multimedias:this.multimedias}getLayoutId(e){return e?this.layoutMobileId!=null?this.layoutMobileId:this.layoutId:this.layoutId}haveTitle(){return!!(this.title&&this.title.length>0)}haveSubtitle(){return!!(this.subtitle&&this.subtitle.length>0)}haveEyelet(){return!!(this.eyelet&&this.eyelet.length>0)}haveCta(){return!!(this.getCta()&&this.getCta().length>0)}haveCtaLink(){return!!(this.getCtaLink()&&this.getCtaLink().length>0)}haveCtaAnchor(){return!!(this.getCtaAnchor()&&this.getCtaAnchor().length>0)}getMultimediaPublished(){return this.multimedias}getMultimediaMobilePublished(){return this.multimedias_mobile}getCta(){return this.generalButton?.buttonText}getCtaLink(){return this.generalButton?.getCompleteFinalLink()}getCtaAnchor(){return this.generalButton?.buttonAnchor}haveCtaSecondary(){return!!(this.getCtaSecondary()&&this.getCtaSecondary().length>0)}getCtaSecondary(){return this.generalButtonSecondary?.buttonText}getCtaLinkSecondary(){return this.generalButtonSecondary?.getCompleteFinalLink()}getCtaAnchorSecondary(){return this.generalButtonSecondary?.buttonAnchor}getCtaId(){return this.generalButton?.buttonId}getCtaClasses(){return this.generalButton?.buttonClasses}getButtonTypologyId(){return this.generalButton?.buttonTypologyId}getOverlay(){return!this.haveTitle()&&!this.haveSubtitle()?!1:this.overlay??!0}getTranslatableFields(){return[qe.html("eyelet","Occhiello",zx("headerSiteEyletWysiwyg")),qe.html("title","Titolo",zx("headerSiteTitleWysiwyg")),qe.html("subtitle","Sottotitolo"),qe.html("description","Descrizione"),qe.text("textExtra","Testo extra")]}getTranslatableChildren(){return[Re.one("generalButton","Bottone",this.generalButton),Re.one("generalButtonSecondary","Bottone secondario",this.generalButtonSecondary),Re.many("items","Elementi",this.items)]}preDeleteModel(e){return m(this,null,function*(){yield Qt.deleteMultimedias(e,this.multimedias),yield Qt.deleteMultimedias(e,this.multimedias_mobile),yield this.image?.deleteFile(e),yield this.imageMobile?.deleteFile(e),yield this.video?.deleteFile(e),yield this.videoPlaceholder?.deleteFile(e),yield this.generalButton?.preDeleteModel(e),yield this.generalButtonSecondary?.preDeleteModel(e)})}duplicate(e,t,n,i,a,s,o){return m(this,null,function*(){this.image=yield this.image?.duplicateByReplaceId(e,t,n,i,void 0,void 0,a,s,o),this.imageMobile=yield this.imageMobile?.duplicateByReplaceId(e,t,n,i,void 0,void 0,a,s,o),this.video=yield this.video?.duplicateByReplaceId(e,t,n,i,void 0,void 0,a,s,o),this.videoPlaceholder=yield this.videoPlaceholder?.duplicateByReplaceId(e,t,n,i,void 0,void 0,a,s,o),this.multimedias=yield Ea.duplicateMultimediasByReplaceId(e,this.multimedias,t,n,i,void 0,void 0,a,s,o),this.multimedias_mobile=yield Ea.duplicateMultimediasByReplaceId(e,this.multimedias_mobile,t,n,i,void 0,void 0,a,s,o),yield this.generalButton?.duplicateSectionBase(e,t,n,i,void 0,void 0,a,s,o),yield this.generalButtonSecondary?.duplicateSectionBase(e,t,n,i,void 0,void 0,a,s,o);for(let l of this.items??[])l.multimedia=yield l.multimedia?.duplicateByReplaceId(e,t,n,i,void 0,void 0,a,s,o),yield l.generalButton?.duplicateSectionBase(e,t,n,i,void 0,void 0,a,s,o),yield l.iconsCataloguesSelector?.duplicateSectionBase(e,t,n,i,void 0,void 0,a,s,o);
115if(s&&a){let l=zx("headerSiteTitleWysiwyg")(e),c=zx("headerSiteEyletWysiwyg")(e),u=[];u.push(e.get(Ge).getTranslationGeminiText(this.title,a,!0,l).then(d=>this.title=d)),u.push(e.get(Ge).getTranslationGeminiText(this.subtitle,a,!0,!0).then(d=>this.subtitle=d)),u.push(e.get(Ge).getTranslationGeminiText(this.eyelet,a,!0,c).then(d=>this.eyelet=d)),u.push(e.get(Ge).getTranslationGeminiText(this.textExtra,a,!0,!0).then(d=>this.textExtra=d)),u.push(e.get(Ge).getTranslationGeminiText(this.description,a,!0,!0).then(d=>this.description=d));for(let d of this.items??[])u.push(e.get(Ge).getTranslationGeminiText(d.title,a,!0,!1).then(f=>d.title=f)),u.push(e.get(Ge).getTranslationGeminiText(d.subtitle,a,!0,!0).then(f=>d.subtitle=f)),u.push(e.get(Ge).getTranslationGeminiText(d.description,a,!0,!0).then(f=>d.description=f));yield Promise.all(u)}})}getOneMultimediaByType(e=0,t=!1){if(this.multimedias){var n=this.multimedias.filter(i=>i.typeId==e.valueOf());if(n.length!=0)return t?n[0]:n[n.length-1]}}getFirstMultimediaPublished(){return this.getMultimediaPublished()&&this.getMultimediaPublished().length>0?this.getMultimediaPublished()[0]:void 0}fillOtherModels(e,t){return m(this,null,function*(){yield this.fillButtonLinkOrigin(e,t)})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){yield this.fillButtonLinkOrigin(e,t)})}fillButtonLinkOrigin(e,t){return m(this,null,function*(){yield this.generalButton?.fillButtonLinkOrigin(e,t),yield this.generalButtonSecondary?.fillButtonLinkOrigin(e,t)})}getSectionTypeEnum(){return new uh(this.typologyId).getEnum()}getNameSectionType(){return this.typologyId!=null&&this.typologyId>=0?new uh(this.typologyId).getName():"Nessuno"}getName(){switch(this.typologyId){default:return this.getNameSectionType()}}getBackgroundColorClass(e){return e(this.backgroundColorTypeId)}getTextToSpeech(e){return m(this,null,function*(){var t="";return this.eyelet&&(t+=this.eyelet,t+=` 116`),this.title&&(t+=this.title,t+=` 117`),this.subtitle&&(t+=this.subtitle,t+=` 118`),this.description&&(t+=this.description,t+=` 119`),this.textExtra&&(t+=this.textExtra,t+=` 120`),$t.stripHtml(t)})}};var ay=class r{generalButton;constructor(e){e&&this.setData(e)}setData(e){e&&(e?.generalButton?this.generalButton=new Ke(e.generalButton):this.generalButton=new Ke)}getDocumentData(){var e={};return this.generalButton&&(e.generalButton=this.generalButton.getDocumentData()),e}static setItems(e,t){var n=[];return e[t]?(n=e[t],n.forEach((i,a)=>{n[a]=r.setDataInner(i)})):n=[],n}static getItems(e,t,n="item"){if(t){var i=[];t.forEach((a,s)=>{var o=a.getDocumentData();i[s]=o}),e[n]=i}else e[n]=null;return e}static setDataInner(e){return new r(e)}static getDocumentDataInner(e,t,n="item"){return t&&(e[n]=t.getDocumentData()),e}preDeleteModel(e){return m(this,null,function*(){yield this.generalButton?.preDeleteModel(e)})}getTitle(){return this.generalButton?.getButtonText()}fillOtherModels(e,t){return m(this,null,function*(){yield this.generalButton?.fillOtherModels(e,t)})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){yield this.generalButton?.fillOtherModelsInDetail(e,t)})}duplicateSectionBase(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){yield this.generalButton?.duplicateSectionBase(e,t,n,i,a,s,o,l,c)})}};var sy=class r{title;tagTitleId;buttons;constructor(e){e&&this.setData(e)}setData(e){e&&(this.title=e.title,e.tagTitleId?this.tagTitleId=e.tagTitleId:this.tagTitleId=2 .valueOf(),this.buttons=ay.setItems(e,"buttons"))}getDocumentData(){var e={};return e.title=this.title?this.title:null,this.tagTitleId!=null&&(e.tagTitleId=this.tagTitleId),e=ay.getItems(e,this.buttons,"buttons"),e}static setItems(e,t){var n=[];return e[t]?(n=e[t],n.forEach((i,a)=>{n[a]=r.setDataInner(i)})):n=[],n}static getItems(e,t,n="item"){if(t){var i=[];t.forEach((a,s)=>{var o=a.getDocumentData();i[s]=o}),e[n]=i}else e[n]=null;return e}static setDataInner(e){return new r(e)}static getDocumentDataInner(e,t,n="item"){return t&&(e[n]=t.getDocumentData()),e}preDeleteModel(e){return m(this,null,function*(){this.buttons&&(yield Promise.all(this.buttons.map(t=>t.preDeleteModel(e))))})}getTitle(){return this.title}fillOtherModels(e,t){return m(this,null,function*(){this.buttons&&(yield Promise.all(this.buttons.map(n=>m(this,null,function*(){yield n?.fillOtherModels(e,t)}))))})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){this.buttons&&(yield Promise.all(this.buttons.map(n=>m(this,null,function*(){yield n?.fillOtherModels(e,t)}))))})}duplicateSectionBase(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){this.buttons&&(yield Promise.all(this.buttons.map(u=>u.duplicateSectionBase(e,t,n,i,a,s,o,l,c))))})}};var L8=class r extends sn{GetNameCollection(){return this.nameCollection}
120getNewInstance(e){var t=new r(e);return t.nameCollection=this.nameCollection,t}modelStyle;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return t&&(this.modelStyle=new oy(t.modelStyle)),this}getDocumentData(e){var t=super.getDocumentData(e);return this.modelStyle&&(t.modelStyle=this.modelStyle.getDocumentData()),t}},oy=class{styleClasses=[];sectionsStyleId;titleSectionsStyle;customMenuItems;textToSpeech;textToSpeechFile;constructor(e){e?this.setData(e):(this.sectionsStyleId=0,this.customMenuItems=[])}setData(e){e&&(this.styleClasses=e.styleClasses,this.titleSectionsStyle=e.titleSectionsStyle,this.textToSpeech=e.textToSpeech??!1,this.sectionsStyleId=e.sectionsStyleId??0,this.customMenuItems=sy.setItems(e,"customMenuItems"),this.textToSpeechFile=Ee.setDataInner(e?.textToSpeechFile))}getDocumentData(){var e={};return e.styleClasses=this.styleClasses!=null?this.styleClasses:null,e.textToSpeech=this.textToSpeech!=null?this.textToSpeech:null,e.sectionsStyleId=this.sectionsStyleId!=null?this.sectionsStyleId:null,e.titleSectionsStyle=this.titleSectionsStyle!=null?this.titleSectionsStyle:null,e=sy.getItems(e,this.customMenuItems,"customMenuItems"),e=Ee.getDocumentDataInner(e,this.textToSpeechFile,"textToSpeechFile"),e}fillOtherModels(e,t){return m(this,null,function*(){this.customMenuItems&&(yield Promise.all(this.customMenuItems.map(n=>m(this,null,function*(){yield n?.fillOtherModels(e,t)}))))})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){this.customMenuItems&&(yield Promise.all(this.customMenuItems.map(n=>m(this,null,function*(){yield n?.fillOtherModels(e,t)}))))})}preDeleteModel(e){return m(this,null,function*(){})}duplicate(e,t,n,i,a,s,o){return m(this,null,function*(){return new Promise((l,c)=>m(null,null,function*(){l()}))})}getClassName(e,t){return t.find(n=>n.id==e).getName()}};var V8=class r extends sn{GetNameCollection(){return this.nameCollection}getNewInstance(e){var t=new r(e);return t.nameCollection=this.nameCollection,t}phoneWA;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return t&&(this.phoneWA=new ly(t.phoneWA)),this}getDocumentData(e){var t=super.getDocumentData(e);return this.phoneWA&&(t.phoneWA=this.phoneWA.getDocumentData()),t}},ly=class{tooltipText;phone;active;tooltipTextWA;phoneWA;activeWA;messageWA;constructor(e){e&&this.setData(e)}setData(e){e&&(this.tooltipText=e.tooltipText,this.phone=e.phone,this.active=e.active,this.tooltipTextWA=e.tooltipTextWA,this.phoneWA=e.phoneWA,this.activeWA=e.activeWA,this.messageWA=e.messageWA)}getDocumentData(){var e={};return e.tooltipText=this.tooltipText?this.tooltipText:null,e.phone=this.phone?this.phone:null,e.active=this.active!==void 0?this.active:null,e.tooltipTextWA=this.tooltipTextWA?this.tooltipTextWA:null,e.phoneWA=this.phoneWA?this.phoneWA:null,e.activeWA=this.activeWA!==void 0?this.activeWA:null,e.messageWA=this.messageWA!==void 0?this.messageWA:null,e}
120haveMessageWA(){return!!(this.messageWA&&this.messageWA.length>0)}getMessageWA(e){return e?this.messageWA?.replace("[NOME_MODELLO]",e):this.messageWA}isActive(){return this.active??!1}isActiveWA(){return this.activeWA??!1}fillOtherModels(e,t){return m(this,null,function*(){})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){})}preDeleteModel(e){return m(this,null,function*(){})}duplicate(e,t,n,i,a,s,o){return m(this,null,function*(){return new Promise((l,c)=>m(this,null,function*(){if(s&&a){let u=[];u.push(e.get(Ge).getTranslationGeminiText(this.tooltipText,a,!0,!1).then(d=>this.tooltipText=d)),u.push(e.get(Ge).getTranslationGeminiText(this.tooltipTextWA,a,!0,!1).then(d=>this.tooltipTextWA=d)),u.push(e.get(Ge).getTranslationGeminiText(this.messageWA,a,!0,!1).then(d=>this.messageWA=d)),yield Promise.all(u)}l()}))})}};var U8=class r extends sn{GetNameCollection(){return this.nameCollection}getNewInstance(e){var t=new r(e);return t.nameCollection=this.nameCollection,t}previewModel;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return t&&(this.previewModel=new Nm(t.previewModel)),this}getDocumentData(e){var t=super.getDocumentData(e);return this.previewModel&&(t.previewModel=this.previewModel.getDocumentData()),t}},Nm=class{eyelet;title;description;textButton;noDetail;modal;multimedia;video;iconsCataloguesSelector;generalButton;constructor(e){e&&this.setData(e)}setData(e){e&&(this.eyelet=e.eyelet??null,this.title=e.title,this.description=e.description??null,this.textButton=e.textButton??null,this.noDetail=e.noDetail??null,this.modal=e.modal??null,this.multimedia=Ee.setDataInner(e?.multimedia),this.video=Ee.setDataInner(e?.video),e?.iconsCataloguesSelector&&(this.iconsCataloguesSelector=new Xi(e.iconsCataloguesSelector)),e?.generalButton?this.generalButton=new Ke(e.generalButton):this.generalButton=new Ke)}getDocumentData(){var e={};return e.eyelet=this.eyelet?this.eyelet:null,e.title=this.title?this.title:null,e.description=this.description?this.description:null,e.textButton=this.textButton?this.textButton:null,e.noDetail=this.noDetail!=null?this.noDetail:null,e.modal=this.modal!=null?this.modal:null,e=Ee.getDocumentDataInner(e,this.multimedia,"multimedia"),e=Ee.getDocumentDataInner(e,this.video,"video"),this.iconsCataloguesSelector&&(e.iconsCataloguesSelector=this.iconsCataloguesSelector.getDocumentData()),this.generalButton&&(e.generalButton=this.generalButton.getDocumentData()),e}haveDescription(){return!!(this.description&&this.description.length>0)}haveTextButton(){return!!(this.textButton&&this.textButton.length>0)}haveTitle(){return!!(this.title&&this.title.length>0)}haveDetail(){return this.noDetail==null?!0:!this.noDetail}isModal(){return this.modal==null?!1:this.modal}getTranslatableFields(){return[qe.text("eyelet","Occhiello"),qe.text("title","Titolo"),qe.html("description","Descrizione"),qe.text("textButton","Testo del bottone")]}getTranslatableChildren(){return[Re.one("generalButton","Bottone",this.generalButton)]}fillOtherModels(e,t){return m(this,null,function*(){yield this.generalButton?.fillOtherModels(e,t)})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){yield this.generalButton?.fillOtherModelsInDetail(e,t)})}preDeleteModel(e){return m(this,null,function*(){yield this.multimedia?.deleteFile(e),yield this.video?.deleteFile(e),yield this.generalButton?.preDeleteModel(e)})}duplicate(e,t,n,i,a,s,o){return m(this,null,function*(){return new Promise((l,c)=>m(this,null,function*(){let u=[];this.multimedia&&u.push(this.multimedia.duplicateByReplaceId(e,t,n,i,void 0,void 0,a,s,o).then(d=>this.multimedia=d)),this.video&&u.push(this.video.duplicateByReplaceId(e,t,n,i,void 0,void 0,a,s,o).then(d=>this.video=d)),this.generalButton&&u.push(this.generalButton.duplicateSectionBase(e,t,n,i,void 0,void 0,a,s,o)),this.iconsCataloguesSelector&&u.push(this.iconsCataloguesSelector.duplicateSectionBase(e,t,n,i,void 0,void 0,a,s,o)),s&&a&&(u.push(e.get(Ge).getTranslationGeminiText(this.title,a,!0,!1).then(d=>this.title=d)),u.push(e.get(Ge).getTranslationGeminiText(this.description,a,!0,!0).then(d=>this.description=d)),u.push(e.get(Ge).getTranslationGeminiText(this.textButton,a,!0,
120!1).then(d=>this.textButton=d))),yield Promise.all(u),l()}))})}};var z8=class r extends sn{GetNameCollection(){return this.nameCollection}getNewInstance(e){var t=new r(e);return t.nameCollection=this.nameCollection,t}schemaOrg;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return t&&(this.schemaOrg=new cy(t.schemaOrg)),this}getDocumentData(e){var t=super.getDocumentData(e);return this.schemaOrg&&(t.schemaOrg=this.schemaOrg.getDocumentData()),t}},cy=class{code;constructor(e){e&&this.setData(e)}setData(e){e&&(this.code=e.code)}getDocumentData(){var e={};return e.code=this.code?this.code:null,e}haveCode(){return!!(this.code&&this.code.length>0)}fillOtherModels(e,t){return m(this,null,function*(){})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){})}preDeleteModel(e){return m(this,null,function*(){})}duplicate(e,t,n,i,a,s,o){return m(this,null,function*(){a&&(this.code=void 0)})}};var j8=class r extends sn{GetNameCollection(){return this.nameCollection}getNewInstance(e){var t=new r(e);return t.nameCollection=this.nameCollection,t}searchTag;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return t&&(this.searchTag=new uy(t.searchTag)),this}getDocumentData(e){var t=super.getDocumentData(e);return this.searchTag&&(t.searchTag=this.searchTag.getDocumentData()),t}},uy=class{tags;tagsSystem;constructor(e){e&&this.setData(e)}setData(e){e&&(this.tags=e.tags,this.tagsSystem=e.tagsSystem)}getDocumentData(){var e={};return e.tags=this.tags?this.tags:[],e.tagsSystem=this.tagsSystem?this.tagsSystem:[],e}fillOtherModels(e,t){return m(this,null,function*(){})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){})}getTranslatableFields(){return[qe.list("tags","Parole chiave per la ricerca")]}preDeleteModel(e){return m(this,null,function*(){})}duplicate(e,t,n,i,a,s,o){return m(this,null,function*(){return new Promise((l,c)=>m(this,null,function*(){if(s&&a){let u=[];
120this.tags&&this.tags.forEach((d,f)=>{u.push(e.get(Ge).getTranslationGeminiText(d,a,!0,!1).then(p=>{p&&(this.tags[f]=p)}))}),this.tagsSystem&&this.tagsSystem.forEach((d,f)=>{u.push(e.get(Ge).getTranslationGeminiText(d,a,!0,!1).then(p=>{p&&(this.tagsSystem[f]=p)}))}),yield Promise.all(u)}l()}))})}};var jx=class r extends sn{static multiLanguageActive=!1;GetNameCollection(){return this.nameCollection}getNewInstance(e){var t=new r(e);return t.nameCollection=this.nameCollection,t}slug;parentOriginId;seo;fullSlug;parentDynamicModelId;parentDynamicModelCollectionName;parentOrigin;parentDynamicModel;parentDynamicModelInfo;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return t&&(this.seo=new Lm(t.seo),this.slug=t.slug,this.parentOriginId=t.parentOriginId,this.fullSlug=t.fullSlug,this.parentDynamicModelId=t.parentDynamicModelId,this.parentDynamicModelCollectionName=t.parentDynamicModelCollectionName),this}getDocumentData(e){var t=super.getDocumentData(e);return this.slug!==void 0&&(t.slug=this.slug),this.seo&&(t.seo=this.seo.getDocumentData()),this.fullSlug!==void 0&&(t.fullSlug=this.fullSlug),this.parentOriginId!==void 0?t.parentOriginId=this.parentOriginId:t.parentOriginId=null,t.parentDynamicModelId=this.parentDynamicModelId?this.parentDynamicModelId:null,t.parentDynamicModelCollectionName=this.parentDynamicModelCollectionName?this.parentDynamicModelCollectionName:null,t}fillParentDynamicModel(e){return m(this,null,function*(){if(this.parentDynamicModelId){var t=e.get(en).getDynamicModels(),n=t.find(a=>a.nameCollection==this.parentDynamicModelCollectionName);if(n){var i=n?.getInstanceCallback();return this.parentDynamicModel=yield e.get(ke).getDetail(this.parentDynamicModelId,i),this.parentDynamicModel}}})}getFullSlug(){return this.fullSlug?this.fullSlug?.startsWith("/")?this.fullSlug:"/"+this.fullSlug:"/"}getFullSlugWithLanguage(){var e=this.getFullSlug(),t="";return this.language&&r.multiLanguageActive&&(t=e.includes(`${this.language}/`)?"":`/${this.language}/`),e=`${t}${e}`,e=e.split("//").join("/"),e}},Lm=class{title;description;og_title;og_description;og_image;isNoSitemap;isNoIndex;notRedirect404;constructor(e){e&&this.setData(e)}setData(e){e&&(this.title=e.title,this.og_title=e.og_title,this.og_description=e.og_description,this.description=e.description,this.isNoSitemap=e.isNoSitemap,this.isNoIndex=e.isNoIndex,this.notRedirect404=e.notRedirect404,this.og_image=Ee.setDataInner(e?.og_image))}getDocumentData(){var e={};return e.title=this.title?this.title:null,e.og_title=this.og_title?this.og_title:null,e.og_description=this.og_description!==void 0?this.og_description:null,e.description=this.description!==void 0?this.description:null,e.isNoSitemap=this.isNoSitemap!==void 0?this.isNoSitemap:null,e.isNoIndex=this.isNoIndex!==void 0?this.isNoIndex:null,e.notRedirect404=this.notRedirect404!==void 0?this.notRedirect404:null,e=Ee.getDocumentDataInner(e,this.og_image,"og_image"),e}getTranslatableFields(){return[qe.text("title","Titolo SEO"),qe.text("description","Descrizione SEO"),qe.text("og_title","Titolo Open Graph"),qe.text("og_description","Descrizione Open Graph")]}preDeleteModel(e){return m(this,null,function*(){yield this.og_image?.deleteFile(e)})}duplicate(e,t,n,i,a,s,o){return m(this,null,function*(){return new Promise((l,c)=>m(this,null,function*(){let u=[];if(this.og_image&&u.push(this.og_image.duplicateByReplaceId(e,t,n,i,void 0,void 0,a,s,o).then(p=>this.og_image=p)),s&&a){var d=this.title==this.og_title,f=this.description==this.og_description;u.push(e.get(Ge).getTranslationGeminiText(this.title,a,!0,!1).then(p=>this.title=p)),u.push(e.get(Ge).getTranslationGeminiText(this.description,a,!0,!1).then(p=>this.description=p)),d||u.push(e.get(Ge).getTranslationGeminiText(this.og_title,a,!0,!1).then(p=>this.og_title=p)),f||u.push(e.get(Ge).getTranslationGeminiText(this.og_description,a,!0,!1).then(p=>this.og_description=p)),yield Promise.all(u),d&&(this.og_title=this.title),f&&(this.og_description=this.description)}else yield Promise.all(u);l()}))})}getNotRedirect404(){return this.notRedirect404??!1}};var Hx=class r{title;constructor(e){e&&this.setData(e)}setData(e){e&&(this.title=e.title)}getDocumentData(){var e={};return e.title=this.title?this.title:null,e}static setDataInner(e){return new r(e)}static getDocumentDataInner(e,t,n="title"){return t&&(e[n]=t.getDocumentData()),e}getTranslatableFields(){return[qe.text("title","Risposta")]}preDeleteModel(e){return m(this,null,function*(){})}};var $x=class r{title;typologyId;mandatory;surveyAnswers=[];surveyAnswersValue=[];surveyOpenAnswer;constructor(e){e&&this.setData(e)}setData(e){e&&(this.title=e.title,this.typologyId=e.typologyId??0,this.mandatory=e.mandatory??!0,this.surveyAnswersValue=e.surveyAnswersValue??[],this.surveyOpenAnswer=e.surveyOpenAnswer,this.surveyAnswers=r.setAnswers(e))}getDocumentData(){var e={};return e.title=this.title?this.title:null,e.typologyId=this.typologyId?this.typologyId:null,e.mandatory=this.mandatory!=null?this.mandatory:null,e.surveyAnswersValue=this.surveyAnswersValue!=null?this.surveyAnswersValue:null,e.surveyOpenAnswer=this.surveyOpenAnswer!=null?this.surveyOpenAnswer:null,e=r.getAnswers(e,this.surveyAnswers,"surveyAnswers"),e}static setDataInner(e){return new r(e)}static getDocumentDataInner(e,t,n="surveyAnswers"){return t&&(e[n]=t.getDocumentData()),e}static setAnswers(e){var t=[];return e.surveyAnswers?(t=e.surveyAnswers,t.forEach((n,i)=>{t[i]=Hx.setDataInner(n)})):t=[],t}static getAnswers(e,t,n="item"){if(t){var i=[];t.forEach((a,s)=>{var o=a.getDocumentData();i[s]=o}),e[n]=i}else e[n]=null;return e}getTranslatableFields(){return[qe.text("title","Domanda")]}getTranslatableChildren(){return[Re.many("surveyAnswers","Risposte",this.surveyAnswers)]}preDeleteModel(e){return m(this,null,function*(){})}isValid(){if(!this.mandatory)return!0;var e=this.surveyAnswersValue?.findIndex(t=>t==!0);return e!=-1}};var Gx=class r{title;description;layoutId;surveyRequests=[];constructor(e){e&&this.setData(e)}setData(e){e&&(this.title=e.title,this.description=e.description??null,this.layoutId=e.layoutId??0,this.surveyRequests=r.setRequests(e))}getDocumentData(){var e={};return e.title=this.title?this.title:null,e.description=this.description?this.description:null,e.layoutId=this.layoutId!=null?this.layoutId:null,e=r.getRequests(e,this.surveyRequests,"surveyRequests"),e}static setRequests(e){var t=[];return e.surveyRequests?(t=e.surveyRequests,t.forEach((n,i)=>{t[i]=$x.setDataInner(n)})):t=[],t}static getRequests(e,t,n="surveyRequests"){if(t){var i=[];t.forEach((a,s)=>{var o=a.getDocumentData();i[s]=o}),e[n]=i}else e[n]=null;return e}fillOtherModels(e,t){return m(this,null,function*(){})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){})}getTranslatableFields(){return[qe.text("title","Titolo del questionario"),qe.html("description","Descrizione del questionario")]}getTranslatableChildren(){return[Re.many("surveyRequests","Domande",this.surveyRequests)]}preDeleteModel(e){return m(this,null,function*(){})}duplicate(e,t,n,i,a,s,o){return m(this,null,function*(){s&&a&&(yield e.get(Ge).translateDeclared(this,a,e))})}};var H8=class r extends sn{GetNameCollection(){return this.nameCollection}
120getNewInstance(e){var t=new r(e);return t.nameCollection=this.nameCollection,t}thankyou;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return t&&(this.thankyou=new dy(t.thankyou)),this}getDocumentData(e){var t=super.getDocumentData(e);return this.thankyou&&(t.thankyou=this.thankyou.getDocumentData()),t}},dy=class{_title;_subtitle;_overlay;_multimedias=[];_multimedia;headerSite;_cta;_ctaLink;_ctaAnchor;_generalButton;constructor(e){e&&this.setData(e)}setData(e){e&&(this._title=e.title,this._subtitle=e.subtitle,this._overlay=e.overlay,this._multimedias=hi.setDataInner(e?.multimedias),this._multimedia=Ee.setDataInner(e?.multimedia),this._cta=e.cta,this._ctaLink=e.ctaLink,this._ctaAnchor=e.ctaAnchor,e.headerSite?this.headerSite=new cl(e.headerSite):(this.headerSite=new cl,this.headerSite.title=this._title,this.headerSite.subtitle=this._subtitle,this.headerSite.overlay=this._overlay,this.headerSite.image=this._multimedia,this.headerSite.multimedias=this._multimedias,this.headerSite.generalButton=new Ke,this.headerSite.generalButton.buttonText=this._cta,this.headerSite.generalButton.buttonAnchor=this._ctaAnchor,this.headerSite.generalButton.buttonLink=this._ctaLink))}getDocumentData(){var e={};return this.headerSite&&(e.headerSite=this.headerSite.getDocumentData()),e}haveTitle(){return!!(this.headerSite?.title&&this.headerSite?.title.length>0)}haveSubtitle(){return!!(this.headerSite?.subtitle&&this.headerSite?.subtitle.length>0)}haveCta(){return!!(this.getCta()&&this.getCta().length>0)}haveCtaLink(){return!!(this.getCtaLink()&&this.getCtaLink().length>0)}haveCtaAnchor(){return!!(this.getCtaAnchor()&&this.getCtaAnchor().length>0)}getCta(){return this.headerSite?.generalButton?.buttonText}getCtaLink(){return this.headerSite?.generalButton?.getCompleteFinalLink()}getCtaAnchor(){return this.headerSite?.generalButton?.buttonAnchor}isEmpty(){return this.headerSite?.isEmpty()??!0}getMultimediaPublished(){return this.headerSite?.multimedias}getOverlay(){return!this.haveTitle()&&!this.haveSubtitle()?!1:this.headerSite?.overlay??!0}isCompiled(){return this.haveTitle()||this.haveSubtitle()||this.haveCtaAnchor()||this.getCtaLink()}fillOtherModels(e,t){return m(this,null,function*(){yield this.fillButtonLinkOrigin(e,t)})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){yield this.fillButtonLinkOrigin(e,t)})}getTranslatableChildren(){return[Re.one("headerSite","Header",this.headerSite)]}preDeleteModel(e){return m(this,null,function*(){yield this.headerSite?.preDeleteModel(e)})}duplicate(e,t,n,i,a,s,o){return m(this,null,function*(){yield this.headerSite?.duplicate(e,t,n,i,a,s,o)})}fillButtonLinkOrigin(e,t){return m(this,null,function*(){yield this.headerSite?.fillButtonLinkOrigin(e,t)})}};var Q8=(()=>{class r{_renderer;_elementRef;onChange=t=>{};onTouched=()=>{};constructor(t,n){this._renderer=t,this._elementRef=n}setProperty(t,n){this._renderer.setProperty(this._elementRef.nativeElement,t,n)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static \u0275fac=function(n){return new(n||r)(Ce(Rr),Ce(mt))};static \u0275dir=He({type:r})}return r})(),kP=(()=>{class r extends Q8{static \u0275fac=(()=>{let t;return function(i){return(t||(t=Pn(r)))(i||r)}})();static \u0275dir=He({type:r,features:[Lt]})}return r})(),bu=new me(""),Ise={provide:bu,useExisting:si(()=>xse),multi:!0},xse=(()=>{class r extends kP{writeValue(t){this.setProperty("checked",t)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Pn(r)))(i||r)}})();static \u0275dir=He({type:r,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,i){n&1&&Gt("change",function(s){return i.onChange(s.target.checked)})("blur",function(){return i.onTouched()})},standalone:!1,features:[Ar([Ise]),Lt]})}return r})(),Ese={provide:bu,useExisting:si(()=>nE),multi:!0};function Tse(){let r=La()?La().getUserAgent():"";return/android (\d+)/.test(r.toLowerCase())}var Cse=new me(""),nE=(()=>{class r extends Q8{_compositionMode;_composing=!1;constructor(t,n,i){super(t,n),this._compositionMode=i,this._compositionMode==null&&(this._compositionMode=!Tse())}writeValue(t){let n=t??"";this.setProperty("value",n)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}
vendor: 5,042 bytes, line 120
120_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static \u0275fac=function(n){return new(n||r)(Ce(Rr),Ce(mt),Ce(Cse,8))};static \u0275dir=He({type:r,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,i){n&1&&Gt("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},standalone:!1,features:[Ar([Ese]),Lt]})}return r})();function PP(r){return r==null||RP(r)===0}function RP(r){return r==null?null:Array.isArray(r)||typeof r=="string"?r.length:r instanceof Set?r.size:null}var Co=new me(""),hh=new me(""),Sse=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,qx=class{static min(e){return J8(e)}static max(e){return Z8(e)}static required(e){return Dse(e)}static requiredTrue(e){return Ase(e)}static email(e){return Mse(e)}static minLength(e){return ez(e)}static maxLength(e){return tz(e)}static pattern(e){return kse(e)}static nullValidator(e){return Kx()}static compose(e){return oz(e)}static composeAsync(e){return lz(e)}};function J8(r){return e=>{if(e.value==null||r==null)return null;let t=parseFloat(e.value);return!isNaN(t)&&t<r?{min:{min:r,actual:e.value}}:null}}function Z8(r){return e=>{if(e.value==null||r==null)return null;let t=parseFloat(e.value);return!isNaN(t)&&t>r?{max:{max:r,actual:e.value}}:null}}function Dse(r){return PP(r.value)?{required:!0}:null}function Ase(r){return r.value===!0?null:{required:!0}}function Mse(r){return PP(r.value)||Sse.test(r.value)?null:{email:!0}}function ez(r){return e=>{let t=e.value?.length??RP(e.value);return t===null||t===0?null:t<r?{minlength:{requiredLength:r,actualLength:t}}:null}}function tz(r){return e=>{let t=e.value?.length??RP(e.value);return t!==null&&t>r?{maxlength:{requiredLength:r,actualLength:t}}:null}}function kse(r){if(!r)return Kx;let e,t;return typeof r=="string"?(t="",r.charAt(0)!=="^"&&(t+="^"),t+=r,r.charAt(r.length-1)!=="$"&&(t+="$"),e=new RegExp(t)):(t=r.toString(),e=r),n=>{if(PP(n.value))return null;let i=n.value;return e.test(i)?null:{pattern:{requiredPattern:t,actualValue:i}}}}function Kx(r){return null}function rz(r){return r!=null}function nz(r){return of(r)?Bi(r):r}function iz(r){let e={};return r.forEach(t=>{e=t!=null?de(de({},e),t):e}),Object.keys(e).length===0?null:e}function az(r,e){return e.map(t=>t(r))}function Pse(r){return!r.validate}function sz(r){return r.map(e=>Pse(e)?e:t=>e.validate(t))}function oz(r){if(!r)return null;let e=r.filter(rz);return e.length==0?null:function(t){return iz(az(t,e))}}function OP(r){return r!=null?oz(sz(r)):null}function lz(r){if(!r)return null;let e=r.filter(rz);return e.length==0?null:function(t){let n=az(t,e).map(nz);return eo(n).pipe(ft(iz))}}function FP(r){return r!=null?lz(sz(r)):null}function $8(r,e){return r===null?[e]:Array.isArray(r)?[...r,e]:[r,e]}function cz(r){return r._rawValidators}function uz(r){return r._rawAsyncValidators}function DP(r){return r?Array.isArray(r)?r:[r]:[]}function Yx(r,e){return Array.isArray(r)?r.includes(e):r===e}function G8(r,e){let t=DP(e);return DP(r).forEach(i=>{Yx(t,i)||t.push(i)}),t}function W8(r,e){return DP(e).filter(t=>!Yx(r,t))}var Xx=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(e){this._rawValidators=e||[],this._composedValidatorFn=OP(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=FP(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}
vendor: 9,994 bytes, line 120
120_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e=void 0){this.control&&this.control.reset(e)}hasError(e,t){return this.control?this.control.hasError(e,t):!1}getError(e,t){return this.control?this.control.getError(e,t):null}},Ta=class extends Xx{name;get formDirective(){return null}get path(){return null}},To=class extends Xx{_parent=null;name=null;valueAccessor=null},Qx=class{_cd;constructor(e){this._cd=e}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},Rse={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Lje=rr(de({},Rse),{"[class.ng-submitted]":"isSubmitted"}),dz=(()=>{class r extends Qx{constructor(t){super(t)}static \u0275fac=function(n){return new(n||r)(Ce(To,2))};static \u0275dir=He({type:r,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,i){n&2&&Zt("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},standalone:!1,features:[Lt]})}return r})(),Vje=(()=>{class r extends Qx{constructor(t){super(t)}static \u0275fac=function(n){return new(n||r)(Ce(Ta,10))};static \u0275dir=He({type:r,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,i){n&2&&Zt("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)("ng-submitted",i.isSubmitted)},standalone:!1,features:[Lt]})}return r})();var hy="VALID",Wx="INVALID",Vm="PENDING",fy="DISABLED",_u=class{},Jx=class extends _u{value;source;constructor(e,t){super(),this.value=e,this.source=t}},py=class extends _u{pristine;source;constructor(e,t){super(),this.pristine=e,this.source=t}},gy=class extends _u{touched;source;constructor(e,t){super(),this.touched=e,this.source=t}},Um=class extends _u{status;source;constructor(e,t){super(),this.status=e,this.source=t}},Zx=class extends _u{source;constructor(e){super(),this.source=e}},yy=class extends _u{source;constructor(e){super(),this.source=e}};function BP(r){return(iE(r)?r.validators:r)||null}function Ose(r){return Array.isArray(r)?OP(r):r||null}function NP(r,e){return(iE(e)?e.asyncValidators:r)||null}function Fse(r){return Array.isArray(r)?FP(r):r||null}function iE(r){return r!=null&&!Array.isArray(r)&&typeof r=="object"}function hz(r,e,t){let n=r.controls;if(!(e?Object.keys(n):n).length)throw new bt(1e3,"");if(!n[t])throw new bt(1001,"")}function fz(r,e,t){r._forEachChild((n,i)=>{if(t[i]===void 0)throw new bt(1002,"")})}var jm=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(e,t){this._assignValidators(e),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get status(){return Yr(this.statusReactive)}set status(e){Yr(()=>this.statusReactive.set(e))}_status=ro(()=>this.statusReactive());statusReactive=Vr(void 0);get valid(){return this.status===hy}get invalid(){return this.status===Wx}get pending(){return this.status==Vm}get disabled(){return this.status===fy}get enabled(){return this.status!==fy}errors;get pristine(){return Yr(this.pristineReactive)}set pristine(e){Yr(()=>this.pristineReactive.set(e))}_pristine=ro(()=>this.pristineReactive());pristineReactive=Vr(!0);get dirty(){return!this.pristine}get touched(){return Yr(this.touchedReactive)}set touched(e){Yr(()=>this.touchedReactive.set(e))}_touched=ro(()=>this.touchedReactive());touchedReactive=Vr(!1);get untouched(){return!this.touched}_events=new Ye;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._assignValidators(e)}setAsyncValidators(e){this._assignAsyncValidators(e)}addValidators(e){this.setValidators(G8(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(G8(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(W8(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(W8(e,this._rawAsyncValidators))}hasValidator(e){return Yx(this._rawValidators,e)}hasAsyncValidator(e){return Yx(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){let t=this.touched===!1;this.touched=!0;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsTouched(rr(de({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new gy(!0,n))}markAllAsDirty(e={}){this.markAsDirty({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsDirty(e))}markAllAsTouched(e={}){this.markAsTouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:this}),this._forEachChild(t=>t.markAllAsTouched(e))}markAsUntouched(e={}){let t=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsUntouched({onlySelf:!0,emitEvent:e.emitEvent,sourceControl:n})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,n),t&&e.emitEvent!==!1&&this._events.next(new gy(!1,n))}markAsDirty(e={}){let t=this.pristine===!0;this.pristine=!1;let n=e.sourceControl??this;this._parent&&!e.onlySelf&&this._parent.markAsDirty(rr(de({},e),{sourceControl:n})),t&&e.emitEvent!==!1&&this._events.next(new py(!1,n))}markAsPristine(e={}){let t=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=e.sourceControl??this;this._forEachChild(i=>{i.markAsPristine({onlySelf:!0,emitEvent:e.emitEvent})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e,n),t&&e.emitEvent!==!1&&this._events.next(new py(!0,n))}markAsPending(e={}){this.status=Vm;let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Um(this.status,t)),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.markAsPending(rr(de({},e),{sourceControl:t}))}disable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=fy,this.errors=null,this._forEachChild(i=>{i.disable(rr(de({},e),{onlySelf:!0}))}),this._updateValue();let n=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Jx(this.value,n)),this._events.next(new Um(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(rr(de({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){let t=this._parentMarkedDirty(e.onlySelf);this.status=hy,this._forEachChild(n=>{n.enable(rr(de({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(rr(de({},e),{skipPristineCheck:t}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(e,t){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine({},t),this._parent._updateTouched({},t))}setParent(e){this._parent=e}getRawValue(){return this.value}updateValueAndValidity(e={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===hy||this.status===Vm)&&this._runAsyncValidator(n,e.emitEvent)}let t=e.sourceControl??this;e.emitEvent!==!1&&(this._events.next(new Jx(this.value,t)),this._events.next(new Um(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(rr(de({},e),{sourceControl:t}))}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?fy:hy}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e,t){if(this.asyncValidator){this.status=Vm,this._hasOwnPendingAsyncValidator={emitEvent:t!==!1,shouldHaveEmitted:e!==!1};let n=nz(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(i=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(i,{emitEvent:t,shouldHaveEmitted:e})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let e=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,e}return!1}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(t.emitEvent!==!1,this,t.shouldHaveEmitted)}get(e){let t=e;return t==null||(Array.isArray(t)||(t=t.split(".")),t.length===0)?null:t.reduce((n,i)=>n&&n._find(i),this)}getError(e,t){let n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}
vendor: 21,728 bytes, line 120
120_updateControlsErrors(e,t,n){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),(e||n)&&this._events.next(new Um(this.status,t)),this._parent&&this._parent._updateControlsErrors(e,t,n)}_initObservables(){this.valueChanges=new Rt,this.statusChanges=new Rt}_calculateStatus(){return this._allControlsDisabled()?fy:this.errors?Wx:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Vm)?Vm:this._anyControlsHaveStatus(Wx)?Wx:hy}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e,t){let n=!this._anyControlsDirty(),i=this.pristine!==n;this.pristine=n,this._parent&&!e.onlySelf&&this._parent._updatePristine(e,t),i&&this._events.next(new py(this.pristine,t))}_updateTouched(e={},t){this.touched=this._anyControlsTouched(),this._events.next(new gy(this.touched,t)),this._parent&&!e.onlySelf&&this._parent._updateTouched(e,t)}_onDisabledChange=[];_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){iE(e)&&e.updateOn!=null&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){let t=this._parent&&this._parent.dirty;return!e&&!!t&&!this._parent._anyControlsDirty()}_find(e){return null}_assignValidators(e){this._rawValidators=Array.isArray(e)?e.slice():e,this._composedValidatorFn=Ose(this._rawValidators)}_assignAsyncValidators(e){this._rawAsyncValidators=Array.isArray(e)?e.slice():e,this._composedAsyncValidatorFn=Fse(this._rawAsyncValidators)}},dh=class extends jm{constructor(e,t,n){super(BP(t),NP(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,n={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){fz(this,!0,e),Object.keys(e).forEach(n=>{hz(this,!0,n),this.controls[n].setValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(Object.keys(e).forEach(n=>{let i=this.controls[n];i&&i.patchValue(e[n],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((n,i)=>{n.reset(e?e[i]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t),t?.emitEvent!==!1&&this._events.next(new yy(this))}getRawValue(){return this._reduceChildren({},(e,t,n)=>(e[n]=t.getRawValue(),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,n)=>n._syncPendingControls()?!0:t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{let n=this.controls[t];n&&e(n,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(let[t,n]of Object.entries(this.controls))if(this.contains(t)&&e(n))return!0;return!1}_reduceValue(){let e={};return this._reduceChildren(e,(t,n,i)=>((n.enabled||this.disabled)&&(t[i]=n.value),t))}_reduceChildren(e,t){let n=e;return this._forEachChild((i,a)=>{n=t(n,i,a)}),n}_allControlsDisabled(){for(let e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(e){return this.controls.hasOwnProperty(e)?this.controls[e]:null}};var Uje=dh;var AP=class extends dh{};var Hm=new me("",{providedIn:"root",factory:()=>aE}),aE="always";function sE(r,e){return[...e.path,r]}function vy(r,e,t=aE){LP(r,e),e.valueAccessor.writeValue(r.value),(r.disabled||t==="always")&&e.valueAccessor.setDisabledState?.(r.disabled),Nse(r,e),Vse(r,e),Lse(r,e),Bse(r,e)}function eE(r,e,t=!0){let n=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),rE(r,e),r&&(e._invokeOnDestroyCallbacks(),r._registerOnCollectionChange(()=>{}))}function tE(r,e){r.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function Bse(r,e){if(e.valueAccessor.setDisabledState){let t=n=>{e.valueAccessor.setDisabledState(n)};r.registerOnDisabledChange(t),e._registerOnDestroy(()=>{r._unregisterOnDisabledChange(t)})}}function LP(r,e){let t=cz(r);e.validator!==null?r.setValidators($8(t,e.validator)):typeof t=="function"&&r.setValidators([t]);let n=uz(r);e.asyncValidator!==null?r.setAsyncValidators($8(n,e.asyncValidator)):typeof n=="function"&&r.setAsyncValidators([n]);let i=()=>r.updateValueAndValidity();tE(e._rawValidators,i),tE(e._rawAsyncValidators,i)}function rE(r,e){let t=!1;if(r!==null){if(e.validator!==null){let i=cz(r);if(Array.isArray(i)&&i.length>0){let a=i.filter(s=>s!==e.validator);a.length!==i.length&&(t=!0,r.setValidators(a))}}if(e.asyncValidator!==null){let i=uz(r);if(Array.isArray(i)&&i.length>0){let a=i.filter(s=>s!==e.asyncValidator);a.length!==i.length&&(t=!0,r.setAsyncValidators(a))}}}let n=()=>{};return tE(e._rawValidators,n),tE(e._rawAsyncValidators,n),t}function Nse(r,e){e.valueAccessor.registerOnChange(t=>{r._pendingValue=t,r._pendingChange=!0,r._pendingDirty=!0,r.updateOn==="change"&&mz(r,e)})}function Lse(r,e){e.valueAccessor.registerOnTouched(()=>{r._pendingTouched=!0,r.updateOn==="blur"&&r._pendingChange&&mz(r,e),r.updateOn!=="submit"&&r.markAsTouched()})}function mz(r,e){r._pendingDirty&&r.markAsDirty(),r.setValue(r._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(r._pendingValue),r._pendingChange=!1}function Vse(r,e){let t=(n,i)=>{e.valueAccessor.writeValue(n),i&&e.viewToModelUpdate(n)};r.registerOnChange(t),e._registerOnDestroy(()=>{r._unregisterOnChange(t)})}function pz(r,e){r==null,LP(r,e)}function Use(r,e){return rE(r,e)}function VP(r,e){if(!r.hasOwnProperty("model"))return!1;let t=r.model;return t.isFirstChange()?!0:!Object.is(e,t.currentValue)}function zse(r){return Object.getPrototypeOf(r.constructor)===kP}function gz(r,e){r._syncPendingControls(),e.forEach(t=>{let n=t.control;n.updateOn==="submit"&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function UP(r,e){if(!e)return null;Array.isArray(e);let t,n,i;return e.forEach(a=>{a.constructor===nE?t=a:zse(a)?n=a:i=a}),i||n||t||null}function jse(r,e){let t=r.indexOf(e);t>-1&&r.splice(t,1)}var Hse={provide:Ta,useExisting:si(()=>zP)},my=Promise.resolve(),zP=(()=>{class r extends Ta{callSetDisabledState;get submitted(){return Yr(this.submittedReactive)}_submitted=ro(()=>this.submittedReactive());submittedReactive=Vr(!1);_directives=new Set;form;ngSubmit=new Rt;options;constructor(t,n,i){super(),this.callSetDisabledState=i,this.form=new dh({},OP(t),FP(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){my.then(()=>{let n=this._findContainer(t.path);t.control=n.registerControl(t.name,t.control),vy(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){my.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){my.then(()=>{let n=this._findContainer(t.path),i=new dh({});pz(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){my.then(()=>{let n=this._findContainer(t.path);n&&n.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,n){my.then(()=>{this.form.get(t.path).setValue(n)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submittedReactive.set(!0),gz(this.form,this._directives),this.ngSubmit.emit(t),this.form._events.next(new Zx(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static \u0275fac=function(n){return new(n||r)(Ce(Co,10),Ce(hh,10),Ce(Hm,8))};static \u0275dir=He({type:r,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,i){n&1&&Gt("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ar([Hse]),Lt]})}return r})();function q8(r,e){let t=r.indexOf(e);t>-1&&r.splice(t,1)}function K8(r){return typeof r=="object"&&r!==null&&Object.keys(r).length===2&&"value"in r&&"disabled"in r}var zm=class extends jm{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(e=null,t,n){super(BP(t),NP(n,t)),this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),iE(t)&&(t.nonNullable||t.initialValueIsDefault)&&(K8(e)?this.defaultValue=e.value:this.defaultValue=e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&t.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,t.emitViewToModelChange!==!1)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1,t?.emitEvent!==!1&&this._events.next(new yy(this))}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){q8(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){q8(this._onDisabledChange,e)}_forEachChild(e){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(e){K8(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}},jje=zm,$se=r=>r instanceof zm,Gse=(()=>{class r extends Ta{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return sE(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Pn(r)))(i||r)}})();static \u0275dir=He({type:r,standalone:!1,features:[Lt]})}return r})();var Wse={provide:To,useExisting:si(()=>jP)},Y8=Promise.resolve(),jP=(()=>{class r extends To{_changeDetectorRef;callSetDisabledState;control=new zm;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new Rt;constructor(t,n,i,a,s,o){super(),this._changeDetectorRef=s,this.callSetDisabledState=o,this._parent=t,this._setValidators(n),this._setAsyncValidators(i),this.valueAccessor=UP(this,a)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){let n=t.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),VP(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){vy(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(t){Y8.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){let n=t.isDisabled.currentValue,i=n!==0&&cr(n);Y8.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?sE(t,this._parent):[t]}static \u0275fac=function(n){return new(n||r)(Ce(Ta,9),Ce(Co,10),Ce(hh,10),Ce(bu,10),Ce(Ci,8),Ce(Hm,8))};static \u0275dir=He({type:r,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Ar([Wse]),Lt,En]})}return r})();var Hje=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return r})(),qse={provide:bu,useExisting:si(()=>Kse),multi:!0},Kse=(()=>{class r extends kP{writeValue(t){let n=t??"";this.setProperty("value",n)}registerOnChange(t){this.onChange=n=>{t(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Pn(r)))(i||r)}})();static \u0275dir=He({type:r,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,i){n&1&&Gt("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},standalone:!1,features:[Ar([qse]),Lt]})}return r})();var HP=new me(""),Yse={provide:To,useExisting:si(()=>Xse)},Xse=(()=>{class r extends To{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(t){}model;update=new Rt;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,n,i,a,s){super(),this._ngModelWarningConfig=a,this.callSetDisabledState=s,this._setValidators(t),this._setAsyncValidators(n),this.valueAccessor=UP(this,i)}ngOnChanges(t){if(this._isControlChanged(t)){let n=t.form.previousValue;n&&eE(n,this,!1),vy(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}VP(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&eE(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||r)(Ce(Co,10),Ce(hh,10),Ce(bu,10),Ce(HP,8),Ce(Hm,8))};static \u0275dir=He({type:r,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[Ar([Yse]),Lt,En]})}return r})(),Qse={provide:Ta,useExisting:si(()=>oE)},oE=(()=>{class r extends Ta{callSetDisabledState;get submitted(){return Yr(this._submittedReactive)}set submitted(t){this._submittedReactive.set(t)}_submitted=ro(()=>this._submittedReactive());_submittedReactive=Vr(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new Rt;constructor(t,n,i){super(),this.callSetDisabledState=i,this._setValidators(t),this._setAsyncValidators(n)}ngOnChanges(t){t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(rE(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){let n=this.form.get(t.path);return vy(n,t,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),n}getControl(t){return this.form.get(t.path)}removeControl(t){eE(t.control||null,t,!1),jse(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,n){this.form.get(t.path).setValue(n)}onSubmit(t){return this._submittedReactive.set(!0),gz(this.form,this.directives),this.ngSubmit.emit(t),this.form._events.next(new Zx(this.control)),t?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(t=void 0,n={}){this.form.reset(t,n),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(t=>{let n=t.control,i=this.form.get(t.path);n!==i&&(eE(n||null,t),$se(i)&&(vy(i,t,this.callSetDisabledState),t.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){let n=this.form.get(t.path);pz(n,t),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){let n=this.form.get(t.path);n&&Use(n,t)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){LP(this.form,this),this._oldForm&&rE(this._oldForm,this)}static \u0275fac=function(n){return new(n||r)(Ce(Co,10),Ce(hh,10),Ce(Hm,8))};static \u0275dir=He({type:r,selectors:[["","formGroup",""]],hostBindings:function(n,i){n&1&&Gt("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Ar([Qse]),Lt,En]})}return r})(),Jse={provide:Ta,useExisting:si(()=>yz)},yz=(()=>{class r extends Gse{name=null;constructor(t,n,i){super(),this._parent=t,this._setValidators(n),this._setAsyncValidators(i)}_checkParentType(){_z(this._parent)}static \u0275fac=function(n){return new(n||r)(Ce(Ta,13),Ce(Co,10),Ce(hh,10))};static \u0275dir=He({type:r,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[Ar([Jse]),Lt]})}return r})(),Zse={provide:Ta,useExisting:si(()=>vz)},vz=(()=>{class r extends Ta{_parent;name=null;constructor(t,n,i){super(),this._parent=t,this._setValidators(n),this._setAsyncValidators(i)}ngOnInit(){_z(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return sE(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||r)(Ce(Ta,13),Ce(Co,10),Ce(hh,10))};static \u0275dir=He({type:r,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[Ar([Zse]),Lt]})}return r})();function _z(r){return!(r instanceof yz)&&!(r instanceof oE)&&!(r instanceof vz)}var eoe={provide:To,useExisting:si(()=>toe)},toe=(()=>{class r extends To{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(t){}model;update=new Rt;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(t,n,i,a,s){super(),this._ngModelWarningConfig=s,this._parent=t,this._setValidators(n),this._setAsyncValidators(i),this.valueAccessor=UP(this,a)}ngOnChanges(t){this._added||this._setUpControl(),VP(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}get path(){return sE(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(n){return new(n||r)(Ce(Ta,13),Ce(Co,10),Ce(hh,10),Ce(bu,10),Ce(HP,8))};static \u0275dir=He({type:r,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Ar([eoe]),Lt,En]})}return r})();function bz(r){return typeof r=="number"?r:parseInt(r,10)}function wz(r){return typeof r=="number"?r:parseFloat(r)}var lE=(()=>{class r{_validator=Kx;_onChange;_enabled;ngOnChanges(t){if(this.inputName in t){let n=this.normalizeInput(t[this.inputName].
120currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):Kx,this._onChange&&this._onChange()}}validate(t){return this._validator(t)}registerOnValidatorChange(t){this._onChange=t}enabled(t){return t!=null}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,features:[En]})}return r})(),roe={provide:Co,useExisting:si(()=>noe),multi:!0},noe=(()=>{class r extends lE{max;inputName="max";normalizeInput=t=>wz(t);createValidator=t=>Z8(t);static \u0275fac=(()=>{let t;return function(i){return(t||(t=Pn(r)))(i||r)}})();static \u0275dir=He({type:r,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(n,i){n&2&&Or("max",i._enabled?i.max:null)},inputs:{max:"max"},standalone:!1,features:[Ar([roe]),Lt]})}return r})(),ioe={provide:Co,useExisting:si(()=>aoe),multi:!0},aoe=(()=>{class r extends lE{min;inputName="min";normalizeInput=t=>wz(t);createValidator=t=>J8(t);static \u0275fac=(()=>{let t;return function(i){return(t||(t=Pn(r)))(i||r)}})();static \u0275dir=He({type:r,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(n,i){n&2&&Or("min",i._enabled?i.min:null)},inputs:{min:"min"},standalone:!1,features:[Ar([ioe]),Lt]})}return r})();var soe={provide:Co,useExisting:si(()=>ooe),multi:!0},ooe=(()=>{class r extends lE{minlength;inputName="minlength";normalizeInput=t=>bz(t);createValidator=t=>ez(t);static \u0275fac=(()=>{let t;return function(i){return(t||(t=Pn(r)))(i||r)}})();static \u0275dir=He({type:r,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(n,i){n&2&&Or("minlength",i._enabled?i.minlength:null)},inputs:{minlength:"minlength"},standalone:!1,features:[Ar([soe]),Lt]})}return r})(),loe={provide:Co,useExisting:si(()=>coe),multi:!0},coe=(()=>{class r extends lE{maxlength;inputName="maxlength";normalizeInput=t=>bz(t);createValidator=t=>tz(t);static \u0275fac=(()=>{let t;return function(i){return(t||(t=Pn(r)))(i||r)}})();static \u0275dir=He({type:r,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,i){n&2&&Or("maxlength",i._enabled?i.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[Ar([loe]),Lt]})}return r})();var Iz=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({})}return r})(),MP=class extends jm{constructor(e,t,n){super(BP(t),NP(n,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(e){return this.controls[this._adjustIndex(e)]}push(e,t={}){Array.isArray(e)?e.forEach(n=>{this.controls.push(n),this._registerControl(n)}):(this.controls.push(e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,n={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(e,t={}){let n=this._adjustIndex(e);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,n={}){let i=this._adjustIndex(e);i<0&&(i=0),this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),this.controls.splice(i,1),t&&(this.controls.splice(i,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){fz(this,!1,e),e.forEach((n,i)=>{hz(this,!1,i),this.at(i).setValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){e!=null&&(e.forEach((n,i)=>{this.at(i)&&this.at(i).patchValue(n,{onlySelf:!0,emitEvent:t.emitEvent})}
120),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((n,i)=>{n.reset(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t,this),this._updateTouched(t,this),this.updateValueAndValidity(t),t?.emitEvent!==!1&&this._events.next(new yy(this))}getRawValue(){return this.controls.map(e=>e.getRawValue())}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_adjustIndex(e){return e<0?e+this.length:e}_syncPendingControls(){let e=this.controls.reduce((t,n)=>n._syncPendingControls()?!0:t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,n)=>{e(t,n)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(let e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}_find(e){return this.at(e)??null}};function X8(r){return!!r&&(r.asyncValidators!==void 0||r.validators!==void 0||r.updateOn!==void 0)}var $je=(()=>{class r{useNonNullable=!1;get nonNullable(){let t=new r;return t.useNonNullable=!0,t}group(t,n=null){let i=this._reduceControls(t),a={};return X8(n)?a=n:n!==null&&(a.validators=n.validator,a.asyncValidators=n.asyncValidator),new dh(i,a)}record(t,n=null){let i=this._reduceControls(t);return new AP(i,n)}control(t,n,i){let a={};return this.useNonNullable?(X8(n)?a=n:(a.validators=n,a.asyncValidators=i),new zm(t,rr(de({},a),{nonNullable:!0}))):new zm(t,n,i)}array(t,n,i){let a=t.map(s=>this._createControl(s));return new MP(a,n,i)}_reduceControls(t){let n={};return Object.keys(t).forEach(i=>{n[i]=this._createControl(t[i])}),n}_createControl(t){if(t instanceof zm)return t;if(t instanceof jm)return t;if(Array.isArray(t)){let n=t[0],i=t.length>1?t[1]:null,a=t.length>2?t[2]:null;return this.control(n,i,a)}else return this.control(t)}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var Gje=(()=>{class r{static withConfig(t){return{ngModule:r,providers:[{provide:Hm,useValue:t.callSetDisabledState??aE}]}}static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({imports:[Iz]})}return r})(),Wje=(()=>{class r{static withConfig(t){return{ngModule:r,providers:[{provide:HP,useValue:t.warnOnNgModelWithFormControl??"always"},{provide:Hm,useValue:t.callSetDisabledState??aE}]}}static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({imports:[Iz]})}return r})();var cE;function doe(){if(cE===void 0&&(cE=null,typeof window<"u")){let r=window;r.trustedTypes!==void 0&&(cE=r.trustedTypes.createPolicy("angular#components",{createHTML:e=>e}))}return cE}function _y(r){return doe()?.createHTML(r)||r}function xz(r){return Error(`Unable to find icon with the name "${r}"`)}function hoe(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function Ez(r){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${r}".`)}function Tz(r){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${r}".`)}var lc=class{url;svgText;options;svgElement;constructor(e,t,n){this.url=e,this.svgText=t,this.options=n}},Sz=(()=>{class r{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(t,n,i,a){this._httpClient=t,this._sanitizer=n,this._errorHandler=a,this._document=i}addSvgIcon(t,n,i){return this.addSvgIconInNamespace("",t,n,i)}addSvgIconLiteral(t,n,i){return this.addSvgIconLiteralInNamespace("",t,n,i)}addSvgIconInNamespace(t,n,i,a){return this._addSvgIconConfig(t,n,new lc(i,null,a))}addSvgIconResolver(t){return this._resolvers.push(t),this}addSvgIconLiteralInNamespace(t,n,i,a){let s=this._sanitizer.sanitize(es.HTML,i);if(!s)throw Tz(i);let o=_y(s);return this._addSvgIconConfig(t,n,new lc("",o,a))}addSvgIconSet(t,n){return this.addSvgIconSetInNamespace("",t,n)}addSvgIconSetLiteral(t,n){return this.addSvgIconSetLiteralInNamespace("",t,n)}addSvgIconSetInNamespace(t,n,i){return this._addSvgIconSetConfig(t,new lc(n,null,i))}addSvgIconSetLiteralInNamespace(t,n,i){let a=this._sanitizer.sanitize(es.HTML,n);if(!a)throw Tz(n);let s=_y(a);
120return this._addSvgIconSetConfig(t,new lc("",s,i))}registerFontClassAlias(t,n=t){return this._fontCssClassesByAlias.set(t,n),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(...t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){let n=this._sanitizer.sanitize(es.RESOURCE_URL,t);if(!n)throw Ez(t);let i=this._cachedIconsByUrl.get(n);return i?Xe(uE(i)):this._loadSvgIconFromConfig(new lc(t,null)).pipe(lr(a=>this._cachedIconsByUrl.set(n,a)),ft(a=>uE(a)))}getNamedSvgIcon(t,n=""){let i=Cz(n,t),a=this._svgIconConfigs.get(i);if(a)return this._getSvgFromConfig(a);if(a=this._getIconConfigFromResolvers(n,t),a)return this._svgIconConfigs.set(i,a),this._getSvgFromConfig(a);let s=this._iconSetConfigs.get(n);return s?this._getSvgFromIconSetConfigs(t,s):Xu(xz(i))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?Xe(uE(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(ft(n=>uE(n)))}_getSvgFromIconSetConfigs(t,n){let i=this._extractIconWithNameFromAnySet(t,n);if(i)return Xe(i);let a=n.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(la(o=>{let c=`Loading icon set URL: ${this._sanitizer.sanitize(es.RESOURCE_URL,s.url)} failed: ${o.message}`;return this._errorHandler.handleError(new Error(c)),Xe(null)})));return eo(a).pipe(ft(()=>{let s=this._extractIconWithNameFromAnySet(t,n);if(!s)throw xz(t);return s}))}_extractIconWithNameFromAnySet(t,n){for(let i=n.length-1;i>=0;i--){let a=n[i];if(a.svgText&&a.svgText.toString().indexOf(t)>-1){let s=this._svgElementFromConfig(a),o=this._extractSvgIconFromSet(s,t,a.options);if(o)return o}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(lr(n=>t.svgText=n),ft(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?Xe(null):this._fetchIcon(t).pipe(lr(n=>t.svgText=n))}_extractSvgIconFromSet(t,n,i){let a=t.querySelector(`[id="${n}"]`);if(!a)return null;let s=a.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,i);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),i);let o=this._svgElementFromString(_y("<svg></svg>"));return o.appendChild(s),this._setSvgAttributes(o,i)}_svgElementFromString(t){let n=this._document.createElement("DIV");n.innerHTML=t;let i=n.querySelector("svg");if(!i)throw Error("<svg> tag not found");return i}_toSvgElement(t){let n=this._svgElementFromString(_y("<svg></svg>")),i=t.attributes;for(let a=0;a<i.length;a++){let{name:s,value:o}=i[a];s!=="id"&&n.setAttribute(s,o)}for(let a=0;a<t.childNodes.length;a++)t.childNodes[a].nodeType===this._document.ELEMENT_NODE&&n.appendChild(t.childNodes[a].cloneNode(!0));return n}_setSvgAttributes(t,n){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),n&&n.viewBox&&t.setAttribute("viewBox",n.viewBox),t}_fetchIcon(t){let{url:n,options:i}=t,a=i?.withCredentials??!1;if(!this._httpClient)throw hoe();if(n==null)throw Error(`Cannot fetch icon from URL "${n}".`);let s=this._sanitizer.sanitize(es.RESOURCE_URL,n);if(!s)throw Ez(n);let o=this._inProgressUrlFetches.get(s);if(o)return o;let l=this._httpClient.get(s,{responseType:"text",withCredentials:a}).pipe(ft(c=>_y(c)),Ec(()=>this._inProgressUrlFetches.delete(s)),hF());return this._inProgressUrlFetches.set(s,l),l}_addSvgIconConfig(t,n,i){return this._svgIconConfigs.set(Cz(t,n),i),this}_addSvgIconSetConfig(t,n){let i=this._iconSetConfigs.get(t);return i?i.push(n):this._iconSetConfigs.set(t,[n]),this}_svgElementFromConfig(t){if(!t.svgElement){let n=this._svgElementFromString(t.svgText);this._setSvgAttributes(n,t.options),t.svgElement=n}return t.svgElement}_getIconConfigFromResolvers(t,n){for(let i=0;i<this._resolvers.length;i++){let a=this._resolvers[i](n,t);if(a)return foe(a)?new lc(a.url,null,a.options):new lc(a,null)}}static \u0275fac=function(n){return new(n||r)(ee(Ps,8),ee(Ck),ee(Je,8),ee(Sc))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function uE(r){return r.cloneNode(!0)}function Cz(r,e){return r+":"+e}function foe(r){return!!(r.url&&r.options)}var moe=["*"],poe=new me("MAT_ICON_DEFAULT_OPTIONS"),goe=new me("mat-icon-location",{providedIn:"root",factory:yoe});function yoe(){let r=A(Je),e=r?r.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}var Dz=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],voe=Dz.map(r=>`[${r}]`).join(", "),_oe=/^url\(['"]?#(.*?)['"]?\)$/,dE=(()=>{class r{_elementRef=A(mt);_iconRegistry=A(Sz);_location=A(goe);_errorHandler=A(Sc);_defaultColor;get color(){return this._color||this._defaultColor}set color(t){this._color=t}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(t){t!==this._svgIcon&&(t?this._updateSvgIcon(t):this._svgIcon&&this._clearSvgElement(),this._svgIcon=t)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(t){let n=this._cleanupFontValue(t);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(t){let n=this._cleanupFontValue(t);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=ai.EMPTY;constructor(){let t=A(new Qv("aria-hidden"),{optional:!0}),n=A(poe,{optional:!0});n&&(n.color&&(this.color=this._defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),t||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(t){if(!t)return["",""];let n=t.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let t=this._elementsWithExternalReferences;if(t&&t.size){let n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){let t=this._elementRef.nativeElement,n=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let i=t.childNodes[n];(i.nodeType!==1||i.nodeName.toLowerCase()==="svg")&&i.remove()}}
120_updateFontIconClasses(){if(!this._usingFontIcon())return;let t=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(i=>i.length>0);this._previousFontSetClass.forEach(i=>t.classList.remove(i)),n.forEach(i=>t.classList.add(i)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return typeof t=="string"?t.trim().split(" ")[0]:t}_prependPathToReferences(t){let n=this._elementsWithExternalReferences;n&&n.forEach((i,a)=>{i.forEach(s=>{a.setAttribute(s.name,`url('${t}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(t){let n=t.querySelectorAll(voe),i=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let a=0;a<n.length;a++)Dz.forEach(s=>{let o=n[a],l=o.getAttribute(s),c=l?l.match(_oe):null;if(c){let u=i.get(o);u||(u=[],i.set(o,u)),u.push({name:s,value:c[1]})}})}_updateSvgIcon(t){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),t){let[n,i]=this._splitIconName(t);n&&(this._svgNamespace=n),i&&(this._svgName=i),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(i,n).pipe(Hr(1)).subscribe(a=>this._setSvgElement(a),a=>{let s=`Error retrieving icon ${n}:${i}! ${a.message}`;this._errorHandler.handleError(new Error(s))})}}static \u0275fac=function(n){return new(n||r)};static \u0275cmp=dt({type:r,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,i){n&2&&(Or("data-mat-icon-type",i._usingFontIcon()?"font":"svg")("data-mat-icon-name",i._svgName||i.fontIcon)("data-mat-icon-namespace",i._svgNamespace||i.fontSet)("fontIcon",i._usingFontIcon()?i.fontIcon:null),zi(i.color?"mat-"+i.color:""),Zt("mat-icon-inline",i.inline)("mat-icon-no-color",i.color!=="primary"&&i.color!=="accent"&&i.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",cr],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:moe,decls:1,vars:0,template:function(n,i){n&1&&(Ra(),_r(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto} 121`],encapsulation:2,changeDetection:0})}return r})(),dHe=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({imports:[Nr,Nr]})}return r})();var Mz=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275cmp=dt({type:r,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(n,i){},styles:[`textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start
1210s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms} 122`],encapsulation:2,changeDetection:0})}return r})(),boe={passive:!0},kz=(()=>{class r{_platform=A(tr);_ngZone=A(Qe);_renderer=A(ca).createRenderer(null,null);_styleLoader=A(ba);_monitoredElements=new Map;constructor(){}monitor(t){if(!this._platform.isBrowser)return Zs;this._styleLoader.load(Mz);let n=_a(t),i=this._monitoredElements.get(n);if(i)return i.subject;let a=new Ye,s="cdk-text-field-autofilled",o=c=>{c.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(s)?(n.classList.add(s),this._ngZone.run(()=>a.next({target:c.target,isAutofilled:!0}))):c.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(s)&&(n.classList.remove(s),this._ngZone.run(()=>a.next({target:c.target,isAutofilled:!1})))},l=this._ngZone.runOutsideAngular(()=>(n.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(n,"animationstart",o,boe)));return this._monitoredElements.set(n,{subject:a,unlisten:l}),a}stopMonitoring(t){let n=_a(t),i=this._monitoredElements.get(n);i&&(i.unlisten(),i.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((t,n)=>this.stopMonitoring(n))}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var CHe=(()=>{class r{_elementRef=A(mt);_platform=A(tr);_ngZone=A(Qe);_renderer=A(Rr);_resizeEvents=new Ye;_previousValue;_initialHeight;_destroyed=new Ye;_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(t){this._minRows=hs(t),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(t){this._maxRows=hs(t),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(t){this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(t){this._cachedPlaceholderHeight=void 0,t?this._textareaElement.setAttribute("placeholder",t):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_cachedLineHeight;_cachedPlaceholderHeight;_document=A(Je);_hasFocus;_isViewInited=!1;constructor(){A(ba).load(Mz),this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){let t=this.minRows&&this._cachedLineHeight?`${this.minRows*this._cachedLineHeight}px`:null;t&&(this._textareaElement.style.minHeight=t)}_setMaxHeight(){let t=this.maxRows&&this._cachedLineHeight?`${this.maxRows*this._cachedLineHeight}px`:null;t&&(this._textareaElement.style.maxHeight=t)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[this._renderer.listen("window","resize",()=>this._resizeEvents.next()),this._renderer.listen(this._textareaElement,"focus",this._handleFocusEvent),this._renderer.listen(this._textareaElement,"blur",this._handleFocusEvent)],this._resizeEvents.pipe(Xp(16)).subscribe(()=>{this._cachedLineHeight=this._cachedPlaceholderHeight=void 0,this.resizeToFitContent(!0)})}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._listenerCleanups?.forEach(t=>t()),this._resizeEvents.complete(),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let t=this._textareaElement.cloneNode(!1),n=t.style;t.rows=1,n.position="absolute",n.visibility="hidden",n.border="none",n.padding="0",n.height="",n.minHeight="",n.maxHeight="",n.top=n.bottom=n.left=n.right="auto",n.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,t.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){let t=this._textareaElement,n=t.style.marginBottom||"",i=this._platform.FIREFOX,a=i&&this._hasFocus,s=i?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";a&&(t.style.marginBottom=`${t.clientHeight}px`),t.classList.add(s);let o=t.scrollHeight-4;return t.classList.remove(s),a&&(t.style.marginBottom=n),o}
122_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||this._cachedPlaceholderHeight!=null)return;if(!this.placeholder){this._cachedPlaceholderHeight=0;return}let t=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=t}_handleFocusEvent=t=>{this._hasFocus=t.type==="focus"};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(t=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;let n=this._elementRef.nativeElement,i=n.value;if(!t&&this._minRows===this._previousMinRows&&i===this._previousValue)return;let a=this._measureScrollHeight(),s=Math.max(a,this._cachedPlaceholderHeight||0);n.style.height=`${s}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(n)):setTimeout(()=>this._scrollToCaretPosition(n))}),this._previousValue=i,this._previousMinRows=this._minRows}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_scrollToCaretPosition(t){let{selectionStart:n,selectionEnd:i}=t;!this._destroyed.isStopped&&this._hasFocus&&t.setSelectionRange(n,i)}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(n,i){n&1&&Gt("input",function(){return i._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",cr],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return r})(),Pz=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({})}return r})();var Rz=new me("MAT_INPUT_VALUE_ACCESSOR");var $P=class{_box;_destroyed=new Ye;_resizeSubject=new Ye;_resizeObserver;_elementObservables=new Map;constructor(e){this._box=e,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(t=>this._resizeSubject.next(t)))}observe(e){return this._elementObservables.has(e)||this._elementObservables.set(e,new Ot(t=>{let n=this._resizeSubject.subscribe(t);return this._resizeObserver?.observe(e,{box:this._box}),()=>{this._resizeObserver?.unobserve(e),n.unsubscribe(),this._elementObservables.delete(e)}}).pipe(Yt(t=>t.some(n=>n.target===e)),vC({bufferSize:1,refCount:!0}),dn(this._destroyed))),this._elementObservables.get(e)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Oz=(()=>{class r{_cleanupErrorListener;_observers=new Map;_ngZone=A(Qe);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,t]of this._observers)t.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(t,n){let i=n?.box||"content-box";return this._observers.has(i)||this._observers.set(i,new $P(i)),this._observers.get(i).observe(t)}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var woe=["notch"],Ioe=["matFormFieldNotchedOutline",""],xoe=["*"],Fz=["iconPrefixContainer"],Bz=["textPrefixContainer"],Nz=["iconSuffixContainer"],Lz=["textSuffixContainer"],Eoe=["textField"],Toe=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Coe=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function Soe(r,e){r&1&&ot(0,"span",21)}function Doe(r,e){if(r&1&&(Se(0,"label",20),_r(1,1),at(2,Soe,1,0,"span",21),Ae()),r&2){let t=ge(2);fe("floating",t._shouldLabelFloat())("monitorResize",t._hasOutline())("id",t._labelId),Or("for",t._control.disableAutomaticLabeling?null:t._control.id),te(2),st(!t.hideRequiredMarker&&t._control.required?2:-1)}}function Aoe(r,e){if(r&1&&at(0,Doe,3,5,"label",20),r&2){let t=ge();st(t._hasFloatingLabel()?0:-1)}}function Moe(r,e){r&1&&ot(0,"div",7)}function koe(r,e){}function Poe(r,e){if(r&1&&St(0,koe,0,0,"ng-template",13),r&2){ge(2);let t=cf(1);fe("ngTemplateOutlet",t)}}function Roe(r,e){if(r&1&&(Se(0,"div",9),at(1,Poe,1,1,null,13),Ae()),r&2){let t=ge();fe("matFormFieldNotchedOutlineOpen",t._shouldLabelFloat()),te(),st(t._forceDisplayInfixLabel()?-1:1)}}
122function Ooe(r,e){r&1&&(Se(0,"div",10,2),_r(2,2),Ae())}function Foe(r,e){r&1&&(Se(0,"div",11,3),_r(2,3),Ae())}function Boe(r,e){}function Noe(r,e){if(r&1&&St(0,Boe,0,0,"ng-template",13),r&2){ge();let t=cf(1);fe("ngTemplateOutlet",t)}}function Loe(r,e){r&1&&(Se(0,"div",14,4),_r(2,4),Ae())}function Voe(r,e){r&1&&(Se(0,"div",15,5),_r(2,5),Ae())}function Uoe(r,e){r&1&&ot(0,"div",16)}function zoe(r,e){r&1&&(Se(0,"div",18),_r(1,6),Ae())}function joe(r,e){if(r&1&&(Se(0,"mat-hint",22),gr(1),Ae()),r&2){let t=ge(2);fe("id",t._hintLabelId),te(),Oa(t.hintLabel)}}function Hoe(r,e){if(r&1&&(Se(0,"div",19),at(1,joe,2,2,"mat-hint",22),_r(2,7),ot(3,"div",23),_r(4,8),Ae()),r&2){let t=ge();te(),st(t.hintLabel?1:-1)}}var by=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["mat-label"]]})}return r})(),Gz=new me("MatError"),WP=(()=>{class r{id=A(qi).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(n,i){n&2&&Mc("id",i.id)},inputs:{id:"id"},features:[Ar([{provide:Gz,useExisting:r}])]})}return r})(),GP=(()=>{class r{align="start";id=A(qi).getId("mat-mdc-hint-");static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,i){n&2&&(Mc("id",i.id),Or("align",null),Zt("mat-mdc-form-field-hint-end",i.align==="end"))},inputs:{align:"align",id:"id"}})}return r})(),Wz=new me("MatPrefix"),qP=(()=>{class r{set _isTextSelector(t){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[Ar([{provide:Wz,useExisting:r}])]})}return r})(),qz=new me("MatSuffix"),KP=(()=>{class r{set _isTextSelector(t){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Ar([{provide:qz,useExisting:r}])]})}return r})(),Kz=new me("FloatingLabelParent"),Vz=(()=>{class r{_elementRef=A(mt);get floating(){return this._floating}set floating(t){this._floating=t,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(t){this._monitorResize=t,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=A(Oz);_ngZone=A(Qe);_parent=A(Kz);_resizeSubscription=new ai;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return $oe(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,i){n&2&&Zt("mdc-floating-label--float-above",i.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return r})();function $oe(r){let e=r;if(e.offsetParent!==null)return e.scrollWidth;let t=e.cloneNode(!0);t.style.setProperty("position","absolute"),t.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(t);let n=t.scrollWidth;return t.remove(),n}var Uz="mdc-line-ripple--active",hE="mdc-line-ripple--deactivating",zz=(()=>{class r{_elementRef=A(mt);_cleanupTransitionEnd;constructor(){let t=A(Qe),n=A(Rr);t.runOutsideAngular(()=>{this._cleanupTransitionEnd=n.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let t=this._elementRef.nativeElement.classList;t.remove(hE),t.add(Uz)}deactivate(){this._elementRef.nativeElement.classList.add(hE)}_handleTransitionEnd=t=>{let n=this._elementRef.nativeElement.classList,i=n.contains(hE);t.propertyName==="opacity"&&i&&n.remove(Uz,hE)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return r})(),jz=(()=>{class r{_elementRef=A(mt);_ngZone=A(Qe);open=!1;_notch;ngAfterViewInit(){let t=this._elementRef.nativeElement,n=t.querySelector(".mdc-floating-label");n?(t.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):t.classList.add("mdc-notched-outline--no-label")}
122_setNotchWidth(t){let n=this._notch.nativeElement;!this.open||!t?n.style.width="":n.style.width=`calc(${t}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(t){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${t}px)`)}static \u0275fac=function(n){return new(n||r)};static \u0275cmp=dt({type:r,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,i){if(n&1&&Fr(woe,5),n&2){let a;Mt(a=kt())&&(i._notch=a.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,i){n&2&&Zt("mdc-notched-outline--notched",i.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:Ioe,ngContentSelectors:xoe,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(n,i){n&1&&(Ra(),Ma(0,"div",1),id(1,"div",2,0),_r(3),ad(),Ma(4,"div",3))},encapsulation:2,changeDetection:0})}return r})(),YP=(()=>{class r{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r})}return r})();var XP=new me("MatFormField"),Goe=new me("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Hz="fill",Woe="auto",$z="fixed",qoe="translateY(-50%)",wy=(()=>{class r{_elementRef=A(mt);_changeDetectorRef=A(Ci);_platform=A(tr);_idGenerator=A(qi);_ngZone=A(Qe);_defaults=A(Goe,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=ng("iconPrefixContainer");_textPrefixContainerSignal=ng("textPrefixContainer");_iconSuffixContainerSignal=ng("iconSuffixContainer");_textSuffixContainerSignal=ng("textSuffixContainer");_prefixSuffixContainers=ro(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(t=>t?.nativeElement).filter(t=>t!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=eB(by);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Yl(t)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||Woe}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(t){let n=t||this._defaults?.appearance||Hz;this._appearanceSignal.set(n)}_appearanceSignal=Vr(Hz);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||$z}set subscriptSizing(t){this._subscriptSizing=t||this._defaults?.subscriptSizing||$z}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(t){this._explicitFormFieldControl=t}_destroyed=new Ye;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=$n();constructor(){let t=this._defaults,n=A($a);t&&(t.appearance&&(this.appearance=t.appearance),this._hideRequiredMarker=!!t?.hideRequiredMarker,t.color&&(this.color=t.color)),Pl(()=>this._currentDirection=n.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}
122ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=ro(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(t){let n=this._control,i="mat-mdc-form-field-type-";t&&this._elementRef.nativeElement.classList.remove(i+t.controlType),n.controlType&&this._elementRef.nativeElement.classList.add(i+n.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=n.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=n.stateChanges.pipe(to([void 0,void 0]),ft(()=>[n.errorState,n.userAriaDescribedBy]),yC(),Yt(([[a,s],[o,l]])=>a!==o||s!==l)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),n.ngControl&&n.ngControl.valueChanges&&(this._valueChanges=n.ngControl.valueChanges.pipe(dn(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(t=>!t._isText),this._hasTextPrefix=!!this._prefixChildren.find(t=>t._isText),this._hasIconSuffix=!!this._suffixChildren.find(t=>!t._isText),this._hasTextSuffix=!!this._suffixChildren.find(t=>t._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),tf(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){let t=this._control.focused;t&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!t&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",t),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",t)}_syncOutlineLabelOffset(){iB({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let t of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(t,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:t=>this._writeOutlinedLabelStyles(t())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=ro(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(t){let n=this._control?this._control.ngControl:null;return n&&n[t]}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&t.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let a=this._hintChildren?this._hintChildren.find(o=>o.align==="start"):null,s=this._hintChildren?this._hintChildren.find(o=>o.align==="end"):null;a?t.push(a.id):this._hintLabel&&t.push(this._hintLabelId),s&&t.push(s.id)}else this._errorChildren&&t.push(...this._errorChildren.map(a=>a.id));let n=this._control.describedByIds,i;if(n){let a=this._describedByIds||t;i=t.concat(n.filter(s=>s&&!a.includes(s)))}else i=t;this._control.setDescribedByIds(i),this._describedByIds=t}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let t=this._iconPrefixContainer?.nativeElement,n=this._textPrefixContainer?.nativeElement,i=this._iconSuffixContainer?.nativeElement,a=this._textSuffixContainer?.nativeElement,s=t?.getBoundingClientRect().width??0,o=n?.getBoundingClientRect().width??0,l=i?.getBoundingClientRect().width??0,c=a?.getBoundingClientRect().width??0,u=this._currentDirection==="rtl"?"
122-1":"1",d=`${s+o}px`,p=`calc(${u} * (${d} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,g=`var(--mat-mdc-form-field-label-transform, ${qoe} translateX(${p}))`,y=s+o+l+c;return[g,y]}_writeOutlinedLabelStyles(t){if(t!==null){let[n,i]=t;this._floatingLabel&&(this._floatingLabel.element.style.transform=n),i!==null&&this._notchedOutline?._setMaxWidth(i)}}_isAttachedToDom(){let t=this._elementRef.nativeElement;if(t.getRootNode){let n=t.getRootNode();return n&&n!==t}return document.documentElement.contains(t)}static \u0275fac=function(n){return new(n||r)};static \u0275cmp=dt({type:r,selectors:[["mat-form-field"]],contentQueries:function(n,i,a){if(n&1&&(UF(a,i._labelChild,by,5),Qn(a,YP,5),Qn(a,Wz,5),Qn(a,qz,5),Qn(a,Gz,5),Qn(a,GP,5)),n&2){SC();let s;Mt(s=kt())&&(i._formFieldControl=s.first),Mt(s=kt())&&(i._prefixChildren=s),Mt(s=kt())&&(i._suffixChildren=s),Mt(s=kt())&&(i._errorChildren=s),Mt(s=kt())&&(i._hintChildren=s)}},viewQuery:function(n,i){if(n&1&&(tg(i._iconPrefixContainerSignal,Fz,5),tg(i._textPrefixContainerSignal,Bz,5),tg(i._iconSuffixContainerSignal,Nz,5),tg(i._textSuffixContainerSignal,Lz,5),Fr(Eoe,5),Fr(Fz,5),Fr(Bz,5),Fr(Nz,5),Fr(Lz,5),Fr(Vz,5),Fr(jz,5),Fr(zz,5)),n&2){SC(4);let a;Mt(a=kt())&&(i._textField=a.first),Mt(a=kt())&&(i._iconPrefixContainer=a.first),Mt(a=kt())&&(i._textPrefixContainer=a.first),Mt(a=kt())&&(i._iconSuffixContainer=a.first),Mt(a=kt())&&(i._textSuffixContainer=a.first),Mt(a=kt())&&(i._floatingLabel=a.first),Mt(a=kt())&&(i._notchedOutline=a.first),Mt(a=kt())&&(i._lineRipple=a.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(n,i){n&2&&Zt("mat-mdc-form-field-label-always-float",i._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",i._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",i._hasIconSuffix)("mat-form-field-invalid",i._control.errorState)("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-form-field-appearance-fill",i.appearance=="fill")("mat-form-field-appearance-outline",i.appearance=="outline")("mat-form-field-hide-placeholder",i._hasFloatingLabel()&&!i._shouldLabelFloat())("mat-primary",i.color!=="accent"&&i.color!=="warn")("mat-accent",i.color==="accent")("mat-warn",i.color==="warn")("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Ar([{provide:XP,useExisting:r},{provide:Kz,useExisting:r}])],ngContentSelectors:Coe,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],["aria-atomic","true","aria-live","polite",1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(n,i){if(n&1){let a=da();Ra(Toe),St(0,Aoe,1,1,"ng-template",null,0,uf),Se(2,"div",6,1),Gt("click",function(o){return Vi(a),Ui(i._control.onContainerClick(o))}),at(4,Moe,1,0,"div",7),Se(5,"div",8),at(6,Roe,2,2,"div",9),at(7,Ooe,3,0,"div",10),at(8,Foe,3,0,"div",11),Se(9,"div",12),at(10,Noe,1,1,null,13),_r(11),Ae(),at(12,Loe,3,0,"div",14),at(13,Voe,3,0,"div",15),Ae(),at(14,Uoe,1,0,"div",16),Ae(),Se(15,"div",17),at(16,zoe,2,0,"div",18)(17,Hoe,5,1,"div",19),Ae()}if(n&2){let a;te(2),Zt("mdc-text-field--filled",!i._hasOutline())("mdc-text-field--outlined",i._hasOutline())("mdc-text-field--no-label",!i._hasFloatingLabel())("mdc-text-field--disabled",i._control.disabled)("mdc-text-field--invalid",i._control.errorState),te(2),st(!i._hasOutline()&&!i._c
122ontrol.disabled?4:-1),te(2),st(i._hasOutline()?6:-1),te(),st(i._hasIconPrefix?7:-1),te(),st(i._hasTextPrefix?8:-1),te(2),st(!i._hasOutline()||i._forceDisplayInfixLabel()?10:-1),te(2),st(i._hasTextSuffix?12:-1),te(),st(i._hasIconSuffix?13:-1),te(),st(i._hasOutline()?-1:14),te(),Zt("mat-mdc-form-field-subscript-dynamic-size",i.subscriptSizing==="dynamic");let s=i._getSubscriptMessageType();te(),st((a=s)==="error"?16:a==="hint"?17:-1)}},dependencies:[Vz,jz,mg,zz,GP],styles:[`.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator,.mdc-text-field__input::-webkit-search-cancel-button{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-filled-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;
122left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));border-width:var(--mat-form-field-outlined-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):h
122over .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mat-form-field-outlined-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{max-width:min(100%,calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mat-form-field-filled-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):h
122over .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mat-form-field-filled-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-en
122abled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)} 123`],encapsulation:2,changeDetection:0})}return r})();var Yz=(()=>{class r{isErrorState(t,n){return!!(t&&t.invalid&&(t.touched||n&&n.submitted))}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var fE=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(e,t,n,i,a){this._defaultMatcher=e,this.ngControl=t,this._parentFormGroup=n,this._parentForm=i,this._stateChanges=a}updateErrorState(){let e=this.errorState,t=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,i=this.ngControl?this.ngControl.control:null,a=n?.isErrorState(i,t)??!1;a!==e&&(this.errorState=a,this._stateChanges.next())}};var QP=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({imports:[Nr,dw,wy,Nr]})}return r})();var Koe=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Yoe=new me("MAT_INPUT_CONFIG"),Xz=(()=>{class r{_elementRef=A(mt);_platform=A(tr);ngControl=A(To,{optional:!0,self:!0});_autofillMonitor=A(kz);_ngZone=A(Qe);_formField=A(XP,{optional:!0});_renderer=A(Rr);_uid=A(qi).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=A(Yoe,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new Ye;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(t){this._disabled=Yl(t),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(t){this._id=t||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(qx.required)??!1}set required(t){this._required=Yl(t)}_required;get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&YM().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(t){this._errorStateTracker.matcher=t}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(t){t!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(t):this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Yl(t)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(t){this._errorStateTracker.errorState=t}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>YM().has(t));constructor(){let t=A(zP,{optional:!0}),n=A(oE,{optional:!0}),i=A(Yz),a=A(Rz,{optional:!0,self:!0}),s=this._elementRef.nativeElement,o=s.nodeName.toLowerCase();a?Jp(a.value)?this._signalBasedValueAccessor=a:this._inputValueAccessor=a:this._inputValueAccessor=s,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(s,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new fE(i,this.ngControl,n,t,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=o==="select",this._isTextarea=o==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=s.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Pl(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(t){if(t!==this.focused){if(!this._isNativeSelect&&t&&this.disabled&&this.disabledInteractive){let n=this._elementRef.nativeElement;n.type==="number"?(n.type="text",n.setSelectionRange(0,0),n.type="number"):n.setSelectionRange(0,0)}this.focused=t,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_dirtyCheckPlaceholder(){let t=this._getPlaceholder();if(t!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=t,t?n.setAttribute("placeholder",t):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}
123_validateType(){Koe.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let t=this._elementRef.nativeElement,n=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&n&&n.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(t){let n=this._elementRef.nativeElement;t.length?n.setAttribute("aria-describedby",t.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let t=this._elementRef.nativeElement;return this._isNativeSelect&&(t.multiple||t.size>1)}_iOSKeyupListener=t=>{let n=t.target;!n.value&&n.selectionStart===0&&n.selectionEnd===0&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(n,i){n&1&&Gt("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),n&2&&(Mc("id",i.id)("disabled",i.disabled&&!i.disabledInteractive)("required",i.required),Or("name",i.name||null)("readonly",i._getReadonlyAttribute())("aria-disabled",i.disabled&&i.disabledInteractive?"true":null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required)("id",i.id),Zt("mat-input-server",i._isServer)("mat-mdc-form-field-textarea-control",i._isInFormField&&i._isTextarea)("mat-mdc-form-field-input-control",i._isInFormField)("mat-mdc-input-disabled-interactive",i.disabledInteractive)("mdc-text-field__input",i._isInFormField)("mat-mdc-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",cr]},exportAs:["matInput"],features:[Ar([{provide:YP,useExisting:r}]),En]})}return r})(),D9e=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({imports:[Nr,QP,QP,Pz,Nr]})}return r})();var Qoe=["tooltip"],JP=20;var ZP=new me("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let r=A(X);return()=>Wd(r,{scrollThrottle:JP})}});function Zz(r){let e=A(X);return()=>Wd(e,{scrollThrottle:JP})}var eR={provide:ZP,deps:[],useFactory:Zz};function ej(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var tj=new me("mat-tooltip-default-options",{providedIn:"root",factory:ej});var Qz="tooltip-panel",Jz=Jc({passive:!0}),Joe=8,Zoe=8,ele=24,tle=200,Iy=(()=>{class r{_elementRef=A(mt);_ngZone=A(Qe);_platform=A(tr);_ariaDescriber=A(Y3);_focusMonitor=A(Zc);_dir=A($a);_injector=A(X);_viewContainerRef=A(Rn);_animationsDisabled=$n();_defaultOptions=A(tj,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=rj;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_dirSubscribed=!1;get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=Yl(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){let n=Yl(t);this._disabled!==n&&(this._disabled=n,n?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=hs(t)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=hs(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(t){let n=this._message;this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(n)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new Ye;_isDestroyed=!1;constructor(){let t=this._defaultOptions;t&&(this._showDelay=t.showDelay,this._hideDelay=t.hideDelay,t.position&&(this.position=t.position),t.positionAtOrigin&&(this.positionAtOrigin=t.positionAtOrigin),t.touchGestures&&(this.touchGestures=t.touchGestures),t.tooltipClass&&(this.tooltipClass=t.tooltipClass)),this._viewportMargin=Joe}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(dn(this._destroyed)).subscribe(t=>
123{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([n,i])=>{t.removeEventListener(n,i,Jz)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,n){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let i=this._createOverlay(n);this._detach(),this._portal=this._portal||new yo(this._tooltipComponent,this._viewContainerRef);let a=this._tooltipInstance=i.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(dn(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(t)}hide(t=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(t):(n._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let s=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&s._origin instanceof mt)return this._overlayRef;this._detach()}let n=this._injector.get(jd).getAncestorScrollContainers(this._elementRef),i=`${this._cssClassPrefix}-${Qz}`,a=y0(this._injector,this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return a.positionChanges.pipe(dn(this._destroyed)).subscribe(s=>{this._updateCurrentPositionClass(s.connectionPair),this._tooltipInstance&&s.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=Ql(this._injector,{direction:this._dir,positionStrategy:a,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,i]:i,scrollStrategy:this._injector.get(ZP)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(dn(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(dn(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(dn(this._destroyed)).subscribe(s=>{this._isTooltipVisible()&&s.keyCode===27&&!Ms(s)&&(s.preventDefault(),s.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(dn(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){let n=t.getConfig().positionStrategy,i=this._getOrigin(),a=this._getOverlayPosition();n.withPositions([this._addOffset(de(de({},i.main),a.main)),this._addOffset(de(de({},i.fallback),a.fallback))])}_addOffset(t){let n=Zoe,i=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-n:t.originY==="bottom"?t.offsetY=n:t.originX==="start"?t.offsetX=i?-n:n:t.originX==="end"&&(t.offsetX=i?n:-n),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",n=this.position,i;n=="above"||n=="below"?i={originX:"center",originY:n=="above"?"top":"bottom"}:n=="before"||n=="left"&&t||n=="right"&&!t?i={originX:"start",originY:"center"}:(n=="after"||n=="right"&&t||n=="left"&&!t)&&(i={originX:"end",originY:"center"});let{x:a,y:s}=this._invertPosition(i.originX,i.originY);return{main:i,fallback:{originX:a,originY:s}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",n=this.position,i;n=="above"?i={overlayX:"center",overlayY:"bottom"}:n=="below"?i={overlayX:"center",overlayY:"top"}:n=="before"||n=="left"&&t||n=="right"&&!t?i={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&t||n=="left"&&!t)&&(i={overlayX:"start",overlayY:"center"});let{x:a,y:s}=this._invertPosition(i.overlayX,i.overlayY);return{main:i,fallback:{overlayX:a,overlayY:s}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Yn(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:n}}_updateCurrentPositionClass(t){let{overlayY:n,originX:i,originY:a}=t,s;if(n==="center"?this._dir&&this._dir.value==="rtl"?s=i==="end"?"left":"right":s=i==="start"?"left"
123:"right":s=n==="bottom"&&a==="top"?"above":"below",s!==this._currentPosition){let o=this._overlayRef;if(o){let l=`${this._cssClassPrefix}-${Qz}-`;o.removePanelClass(l+this._currentPosition),o.addPanelClass(l+s)}this._currentPosition=s}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let n;t.x!==void 0&&t.y!==void 0&&(n=t),this.show(void 0,n)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{let n=t.targetTouches?.[0],i=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let a=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,i)},this._defaultOptions?.touchLongPressShowDelay??a)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",n=>{let i=n.relatedTarget;(!i||!this._overlayRef?.overlayElement.contains(i))&&this.hide()}],["wheel",n=>this._wheelListener(n)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let n=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};t.push(["touchend",n],["touchcancel",n])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([n,i])=>{this._elementRef.nativeElement.addEventListener(n,i,Jz)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){let n=this._injector.get(Je).elementFromPoint(t.clientX,t.clientY),i=this._elementRef.nativeElement;n!==i&&!i.contains(n)&&this.hide()}}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let n=this._elementRef.nativeElement,i=n.style;(t==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(i.userSelect=i.msUserSelect=i.webkitUserSelect=i.MozUserSelect="none"),(t==="on"||!n.draggable)&&(i.webkitUserDrag="none"),i.touchAction="none",i.webkitTapHighlightColor="transparent"}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._isDestroyed||Yn({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,i){n&2&&Zt("mat-mdc-tooltip-disabled",i.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return r})(),rj=(()=>{class r{_changeDetectorRef=A(Ci);_elementRef=A(mt);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=$n();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new Ye;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>ele&&t.width>=tle}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let n=this._tooltip.nativeElement,i=this._showAnimation,a=this._hideAnimation;if(n.classList.remove(t?a:i),n.classList.add(t?i:a),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let s=getComputedStyle(n);(s.getPropertyValue("animation-duration")==="0s"||s.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}static \u0275fac=function(n){return new(n||r)};static \u0275cmp=dt({type:r,selectors:[["mat-tooltip-component"]],viewQuery:function(n,i){if
123(n&1&&Fr(Qoe,7),n&2){let a;Mt(a=kt())&&(i._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(n,i){n&1&&Gt("mouseleave",function(s){return i._handleMouseLeave(s)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,i){if(n&1){let a=da();Se(0,"div",1,0),Gt("animationend",function(o){return Vi(a),Ui(i._handleAnimationEnd(o))}),Se(2,"div",2),gr(3),Ae()()}n&2&&(Zt("mdc-tooltip--multiline",i._isMultiline),fe("ngClass",i.tooltipClass),te(3),Oa(i.message))},dependencies:[u1],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards} 124`],encapsulation:2,changeDetection:0})}return r})();var rle=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({providers:[eR],imports:[d0,Jl,Nr,Nr,g0]})}return r})();function nle(r,e){if(r&1){let t=da();ka(0,3),Se(1,"button",4),Gt("click",function(){Vi(t);let i=ge();return Ui(i.openUrl(i._completeUrl))}
124),Se(2,"mat-icon"),gr(3,"open_in_new"),Ae()(),Se(4,"button",5),Gt("click",function(){Vi(t);let i=ge();return Ui(i.openUrl(i._completeUrl,!0))}),Se(5,"mat-icon"),gr(6,"preview"),Ae()(),Pa()}if(r&2){let t=ge();te(),fe("matTooltip",kl(t._completeUrl))}}function ile(r,e){r&1&&(Se(0,"mat-error"),gr(1,"Il campo Slug \xE8 obbligatorio"),Ae())}var fh=class r{constructor(e,t){this.location=e;this.snackBar=t}set src(e){this._src=e,this.makeSlug()}get src(){return this._src}_src;name="";label;hidden=!1;readonly=!1;formGroup;set fullSlug(e){this._fullSlug=e,this.setCompleteUrl()}get fullSlug(){return this._fullSlug}_fullSlug;set preSlug(e){this._preSlug=e,e=="/"&&(this._preSlug=void 0),this.setCompleteUrl()}get preSlug(){return this._preSlug}_preSlug;_slug;get slug(){return this._slug}set slug(e){this._slug=e,this.setCompleteUrl(),this.propagateChange(this.slug)}OnSlugChange=new Rt;setCompleteUrl(){this.isAbsoluteUrl()?this._completeUrl=this.slug:(this._completeUrl=`${this.preSlug?"/"+this.preSlug:""}/${this.slug}`,this._completeUrl=this._completeUrl?.toString().split("//").join("/"),this._completeUrl=`${this.getBaseUrl()}${this._completeUrl}`),this.fullSlug&&(this._completeUrl=`${this.fullSlug}`,this._completeUrl=this._completeUrl?.toString().split("//").join("/"),this._completeUrl=`${this.getBaseUrl()}${this._completeUrl}`)}propagateChange=e=>{};_completeUrl;getBaseUrl(){return this.location.port?`${this.location.protocol}//${this.location.hostname}:${this.location.port}`:`${this.location.protocol}//${this.location.hostname}`}ngOnInit(){}onChanges(e){this.makeSlug(e),this.OnSlugChange.emit(e)}isAbsoluteUrl(){return new RegExp("^(?:[a-z]+:)?//","i").test(this.slug)}makeSlug(e){this.slug=e==null?this.slug:e.replace(/[^a-z0-9_]+/gi,"-").replace(/^-|-$/g,"").toLowerCase()}static makeSlug(e){return e==null?"not-set":e.replace(/[^a-z0-9_]+/gi,"-").replace(/^-|-$/g,"").toLowerCase()}copyUrl(e){e&&(pe.copyMessageInClipboard(e),this.snackBar.open("'"+this._completeUrl+"' copiato negli appunti","ok",{}))}openUrl(e,t){if(e){if(t){window.open(e+"?preview=true","_blank");return}window.open(e,"_blank")}}hasError(e,t){return this.formGroup?this.formGroup.controls[e].hasError(t):!1}registerOnChange(e){this.propagateChange=e}registerOnTouched(e){}setDisabledState(e){}writeValue(e){e!==void 0&&(this.slug=e)}static \u0275fac=function(t){return new(t||r)(Ce(pa),Ce(qd))};static \u0275cmp=dt({type:r,selectors:[["app-slug"]],inputs:{src:"src",name:"name",label:"label",hidden:"hidden",readonly:"readonly",formGroup:"formGroup",fullSlug:"fullSlug",preSlug:"preSlug"},outputs:{OnSlugChange:"OnSlugChange"},standalone:!1,features:[Ar([{provide:bu,useExisting:si(()=>r),multi:!0}])],decls:8,vars:8,consts:[[1,"w-100",3,"hidden"],["matInput","","type","text",3,"ngModelChange","name","placeholder","ngModel","readonly"],["matPrefix","","matTooltip","\xC8 il nome dell'url della pagina","color","primary"],["matSuffix",""],["type","button","matMiniFab","",3,"click","matTooltip"],["type","button","matMiniFab","","matTooltip","Preview con tutte le sezioni anche quelle inattive",3,"click"]],template:function(t,n){t&1&&(Se(0,"mat-form-field",0)(1,"mat-label"),gr(2,"Slug"),Ae(),Se(3,"input",1),HF("ngModelChange",function(a){return jF(n.slug,a)||(n.slug=a),a}),Gt("ngModelChange",function(a){return n.onChanges(a)}),Ae(),Se(4,"mat-icon",2),gr(5,"info"),Ae(),at(6,nle,7,2,"ng-container",3),at(7,ile,2,0,"mat-error"),Ae()),t&2&&(fe("hidden",n.hidden),te(3),fe("placeholder",kl(n.label))("name",n.name),zF("ngModel",n.slug),fe("readonly",n.readonly),te(3),st(n._completeUrl?6:-1),te(),st(n.hasError("slug","required")?7:-1))},dependencies:[dU,dE,Xz,wy,by,WP,qP,KP,Iy,nE,dz,jP],styles:[".mat-icon[_ngcontent-%COMP%]{font-size:24px!important;vertical-align:middle}button[_ngcontent-%COMP%]{margin-right:5px}"]})};var gs=class r extends Ls{nameCollection=this.GetNameCollection();slug;nameFront;parentOriginId;seo;headerSite;thankyou;contactForm;phoneWA;schemaOrg;previewModel;searchTag;positionBaseModel;survey;modelStyle;acListId;acTagId;acTagName;companyIDAppVD;customerIDAppVD;fullSlug;duplicateSlug;parentDynamicModelId;parentDynamicModelCollectionName;parentOrigin;parentDynamicModel;parentDynamicModelInfo;getBaseTags(e){return[]}getParent(){return this.parentOrigin?this.parentOrigin:this.parentDynamicModel}getParentModelName(){return this.parentOrigin?this.parentOrigin.getName():this.parentDynamicModel?.getName()}getParentCollectionName(){return this.parentOrigin?"Pagina":this.parentDynamicModelInfo?.getName()}constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);var t=this.getJson(e);return t&&(this.slug=t.slug,this.nameFront=t.nameFront,this.parentOriginId=t.parentOriginId,t?.seo&&(this.seo=new Lm(t.
124seo)),t?.headerSite&&(this.headerSite=new cl(t.headerSite)),t?.contactForm&&(this.contactForm=new lh(t.contactForm)),t?.modelStyle&&(this.modelStyle=new oy(t.modelStyle)),t?.thankyou&&(this.thankyou=new dy(t.thankyou)),t?.phoneWA&&(this.phoneWA=new ly(t.phoneWA)),t?.schemaOrg&&(this.schemaOrg=new cy(t.schemaOrg)),t?.previewModel&&(this.previewModel=new Nm(t.previewModel)),t?.searchTag&&(this.searchTag=new uy(t.searchTag)),t?.positionBaseModel&&(this.positionBaseModel=new ah(t.positionBaseModel)),t?.survey&&(this.survey=new Gx(t.survey)),this.acListId=t.acListId,this.acTagId=t.acTagId,this.acTagName=t.acTagName,this.companyIDAppVD=t.companyIDAppVD,this.customerIDAppVD=t.customerIDAppVD,this.fullSlug=t.fullSlug,this.duplicateSlug=t.duplicateSlug,this.parentDynamicModelId=t.parentDynamicModelId,this.parentDynamicModelCollectionName=t.parentDynamicModelCollectionName),this}getDocumentData(e){var t=super.getDocumentData(e);return this.slug&&(t.slug=this.slug),this.nameFront!=null&&(t.nameFront=this.nameFront),t.parentOriginId=this.parentOriginId!=null?this.parentOriginId:null,this.isNew()&&(this.seo=new Lm,this.seo.title=this.getName(),this.seo.description=this.getName(),this.seo.og_title=this.getName(),this.seo.og_description=this.getName(),this.slug=fh.makeSlug(this.getName()),this.previewModel=new Nm,this.previewModel.title=this.getName()),this.slug!==void 0&&(t.slug=this.slug),this.seo&&(t.seo=this.seo.getDocumentData()),this.contactForm&&(t.contactForm=this.contactForm.getDocumentData()),this.modelStyle&&(t.modelStyle=this.modelStyle.getDocumentData()),this.phoneWA&&(t.phoneWA=this.phoneWA.getDocumentData()),this.schemaOrg&&(t.schemaOrg=this.schemaOrg.getDocumentData()),this.previewModel&&(t.previewModel=this.previewModel.getDocumentData()),this.searchTag&&(t.searchTag=this.searchTag.getDocumentData()),this.positionBaseModel&&(t.positionBaseModel=this.positionBaseModel.getDocumentData()),this.survey&&(t.survey=this.survey.getDocumentData()),this.acListId!==void 0?t.acListId=this.acListId:t.acListId=null,this.acTagId!==void 0?t.acTagId=this.acTagId:t.acTagId=null,this.acTagName!==void 0?t.acTagName=this.acTagName:t.acTagName=null,this.companyIDAppVD!==void 0?t.companyIDAppVD=this.companyIDAppVD:t.companyIDAppVD=null,this.customerIDAppVD!==void 0?t.customerIDAppVD=this.customerIDAppVD:(t.customerIDAppVD=null,t.companyIDAppVD=null),this.fullSlug!==void 0&&(t.fullSlug=this.fullSlug),this.duplicateSlug!==void 0&&(t.duplicateSlug=this.duplicateSlug),t.parentDynamicModelId=this.parentDynamicModelId?this.parentDynamicModelId:null,t.parentDynamicModelCollectionName=this.parentDynamicModelCollectionName?this.parentDynamicModelCollectionName:null,this.name!=null&&(this.querySearch=this.querySearch?.concat(pe.setSearchParamByWords(this.name))),this.slug!=null&&(this.querySearch=this.querySearch?.concat(pe.setSearchParamByWords(this.slug))),this.fullSlug!=null&&(this.querySearch=this.querySearch?.concat(pe.setSearchParamByWords(this.fullSlug))),this.positionBaseModel?.address!=null&&(this.querySearch=this.querySearch?.concat(pe.setSearchParamByWords(this.positionBaseModel?.address))),this.setQuerySearch(t,this.querySearch),t}saveHeaderSiteAndThankyou(e){return m(this,null,function*(){var t={};this.headerSite&&(t.headerSite=this.headerSite.getDocumentData()),this.thankyou&&(t.thankyou=this.thankyou.getDocumentData()),yield e.get(ke).updateCustom(this.GetNameCollection(),t,this.id)})}haveToFillOtherModels(){return!0}fillOtherModels(e){return m(this,null,function*(){yield Fe(r.prototype,this,"fillOtherModels").call(this,e),yield this.fillParentOrigin(e);let t=[];return t.push(this.previewModel?.fillOtherModels(e,this.language)),yield Promise.all(t),this})}haveToFillOtherModelsInDetail(){return!0}fillOtherModelsInDetail(e){return m(this,null,function*(){yield Fe(r.prototype,this,"fillOtherModelsInDetail").call(this,e);let t=[];return t.push(this.thankyou?.fillOtherModelsInDetail(e,this.language)),t.push(this.headerSite?.fillOtherModelsInDetail(e,this.language)),t.push(this.contactForm?.fillOtherModelsInDetail(e,this.language)),t.push(this.modelStyle?.fillOtherModelsInDetail(e,this.language)),t.push(this.phoneWA?.fillOtherModelsInDetail(e,this.language)),t.push(this.schemaOrg?.fillOtherModelsInDetail(e,this.language)),t.push(this.previewModel?.fillOtherModelsInDetail(e,this.language)),t.push(this.searchTag?.fillOtherModelsInDetail(e,this.language)),t.push(this.positionBaseModel?.fillOtherModelsInDetail(e,this.language)),t.push(this.survey?.fillOtherModelsInDetail(e,this.language)),yield Promise.all(t),this})}static getDetailByOriginEnum(e,t,n,i,a){return m(this,null,function*(){return Le(e,()=>{var s=e.get(ke),o=s.getDb();return new Promise((l,c)=>m(null,null,function*(){var u=[];u.push(xe("originId","==",t)),n&&u.push(xe("language","==",n)),u.push(ui(1));let d=gn(Jr(o,"origins"),...u),f=yield Jn(d),{GeneralModel:p}=yield import("./chunk-F5PI2FPD.js");var g=f.docs.map(v=>new p("origins",v));if(g.length==0){console.error(`getDetailByOriginEnum. Documento origins non trovato. languageSigla: ${n}, originId: ${t}`),c(`getDetailByOriginEnum. Documento origins non trovato. languageSigla: ${n}, originId: ${t}`);return}let y=g[0];!a&&i!==void 0&&i&&(yield y.fillOtherModelsInDetail(e)),l(y)}))})})}static getDetailOrigin(e,t,n,i){return Le(e,()=>{var a=e.get(ke),s=a.getDb();return new Promise((o,l)=>m(null,null,function*(){let{GeneralModel:c}=yield import("./chunk-F5PI2FPD.js");var u=new c("origins");let d=ci(s,u.GetNameCollection(),t),f=yield Xc(d);if(!f.exists()){i||console.warn(`getDetailOrigin No such document! '${u.GetNameCollection()}'`,t),o(void 0);return}let p=u?.getNewInstance(f);(p.haveToFillOtherModelsInDetail()||n!==void 0&&n)&&(yield p.fillOtherModelsInDetail(e)),o(p)}))})}fillParentOrigin(e){return m(this,null,function*(){this.parentOriginId!=null&&this.parentOriginId!=this.originId&&this.parentDynamicModelId==null?this.parentOrigin=yield r.getDetailByOriginEnum(e,this.parentOriginId,this.language,void 0,!0):this.parentDynamicModelId&&this.parentDynamicModelId!=this.id&&(this.parentDynamicModelCollectionName=="origins"?this.parentOrigin=yield r.getDetailOrigin(e,this.parentDynamicModelId):(yield r.fillParentDynamicModel(e,this.parentDynamicModelId,this.parentDynamicModelCollectionName,this.parentDynamicModelInfo,this.parentDynamicModel),this.parentDynamicModel&&this.parentDynamicModel.fullSlug))})}fillParentDynamicModel(e){return m(this,null,function*(){return yield r.fillParentDynamicModelFromSeoBase(e,this)})}static fillParentDynamicModelFromSeoBase(e,t){return m(this,null,function*(){return yield r.fillParentDynamicModel(e,t.parentDynamicModelId,t.parentDynamicModelCollectionName,t.parentDynamicModelInfo,t.parentDynamicModel)})}static fillParentDynamicModel(e,t,n,i,a){return m(this,null,function*(){if(t){var s=e.get(en).getDynamicModels(),o=s.find(c=>c.nameCollection==n);if(o){i=o;var l=o?.getInstanceCallback();return a=yield e.get(ke).getDetail(t,l),a}}})}haveDuplicateSlug(){return this.duplicateSlug??!1}getFullSlug(){return this.fullSlug?this.fullSlug?.startsWith("/")?this.fullSlug:"/"+this.fullSlug:"/"}getFullSlugWithLanguage(){var e=this.getFullSlug(),t="";return this.language&&jx.multiLanguageActive&&(t=e.includes(`${this.language}/`)?"":`/${this.language}/`),e=`${t}${e}`,e=e.split("//").join("/"),e}getCompleteParentSlug(){return this.getParentSlugInner(this)}getParentSlugInner(e){if(e.parentOrigin){var t=this.getParentSlugInner(e.parentOrigin);return`${t}/${e.slug}`}return e.slug??""}getCompleteParentSlugAsync(e,t){return m(this,null,function*(){var n=yield this.getParentSlugInnerAsync(e,this,t);return n=n.startsWith("/")?n:"/"+n,n})}getParentSlugInnerAsync(e,t,n){return m(this,null,function*(){return new Promise(((i,a)=>m(this,null,function*(){if(t.parentOriginId!=null&&t.parentDynamicModelId==null){if(t.parentOrigin!=null){var o=yield this.getParentSlugInnerAsync(e,t.parentOrigin,n);i(`${o}/${t.slug}`);return}var s=yield r.getDetailByOriginEnum(e,t.parentOriginId,n,void 0,!0),o=this.getParentSlugInner(s);i(`${o}/${t.slug}`);return}else if(t.parentDynamicModelId!=null){if(t.parentOrigin!=null){var o=yield this.getParentSlugInnerAsync(e,t.parentOrigin,n);i(`${o}/${t.slug}`);return}if(t.parentDynamicModelCollectionName=="origins"){var l=yield r.getDetailOrigin(e,t.parentDynamicModelId),o=yield this.getParentSlugInnerAsync(e,l,n);i(`${o}/${t.slug}`)}else{if(t.parentDynamicModel!=null){var o=yield this.getParentSlugInnerAsync(e,t.parentDynamicModel,n);i(`${o}/${t.slug}`);return}var c=yield r.fillParentDynamicModelFromSeoBase(e,t);if(c){var o=this.getParentSlugInner(c);i(`${o}/${t.slug}`)}else i(`${t.slug}`)}return}i(t.slug??"")})))})}getParentsAsync(e,t){return m(this,null,function*(){var n=[];return yield this.getParentAsyncInner(e,this,n,t),n})}getParentAsyncInner(e,t,n,i){return m(this,null,function*(){return new Promise(((a,s)=>m(this,null,function*(){if(t.parentOriginId!=null){if(t.parentOrigin!=null){var o=yield this.getParentAsyncInner(e,t.parentOrigin,n,i);n.push(t),a(o);return}var l=yield r.getDetailByOriginEnum(e,t.parentOriginId,i,void 0,!0);n.push(t),a(l);return}else if(t.parentDynamicModelId!=null){if(t.parentOrigin!=null){var o=yield this.getParentAsyncInner(e,t.parentOrigin,n,i);n.push(t),a(o);return}if(t.parentDynamicModelCollectionName=="origins"){var c=yield r.getDetailOrigin(e,t.parentDynamicModelId),o=yield this.getParentAsyncInner(e,c,n,i);n.push(t),a(o)}else{if(t.parentDynamicModel!=null){var o=yield this.getParentAsyncInner(e,t.parentDynamicModel,n,i);n.push(t),a(o);return}var u=yield r.fillParentDynamicModelFromSeoBase(e,t);if(u){var o=yield this.getParentAsyncInner(e,u,n,i);n.push(t),a(o)}else n.push(t),a(t)}return}else{var d=t?.GetNameCollection();if(d=="searchModels"&&(d=t?.originNameCollection),d!="origins"){let g=new Map;g.set("isSitemap",!0);let{GeneralManager:y,GeneralManagerParams:v}=yield import("./chunk-F5PI2FPD.js");var f=yield new y(e,"origins").getListPromise(new v(void 0,void 0,void 0,void 0,void 0,void 0,g)),p=f.find(T=>T.json.dynamicModelCollectionName==d);if(p)var o=yield this.getParentAsyncInner(e,p,n,i)}}n.push(t),a(t)})))})}preDeleteModel(e){return m(this,null,function*(){yield Fe(r.prototype,this,"preDeleteModel").call(this,e),yield this.seo?.preDeleteModel(e),yield this.headerSite?.preDeleteModel(e),yield this.thankyou?.preDeleteModel(e),yield this.phoneWA?.preDeleteModel(e),yield this.contactForm?.preDeleteModel(e),yield this.modelStyle?.preDeleteModel(e),yield this.schemaOrg?.preDeleteModel(e),yield this.previewModel?.preDeleteModel(e),yield this.searchTag?.preDeleteModel(e),yield this.positionBaseModel?.preDeleteModel(e),yield this.survey?.preDeleteModel(e)})}haveNameFront(){return!1}getName(){return this.nameFront?this.nameFront:this.name?this.name:""}getTranslatableFields(){let e=[...super.getTranslatableFields(),qe.slug("slug","Slug")];return this.haveNameFront()&&e.push(qe.text("nameFront","Nome pubblico").withAccessors(t=>t.nameFront?t.nameFront:t.name,(t,n)=>{t.nameFront=n})),e}getTranslatableChildren(){return[...super.getTranslatableChildren(),Re.one("seo","SEO",this.seo),Re.one("headerSite","Header",this.headerSite),Re.one("previewModel","Anteprima",this.previewModel),Re.one("contactForm","Form di contatto",this.contactForm),Re.one("thankyou","Pagina di ringraziamento",this.thankyou),Re.one("searchTag","Parole chiave",this.searchTag),Re.one("survey","Questionario",this.survey)]}duplicate(e,t,n,i,a){return m(this,null,function*(){let s=this.id;var o=this.slug;if(o!==""){let{TranslationBaseManager:d}=yield import("./chunk-Q7Q3WUDT.js");var l;try{l=yield e.get(d).getTranslationGeminiText(this.slug,n,!0,!1)}catch(f){console.error("duplicate: traduzione slug fallita, uso lo slug originale",f)}this.slug=l??o,o==this.slug&&!n&&(this.slug=`${this.slug}-copy`),this.slug=fh.makeSlug(this.slug)}var c=yield Fe(r.prototype,this,"duplicate").call(this,e,t,n,i,a),u=c.id;if(c.name=`${c.name}`,i&&n&&c.haveNameFront()){let{TranslationBaseManager:d}=yield import("./chunk-Q7Q3WUDT.js"),f=c.nameFront,p=f||c.name;try{c.nameFront=(yield e.get(d).getTranslationGeminiText(p,n,!0,!1))??f}catch(g){console.error("duplicate: traduzione nameFront fallita, resta l'originale",g)}}try{let d=[];if(t&&t("Componenti..."),console.log("duplicate components...",this.getName(),s,u),c.seo&&d.push(c.seo.duplicate(e,s,u,t,n,i,a)),c.headerSite&&d.push(c.headerSite.duplicate(e,s,u,t,n,i,a)),c.thankyou&&d.push(c.thankyou.duplicate(e,s,u,t,n,i,a)),c.phoneWA&&d.push(c.phoneWA.duplicate(e,s,u,t,n,i,a)),c.contactForm&&d.push(c.contactForm.duplicate(e,s,u,t,n,i,a)),c.modelStyle&&d.push(c.modelStyle.duplicate(e,s,u,t,n,i,a)),c.schemaOrg&&d.push(c.schemaOrg.duplicate(e,s,u,t,n,i,a)),c.previewModel&&d.push(c.previewModel.duplicate(e,s,u,t,n,i,a)),c.searchTag&&d.push(c.searchTag.duplicate(e,s,u,t,n,i,a)),c.positionBaseModel&&d.push(c.positionBaseModel.duplicate(e,s,u,t,n,i,a)),c.survey&&d.push(c.survey.duplicate(e,s,u,t,n,i,a)),yield Promise.all(d),n&&c.parentDynamicModelId&&c.parentDynamicModelCollectionName)try{let f=yield e.get(ke).getTranslatedModelId(e,n,c.parentDynamicModelCollectionName,c.parentDynamicModelId);f?c.parentDynamicModelId=f:(console.warn(`duplicate: nessun padre in lingua '${n}' per ${c.parentDynamicModelCollectionName}/${c.parentDynamicModelId} \u2014 il padre viene tolto e l'URL di "${c.getName()}" perde un livello`),c.parentDynamicModelId=void 0,c.parentDynamicModelCollectionName=void 0)}catch(f){console.warn("duplicate: rimappatura del padre fallita, resta quello della lingua di partenza",f)}yield e.get(ke).update(c)}catch(d){console.error("error",d),c.seo?.og_image?.clear(),yield e.get(ke).update(c)}return c})}havePositionBaseModel(){return this.positionBaseModel!=null}hasAC(){return this.acListId!==void 0&&this.acListId!==null}onSelectedList(e){this.acListId=e.id}onSelectedTag(e){this.acTagId=e.id,this.acTagId?this.acTagName=e.tag:this.acTagName=void 0}hasVD(){return this.customerIDAppVD!==void 0&&this.customerIDAppVD!==null}onSelectedCompany(e){this.companyIDAppVD=e.id}onSelectedCustomer(e){this.customerIDAppVD=e.id}buildSchemaOrgCode(e){}getOgImageFallbackUrl(){return[this.previewModel?.multimedia,this.headerSite?.image,...this.headerSite?.multimedias??[]].find(t=>!!t?.url)?.url}};var xy=class r{title;mandatory;value;constructor(e){e&&this.setData(e)}setData(e){e&&(this.title=e.title,this.mandatory=e.mandatory??!1,this.value=e.value)}getDocumentData(){var e={};return e.title=this.title?this.title:null,e.mandatory=this.mandatory!=null?this.mandatory:null,e.value=this.value?this.value:null,e}static setDataInner(e){return new r(e)}static getDocumentDataInner(e,t,n="form"){return t&&(e[n]=t.getDocumentData()),e}preDeleteModel(e){return m(this,null,function*(){})}getFormField(){return fh.makeSlug(this.title)}};var mE=class r{title;correct;constructor(e){e&&this.setData(e)}setData(e){e&&(this.title=e.title,this.correct=e.correct??!1)}getDocumentData(){var e={};return e.title=this.title?this.title:null,e.correct=this.correct!=null?this.correct:null,e}static setDataInner(e){return new r(e)}static getDocumentDataInner(e,t,n="answer"){return t&&(e[n]=t.getDocumentData()),e}preDeleteModel(e){return m(this,null,function*(){})}};var Ey=(n=>(n[n.Risposta_Singola=0]="Risposta_Singola",n[n.Risposta_Multipla=1]="Risposta_Multipla",n[n.Risposta_Aperta=2]="Risposta_Aperta",n))(Ey||{}),ij=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(Ey)}getNameByEnum(e){let t=Object.values(Ey);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error CommentTypology name"}visible(e){let t=Object.values(Ey);return!0}};var pE=class r{title;subtitle;typologyId;layoutId;mandatory;quizAnswers=[];quizAnswersValue=[];quizOpenAnswer;constructor(e){e&&this.setData(e)}setData(e){e&&(this.title=e.title,this.subtitle=e.subtitle,this.typologyId=e.typologyId??0,this.layoutId=e.layoutId??0,this.mandatory=e.mandatory??!0,this.quizAnswersValue=e.quizAnswersValue??[],this.quizOpenAnswer=e.quizOpenAnswer,this.quizAnswers=r.setAnswers(e))}getDocumentData(){var e={};return e.title=this.title?this.title:null,e.subtitle=this.subtitle?this.subtitle:null,e.typologyId=this.typologyId!=null?this.typologyId:null,e.layoutId=this.layoutId!=null?this.layoutId:null,e.mandator
124y=this.mandatory!=null?this.mandatory:null,e.quizAnswersValue=this.quizAnswersValue!=null?this.quizAnswersValue:null,e.quizOpenAnswer=this.quizOpenAnswer!=null?this.quizOpenAnswer:null,e=r.getAnswers(e,this.quizAnswers,"quizAnswers"),e}static setDataInner(e){return new r(e)}static getDocumentDataInner(e,t,n="quizAnswers"){return t&&(e[n]=t.getDocumentData()),e}static setAnswers(e){var t=[];return e.quizAnswers?(t=e.quizAnswers,t.forEach((n,i)=>{t[i]=mE.setDataInner(n)})):t=[],t}static getAnswers(e,t,n="item"){if(t){var i=[];t.forEach((a,s)=>{var o=a.getDocumentData();i[s]=o}),e[n]=i}else e[n]=null;return e}preDeleteModel(e){return m(this,null,function*(){})}isValid(){if(!this.mandatory)return!0;switch(this.typologyId){case 2:return this.quizOpenAnswer;default:var e=this.quizAnswersValue?.findIndex(t=>t==!0);return e!=-1}}isCorrectAnswer(e){switch(this.typologyId){case 2:return!0;default:return this.quizAnswers[e].correct&&this.quizAnswersValue[e]}}isWrongAnswer(e){switch(this.typologyId){case 2:return!1;default:return!this.quizAnswers[e].correct&&this.quizAnswersValue[e]}}isCorrect(){switch(this.typologyId){case 0:var e=this.quizAnswersValue.findIndex(n=>n==!0);return this.isCorrectAnswer(e);case 1:var t=!0;return this.quizAnswers?.forEach((n,i)=>{this.quizAnswersValue[i]&&(t=t&&this.isCorrectAnswer(i))}),t;default:return!0}}getUserAnswer(){var e="";switch(this.typologyId){case 0:case 1:var t=[];this.quizAnswersValue?.forEach((n,i)=>{n&&t.push(this.quizAnswers[i].title)}),e=t.join(", ");break;case 2:e=this.quizOpenAnswer;break}return e}};var mh=class r extends gs{getNewInstance(e){return new r(e)}GetNameCollection(){return"quiz"}title;description;layoutId;quizRequests=[];anonymous;quizFormFields=[];showResetStepper;targetEmail;footerEmail;avantiLabel;inviaLabel;resetLabel;indietroLabel;formLabel;sendLabel;privacyLabel;errorDomandaLabel;errorGeneralLabel;obbligatorioLabel;constructor(e){if(super(e),e)this.setData(e);else{this.quizFormFields=[];var t=new xy;t.title="Email",t.mandatory=!0,this.quizFormFields.push(t),this.avantiLabel="Avanti",this.inviaLabel="Invia",this.resetLabel="Reset",this.indietroLabel="Indietro",this.formLabel="Form",this.sendLabel="Invia questionario",this.privacyLabel="Dichiaro di aver letto l'informativa privacy *",this.errorDomandaLabel="Devi ancora completare la domanda",this.errorGeneralLabel="Inserisci tutti i dati",this.obbligatorioLabel="\xC8 obbligatorio"}}setData(e){super.setData(e);let t=this.getJson(e);return t&&(this.title=t.title,this.targetEmail=t.targetEmail,this.anonymous=t.anonymous??!1,this.description=t.description??null,this.footerEmail=t.footerEmail??null,this.layoutId=t.layoutId??0,this.quizRequests=r.setRequests(t),this.quizFormFields=r.setForms(t),this.showResetStepper=t.showResetStepper??!1,this.avantiLabel=t.avantiLabel??"Avanti",this.inviaLabel=t.inviaLabel??"Invia",this.resetLabel=t.resetLabel??"Reset",this.indietroLabel=t.indietroLabel??"Indietro",this.formLabel=t.formLabel??"Form",this.sendLabel=t.sendLabel??"Invia questionario",this.privacyLabel=t.privacyLabel??"Dichiaro di aver letto l'informativa privacy *",this.errorDomandaLabel=t.errorDomandaLabel??"Devi ancora completare la domanda",this.errorGeneralLabel=t.errorGeneralLabel??"Inserisci tutti i dati",this.obbligatorioLabel=t.obbligatorioLabel??"\xC8 obbligatorio"),this}getDocumentData(e){var t=super.getDocumentData(e);return t.title=this.title?this.title:null,t.anonymous=this.anonymous!=null?this.anonymous:null,t.description=this.description?this.description:null,t.layoutId=this.layoutId!=null?this.layoutId:null,t=r.getRequests(t,this.quizRequests,"quizRequests"),t=r.getForms(t,this.quizFormFields,"quizFormFields"),t.showResetStepper=this.showResetStepper!=null?this.showResetStepper:null,t.targetEmail=this.targetEmail!=null?this.targetEmail:null,t.footerEmail=this.footerEmail!=null?this.footerEmail:null,t.avantiLabel=this.avantiLabel!=null?this.avantiLabel:null,t.inviaLabel=this.inviaLabel!=null?this.inviaLabel:null,t.resetLabel=this.resetLabel!=null?this.resetLabel:null,t.indietroLabel=this.indietroLabel!=null?this.indietroLabel:null,t.formLabel=this.formLabel!=null?this.formLabel:null,t.sendLabel=this.sendLabel!=null?this.sendLabel:null,t.privacyLabel=this.privacyLabel!=null?this.privacyLabel:null,t.errorDomandaLabel=this.errorDomandaLabel!=null?this.errorDomandaLabel:null,t.errorGeneralLabel=this.errorGeneralLabel!=null?this.errorGeneralLabel:null,t.obbligatorioLabel=this.obbligatorioLabel!=null?this.obbligatorioLabel:null,t}static setRequests(e){var t=[];return e.quizRequests?(t=e.quizRequests,t.forEach((n,i)=>{t[i]=pE.setDataInner(n)})):t=[],t}static getRequests(e,t,n="quizRequests"){if(t){var i=[];t.forEach((a,s)=>{var o=a.getDocumentData();i[s]=o}),e[n]=i}else e[n]=null;return e}static setForms(e){var t=[];return e.quizFormFields?(t=e.quizFormFields,t.forEach((n,i)=>{t[i]=xy.setDataInner(n)})):t=[],t}static getForms(e,t,n="quizFormFields"){if(t){var i=[];t.forEach((a,s)=>{var o=a.getDocumentData();i[s]=o}),e[n]=i}else e[n]=null;return e}isAnonymous(){return this.anonymous??!1}haveTargetEmail(){return!!(this.targetEmail&&this.targetEmail.length>0)}getName(){return this.name?this.name:this.title?this.title:""}static getIcon(){return"quiz"}getIcon(){return r.getIcon()}getFormEmail(){return this.quizFormFields!=null&&this.quizFormFields.length>0?this.quizFormFields[0].value:""}isAllCorrect(){var e=!0;return this.quizRequests?.forEach(t=>{e=e&&t.isCorrect()}),e}getNCorrect(){return this.quizRequests.filter(e=>e.isCorrect()).length}getPercentualCorrect(){var e=0;return this.quizRequests?.length==0?e=0:e=this.getNCorrect()/this.quizRequests.length,e*100}getPercentualCorrectLabel(){return this.getPercentualCorrect().toFixed(2)+"%"}haveToFillOtherModels(){return!1}fillOtherModels(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModels").call(this,e),this})}haveToFillOtherModelsInDetail(){return!1}fillOtherModelsInDetail(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModelsInDetail").call(this,e),this})}preDeleteModel(e){return m(this,null,function*(){yield Fe(r.prototype,this,"preDeleteModel").call(this,e)})}duplicateQuiz(e,t,n,i,a,s){return m(this,null,function*(){let o=this.id,l=this.parentDynamicModelId;this.parentDynamicModelId=i;var c=yield Fe(r.prototype,this,"duplicate").call(this,e,t,n,a,s),u=c.id;try{t&&t("Aggiornamento..."),yield e.get(ke).update(c)}catch(d){console.error("error",d),yield e.get(ke).update(c)}return c})}};var ul=class extends Ki{origin;activeClass;haveMultimedia;constructor(e,t,n,i,a,s,o){super(e,t,a,s),this.origin=n,this.activeClass=i,this.haveMultimedia=o}},Iu=class r extends ke{constructor(e){super(e)}getDetailBySlug(e,t){return Le(this.injector,()=>new Promise((n,i)=>m(this,null,function*(){var a=[];a.push(xe("slug","==",e)),t&&a.push(xe("language","==",t)),a.push(u
124i(1));let s=gn(Jr(this.getDb(),this.getInstanceModel().GetNameCollection()),...a);var l=(yield Jn(s)).docs.map(c=>this.getNewModel(c));if(l.length==0){i(`Documento ${this.getInstanceModel().GetNameCollection()} non trovato`);return}n(l[0])})))}getBigQuerySelectSource(e){return super.getBigQuerySelectSource(e)+` 125 JSON_EXTRACT(data, "$.order") AS myOrder, 126 JSON_EXTRACT(data, "$.active") AS active, 127 PARSE_DATETIME("%s", JSON_EXTRACT_SCALAR(JSON_EXTRACT(DATA, "$.publishDate"), "$['_seconds']")) AS publishDate, 128 `}getBigQuerySelectDest(e){return super.getBigQuerySelectDest(e)+` 129 `}getBigQueryWhere(e){let t=super.getBigQueryWhere(e);if(e?.origin!=null&&e?.origin?.id!==ue.getAllId()&&(t+=` AND originId = '${e?.origin.id}' `),e?.activeClass!=null&&e?.activeClass?.id!==ue.getAllId())switch(e?.activeClass.id){case 0:t+=" AND active = 'true' ";break;case 1:t+=" AND active = 'false' ";break}return t}getFilters(e,t){var n=super.getFilters(e,t);if(e?.origin&&e?.origin?.id!=null&&e?.origin?.id!==ue.getAllId()&&n.push(xe("originId","==",e?.origin?.id)),e?.activeClass&&e?.activeClass?.id!==ue.getAllId())switch(e?.activeClass?.id){case 0:n.push(xe("active","==",!0));break;case 1:n.push(xe("active","==",!1));break}return e?.haveMultimedia!=null&&n.push(xe("multimedia.url",e?.haveMultimedia?"!=":"==",null)),n}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var fi=class extends ul{withPosition;startDate;endDate;filterDate;filterDateOrder;constructor(e,t,n,i,a,s,o,l,c,u,d,f){super(e,t,n,i,a,s,f),this.withPosition=o,this.startDate=l,this.endDate=c,this.filterDate=u,this.filterDateOrder=d??ke.orderDescKey}},Gn=class r extends Iu{constructor(e){super(e)}getFilters(e,t){var n=t||e?.withPosition,i=super.getFilters(e,void 0);return e?.withPosition!=null&&e?.withPosition&&(i.push(xe("positionBaseModel","!=",null)),i.push(Go("positionBaseModel","asc"))),e?.origin!=null&&e?.origin?.id!==ue.getAllId()&&i.push(xe("originId","==",e?.origin?.id)),e?.startDate!=null&&i.push(xe(e.filterDate??"insertDate",">=",e?.startDate)),e?.endDate!=null&&i.push(xe(e.filterDate??"insertDate","<=",e?.endDate)),i}getBigQuerySelectSource(e){return super.getBigQuerySelectSource(e)+` 130 JSON_EXTRACT(data, "$.previewModel.description") AS previewModel_description, 131 JSON_EXTRACT_STRING_ARRAY(DATA, "$.searchTag.tags") AS searchTag_tags, 132 JSON_EXTRACT_STRING_ARRAY(DATA, "$.searchTag.tagsSystem") AS searchTag_tagsSystem, 133 `}getBigQuerySelectDest(e){return super.getBigQuerySelectDest(e)+` 134 --previewModel_description, 135 `}doBigQueryWhereBase(){return!1}getBigQueryWhere(e){let t=super.getBigQueryWhere(e);var n=this.cleanTextForBigQuery(e?.params?.searchField);return n!=null&&n.length>0&&(t+=" AND (",t+=` '${n}' IN UNNEST(querySearch)`,t+=` OR EXISTS (SELECT * FROM UNNEST(searchTag_tags) as x where LOWER(x) LIKE LOWER('%${n}%') )`,t+=` OR EXISTS (SELECT * FROM UNNEST(searchTag_tagsSystem) as x where LOWER(x) LIKE LOWER('%${n}%') )`,t+=` OR LOWER(previewModel_description) LIKE LOWER('%${n}%')`,t+=" )"),t}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var gE=class extends fi{parentDynamicModelId;constructor(e,t,n,i,a,s,o){super(e,t,n,i,a,s),this.parentDynamicModelId=o}},ph=class r extends Gn{getInstanceModel(){return new mh}getNewModel(e){return new mh(e)}constructor(e){super(e)}getFilters(e,t){let n=super.getFilters(e);return e?.parentDynamicModelId!=null&&n.push(xe("parentDynamicModelId","==",e?.parentDynamicModelId)),n}getBigQuerySelectSource(e){return super.getBigQuerySelectSource(e)+` 136 --JSON_EXTRACT(data, "$.previewModel.description") AS previewModel_description, 137 `}getBigQueryWhere(e){return super.getBigQueryWhere(e)}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var $m=(t=>(t[t.Cover=0]="Cover",t[t.Contain=1]="Contain",t))($m||{}),yE=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values($m)}getNameByEnum(e){let t=Object.values($m);switch(e){case t[0]:case 0:return this.translation?.enum_image_size?.cover??"Non Attivo";case t[1]:case 1:return this.translation?.enum_image_size?.contain??"Non Attivo";default:return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error CommentTypology name"}}getInstanceAll(){return this.getInstance(void 0,ue.getAllId(),"Nessuno")}visible(e){let t=Object.values($m);return!0}getOrderByEnum(e){let t=this.getEnumValues();switch(e){case t[0]:case 0:return 0;case t[1]:case 1:return 1;default:return-1}}getIconByEnum(e){switch(e){case 0:return"width_full";case 1:return"fullscreen";default:return"circle"}}getColor(){return"var(--black-color)"}
137getTooltipText(){let e=Object.values($m),t=Number(this.id);switch(t){case e[0]:case 0:return"L'immagine riempir\xE0 tutto lo spazio a disposizione. L'immagine verr\xE0 tagliata";case e[1]:case 1:return"L'immagine verr\xE0 visualizzata per intero";default:return this.getNameByEnum(t)}}};var zs=class{multimedia;sizeId;enableLightbox;constructor(e){e?this.setData(e):this.sizeId=0}setData(e){e&&(this.multimedia=Ee.setDataInner(e?.multimedia),this.sizeId=e.sizeId??0,this.enableLightbox=e.enableLightbox)}getDocumentData(){var e={};return e=Ee.getDocumentDataInner(e,this.multimedia,"multimedia"),e.sizeId=this.sizeId?this.sizeId:null,e.enableLightbox=this.enableLightbox?this.enableLightbox:null,e}getImage(){return this.multimedia}getImageEnableLightbox(){return this.enableLightbox??!1}preDeleteModel(e){return m(this,null,function*(){yield this.multimedia?.deleteFile(e)})}duplicate(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){this.multimedia=yield this.multimedia?.duplicateByReplaceId(e,t,n,i,a,s,o,l,c)})}getImageSize(){switch(this.sizeId){case 0:return"cover";case 1:return"contain";default:return"cover"}}};var gh=(i=>(i[i.Primary=0]="Primary",i[i.Secondary=1]="Secondary",i[i.Dark=2]="Dark",i[i.Grey=3]="Grey",i))(gh||{}),Gm=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(gh)}getNameByEnum(e){let t=Object.values(gh);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error CommentTypology name"}getInstanceAll(){return this.getInstance(void 0,ue.getAllId(),"Nessuno")}visible(e){let t=Object.values(gh);return!0}getIcon(){return"circle"}getColorByEnum(e){let t=Object.values(gh);switch(e){case 0:return"var(--primary-color-site)";case 1:return"var(--secondary-color-site)";case 2:return"var(--black-color-site)";case 3:return"var(--gray-color-site)";default:return""}}getClassColors(e){let t=Object.values(gh);switch(e){case 0:return"sectionStyle--primary";case 1:return"sectionStyle--secondary";case 2:return"sectionStyle--dark";case 3:return"sectionStyle--grey";default:return""}}};var Wm=(n=>(n[n.Color=0]="Color",n[n.Image=1]="Image",n[n.Video=2]="Video",n))(Wm||{}),yh=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(Wm)}getNameByEnum(e){let t=Object.values(Wm);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error SectionStyleBackgroundTypology name"}getInstanceAll(){return this.getInstance(void 0,ue.getAllId(),"Nessuno")}visible(e){let t=Object.values(Wm);return!0}getIconByEnum(e){switch(e){case 0:return"circle";case 1:return"image";case 2:return"movie";default:return"block"}}getColor(){return"var(--black-color)"}};var vE=(i=>(i[i.S=0]="S",i[i.M=1]="M",i[i.L=2]="L",i[i.XL=3]="XL",i))(vE||{}),qm=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(vE)}getNameByEnum(e){let t=Object.values(vE);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error space name"}getInstanceAll(){return this.getInstance(void 0,ue.getAllId(),"Nessuno")}visible(e){let t=Object.values(vE);return!0}getColorByEnum(e){return"#005e83"}getOrderByEnum(e){let t=this.getEnumValues();switch(e){case t[0]:case 0:return 0;case t[1]:case 1:return 1;case t[2]:case 2:return 2;case t[3]:case 3:return 3;default:return-1}}getSpace(e,t){if(t)switch(e){case 0:return"12px";case 1:return"25px";case 2:return"50px";case 3:return"75px";default:return"0px"}else switch(e){case 0:return"25px";case 1:return"50px";case 2:return"100px";case 3:return"150px";default:return"0px"}}};var Km=class{backgroundTypologyId;backgroundTypeColorsId;forceTextWhite;paddingTopId;paddingBottomId;marginTopId;marginBottomId;dividerTopId;dividerBottomId;dividerAdditionalSpace;classes;imageModel;video;constructor(e){e?this.setData(e):(this.video=new tn,this.imageModel=new zs)}setData(e){e&&(this.backgroundTypologyId=e.backgroundTypologyId,this.backgroundTypeColorsId=e.backgroundTypeColorsId,this.forceTextWhite=e.forceTextWhite,this.paddingTopId=e.paddingTopId,this.paddingBottomId=e.paddingBottomId,this.marginTopId=e.marginTopId,this.marginBottomId=e.marginBottomId,this.dividerTopId=e.dividerTopId,this.dividerBottomId=e.dividerBottomId,this.dividerAdditionalSpace=e.dividerAdditionalSpace,this.classes=e.classes,e?.imageModel?this.imageModel=new zs(e.imageModel):this.imageModel=new zs,e?.video?this.video=new tn(e.video):this.video=new tn)}getDocumentData(){var e={};return e.backgroundTypologyId=this.backgroundTypologyId!=null?this.backgroundTypologyId:null,e.backgroundTypeColorsId=this.backgroundTypeColorsId!=null?this.backgroundTypeColorsId:null,e.paddingTopId=this.paddingTopId!=null?this.paddingTopId:null,e.paddingBottomId=this.paddingBottomId!=null?this.paddingBottomId:null,e.marginTopId=this.marginTopId!=null?this.marginTopId:null,e.marginBottomId=this.marginBottomId!=null?this.marginBottomId:null,e.dividerTopId=this.dividerTopId!=null?this.dividerTopId:null,e.dividerBottomId=this.dividerBottomId!=null?this.dividerBottomId:null,e.dividerAdditionalSpace=this.dividerAdditionalSpace!=null?this.dividerAdditionalSpace
137:null,e.classes=this.classes!=null?this.classes:null,e.forceTextWhite=this.forceTextWhite!=null?this.forceTextWhite:!1,this.imageModel&&(e.imageModel=this.imageModel.getDocumentData()),this.video&&(e.video=this.video.getDocumentData()),e}fillOtherModels(e,t){return m(this,null,function*(){})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){})}preDeleteModel(e){return m(this,null,function*(){yield this.imageModel?.preDeleteModel(e),yield this.video?.preDeleteModel(e)})}duplicateSectionBase(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){yield this.imageModel?.duplicate(e,t,n,i,a,s,o,l,c),yield this.video?.duplicateSectionBase(e,t,n,i,a,s,o,l,c)})}isBackgroundColor(){return this.backgroundTypologyId==0}isBackgroundVideo(){return this.backgroundTypologyId==2}hasBackgroundVideo(){return this.isBackgroundVideo()&&(this.video?.haveVideo()??!1)}getBackgroundClass(){if(this.backgroundTypologyId!=null||this.backgroundTypologyId!=null)switch(this.backgroundTypologyId){case 0:return this.getBackgroundColorByEnum()??"";default:return""}return""}getBackgroundColorByEnum(){if(this.backgroundTypeColorsId!=null)return new Gm(void 0).getClassColors(this.backgroundTypeColorsId)}getSpaceByEnum(e,t){return new qm(void 0).getSpace(e,t)}getStyleBackgroundTypologyClassName(){return new yh(this.backgroundTypologyId).getName()}getTextToSpeech(e){return m(this,null,function*(){})}};var Ym=class extends Ki{activeClass;parentId;sectionTagId;onlySectionTagId;sectionType;forceFillOriginRoot;typologyId;isTemplate;templateId;constructor(e,t,n,i,a,s,o,l,c,u,d,f,p){super(e,t,u,d),this.activeClass=n,this.parentId=i,this.sectionTagId=a,this.onlySectionTagId=s,this.sectionType=o,this.forceFillOriginRoot=l,this.typologyId=c,this.isTemplate=f,this.templateId=p}},vn=class r extends ke{getInstanceModel(){return new js}getNewModel(e){return new js(e)}constructor(e){super(e)}getFilters(e,t){let n=[];if(e?.parentId&&n.push(xe("parentId","==",e?.parentId)),e?.isTemplate!=null&&e?.isTemplate&&n.push(xe("isTemplate","==",e?.isTemplate)),e?.templateId!=null&&n.push(xe("templateId","==",e?.templateId)),e?.sectionTagId!=null&&e?.sectionTagId!=null&&e?.sectionTagId!=ue.getAllId()&&n.push(xe("sectionTagId","==",e?.sectionTagId)),e?.onlySectionTagId&&n.push(xe("sectionTagId","!=",null)),e?.sectionType!=null&&e?.sectionType!=null&&n.push(xe("sectionType","==",e?.sectionType)),e?.typologyId!=null&&e?.typologyId!=null&&n.push(xe("typologyId","==",e?.typologyId)),e?.activeClass!=null&&e?.activeClass?.id!==ue.getAllId())switch(e?.activeClass.id){case 0:n.push(xe("active","==",!0));break;case 1:n.push(xe("active","==",!1));break}return n=this.setBaseFilters(n,e,!0),n}getDetailBySectionTagEnum(e,t){return Le(this.injector,()=>new Promise((n,i)=>m(this,null,function*(){var a=[];a.push(xe("sectionTagId","==",e)),t&&a.push(xe("language","==",t)),a.push(ui(1));let s=gn(Jr(this.getDb(),this.getInstanceModel().GetNameCollection()),...a);var l=(yield Jn(s)).docs.map(c=>this.getNewModel(c));if(l.length==0){i(`Documento ${this.getInstanceModel().GetNameCollection()} non trovato`);return}n(l[0])})))}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var dl=class{_title;_subtitle;_description;paragraph;video;get multimedia(){return this.video?.multimedia}set multimedia(e){this.video||(this.video=new tn),this.video.multimedia=e}get videoPlaceholder(){return this.video?.videoPlaceholder}set videoPlaceholder(e){this.video||(this.video=new tn),this.video.videoPlaceholder=e}get youtubeId(){return this.video?.youtubeId}set youtubeId(e){this.video||(this.video=new tn),this.video.youtubeId=e}get typologyId(){return this.video?.typologyId}set typologyId(e){this.video||(this.video=new tn),this.video.typologyId=e}get sizeId(){return this.video?.sizeId}set sizeId(e){this.video||(this.video=new tn),this.video.sizeId=e}get muted(){return this.video?.muted}set muted(e){this.video||(this.video=new tn),this.video.muted=e}get controls(){return this.video?.controls}set controls(e){this.video||(this.video=new tn),this.video.controls=e}get allowDownload(){return this.video?.allowDownload}set allowDownload(e){this.video||(this.video=new tn),this.video.allowDownload=e}get loop(){return this.video?.loop}set loop(e){this.video||(this.video=new tn),this.video.loop=e}get autoplay(){return this.video?.autoplay}set autoplay(e){this.video||(this.video=new tn),this.video.autoplay=e}get overlay(){return this.video?.overlay}set overlay(e){this.video||(this.video=new tn),this.video.overlay=e}generalButton;generalButtonSecondary;constructor(e){e?this.setData(e):this.video=new tn}setData(e){e&&(this._title=e.title,this._subtitle=e.subtitle,this._description=e.description,e?.paragraph?this.paragraph=new $t(e.paragraph):(this.paragraph=new $t,this.paragraph.title=this._title,this.paragraph.subtitle=this._subtitle,this.paragraph.description=this._description),e?.video?this.video=new tn(e.video):this.video=new tn({typologyId:e.typologyId,youtubeId:e.youtubeId,sizeId:e.sizeId,multimedia:e.multimedia,videoPlaceholder:e.videoPlaceholder}),e?.generalButton?this.generalButton=new Ke(e.generalButton):this.generalButton=new Ke,e?.generalButtonSecondary?this.generalButtonSecondary=new Ke(e.generalButtonSecondary):this.generalButtonSecondary=new Ke)}getDocumentData(){var e={};return this.paragraph&&(e.paragraph=this.paragraph.getDocumentData()),this.video&&(e.video=this.video.getDocumentData()),this.generalButton&&(e.generalButton=this.generalButton.getDocumentData()),this.generalButtonSecondary&&(e.generalButtonSecondary=this.generalButtonSecondary.getDocumentData()),e}isYouTube(){return this.video?.isYouTube()??!1}hasDescription(){return this.paragraph?.hasDescription()}fillOtherModels(e,t){return m(this,null,function*(){yield this.generalButton?.fillOtherModels(e,t),yield this.generalButtonSecondary?.fillOtherModels(e,t)})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){yield this.generalButton?.fillOtherModelsInDetail(e,t),yield this.generalButtonSecondary?.fillOtherModelsInDetail(e,t)})}preDeleteModel(e){return m(this,null,function*(){yield this.video?.preDeleteModel(e),yield this.generalButton?.preDeleteModel(e),yield this.generalButtonSecondary?.preDeleteModel(e)})}getTranslatableChildren(){return[Re.one("paragraph","Paragrafo",this.paragraph),Re.one("video","Video",this.video),Re.one("generalButton","Bottone",this.generalButton),Re.one("generalButtonSecondary","Bottone secondario",this.generalButtonSecondary)]}duplicateSectionBase(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){let u=[];this.video&&u.push(this.video.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.generalButton&&u.push(this.generalButton.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.generalButtonSecondary&&u.push(this.generalButtonSecondary.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.paragraph&&u.push(this.paragraph.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),yield Promise.all(u)})}haveVideo(){return this.video?.haveVideo()??!1}getVideoUrl(){return this.video?.getVideoUrl()}getTextToSpeech(e){return m(this,null,function*(){return yield this.paragraph?.getTextToSpeech(e)})}};var Ty=(t=>(t[t.Paragrafo=0]="Paragrafo",t[t.Template=1]="Template",t))(Ty||{}),Xm=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(Ty)}getNameByEnum(e){let t=Object.values(Ty);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error section type name"}visible(e){let t=Object.values(Ty);return!0}getColorByEnum(e){return"#19b817"}getIconByEnum(e){return r.getIcon(e)}static getIcon(e){switch(e){case 0:return"segment";case 1:return"template";default:return""}}};
137var Cy=class r extends Ea{getNewInstance(e){return new r(e)}GetNameCollection(){return"paragraphs"}typologyId;parentId;title;subtitle;description;foto;video;order;active;generalButton;sectionBaseVideo;paragraphTypeId;templateId;template;originRoot;parentOrigin;parentDynamicModel;parentDynamicModelInfo;constructor(e){super(e),e?this.setData(e):this.sectionBaseVideo=new dl}setData(e){super.setData(e);var t=this.getJson(e);return t&&(this.parentId=t.parentId,this.typologyId=t.typologyId,this.title=t.title,this.subtitle=t.subtitle??null,this.description=t.description,this.foto=Ee.setDataInner(t?.foto),this.video=Ee.setDataInner(t?.video),this.order=t.order,this.active=t.active,this.templateId=t.templateId,t?.generalButton?this.generalButton=new Ke(t.generalButton):this.generalButton=new Ke,t?.sectionBaseVideo?this.sectionBaseVideo=new dl(t.sectionBaseVideo):(this.sectionBaseVideo=new dl,this.sectionBaseVideo.multimedia=this.video,this.sectionBaseVideo.typologyId=0 .valueOf()),t?.paragraphTypeId?this.paragraphTypeId=t.paragraphTypeId:this.paragraphTypeId=0),this}getDocumentData(e){var t=super.getDocumentData(e);return this.typologyId!=null&&(t.typologyId=this.typologyId),this.parentId&&(t.parentId=this.parentId),this.title&&(t.title=this.title),t.subtitle=this.subtitle!==void 0?this.subtitle:null,t.description=this.description!==void 0?this.description:null,t=Ee.getDocumentDataInner(t,this.foto,"foto"),t=Ee.getDocumentDataInner(t,this.video,"video"),this.order?t.order=this.order:t.order=0,this.active!==void 0&&(t.active=this.active),this.paragraphTypeId!==void 0&&(t.paragraphTypeId=this.paragraphTypeId),this.templateId!==void 0&&(t.templateId=this.templateId),this.generalButton&&(t.generalButton=this.generalButton.getDocumentData()),this.sectionBaseVideo&&(t.sectionBaseVideo=this.sectionBaseVideo.getDocumentData()),this.title!=null&&(this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(this.title))),this.setQuerySearch(t,this.querySearch),t}getName(){return this.title?this.title:""}static getIcon(){return"view_headline"}haveVideo(){return this.sectionBaseVideo&&this.sectionBaseVideo.haveVideo()}getVideoUrl(){return this.sectionBaseVideo&&this.sectionBaseVideo.getVideoUrl()}haveFoto(){return this.foto&&this.foto.hasUrl()}haveMultimedia(){return this.haveVideo()||this.haveFoto()}preDeleteModel(e){return m(this,null,function*(){yield Fe(r.prototype,this,"preDeleteModel").call(this,e),yield this.foto?.deleteFile(e),yield this.video?.deleteFile(e),yield this.sectionBaseVideo?.preDeleteModel(e)})}haveToFillOtherModels(){return!0}fillOtherModels(e){return m(this,null,function*(){return yield this.generalButton?.fillOtherModels(e,this.language),yield this.sectionBaseVideo?.fillOtherModels(e,this.language),yield this.fillTemplate(e),this})}haveToFillOtherModelsInDetail(){return!0}fillOtherModelsInDetail(e){return m(this,null,function*(){return yield this.generalButton?.fillOtherModelsInDetail(e,this.language),yield this.sectionBaseVideo?.fillOtherModels(e,this.language),yield this.fillTemplate(e),this})}fillTemplate(e){return m(this,null,function*(){this.templateId&&(this.template=yield e.get(vn).getDetail(this.templateId))})}getNameParagraphType(){return new Xm(this.paragraphTypeId).getName()}fillOriginRoot(e){return m(this,null,function*(){[this.originRoot,this.parentDynamicModelInfo]=yield this.getOriginRoot(e),this.parentDynamicModel=this.originRoot})}getOriginRoot(e){return m(this,null,function*(){return js.getOriginRoot(e,this.parentId)})}};var _E=class extends Ki{activeClass;parentId;typologyId;templateId;constructor(e,t,n,i,a,s){super(e,t),this.activeClass=n,this.parentId=i,this.typologyId=a,this.templateId=s}},Sy=class r extends ke{getInstanceModel(){return new Cy}getNewModel(e){return new Cy(e)}constructor(e){super(e)}getFilters(e,t){var n=[];if(e?.parentId!=null&&n.push(xe("parentId","==",e?.parentId)),e?.typologyId!=null&&n.push(xe("typologyId","==",e?.typologyId)),e?.templateId!=null&&n.push(xe("templateId","==",e?.templateId)),e?.activeClass!=null&&e?.activeClass?.id!==ue.getAllId())switch(e?.activeClass.id){case 0:n.push(xe("active","==",!0));break;case 1:n.push(xe("active","==",!1));break}return n=this.setBaseFilters(n,e,!0),n}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var zy={};zy.version="0.18.5";var gl=1200,op=1252,ale=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],SR={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},DR=function(r){ale.indexOf(r)!=-1&&(op=SR[0]=r)};function sle(){DR(1252)}var Do=function(r){gl=r,DR(r)};function AR(){Do(1200),sle()}function pR(r){for(var e=[],t=0,n=r.length;t<n;++t)e[t]=r.charCodeAt(t);return e}function ole(r){for(var e=[],t=0;t<r.length>>1;++t)e[t]=String.fromCharCode(r.charCodeAt(2*t)+(r.charCodeAt(2*t+1)<<8));return e.join("")}function fH(r){for(var e=[],t=0;t<r.length>>1;++t)e[t]=String.fromCharCode(r.charCodeAt(2*t+1)+(r.charCodeAt(2*t)<<8));return e.join("")}var My=function(r){var e=r.charCodeAt(0),t=r.charCodeAt(1);return e==255&&t==254?ole(r.slice(2)):e==254&&t==255?fH(r.slice(2)):e==65279?r.slice(1):r},bE=function(e){return String.fromCharCode(e)},aj=function(e){return String.fromCharCode(e)},wr;var wn=null,Dy=!0,Eu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
137+/=";function jy(r){for(var e="",t=0,n=0,i=0,a=0,s=0,o=0,l=0,c=0;c<r.length;)t=r.charCodeAt(c++),a=t>>2,n=r.charCodeAt(c++),s=(t&3)<<4|n>>4,i=r.charCodeAt(c++),o=(n&15)<<2|i>>6,l=i&63,isNaN(n)?o=l=64:isNaN(i)&&(l=64),e+=Eu.charAt(a)+Eu.charAt(s)+Eu.charAt(o)+Eu.charAt(l);return e}function bs(r){var e="",t=0,n=0,i=0,a=0,s=0,o=0,l=0;r=r.replace(/[^\w\+\/\=]/g,"");for(var c=0;c<r.length;)a=Eu.indexOf(r.charAt(c++)),s=Eu.indexOf(r.charAt(c++)),t=a<<2|s>>4,e+=String.fromCharCode(t),o=Eu.indexOf(r.charAt(c++)),n=(s&15)<<4|o>>2,o!==64&&(e+=String.fromCharCode(n)),l=Eu.indexOf(r.charAt(c++)),i=(o&3)<<6|l,l!==64&&(e+=String.fromCharCode(i));return e}var Kt=(function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node})(),mc=(function(){if(typeof Buffer<"u"){var r=!Buffer.from;if(!r)try{Buffer.from("foo","utf8")}catch{r=!0}return r?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}})();function Cu(r){return Kt?Buffer.alloc?Buffer.alloc(r):new Buffer(r):typeof Uint8Array<"u"?new Uint8Array(r):new Array(r)}function sj(r){return Kt?Buffer.allocUnsafe?Buffer.allocUnsafe(r):new Buffer(r):typeof Uint8Array<"u"?new Uint8Array(r):new Array(r)}var vs=function(e){return Kt?mc(e,"binary"):e.split("").map(function(t){return t.charCodeAt(0)&255})};function $E(r){if(typeof ArrayBuffer>"u")return vs(r);for(var e=new ArrayBuffer(r.length),t=new Uint8Array(e),n=0;n!=r.length;++n)t[n]=r.charCodeAt(n)&255;return e}function Mu(r){if(Array.isArray(r))return r.map(function(n){return String.fromCharCode(n)}).join("");for(var e=[],t=0;t<r.length;++t)e[t]=String.fromCharCode(r[t]);return e.join("")}function lle(r){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(r)}function MR(r){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(r instanceof ArrayBuffer)return MR(new Uint8Array(r));for(var e=new Array(r.length),t=0;t<r.length;++t)e[t]=r[t];return e}var gi=Kt?function(r){return Buffer.concat(r.map(function(e){return Buffer.isBuffer(e)?e:mc(e)}))}:function(r){if(typeof Uint8Array<"u"){var e=0,t=0;for(e=0;e<r.length;++e)t+=r[e].length;var n=new Uint8Array(t),i=0;for(e=0,t=0;e<r.length;t+=i,++e)if(i=r[e].length,r[e]instanceof Uint8Array)n.set(r[e],t);else{if(typeof r[e]=="string")throw"wtf";n.set(new Uint8Array(r[e]),t)}return n}return[].concat.apply([],r.map(function(a){return Array.isArray(a)?a:[].slice.call(a)}))};function cle(r){for(var e=[],t=0,n=r.length+250,i=Cu(r.length+255),a=0;a<r.length;++a){var s=r.charCodeAt(a);if(s<128)i[t++]=s;else if(s<2048)i[t++]=192|s>>6&31,i[t++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var o=r.charCodeAt(++a)&1023;i[t++]=240|s>>8&7,i[t++]=128|s>>2&63,i[t++]=128|o>>6&15|(s&3)<<4,i[t++]=128|o&63}else i[t++]=224|s>>12&15,i[t++]=128|s>>6&63,i[t++]=128|s&63;t>n&&(e.push(i.slice(0,t)),t=0,i=Cu(65535),n=65530)}return e.push(i.slice(0,t)),gi(e)}var ra=/\u0000/g,ky=/[\u0001-\u0006]/g;function np(r){for(var e="",t=r.length-1;t>=0;)e+=r.charAt(t--);return e}function Ao(r,e){var t=""+r;return t.length>=e?t:_n("0",e-t.length)+t}function kR(r,e){var t=""+r;return t.length>=e?t:_n(" ",e-t.length)+t}function kE(r,e){var t=""+r;return t.length>=e?t:t+_n(" ",e-t.length)}function ule(r,e){var t=""+Math.round(r);return t.length>=e?t:_n("0",e-t.length)+t}function dle(r,e){var t=""+r;return t.length>=e?t:_n("0",e-t.length)+t}var oj=Math.pow(2,32);function Qm(r,e){if(r>oj||r<-oj)return ule(r,e);var t=Math.round(r);return dle(t,e)}function PE(r,e){return e=e||0,r.length>=7+e&&(r.charCodeAt(e)|32)===103&&(r.charCodeAt(e+1)|32)===101&&(r.charCodeAt(e+2)|32)===110&&(r.charCodeAt(e+3)|32)===101&&(r.charCodeAt(e+4)|32)===114&&(r.charCodeAt(e+5)|32)===97&&(r.charCodeAt(e+6)|32)===108}var lj=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],tR=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function hle(r){return r||(r={}),r[0]="General",r[1]="0",r[2]="0.00",r[3]="#,##0",r[4]="#,##0.00",r[9]="0%",r[10]="0.00%",r[11]="0.00E+00",r[12]="# ?/?",r[13]="# ??/??",r[14]="m/d/yy",r[15]="d-mmm-yy",r[16
137]="d-mmm",r[17]="mmm-yy",r[18]="h:mm AM/PM",r[19]="h:mm:ss AM/PM",r[20]="h:mm",r[21]="h:mm:ss",r[22]="m/d/yy h:mm",r[37]="#,##0 ;(#,##0)",r[38]="#,##0 ;[Red](#,##0)",r[39]="#,##0.00;(#,##0.00)",r[40]="#,##0.00;[Red](#,##0.00)",r[45]="mm:ss",r[46]="[h]:mm:ss",r[47]="mmss.0",r[48]="##0.0E+0",r[49]="@",r[56]='"\u4E0A\u5348/\u4E0B\u5348 "hh"\u6642"mm"\u5206"ss"\u79D2 "',r}var yt={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"\u4E0A\u5348/\u4E0B\u5348 "hh"\u6642"mm"\u5206"ss"\u79D2 "'},cj={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},fle={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function RE(r,e,t){for(var n=r<0?-1:1,i=r*n,a=0,s=1,o=0,l=1,c=0,u=0,d=Math.floor(i);c<e&&(d=Math.floor(i),o=d*s+a,u=d*c+l,!(i-d<5e-8));)i=1/(i-d),a=s,s=o,l=c,c=u;if(u>e&&(c>e?(u=l,o=a):(u=c,o=s)),!t)return[0,n*o,u];var f=Math.floor(n*o/u);return[f,n*o-f*u,u]}function _h(r,e,t){if(r>2958465||r<0)return null;var n=r|0,i=Math.floor(86400*(r-n)),a=0,s=[],o={D:n,T:i,u:86400*(r-n)-i,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(o.u)<1e-6&&(o.u=0),e&&e.date1904&&(n+=1462),o.u>.9999&&(o.u=0,++i==86400&&(o.T=i=0,++n,++o.D)),n===60)s=t?[1317,10,29]:[1900,2,29],a=3;else if(n===0)s=t?[1317,8,29]:[1900,1,0],a=6;else{n>60&&--n;var l=new Date(1900,0,1);l.setDate(l.getDate()+n-1),s=[l.getFullYear(),l.getMonth()+1,l.getDate()],a=l.getDay(),n<60&&(a=(a+6)%7),t&&(a=_le(l,s))}return o.y=s[0],o.m=s[1],o.d=s[2],o.S=i%60,i=Math.floor(i/60),o.M=i%60,i=Math.floor(i/60),o.H=i,o.q=a,o}var mH=new Date(1899,11,31,0,0,0),mle=mH.getTime(),ple=new Date(1900,2,1,0,0,0);function pH(r,e){var t=r.getTime();return e?t-=1461*24*60*60*1e3:r>=ple&&(t+=1440*60*1e3),(t-(mle+(r.getTimezoneOffset()-mH.getTimezoneOffset())*6e4))/(1440*60*1e3)}function PR(r){return r.indexOf(".")==-1?r:r.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function gle(r){return r.indexOf("E")==-1?r:r.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function yle(r){var e=r<0?12:11,t=PR(r.toFixed(12));return t.length<=e||(t=r.toPrecision(10),t.length<=e)?t:r.toExponential(5)}function vle(r){var e=PR(r.toFixed(11));return e.length>(r<0?12:11)||e==="0"||e==="-0"?r.toPrecision(6):e}function Hy(r){var e=Math.floor(Math.log(Math.abs(r))*Math.LOG10E),t;return e>=-4&&e<=-1?t=r.toPrecision(10+e):Math.abs(e)<=9?t=yle(r):e===10?t=r.toFixed(10).substr(0,12):t=vle(r),PR(gle(t.toUpperCase()))}function Eh(r,e){switch(typeof r){case"string":return r;case"boolean":return r?"TRUE":"FALSE";case"number":return(r|0)===r?r.toString(10):Hy(r);case"undefined":return"";case"object":if(r==null)return"";if(r instanceof Date)return Xs(14,pH(r,e&&e.date1904),e)}throw new Error("unsupported value in General format: "+r)}function _le(r,e){e[0]-=581;var t=r.getDay();return r<60&&(t=(t+6)%7),t}function ble(r,e,t,n){var i="",a=0,s=0,o=t.y,l,c=0;switch(r){case 98:o=t.y+543;case 121:switch(e.length){case 1:case 2:l=o%100,c=2;break;default:l=o%1e4,c=4;break}break;case 109:switch(e.length){case 1:case 2:l=t.m,c=e.length;break;case 3:return tR[t.m-1][1];case 5:return tR[t.m-1][0];default:return tR[t.m-1][2]}break;case 100:switch(e.length){case 1:case 2:l=t.d,c=e.length;break;case 3:return lj[t.q][0];default:return lj[t.q][1]}break;case 104:switch(e.length){case 1:case 2:l=1+(t.H+11)%12,c=e.length;break;default:throw"bad hour format: "+e}break;case 72:switch(e.length){case 1:case 2:l=t.H,c=e.length;break;default:throw"bad hour format: "+e}break;case 77:switch(e.length){case 1:case 2:l=t.M,c=e.length;break;default:throw"bad minute format: "+e}break;case 115:if(e!="s"&&e!="ss"&&e!=".0"&&e!=".00"&&e!=".000")throw"bad second format: "+e;return t.u===0&&(e=="s"||e=="ss")?Ao(t.S,e.length):(n>=2?s=n===3?1e3:100:s=n===1?10:1,a=Math.round(s*(t.S+t.u)),a>=60*s&&(a=0),e==="s"?a===0?"0":""+a/s:(i=Ao(a,2+n),e==="ss"?i.substr(0,2):"."+i.substr(2,e.length-1)));case 90:switch(e){case"[h]":case"[hh]":l=t.D*24+t.H;break;case"[m]":case"[mm]":l=(t.D*24+t.H)*60+t.M;break;case"[s]":case"[ss]":l=((t.D*24+t.H)*60+t.M)*60+Math.round(t.S+t.u);break;default:throw"bad abstime format: "+e}c=e.length===3?1:2;break;case 101:l=o,c=1;break}var u=c>0?Ao(l,c):"";return u}function Tu(r){var e=3;if(r.length<=e)return r;for(var t=r.length%e,n=r.substr(0,t);t!=r.length;t+=e)n+=(n.length>0?",":"")+r.substr(t,e);return n}var gH=/%/g;function wle(r,e,t){var n=e.replace(gH,""),i=e.length-n.length;return uc(r,n,t*Math.pow(10,2*i))+_n("%",i)}function Ile(r,e,t){for(var n=e.length-1;e.charCodeAt(n-1)===44;)--n;
vendor: 4,942 bytes, line 137
137return uc(r,e.substr(0,n),t/Math.pow(10,3*(e.length-n)))}function yH(r,e){var t,n=r.indexOf("E")-r.indexOf(".")-1;if(r.match(/^#+0.0E\+0$/)){if(e==0)return"0.0E+0";if(e<0)return"-"+yH(r,-e);var i=r.indexOf(".");i===-1&&(i=r.indexOf("E"));var a=Math.floor(Math.log(e)*Math.LOG10E)%i;if(a<0&&(a+=i),t=(e/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),t.indexOf("e")===-1){var s=Math.floor(Math.log(e)*Math.LOG10E);for(t.indexOf(".")===-1?t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+a):t+="E+"+(s-a);t.substr(0,2)==="0.";)t=t.charAt(0)+t.substr(2,i)+"."+t.substr(2+i),t=t.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,l,c,u){return l+c+u.substr(0,(i+a)%i)+"."+u.substr(a)+"E"})}else t=e.toExponential(n);return r.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),r.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}var vH=/# (\?+)( ?)\/( ?)(\d+)/;function xle(r,e,t){var n=parseInt(r[4],10),i=Math.round(e*n),a=Math.floor(i/n),s=i-a*n,o=n;return t+(a===0?"":""+a)+" "+(s===0?_n(" ",r[1].length+1+r[4].length):kR(s,r[1].length)+r[2]+"/"+r[3]+Ao(o,r[4].length))}function Ele(r,e,t){return t+(e===0?"":""+e)+_n(" ",r[1].length+2+r[4].length)}var _H=/^#*0*\.([0#]+)/,bH=/\).*[0#]/,wH=/\(###\) ###\\?-####/;function Ca(r){for(var e="",t,n=0;n!=r.length;++n)switch(t=r.charCodeAt(n)){case 35:break;case 63:e+=" ";break;case 48:e+="0";break;default:e+=String.fromCharCode(t)}return e}function uj(r,e){var t=Math.pow(10,e);return""+Math.round(r*t)/t}function dj(r,e){var t=r-Math.floor(r),n=Math.pow(10,e);return e<(""+Math.round(t*n)).length?0:Math.round(t*n)}function Tle(r,e){return e<(""+Math.round((r-Math.floor(r))*Math.pow(10,e))).length?1:0}function Cle(r){return r<2147483647&&r>-2147483648?""+(r>=0?r|0:r-1|0):""+Math.floor(r)}function $s(r,e,t){if(r.charCodeAt(0)===40&&!e.match(bH)){var n=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?$s("n",n,t):"("+$s("n",n,-t)+")"}if(e.charCodeAt(e.length-1)===44)return Ile(r,e,t);if(e.indexOf("%")!==-1)return wle(r,e,t);if(e.indexOf("E")!==-1)return yH(e,t);if(e.charCodeAt(0)===36)return"$"+$s(r,e.substr(e.charAt(1)==" "?2:1),t);var i,a,s,o,l=Math.abs(t),c=t<0?"-":"";if(e.match(/^00+$/))return c+Qm(l,e.length);if(e.match(/^[#?]+$/))return i=Qm(t,0),i==="0"&&(i=""),i.length>e.length?i:Ca(e.substr(0,e.length-i.length))+i;if(a=e.match(vH))return xle(a,l,c);if(e.match(/^#+0+$/))return c+Qm(l,e.length-e.indexOf("0"));if(a=e.match(_H))return i=uj(t,a[1].length).replace(/^([^\.]+)$/,"$1."+Ca(a[1])).replace(/\.$/,"."+Ca(a[1])).replace(/\.(\d*)$/,function(g,y){return"."+y+_n("0",Ca(a[1]).length-y.length)}),e.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),a=e.match(/^(0*)\.(#*)$/))return c+uj(l,a[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=e.match(/^#{1,3},##0(\.?)$/))return c+Tu(Qm(l,0));if(a=e.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+$s(r,e,-t):Tu(""+(Math.floor(t)+Tle(t,a[1].length)))+"."+Ao(dj(t,a[1].length),a[1].length);if(a=e.match(/^#,#*,#0/))return $s(r,e.replace(/^#,#*,/,""),t);if(a=e.match(/^([0#]+)(\\?-([0#]+))+$/))return i=np($s(r,e.replace(/[\\-]/g,""),t)),s=0,np(np(e.replace(/\\/g,"")).replace(/[0#]/g,function(g){return s<i.length?i.charAt(s++):g==="0"?"0":""}));if(e.match(wH))return i=$s(r,"##########",t),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(a=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),o=RE(l,Math.pow(10,s)-1,!1),i=""+c,u=uc("n",a[1],o[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),i+=u+a[2]+"/"+a[3],u=kE(o[2],s),u.length<a[4].length&&(u=Ca(a[4].substr(a[4].length-u.length))+u),i+=u,i;if(a=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),o=RE(l,Math.pow(10,s)-1,!0),c+(o[0]||(o[1]?"":"0"))+" "+(o[1]?kR(o[1],s)+a[2]+"/"+a[3]+kE(o[2],s):_n(" ",2*s+1+a[2].length+a[3].length));if(a=e.match(/^[#0?]+$/))return i=Qm(t,0),e.length<=i.length?i:Ca(e.substr(0,e.length-i.length))+i;if(a=e.match(/^([#0?]+)\.([#0]+)$/)){i=""+t.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var d=e.indexOf(".")-s,f=e.length-i.length-d;return Ca(e.substr(0,d)+i+e.substr(e.length-f))}if(a=e.match(/^00,000\.([#0]*0)$/))return s=dj(t,a[1].length),t<0?"-"+$s(r,e,-t):Tu(Cle(t)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(g){return"00,"+(g.length<3?Ao(0,3-g.length):"")+g})+"."+Ao(s,a[1].length);switch(e){case"###,##0.00":return $s(r,"#,##0.00",t);case"###,###":case"##,###":case"#,###":var p=Tu(Qm(l,0));return p!=="0"?c+p:"";case"###,###.00":return $s(r,"###,##0.00",t).replace(/^0\./,".");case"#,###.00":return $s(r,"#,##0.00",t).replace(/^0\./,".");default:}throw new Error("unsupported format |"+e+"|")}function Sle(r,e,t){for(var n=e.length-1;e.charCodeAt(n-1)===44;)--n;
vendor: 4,790 bytes, line 137
137return uc(r,e.substr(0,n),t/Math.pow(10,3*(e.length-n)))}function Dle(r,e,t){var n=e.replace(gH,""),i=e.length-n.length;return uc(r,n,t*Math.pow(10,2*i))+_n("%",i)}function IH(r,e){var t,n=r.indexOf("E")-r.indexOf(".")-1;if(r.match(/^#+0.0E\+0$/)){if(e==0)return"0.0E+0";if(e<0)return"-"+IH(r,-e);var i=r.indexOf(".");i===-1&&(i=r.indexOf("E"));var a=Math.floor(Math.log(e)*Math.LOG10E)%i;if(a<0&&(a+=i),t=(e/Math.pow(10,a)).toPrecision(n+1+(i+a)%i),!t.match(/[Ee]/)){var s=Math.floor(Math.log(e)*Math.LOG10E);t.indexOf(".")===-1?t=t.charAt(0)+"."+t.substr(1)+"E+"+(s-t.length+a):t+="E+"+(s-a),t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(o,l,c,u){return l+c+u.substr(0,(i+a)%i)+"."+u.substr(a)+"E"})}else t=e.toExponential(n);return r.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),r.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}function fl(r,e,t){if(r.charCodeAt(0)===40&&!e.match(bH)){var n=e.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?fl("n",n,t):"("+fl("n",n,-t)+")"}if(e.charCodeAt(e.length-1)===44)return Sle(r,e,t);if(e.indexOf("%")!==-1)return Dle(r,e,t);if(e.indexOf("E")!==-1)return IH(e,t);if(e.charCodeAt(0)===36)return"$"+fl(r,e.substr(e.charAt(1)==" "?2:1),t);var i,a,s,o,l=Math.abs(t),c=t<0?"-":"";if(e.match(/^00+$/))return c+Ao(l,e.length);if(e.match(/^[#?]+$/))return i=""+t,t===0&&(i=""),i.length>e.length?i:Ca(e.substr(0,e.length-i.length))+i;if(a=e.match(vH))return Ele(a,l,c);if(e.match(/^#+0+$/))return c+Ao(l,e.length-e.indexOf("0"));if(a=e.match(_H))return i=(""+t).replace(/^([^\.]+)$/,"$1."+Ca(a[1])).replace(/\.$/,"."+Ca(a[1])),i=i.replace(/\.(\d*)$/,function(g,y){return"."+y+_n("0",Ca(a[1]).length-y.length)}),e.indexOf("0.")!==-1?i:i.replace(/^0\./,".");if(e=e.replace(/^#+([0.])/,"$1"),a=e.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,a[1].length?"0.":".");if(a=e.match(/^#{1,3},##0(\.?)$/))return c+Tu(""+l);if(a=e.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+fl(r,e,-t):Tu(""+t)+"."+_n("0",a[1].length);if(a=e.match(/^#,#*,#0/))return fl(r,e.replace(/^#,#*,/,""),t);if(a=e.match(/^([0#]+)(\\?-([0#]+))+$/))return i=np(fl(r,e.replace(/[\\-]/g,""),t)),s=0,np(np(e.replace(/\\/g,"")).replace(/[0#]/g,function(g){return s<i.length?i.charAt(s++):g==="0"?"0":""}));if(e.match(wH))return i=fl(r,"##########",t),"("+i.substr(0,3)+") "+i.substr(3,3)+"-"+i.substr(6);var u="";if(a=e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(a[4].length,7),o=RE(l,Math.pow(10,s)-1,!1),i=""+c,u=uc("n",a[1],o[1]),u.charAt(u.length-1)==" "&&(u=u.substr(0,u.length-1)+"0"),i+=u+a[2]+"/"+a[3],u=kE(o[2],s),u.length<a[4].length&&(u=Ca(a[4].substr(a[4].length-u.length))+u),i+=u,i;if(a=e.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(a[1].length,a[4].length),7),o=RE(l,Math.pow(10,s)-1,!0),c+(o[0]||(o[1]?"":"0"))+" "+(o[1]?kR(o[1],s)+a[2]+"/"+a[3]+kE(o[2],s):_n(" ",2*s+1+a[2].length+a[3].length));if(a=e.match(/^[#0?]+$/))return i=""+t,e.length<=i.length?i:Ca(e.substr(0,e.length-i.length))+i;if(a=e.match(/^([#0]+)\.([#0]+)$/)){i=""+t.toFixed(Math.min(a[2].length,10)).replace(/([^0])0+$/,"$1"),s=i.indexOf(".");var d=e.indexOf(".")-s,f=e.length-i.length-d;return Ca(e.substr(0,d)+i+e.substr(e.length-f))}if(a=e.match(/^00,000\.([#0]*0)$/))return t<0?"-"+fl(r,e,-t):Tu(""+t).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(g){return"00,"+(g.length<3?Ao(0,3-g.length):"")+g})+"."+Ao(0,a[1].length);switch(e){case"###,###":case"##,###":case"#,###":var p=Tu(""+l);return p!=="0"?c+p:"";default:if(e.match(/\.[0#?]*$/))return fl(r,e.slice(0,e.lastIndexOf(".")),t)+Ca(e.slice(e.lastIndexOf(".")))}throw new Error("unsupported format |"+e+"|")}function uc(r,e,t){return(t|0)===t?fl(r,e,t):$s(r,e,t)}function Ale(r){for(var e=[],t=!1,n=0,i=0;n<r.length;++n)switch(r.charCodeAt(n)){case 34:t=!t;break;case 95:case 42:case 92:++n;break;case 59:e[e.length]=r.substr(i,n-i),i=n+1}if(e[e.length]=r.substr(i),t===!0)throw new Error("Format |"+r+"| unterminated string ");return e}var xH=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function dp(r){for(var e=0,t="",n="";e<r.length;)switch(t=r.charAt(e)){case"G":PE(r,e)&&(e+=6),e++;break;case'"':for(;r.charCodeAt(++e)!==34&&e<r.length;);++e;break;case"\\":e+=2;break;case"_":e+=2;break;case"@":++e;break;case"B":case"b":if(r.charAt(e+1)==="1"||r.charAt(e+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"\u4E0A":if(r.substr(e,3).toUpperCase()==="A/P"||r.substr(e,5).toUpperCase()==="AM/PM"||r.substr(e,5).toUpperCase()==="\u4E0A\u5348/\u4E0B\u5348")return!0;++e;break;case"[":for(n=t;r.charAt(e++)!=="]"&&e<r.length;)n+=r.charAt(e);
vendor: 8,714 bytes, line 137
137if(n.match(xH))return!0;break;case".":case"0":case"#":for(;e<r.length&&("0#?.,E+-%".indexOf(t=r.charAt(++e))>-1||t=="\\"&&r.charAt(e+1)=="-"&&"0#".indexOf(r.charAt(e+2))>-1););break;case"?":for(;r.charAt(++e)===t;);break;case"*":++e,(r.charAt(e)==" "||r.charAt(e)=="*")&&++e;break;case"(":case")":++e;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;e<r.length&&"0123456789".indexOf(r.charAt(++e))>-1;);break;case" ":++e;break;default:++e;break}return!1}function Mle(r,e,t,n){for(var i=[],a="",s=0,o="",l="t",c,u,d,f="H";s<r.length;)switch(o=r.charAt(s)){case"G":if(!PE(r,s))throw new Error("unrecognized character "+o+" in "+r);i[i.length]={t:"G",v:"General"},s+=7;break;case'"':for(a="";(d=r.charCodeAt(++s))!==34&&s<r.length;)a+=String.fromCharCode(d);i[i.length]={t:"t",v:a},++s;break;case"\\":var p=r.charAt(++s),g=p==="("||p===")"?p:"t";i[i.length]={t:g,v:p},++s;break;case"_":i[i.length]={t:"t",v:" "},s+=2;break;case"@":i[i.length]={t:"T",v:e},++s;break;case"B":case"b":if(r.charAt(s+1)==="1"||r.charAt(s+1)==="2"){if(c==null&&(c=_h(e,t,r.charAt(s+1)==="2"),c==null))return"";i[i.length]={t:"X",v:r.substr(s,2)},l=o,s+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":o=o.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(e<0||c==null&&(c=_h(e,t),c==null))return"";for(a=o;++s<r.length&&r.charAt(s).toLowerCase()===o;)a+=o;o==="m"&&l.toLowerCase()==="h"&&(o="M"),o==="h"&&(o=f),i[i.length]={t:o,v:a},l=o;break;case"A":case"a":case"\u4E0A":var y={t:o,v:o};if(c==null&&(c=_h(e,t)),r.substr(s,3).toUpperCase()==="A/P"?(c!=null&&(y.v=c.H>=12?"P":"A"),y.t="T",f="h",s+=3):r.substr(s,5).toUpperCase()==="AM/PM"?(c!=null&&(y.v=c.H>=12?"PM":"AM"),y.t="T",s+=5,f="h"):r.substr(s,5).toUpperCase()==="\u4E0A\u5348/\u4E0B\u5348"?(c!=null&&(y.v=c.H>=12?"\u4E0B\u5348":"\u4E0A\u5348"),y.t="T",s+=5,f="h"):(y.t="t",++s),c==null&&y.t==="T")return"";i[i.length]=y,l=o;break;case"[":for(a=o;r.charAt(s++)!=="]"&&s<r.length;)a+=r.charAt(s);if(a.slice(-1)!=="]")throw'unterminated "[" block: |'+a+"|";if(a.match(xH)){if(c==null&&(c=_h(e,t),c==null))return"";i[i.length]={t:"Z",v:a.toLowerCase()},l=a.charAt(1)}else a.indexOf("$")>-1&&(a=(a.match(/\$([^-\[\]]*)/)||[])[1]||"$",dp(r)||(i[i.length]={t:"t",v:a}));break;case".":if(c!=null){for(a=o;++s<r.length&&(o=r.charAt(s))==="0";)a+=o;i[i.length]={t:"s",v:a};break}case"0":case"#":for(a=o;++s<r.length&&"0#?.,E+-%".indexOf(o=r.charAt(s))>-1;)a+=o;i[i.length]={t:"n",v:a};break;case"?":for(a=o;r.charAt(++s)===o;)a+=o;i[i.length]={t:o,v:a},l=o;break;case"*":++s,(r.charAt(s)==" "||r.charAt(s)=="*")&&++s;break;case"(":case")":i[i.length]={t:n===1?"t":o,v:o},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(a=o;s<r.length&&"0123456789".indexOf(r.charAt(++s))>-1;)a+=r.charAt(s);i[i.length]={t:"D",v:a};break;case" ":i[i.length]={t:o,v:o},++s;break;case"$":i[i.length]={t:"t",v:"$"},++s;break;default:if(",$-+/():!^&'~{}<>=\u20ACacfijklopqrtuvwxzP".indexOf(o)===-1)throw new Error("unrecognized character "+o+" in "+r);i[i.length]={t:"t",v:o},++s;break}var v=0,T=0,C;for(s=i.length-1,l="t";s>=0;--s)switch(i[s].t){case"h":case"H":i[s].t=f,l="h",v<1&&(v=1);break;case"s":(C=i[s].v.match(/\.0+$/))&&(T=Math.max(T,C[0].length-1)),v<3&&(v=3);case"d":case"y":case"M":case"e":l=i[s].t;break;case"m":l==="s"&&(i[s].t="M",v<2&&(v=2));break;case"X":break;case"Z":v<1&&i[s].v.match(/[Hh]/)&&(v=1),v<2&&i[s].v.match(/[Mm]/)&&(v=2),v<3&&i[s].v.match(/[Ss]/)&&(v=3)}switch(v){case 0:break;case 1:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M),c.M>=60&&(c.M=0,++c.H);break;case 2:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M);break}var x="",B;for(s=0;s<i.length;++s)switch(i[s].t){case"t":case"T":case" ":case"D":break;case"X":i[s].v="",i[s].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":i[s].v=ble(i[s].t.charCodeAt(0),i[s].v,c,T),i[s].t="t";break;case"n":case"?":for(B=s+1;i[B]!=null&&((o=i[B].t)==="?"||o==="D"||(o===" "||o==="t")&&i[B+1]!=null&&(i[B+1].t==="?"||i[B+1].t==="t"&&i[B+1].v==="/")||i[s].t==="("&&(o===" "||o==="n"||o===")")||o==="t"&&(i[B].v==="/"||i[B].v===" "&&i[B+1]!=null&&i[B+1].t=="?"));)i[s].v+=i[B].v,i[B]={v:"",t:";"},++B;x+=i[s].v,s=B-1;break;case"G":i[s].t="t",i[s].v=Eh(e,t);break}var q="",V,b;if(x.length>0){x.charCodeAt(0)==40?(V=e<0&&x.charCodeAt(0)===45?-e:e,b=uc("n",x,V)):(V=e<0&&n>1?-e:e,b=uc("n",x,V),V<0&&i[0]&&i[0].t=="t"&&(b=b.substr(1),i[0].v="-"+i[0].v)),B=b.length-1;var E=i.length;for(s=0;s<i.length;++s)if(i[s]!=null&&i[s].t!="t"&&i[s].v.indexOf(".")>-1){E=s;break}var I=i.length;if(E===i.length&&b.indexOf("E")===-1){for(s=i.length-1;s>=0;--s)i[s]==null||"n?".indexOf(i[s].t)===-1||(B>=i[s].v.length-1?(B-=i[s].v.length,i[s].v=b.substr(B+1,i[s].v.length)):B<0?i[s].v="":(i[s].v=b.substr(0,B+1),B=-1),i[s].t="t",I=s);B>=0&&I<i.length&&(i[I].v=b.substr(0,B+1)+i[I].v)}else if(E!==i.length&&b.indexOf("E")===-1){for(B=b.indexOf(".")-1,s=E;s>=0;--s)if(!(i[s]==null||"n?".indexOf(i[s].t)===-1)){for(u=i[s].v.indexOf(".")>-1&&s===E?i[s].v.indexOf(".")-1:i[s].v.length-1,q=i[s].v.substr(u+1);u>=0;--u)B>=0&&(i[s].v.charAt(u)==="0"||i[s].v.charAt(u)==="#")&&(q=b.charAt(B--)+q);i[s].v=q,i[s].t="t",I=s}for(B>=0&&I<i.length&&(i[I].v=b.substr(0,B+1)+i[I].v),B=b.indexOf(".")+1,s=E;s<i.length;++s)if(!(i[s]==null||"n?(".indexOf(i[s].t)===-1&&s!==E)){for(u=i[s].v.indexOf(".")>-1&&s===E?i[s].v.indexOf(".")+1:0,q=i[s].v.substr(0,u);u<i[s].v.length;++u)B<b.length&&(q+=b.charAt(B++));i[s].v=q,i[s].t="t",I=s}}}for(s=0;s<i.length;++s)i[s]!=null&&"n?".indexOf(i[s].t)>-1&&(V=n>1&&e<0&&s>0&&i[s-1].v==="-"?-e:e,i[s].v=uc(i[s].t,i[s].v,V),i[s].t="t");var S="";for(s=0;s!==i.length;++s)i[s]!=null&&(S+=i[s].v);return S}var hj=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function fj(r,e){if(e==null)return!1;var t=parseFloat(e[2]);switch(e[1]){case"=":if(r==t)return!0;break;case">":if(r>t)return!0;break;case"<":if(r<t)return!0;break;case"<>":if(r!=t)return!0;break;case">=":if(r>=t)return!0;break;case"<=":if(r<=t)return!0;break}return!1}function kle(r,e){var t=Ale(r),n=t.length,i=t[n-1].indexOf("@");if(n<4&&i>-1&&--n,t.length>4)throw new Error("cannot find right format for |"+t.join("|")+"|");if(typeof e!="number")return[4,t.length===4||i>-1?t[t.length-1]:"@"];switch(t.length){case 1:t=i>-1?["General","General","General",t[0]]:[t[0],t[0],t[0],"@"];break;case 2:t=i>-1?[t[0],t[0],t[0],t[1]]:[t[0],t[1],t[0],"@"];break;case 3:t=i>-1?[t[0],t[1],t[0],t[2]]:[t[0],t[1],t[2],"@"];break;case 4:break}var a=e>0?t[0]:e<0?t[1]:t[2];if(t[0].indexOf("[")===-1&&t[1].indexOf("[")===-1)return[n,a];if(t[0].match(/\[[=<>]/)!=null||t[1].match(/\[[=<>]/)!=null){var s=t[0].match(hj),o=t[1].match(hj);return fj(e,s)?[n,t[0]]:fj(e,o)?[n,t[1]]:[n,t[s!=null&&o!=null?2:1]]}return[n,a]}function Xs(r,e,t){t==null&&(t={});var n="";switch(typeof r){case"string":r=="m/d/yy"&&t.dateNF?n=t.dateNF:n=r;break;case"number":r==14&&t.dateNF?n=t.dateNF:n=(t.table!=null?t.table:yt)[r],n==null&&(n=t.table&&t.table[cj[r]]||yt[cj[r]]),n==null&&(n=fle[r]||"General");break}if(PE(n,0))return Eh(e,t);e instanceof Date&&(e=pH(e,t.date1904));var i=kle(n,e);if(PE(i[1]))return Eh(e,t);if(e===!0)e="TRUE";else if(e===!1)e="FALSE";else if(e===""||e==null)return"";return Mle(i[1],e,t,i[0])}function dc(r,e){if(typeof e!="number"){e=+e||-1;for(var t=0;t<392;++t){if(yt[t]==null){e<0&&(e=t);continue}if(yt[t]==r){e=t;break}}e<0&&(e=391)}return yt[e]=r,e}function GE(r){for(var e=0;e!=392;++e)r[e]!==void 0&&dc(r[e],e)}function hp(){yt=hle()}var Ple={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},EH=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function Rle(r){var e=typeof r=="number"?yt[r]:r;return e=e.replace(EH,"(\\d+)"),new RegExp("^"+e+"$")}function Ole(r,e,t){var n=-1,i=-1,a=-1,s=-1,o=-1,l=-1;
vendor: 5,389 bytes, line 137
137(e.match(EH)||[]).forEach(function(d,f){var p=parseInt(t[f+1],10);switch(d.toLowerCase().charAt(0)){case"y":n=p;break;case"d":a=p;break;case"h":s=p;break;case"s":l=p;break;case"m":s>=0?o=p:i=p;break}}),l>=0&&o==-1&&i>=0&&(o=i,i=-1);var c=(""+(n>=0?n:new Date().getFullYear())).slice(-4)+"-"+("00"+(i>=1?i:1)).slice(-2)+"-"+("00"+(a>=1?a:1)).slice(-2);c.length==7&&(c="0"+c),c.length==8&&(c="20"+c);var u=("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return s==-1&&o==-1&&l==-1?c:n==-1&&i==-1&&a==-1?u:c+"T"+u}var Fle=(function(){var r={};r.version="1.2.0";function e(){for(var b=0,E=new Array(256),I=0;I!=256;++I)b=I,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,b=b&1?-306674912^b>>>1:b>>>1,E[I]=b;return typeof Int32Array<"u"?new Int32Array(E):E}var t=e();function n(b){var E=0,I=0,S=0,k=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(S=0;S!=256;++S)k[S]=b[S];for(S=0;S!=256;++S)for(I=b[S],E=256+S;E<4096;E+=256)I=k[E]=I>>>8^b[I&255];var D=[];for(S=1;S!=16;++S)D[S-1]=typeof Int32Array<"u"?k.subarray(S*256,S*256+256):k.slice(S*256,S*256+256);return D}var i=n(t),a=i[0],s=i[1],o=i[2],l=i[3],c=i[4],u=i[5],d=i[6],f=i[7],p=i[8],g=i[9],y=i[10],v=i[11],T=i[12],C=i[13],x=i[14];function B(b,E){for(var I=E^-1,S=0,k=b.length;S<k;)I=I>>>8^t[(I^b.charCodeAt(S++))&255];return~I}function q(b,E){for(var I=E^-1,S=b.length-15,k=0;k<S;)I=x[b[k++]^I&255]^C[b[k++]^I>>8&255]^T[b[k++]^I>>16&255]^v[b[k++]^I>>>24]^y[b[k++]]^g[b[k++]]^p[b[k++]]^f[b[k++]]^d[b[k++]]^u[b[k++]]^c[b[k++]]^l[b[k++]]^o[b[k++]]^s[b[k++]]^a[b[k++]]^t[b[k++]];for(S+=15;k<S;)I=I>>>8^t[(I^b[k++])&255];return~I}function V(b,E){for(var I=E^-1,S=0,k=b.length,D=0,R=0;S<k;)D=b.charCodeAt(S++),D<128?I=I>>>8^t[(I^D)&255]:D<2048?(I=I>>>8^t[(I^(192|D>>6&31))&255],I=I>>>8^t[(I^(128|D&63))&255]):D>=55296&&D<57344?(D=(D&1023)+64,R=b.charCodeAt(S++)&1023,I=I>>>8^t[(I^(240|D>>8&7))&255],I=I>>>8^t[(I^(128|D>>2&63))&255],I=I>>>8^t[(I^(128|R>>6&15|(D&3)<<4))&255],I=I>>>8^t[(I^(128|R&63))&255]):(I=I>>>8^t[(I^(224|D>>12&15))&255],I=I>>>8^t[(I^(128|D>>6&63))&255],I=I>>>8^t[(I^(128|D&63))&255]);return~I}return r.table=t,r.bstr=B,r.buf=q,r.str=V,r})(),ct=(function(){var e={};e.version="1.2.1";function t(M,L){for(var O=M.split("/"),F=L.split("/"),U=0,z=0,J=Math.min(O.length,F.length);U<J;++U){if(z=O[U].length-F[U].length)return z;if(O[U]!=F[U])return O[U]<F[U]?-1:1}return O.length-F.length}function n(M){if(M.charAt(M.length-1)=="/")return M.slice(0,-1).indexOf("/")===-1?M:n(M.slice(0,-1));var L=M.lastIndexOf("/");return L===-1?M:M.slice(0,L+1)}function i(M){if(M.charAt(M.length-1)=="/")return i(M.slice(0,-1));var L=M.lastIndexOf("/");return L===-1?M:M.slice(L+1)}function a(M,L){typeof L=="string"&&(L=new Date(L));var O=L.getHours();O=O<<6|L.getMinutes(),O=O<<5|L.getSeconds()>>>1,M.write_shift(2,O);var F=L.getFullYear()-1980;F=F<<4|L.getMonth()+1,F=F<<5|L.getDate(),M.write_shift(2,F)}function s(M){var L=M.read_shift(2)&65535,O=M.read_shift(2)&65535,F=new Date,U=O&31;O>>>=5;var z=O&15;O>>>=4,F.setMilliseconds(0),F.setFullYear(O+1980),F.setMonth(z-1),F.setDate(U);var J=L&31;L>>>=5;var se=L&63;return L>>>=6,F.setHours(L),F.setMinutes(se),F.setSeconds(J<<1),F}function o(M){Pi(M,0);for(var L={},O=0;M.l<=M.length-4;){var F=M.read_shift(2),U=M.read_shift(2),z=M.l+U,J={};switch(F){case 21589:O=M.read_shift(1),O&1&&(J.mtime=M.read_shift(4)),U>5&&(O&2&&(J.atime=M.read_shift(4)),O&4&&(J.ctime=M.read_shift(4))),J.mtime&&(J.mt=new Date(J.mtime*1e3));break}M.l=z,L[F]=J}return L}var l;function c(){return l||(l={})}function u(M,L){if(M[0]==80&&M[1]==75)return Vp(M,L);if((M[0]|32)==109&&(M[1]|32)==105)return $u(M,L);if(M.length<512)throw new Error("CFB file size "+M.length+" < 512");var O=3,F=512,U=0,z=0,J=0,se=0,Q=0,Z=[],re=M.slice(0,512);Pi(re,0);var Te=d(re);switch(O=Te[0],O){case 3:F=512;break;case 4:F=4096;break;case 0:if(Te[1]==0)return Vp(M,L);default:throw new Error("Major Version: Expected 3 or 4 saw "+O)}F!==512&&(re=M.slice(0,F),Pi(re,28));var Pe=M.slice(0,F);f(re,O);var nt=re.read_shift(4,"i");if(O===3&&nt!==0)throw new Error("# Directory Sectors: Expected 0 saw "+nt);re.l+=4,J=re.read_shift(4,"i"),re.l+=4,re.chk("00100000","Mini Stream Cutoff Size: "),se=re.read_shift(4,"i"),U=re.read_shift(4,"i"),Q=re.read_shift(4,"i"),z=re.read_shift(4,"i");for(var Oe=-1,je=0;je<109&&(Oe=re.read_shift(4,"i"),!(Oe<0));++je)Z[je]=Oe;var _t=p(M,F);v(Q,z,_t,F,Z);var Sr=C(_t,J,Z,F);Sr[J].name="!Directory",U>0&&se!==R&&(Sr[se].name="!MiniFAT"),Sr[Z[0]].name="!FAT",Sr.fat_addrs=Z,Sr.ssz=F;var ii={},Lr=[],xn=[],Tl=[];x(J,Sr,_t,Lr,U,ii,xn,se),g(xn,Tl,Lr),Lr.shift();var qu={FileIndex:xn,FullPaths:Tl};return L&&L.raw&&(qu.raw={header:Pe,sectors:_t}),qu}function d(M){if(M[M.l]==80&&M[M.l+1]==75)return[0,0];M.chk(De,"Header Signature: "),M.l+=16;var L=M.read_shift(2,"u");return[M.read_shift(2,"u"),L]}function f(M,L){var O=9;switch(M.l+=2,O=M.read_shift(2)){case 9:if(L!=3)throw new Error("Sector Shift: Expected 9 saw "+O);break;case 12:if(L!=4)throw new Error("Sector Shift: Expected 12 saw "+O);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+O)}M.chk("0600","Mini Sector Shift: "),M.chk("000000000000","Reserved: ")}function p(M,L){for(var O=Math.ceil(M.length/L)-1,F=[],U=1;U<O;
vendor: 3,976 bytes, line 137
137++U)F[U-1]=M.slice(U*L,(U+1)*L);return F[O-1]=M.slice(O*L),F}function g(M,L,O){for(var F=0,U=0,z=0,J=0,se=0,Q=O.length,Z=[],re=[];F<Q;++F)Z[F]=re[F]=F,L[F]=O[F];for(;se<re.length;++se)F=re[se],U=M[F].L,z=M[F].R,J=M[F].C,Z[F]===F&&(U!==-1&&Z[U]!==U&&(Z[F]=Z[U]),z!==-1&&Z[z]!==z&&(Z[F]=Z[z])),J!==-1&&(Z[J]=F),U!==-1&&F!=Z[F]&&(Z[U]=Z[F],re.lastIndexOf(U)<se&&re.push(U)),z!==-1&&F!=Z[F]&&(Z[z]=Z[F],re.lastIndexOf(z)<se&&re.push(z));for(F=1;F<Q;++F)Z[F]===F&&(z!==-1&&Z[z]!==z?Z[F]=Z[z]:U!==-1&&Z[U]!==U&&(Z[F]=Z[U]));for(F=1;F<Q;++F)if(M[F].type!==0){if(se=F,se!=Z[se])do se=Z[se],L[F]=L[se]+"/"+L[F];while(se!==0&&Z[se]!==-1&&se!=Z[se]);Z[F]=-1}for(L[0]+="/",F=1;F<Q;++F)M[F].type!==2&&(L[F]+="/")}function y(M,L,O){for(var F=M.start,U=M.size,z=[],J=F;O&&U>0&&J>=0;)z.push(L.slice(J*D,J*D+D)),U-=D,J=vh(O,J*4);return z.length===0?oe(0):gi(z).slice(0,M.size)}function v(M,L,O,F,U){var z=R;if(M===R){if(L!==0)throw new Error("DIFAT chain shorter than expected")}else if(M!==-1){var J=O[M],se=(F>>>2)-1;if(!J)return;for(var Q=0;Q<se&&(z=vh(J,Q*4))!==R;++Q)U.push(z);v(vh(J,F-4),L-1,O,F,U)}}function T(M,L,O,F,U){var z=[],J=[];U||(U=[]);var se=F-1,Q=0,Z=0;for(Q=L;Q>=0;){U[Q]=!0,z[z.length]=Q,J.push(M[Q]);var re=O[Math.floor(Q*4/F)];if(Z=Q*4&se,F<4+Z)throw new Error("FAT boundary crossed: "+Q+" 4 "+F);if(!M[re])break;Q=vh(M[re],Z)}return{nodes:z,data:Tj([J])}}function C(M,L,O,F){var U=M.length,z=[],J=[],se=[],Q=[],Z=F-1,re=0,Te=0,Pe=0,nt=0;for(re=0;re<U;++re)if(se=[],Pe=re+L,Pe>=U&&(Pe-=U),!J[Pe]){Q=[];var Oe=[];for(Te=Pe;Te>=0;){Oe[Te]=!0,J[Te]=!0,se[se.length]=Te,Q.push(M[Te]);var je=O[Math.floor(Te*4/F)];if(nt=Te*4&Z,F<4+nt)throw new Error("FAT boundary crossed: "+Te+" 4 "+F);if(!M[je]||(Te=vh(M[je],nt),Oe[Te]))break}z[Pe]={nodes:se,data:Tj([Q])}}return z}function x(M,L,O,F,U,z,J,se){for(var Q=0,Z=F.length?2:0,re=L[M].data,Te=0,Pe=0,nt;Te<re.length;Te+=128){var Oe=re.slice(Te,Te+128);Pi(Oe,64),Pe=Oe.read_shift(2),nt=YE(Oe,0,Pe-Z),F.push(nt);var je={name:nt,type:Oe.read_shift(1),color:Oe.read_shift(1),L:Oe.read_shift(4,"i"),R:Oe.read_shift(4,"i"),C:Oe.read_shift(4,"i"),clsid:Oe.read_shift(16),state:Oe.read_shift(4,"i"),start:0,size:0},_t=Oe.read_shift(2)+Oe.read_shift(2)+Oe.read_shift(2)+Oe.read_shift(2);_t!==0&&(je.ct=B(Oe,Oe.l-8));var Sr=Oe.read_shift(2)+Oe.read_shift(2)+Oe.read_shift(2)+Oe.read_shift(2);Sr!==0&&(je.mt=B(Oe,Oe.l-8)),je.start=Oe.read_shift(4,"i"),je.size=Oe.read_shift(4,"i"),je.size<0&&je.start<0&&(je.size=je.type=0,je.start=R,je.name=""),je.type===5?(Q=je.start,U>0&&Q!==R&&(L[Q].name="!StreamData")):je.size>=4096?(je.storage="fat",L[je.start]===void 0&&(L[je.start]=T(O,je.start,L.fat_addrs,L.ssz)),L[je.start].name=je.name,je.content=L[je.start].data.slice(0,je.size)):(je.storage="minifat",je.size<0?je.size=0:Q!==R&&je.start!==R&&L[Q]&&(je.content=y(je,L[Q].data,(L[se]||{}).data))),je.content&&Pi(je.content,0),z[nt]=je,J.push(je)}}function B(M,L){return new Date((pi(M,L+4)/1e7*Math.pow(2,32)+pi(M,L)/1e7-11644473600)*1e3)}function q(M,L){return c(),u(l.readFileSync(M),L)}function V(M,L){var O=L&&L.type;switch(O||Kt&&Buffer.isBuffer(M)&&(O="buffer"),O||"base64"){case"file":return q(M,L);case"base64":return u(vs(bs(M)),L);case"binary":return u(vs(M),L)}return u(M,L)}function b(M,L){var O=L||{},F=O.root||"Root Entry";if(M.FullPaths||(M.FullPaths=[]),M.FileIndex||(M.FileIndex=[]),M.FullPaths.length!==M.FileIndex.length)throw new Error("inconsistent CFB structure");M.FullPaths.length===0&&(M.FullPaths[0]=F+"/",M.FileIndex[0]={name:F,type:5}),O.CLSID&&(M.FileIndex[0].clsid=O.CLSID),E(M)}function E(M){var L="�Sh33tJ5";if(!ct.find(M,"/"+L)){var O=oe(4);O[0]=55,O[1]=O[3]=50,O[2]=54,M.FileIndex.push({name:L,type:2,content:O,size:4,L:69,R:69,C:69}),M.FullPaths.push(M.FullPaths[0]+L),I(M)}}function I(M,L){b(M);for(var O=!1,F=!1,U=M.FullPaths.length-1;U>=0;--U){var z=M.FileIndex[U];switch(z.type){case 0:F?O=!0:(M.FileIndex.pop(),M.FullPaths.pop());break;case 1:case 2:case 5:F=!0,isNaN(z.R*z.L*z.C)&&(O=!0),z.R>-1&&z.L>
vendor: 10,679 bytes, line 137
137-1&&z.R==z.L&&(O=!0);break;default:O=!0;break}}if(!(!O&&!L)){var J=new Date(1987,1,19),se=0,Q=Object.create?Object.create(null):{},Z=[];for(U=0;U<M.FullPaths.length;++U)Q[M.FullPaths[U]]=!0,M.FileIndex[U].type!==0&&Z.push([M.FullPaths[U],M.FileIndex[U]]);for(U=0;U<Z.length;++U){var re=n(Z[U][0]);F=Q[re],F||(Z.push([re,{name:i(re).replace("/",""),type:1,clsid:rt,ct:J,mt:J,content:null}]),Q[re]=!0)}for(Z.sort(function(nt,Oe){return t(nt[0],Oe[0])}),M.FullPaths=[],M.FileIndex=[],U=0;U<Z.length;++U)M.FullPaths[U]=Z[U][0],M.FileIndex[U]=Z[U][1];for(U=0;U<Z.length;++U){var Te=M.FileIndex[U],Pe=M.FullPaths[U];if(Te.name=i(Pe).replace("/",""),Te.L=Te.R=Te.C=-(Te.color=1),Te.size=Te.content?Te.content.length:0,Te.start=0,Te.clsid=Te.clsid||rt,U===0)Te.C=Z.length>1?1:-1,Te.size=0,Te.type=5;else if(Pe.slice(-1)=="/"){for(se=U+1;se<Z.length&&n(M.FullPaths[se])!=Pe;++se);for(Te.C=se>=Z.length?-1:se,se=U+1;se<Z.length&&n(M.FullPaths[se])!=n(Pe);++se);Te.R=se>=Z.length?-1:se,Te.type=1}else n(M.FullPaths[U+1]||"")==n(Pe)&&(Te.R=U+1),Te.type=2}}}function S(M,L){var O=L||{};if(O.fileType=="mad")return Av(M,O);switch(I(M),O.fileType){case"zip":return Hu(M,O)}var F=(function(nt){for(var Oe=0,je=0,_t=0;_t<nt.FileIndex.length;++_t){var Sr=nt.FileIndex[_t];if(Sr.content){var ii=Sr.content.length;ii>0&&(ii<4096?Oe+=ii+63>>6:je+=ii+511>>9)}}for(var Lr=nt.FullPaths.length+3>>2,xn=Oe+7>>3,Tl=Oe+127>>7,qu=xn+je+Lr+Tl,Oo=qu+127>>7,Xh=Oo<=109?0:Math.ceil((Oo-109)/127);qu+Oo+Xh+127>>7>Oo;)Xh=++Oo<=109?0:Math.ceil((Oo-109)/127);var xs=[1,Xh,Oo,Tl,Lr,je,Oe,0];return nt.FileIndex[0].size=Oe<<6,xs[7]=(nt.FileIndex[0].start=xs[0]+xs[1]+xs[2]+xs[3]+xs[4]+xs[5])+(xs[6]+7>>3),xs})(M),U=oe(F[7]<<9),z=0,J=0;{for(z=0;z<8;++z)U.write_shift(1,ve[z]);for(z=0;z<8;++z)U.write_shift(2,0);for(U.write_shift(2,62),U.write_shift(2,3),U.write_shift(2,65534),U.write_shift(2,9),U.write_shift(2,6),z=0;z<3;++z)U.write_shift(2,0);for(U.write_shift(4,0),U.write_shift(4,F[2]),U.write_shift(4,F[0]+F[1]+F[2]+F[3]-1),U.write_shift(4,0),U.write_shift(4,4096),U.write_shift(4,F[3]?F[0]+F[1]+F[2]-1:R),U.write_shift(4,F[3]),U.write_shift(-4,F[1]?F[0]-1:R),U.write_shift(4,F[1]),z=0;z<109;++z)U.write_shift(-4,z<F[2]?F[1]+z:-1)}if(F[1])for(J=0;J<F[1];++J){for(;z<236+J*127;++z)U.write_shift(-4,z<F[2]?F[1]+z:-1);U.write_shift(-4,J===F[1]-1?R:J+1)}var se=function(nt){for(J+=nt;z<J-1;++z)U.write_shift(-4,z+1);nt&&(++z,U.write_shift(-4,R))};for(J=z=0,J+=F[1];z<J;++z)U.write_shift(-4,$e.DIFSECT);for(J+=F[2];z<J;++z)U.write_shift(-4,$e.FATSECT);se(F[3]),se(F[4]);for(var Q=0,Z=0,re=M.FileIndex[0];Q<M.FileIndex.length;++Q)re=M.FileIndex[Q],re.content&&(Z=re.content.length,!(Z<4096)&&(re.start=J,se(Z+511>>9)));for(se(F[6]+7>>3);U.l&511;)U.write_shift(-4,$e.ENDOFCHAIN);for(J=z=0,Q=0;Q<M.FileIndex.length;++Q)re=M.FileIndex[Q],re.content&&(Z=re.content.length,!(!Z||Z>=4096)&&(re.start=J,se(Z+63>>6)));for(;U.l&511;)U.write_shift(-4,$e.ENDOFCHAIN);for(z=0;z<F[4]<<2;++z){var Te=M.FullPaths[z];if(!Te||Te.length===0){for(Q=0;Q<17;++Q)U.write_shift(4,0);for(Q=0;Q<3;++Q)U.write_shift(4,-1);for(Q=0;Q<12;++Q)U.write_shift(4,0);continue}re=M.FileIndex[z],z===0&&(re.start=re.size?re.start-1:R);var Pe=z===0&&O.root||re.name;if(Z=2*(Pe.length+1),U.write_shift(64,Pe,"utf16le"),U.write_shift(2,Z),U.write_shift(1,re.type),U.write_shift(1,re.color),U.write_shift(-4,re.L),U.write_shift(-4,re.R),U.write_shift(-4,re.C),re.clsid)U.write_shift(16,re.clsid,"hex");else for(Q=0;Q<4;++Q)U.write_shift(4,0);U.write_shift(4,re.state||0),U.write_shift(4,0),U.write_shift(4,0),U.write_shift(4,0),U.write_shift(4,0),U.write_shift(4,re.start),U.write_shift(4,re.size),U.write_shift(4,0)}for(z=1;z<M.FileIndex.length;++z)if(re=M.FileIndex[z],re.size>=4096)if(U.l=re.start+1<<9,Kt&&Buffer.isBuffer(re.content))re.content.copy(U,U.l,0,re.size),U.l+=re.size+511&-512;else{for(Q=0;Q<re.size;++Q)U.write_shift(1,re.content[Q]);for(;Q&511;++Q)U.write_shift(1,0)}for(z=1;z<M.FileIndex.length;++z)if(re=M.FileIndex[z],re.size>0&&re.size<4096)if(Kt&&Buffer.isBuffer(re.content))re.content.copy(U,U.l,0,re.size),U.l+=re.size+63&-64;else{for(Q=0;Q<re.size;++Q)U.write_shift(1,re.content[Q]);for(;Q&63;++Q)U.write_shift(1,0)}if(Kt)U.l=U.length;else for(;U.l<U.length;)U.write_shift(1,0);return U}function k(M,L){var O=M.FullPaths.map(function(Q){return Q.toUpperCase()}),F=O.map(function(Q){var Z=Q.split("/");return Z[Z.length-(Q.slice(-1)=="/"?2:1)]}),U=!1;L.charCodeAt(0)===47?(U=!0,L=O[0].slice(0,-1)+L):U=L.indexOf("/")!==-1;var z=L.toUpperCase(),J=U===!0?O.indexOf(z):F.indexOf(z);if(J!==-1)return M.FileIndex[J];var se=!z.match(ky);for(z=z.replace(ra,""),se&&(z=z.replace(ky,"!")),J=0;J<O.length;++J)if((se?O[J].replace(ky,"!"):O[J]).replace(ra,"")==z||(se?F[J].replace(ky,"!"):F[J]).replace(ra,"")==z)return M.FileIndex[J];return null}var D=64,R=-2,De="d0cf11e0a1b11ae1",ve=[208,207,17,224,161,177,26,225],rt="00000000000000000000000000000000",$e={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:R,FREESECT:-1,HEADER_SIGNATURE:De,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:rt,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function vt(M,L,O){c();var F=S(M,O);l.writeFileSync(L,F)}function Be(M){for(var L=new Array(M.length),O=0;O<M.length;++O)L[O]=String.fromCharCode(M[O]);return L.join("")}function Ze(M,L){var O=S(M,L);switch(L&&L.type||"buffer"){case"file":return c(),l.writeFileSync(L.filename,O),O;case"binary":return typeof O=="string"?O:Be(O);case"base64":return jy(typeof O=="string"?O:Be(O));case"buffer":if(Kt)return Buffer.isBuffer(O)?O:mc(O);case"array":return typeof O=="string"?vs(O):O}return O}var le;function j(M){try{var L=M.InflateRaw,O=new L;if(O._processChunk(new Uint8Array([3,0]),O._finishFlushFlag),O.bytesRead)le=M;else throw new Error("zlib does not expose bytesRead")}catch(F){console.error("cannot use native zlib: "+(F.message||F))}}function K(M,L){if(!le)return Tv(M,L);var O=le.InflateRaw,F=new O,U=F._processChunk(M.slice(M.l),F._finishFlushFlag);return M.l+=F.bytesRead,U}function W(M){return le?le.deflateRawSync(M):Nt(M)}var H=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],ne=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],_e=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function be(M){var L=(M<<1|M<<11)&139536|(M<<5|M<<15)&558144;return(L>>16|L>>8|L)&255}for(var we=typeof Uint8Array<"u",ce=we?new Uint8Array(256):[],et=0;et<256;++et)ce[et]=be(et);function N(M,L){var O=ce[M&255];return L<=8?O>>>8-L:(O=O<<8|ce[M>>8&255],L<=16?O>>>16-L:(O=O<<8|ce[M>>16&255],O>>>24-L))}function Et(M,L){var O=L&7,F=L>>>3;return(M[F]|(O<=6?0:M[F+1]<<8))>>>O&3}function gt(M,L){var O=L&7,F=L>>>3;return(M[F]|(O<=5?0:M[F+1]<<8))>>>O&7}function Jt(M,L){var O=L&7,F=L>>>3;return(M[F]|(O<=4?0:M[F+1]<<8))>>>O&15}function zt(M,L){var O=L&7,F=L>>>3;return(M[F]|(O<=3?0:M[F+1]<<8))>>>O&31}function We(M,L){var O=L&7,F=L>>>3;return(M[F]|(O<=1?0:M[F+1]<<8))>>>O&127}function nn(M,L,O){var F=L&7,U=L>>>3,z=(1<<O)-1,J=M[U]>>>F;return O<8-F||(J|=M[U+1]<<8-F,O<16-F)||(J|=M[U+2]<<16-F,O<24-F)||(J|=M[U+3]<<24-F),J&z}function sa(M,L,O){var F=L&7,U=L>>>3;return F<=5?M[U]|=(O&7)<<F:(M[U]|=O<<F&255,M[U+1]=(O&7)>>8-F),L+3}function Xa(M,L,O){var F=L&7,U=L>>>3;return O=(O&1)<<F,M[U]|=O,L+1}function Qa(M,L,O){var F=L&7,U=L>>>3;return O<<=F,M[U]|=O&255,O>>>=8,M[U+1]=O,L+8}function _c(M,L,O){var F=L&7,U=L>>>3;return O<<=F,M[U]|=O&255,O>>>=8,M[U+1]=O&255,M[U+2]=O>>>8,L+16}function Po(M,L){var O=M.length,F=2*O>L?2*O:L+5,U=0;if(O>=L)return M;if(Kt){var z=sj(F);if(M.copy)M.copy(z);else for(;U<M.length;++U)z[U]=M[U];return z}else if(we){var J=new Uint8Array(F);if(J.set)J.set(M);else for(;U<O;++U)J[U]=M[U];return J}return M.length=F,M}function _i(M){for(var L=new Array(M),O=0;O<M;++O)L[O]=0;return L}function Ja(M,L,O){var F=1,U=0,z=0,J=0,se=0,Q=M.length,Z=we?new Uint16Array(32):_i(32);for(z=0;z<32;++z)Z[z]=0;for(z=Q;z<O;++z)M[z]=0;Q=M.length;var re=we?new Uint16Array(Q):_i(Q);for(z=0;z<Q;++z)Z[U=M[z]]++,F<U&&(F=U),re[z]=0;for(Z[0]=0,z=1;z<=F;++z)Z[z+16]=se=se+Z[z-1]<<1;for(z=0;z<Q;++z)se=M[z],se!=0&&(re[z]=Z[se+16]++);var Te=0;for(z=0;z<Q;++z)if(Te=M[z],Te!=0)for(se=N(re[z],F)>>F-Te,J=(1<<F+4-Te)-1;J>=0;--J)L[se|J<<Te]=Te&15|z<<4;return F}var Is=we?new Uint16Array(512):_i(512),cn=we?new Uint16Array(32):_i(32);if(!we){for(var pr=0;pr<512;++pr)Is[pr]=0;for(pr=0;pr<32;++pr)cn[pr]=0}(function(){for(var M=[],L=0;L<32;L++)M.push(5);Ja(M,cn,32);var O=[];for(L=0;L<=143;L++)O.push(8);for(;L<=255;L++)O.push(9);for(;L<=279;L++)O.push(7);for(;L<=287;L++)O.push(8);Ja(O,Is,288)})();var oa=(function(){for(var L=we?new Uint8Array(32768):[],O=0,F=0;O<_e.length-1;++O)for(;F<_e[O+1];++F)L[F]=O;for(;F<32768;++F)L[F]=29;var U=we?new Uint8Array(259):[];for(O=0,F=0;O<ne.length-1;++O)for(;F<ne[O+1];++F)U[F]=O;function z(se,Q){for(var Z=0;Z<se.length;){var re=Math.min(65535,se.length-Z),Te=Z+re==se.length;for(Q.write_shift(1,+Te),Q.write_shift(2,re),Q.write_shift(2,~re&65535);re-- >0;)Q[Q.l++]=se[Z++]}return Q.l}function J(se,Q){for(var Z=0,re=0,Te=we?new Uint16Array(32768):[];re<se.length;){var Pe=Math.min(65535,se.length-re);if(Pe<10){for(Z=sa(Q,Z,+(re+Pe==se.length)),Z&7&&(Z+=8-(Z&7)),Q.l=Z/8|0,Q.write_shift(2,Pe),Q.write_shift(2,~Pe&65535);Pe-- >0;)Q[Q.l++]=se[re++];Z=Q.l*8;continue}Z=sa(Q,Z,+(re+Pe==se.length)+2);for(var nt=0;Pe-- >0;){var Oe=se[re];nt=(nt<<5^Oe)&32767;var je=-1,_t=0;if((je=Te[nt])&&(je|=re&-32768,je>re&&(je-=32768),je<re))for(;se[je+_t]==se[re+_t]&&_t<250;)++_t;if(_t>2){Oe=U[_t],Oe<=22?Z=Qa(Q,Z,ce[Oe+1]>>1)-1:(Qa(Q,Z,3),Z+=5,Qa(Q,Z,ce[Oe-23]>>5),Z+=3);var Sr=Oe<8?0:Oe-4>>2;Sr>0&&(_c(Q,Z,_t-ne[Oe]),Z+=Sr),Oe=L[re-je],Z=Qa(Q,Z,ce[Oe]>>3),Z-=3;var ii=Oe<4?0:Oe-2>>1;ii>0&&(_c(Q,Z,re-je-_e[Oe]),Z+=ii);for(var Lr=0;Lr<_t;++Lr)Te[nt]=re&32767,nt=(nt<<5^se[re])&32767,++re;Pe-=_t-1}else Oe<=143?Oe=Oe+48:Z=Xa(Q,Z,1),Z=Qa(Q,Z,ce[Oe]),Te[nt]=re&32767,++re}Z=Qa(Q,Z,0)-1}return Q.l=(Z+7)/8|0,Q.l}return function(Q,Z){return Q.length<8?z(Q,Z):J(Q,Z)}})();function Nt(M){var L=oe(50+Math.floor(M.length*1.1)),O=oa(M,L);return L.slice(0,O)}var Kr=we?new Uint16Array(32768):_i(32768),Da=we?new Uint16Array(32768):_i(32768),zr=we?new Uint16Array(128):_i(128),Ro=1,Np=1;function Lp(M,L){var O=zt(M,L)+257;L+=5;var F=zt(M,L)+1;L+=5;var U=Jt(M,L)+4;L+=4;for(var z=0,J=we?new Uint8Array(19):_i(19),se=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Q=1,Z=we?new Uint8Array(8):_i(8),re=we?new Uint8Array(8):_i(8),Te=J.length,Pe=0;Pe<U;++Pe)J[H[Pe]]=z=gt(M,L),Q<z&&(Q=z),Z[z]++,L+=3;var nt=0;for(Z[0]=0,Pe=1;Pe<=Q;++Pe)re[Pe]=nt=nt+Z[Pe-1]<<1;for(Pe=0;Pe<Te;++Pe)(nt=J[Pe])!=0&&(se[Pe]=re[nt]++);var Oe=0;for(Pe=0;Pe<Te;++Pe)if(Oe=J[Pe],Oe!=0){nt=ce[se[Pe]]>>8-Oe;
137for(var je=(1<<7-Oe)-1;je>=0;--je)zr[nt|je<<Oe]=Oe&7|Pe<<3}var _t=[];for(Q=1;_t.length<O+F;)switch(nt=zr[We(M,L)],L+=nt&7,nt>>>=3){case 16:for(z=3+Et(M,L),L+=2,nt=_t[_t.length-1];z-- >0;)_t.push(nt);break;case 17:for(z=3+gt(M,L),L+=3;z-- >0;)_t.push(0);break;case 18:for(z=11+We(M,L),L+=7;z-- >0;)_t.push(0);break;default:_t.push(nt),Q<nt&&(Q=nt);break}var Sr=_t.slice(0,O),ii=_t.slice(O);for(Pe=O;Pe<286;++Pe)Sr[Pe]=0;for(Pe=F;Pe<30;++Pe)ii[Pe]=0;return Ro=Ja(Sr,Kr,286),Np=Ja(ii,Da,30),L}function tC(M,L){if(M[0]==3&&!(M[1]&3))return[Cu(L),2];for(var O=0,F=0,U=sj(L||1<<18),z=0,J=U.length>>>0,se=0,Q=0;(F&1)==0;){if(F=gt(M,O),O+=3,F>>>1)F>>1==1?(se=9,Q=5):(O=Lp(M,O),se=Ro,Q=Np);else{O&7&&(O+=8-(O&7));var Z=M[O>>>3]|M[(O>>>3)+1]<<8;if(O+=32,Z>0)for(!L&&J<z+Z&&(U=Po(U,z+Z),J=U.length);Z-- >0;)U[z++]=M[O>>>3],O+=8;continue}for(;;){!L&&J<z+32767&&(U=Po(U,z+32767),J=U.length);var re=nn(M,O,se),Te=F>>>1==1?Is[re]:Kr[re];if(O+=Te&15,Te>>>=4,(Te>>>8&255)===0)U[z++]=Te;else{if(Te==256)break;Te-=257;var Pe=Te<8?0:Te-4>>2;Pe>5&&(Pe=0);var nt=z+ne[Te];Pe>0&&(nt+=nn(M,O,Pe),O+=Pe),re=nn(M,O,Q),Te=F>>>1==1?cn[re]:Da[re],O+=Te&15,Te>>>=4;var Oe=Te<4?0:Te-2>>1,je=_e[Te];for(Oe>0&&(je+=nn(M,O,Oe),O+=Oe),!L&&J<nt&&(U=Po(U,nt+100),J=U.length);z<nt;)U[z]=U[z-je],++z}}}return L?[U,O+7>>>3]:[U.slice(0,z),O+7>>>3]}function Tv(M,L){var O=M.slice(M.l||0),F=tC(O,L);return M.l+=F[1],F[0]}function qh(M,L){if(M)typeof console<"u"&&console.error(L);else throw new Error(L)}function Vp(M,L){var O=M;Pi(O,0);var F=[],U=[],z={FileIndex:F,FullPaths:U};b(z,{root:L.root});for(var J=O.length-4;(O[J]!=80||O[J+1]!=75||O[J+2]!=5||O[J+3]!=6)&&J>=0;)--J;O.l=J+4,O.l+=4;var se=O.read_shift(2);O.l+=6;var Q=O.read_shift(4);for(O.l=Q,J=0;J<se;++J){O.l+=20;var Z=O.read_shift(4),re=O.read_shift(4),Te=O.read_shift(2),Pe=O.read_shift(2),nt=O.read_shift(2);O.l+=8;var Oe=O.read_shift(4),je=o(O.slice(O.l+Te,O.l+Te+Pe));O.l+=Te+Pe+nt;var _t=O.l;O.l=Oe+4,Cv(O,Z,re,z,je),O.l=_t}return z}function Cv(M,L,O,F,U){M.l+=2;var z=M.read_shift(2),J=M.read_shift(2),se=s(M);if(z&8257)throw new Error("Unsupported ZIP encryption");for(var Q=M.read_shift(4),Z=M.read_shift(4),re=M.read_shift(4),Te=M.read_shift(2),Pe=M.read_shift(2),nt="",Oe=0;Oe<Te;++Oe)nt+=String.fromCharCode(M[M.l++]);if(Pe){var je=o(M.slice(M.l,M.l+Pe));(je[21589]||{}).mt&&(se=je[21589].mt),((U||{})[21589]||{}).mt&&(se=U[21589].mt)}M.l+=Pe;var _t=M.slice(M.l,M.l+Z);switch(J){case 8:_t=K(M,re);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+J)}var Sr=!1;z&8&&(Q=M.read_shift(4),Q==134695760&&(Q=M.read_shift(4),Sr=!0),Z=M.read_shift(4),re=M.read_shift(4)),Z!=L&&qh(Sr,"Bad compressed size: "+L+" != "+Z),re!=O&&qh(Sr,"Bad uncompressed size: "+O+" != "+re),Yh(F,nt,_t,{unsafe:!0,mt:se})}function Hu(M,L){var O=L||{},F=[],U=[],z=oe(1),J=O.compression?8:0,se=0,Q=!1;Q&&(se|=8);var Z=0,re=0,Te=0,Pe=0,nt=M.FullPaths[0],Oe=nt,je=M.FileIndex[0],_t=[],Sr=0;for(Z=1;Z<M.FullPaths.length;++Z)if(Oe=M.FullPaths[Z].slice(nt.length),je=M.FileIndex[Z],!(!je.size||!je.content||Oe=="�Sh33tJ5")){var ii=Te,Lr=oe(Oe.length);for(re=0;re<Oe.length;++re)Lr.write_shift(1,Oe.charCodeAt(re)&127);Lr=Lr.slice(0,Lr.l),_t[Pe]=Fle.buf(je.content,0);var xn=je.content;J==8&&(xn=W(xn)),z=oe(30),z.write_shift(4,67324752),z.write_shift(2,20),z.write_shift(2,se),z.write_shift(2,J),je.mt?a(z,je.mt):z.write_shift(4,0),z.write_shift(-4,se&8?0:_t[Pe]),z.write_shift(4,se&8?0:xn.length),z.write_shift(4,se&8?0:je.content.length),z.write_shift(2,Lr.length),z.write_shift(2,0),Te+=z.length,F.push(z),Te+=Lr.length,F.push(Lr),Te+=xn.length,F.push(xn),se&8&&(z=oe(12),z.write_shift(-4,_t[Pe]),z.write_shift(4,xn.length),z.write_shift(4,je.content.length),Te+=z.l,F.push(z)),z=oe(46),z.write_shift(4,33639248),z.write_shift(2,0),z.write_shift(2,20),z.write_shift(2,se),z.write_shift(2,J),z.write_shift(4,0),z.write_shift(-4,_t[Pe]),z.write_shift(4,xn.length),z.write_shift(4,je.content.length),z.write_shift(2,Lr.length),z.write_shift(2,0),z.write_shift(2,0),z.write_shift(2,0),z.write_shift(2,0),z.write_shift(4,0),z.write_shift(4,ii),Sr+=z.l,U.push(z),Sr+=Lr.length,U.push(Lr),++Pe}return z=oe(22),z.write_shift(4,101010256),z.write_shift(2,0),z.write_shift(2,0),z.write_shift(2,Pe),z.write_shift(2,Pe),z.write_shift(4,Sr),z.write_shift(4,Te),z.write_shift(2,0),gi([gi(F),gi(U),z])}var bc={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function Up(M,L){if(M.ctype)return M.ctype;var O=M.name||"",F=O.match(/\.([^\.]+)$/);return F&&bc[F[1]]||L&&(F=(O=L).match(/[\.\\]([^\.\\])+$/),F&&bc[F[1]])?bc[F[1]]:"application/octet-stream"}function El(M){for(var L=jy(M),O=[],F=0;F<L.length;F+=76)O.push(L.slice(F,F+76));return O.join(`\r 138`)+`\r 139`}function Sv(M){var L=M.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(Z){var re=Z.charCo
vendor: 6,081 bytes, lines 139-147
139deAt(0).toString(16).toUpperCase();return"="+(re.length==1?"0"+re:re)});L=L.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),L.charAt(0)==` 140`&&(L="=0D"+L.slice(1)),L=L.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,` 141=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var O=[],F=L.split(`\r 142`),U=0;U<F.length;++U){var z=F[U];if(z.length==0){O.push("");continue}for(var J=0;J<z.length;){var se=76,Q=z.slice(J,J+se);Q.charAt(se-1)=="="?se--:Q.charAt(se-2)=="="?se-=2:Q.charAt(se-3)=="="&&(se-=3),Q=z.slice(J,J+se),J+=se,J<z.length&&(Q+="="),O.push(Q)}}return O.join(`\r 143`)}function Kh(M){for(var L=[],O=0;O<M.length;++O){for(var F=M[O];O<=M.length&&F.charAt(F.length-1)=="=";)F=F.slice(0,F.length-1)+M[++O];L.push(F)}for(var U=0;U<L.length;++U)L[U]=L[U].replace(/[=][0-9A-Fa-f]{2}/g,function(z){return String.fromCharCode(parseInt(z.slice(1),16))});return vs(L.join(`\r 144`))}function Dv(M,L,O){for(var F="",U="",z="",J,se=0;se<10;++se){var Q=L[se];if(!Q||Q.match(/^\s*$/))break;var Z=Q.match(/^(.*?):\s*([^\s].*)$/);if(Z)switch(Z[1].toLowerCase()){case"content-location":F=Z[2].trim();break;case"content-type":z=Z[2].trim();break;case"content-transfer-encoding":U=Z[2].trim();break}}switch(++se,U.toLowerCase()){case"base64":J=vs(bs(L.slice(se).join("")));break;case"quoted-printable":J=Kh(L.slice(se));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+U)}var re=Yh(M,F.slice(O.length),J,{unsafe:!0});z&&(re.ctype=z)}function $u(M,L){if(Be(M.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var O=L&&L.root||"",F=(Kt&&Buffer.isBuffer(M)?M.toString("binary"):Be(M)).split(`\r 145`),U=0,z="";for(U=0;U<F.length;++U)if(z=F[U],!!/^Content-Location:/i.test(z)&&(z=z.slice(z.indexOf("file")),O||(O=z.slice(0,z.lastIndexOf("/")+1)),z.slice(0,O.length)!=O))for(;O.length>0&&(O=O.slice(0,O.length-1),O=O.slice(0,O.lastIndexOf("/")+1),z.slice(0,O.length)!=O););var J=(F[1]||"").match(/boundary="(.*?)"/);if(!J)throw new Error("MAD cannot find boundary");var se="--"+(J[1]||""),Q=[],Z=[],re={FileIndex:Q,FullPaths:Z};b(re);var Te,Pe=0;for(U=0;U<F.length;++U){var nt=F[U];nt!==se&&nt!==se+"--"||(Pe++&&Dv(re,F.slice(Te,U),O),Te=U)}return re}function Av(M,L){var O=L||{},F=O.boundary||"SheetJS";F="------="+F;for(var U=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+F.slice(2)+'"',"","",""],z=M.FullPaths[0],J=z,se=M.FileIndex[0],Q=1;Q<M.FullPaths.length;++Q)if(J=M.FullPaths[Q].slice(z.length),se=M.FileIndex[Q],!(!se.size||!se.content||J=="�Sh33tJ5")){J=J.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(_t){return"_x"+_t.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(_t){return"_u"+_t.charCodeAt(0).toString(16)+"_"});for(var Z=se.content,re=Kt&&Buffer.isBuffer(Z)?Z.toString("binary"):Be(Z),Te=0,Pe=Math.min(1024,re.length),nt=0,Oe=0;Oe<=Pe;++Oe)(nt=re.charCodeAt(Oe))>=32&&nt<128&&++Te;var je=Te>=Pe*4/5;U.push(F),U.push("Content-Location: "+(O.root||"file:///C:/SheetJS/")+J),U.push("Content-Transfer-Encoding: "+(je?"quoted-printable":"base64")),U.push("Content-Type: "+Up(se,J)),U.push(""),U.push(je?Sv(re):El(re))}return U.push(F+`--\r 146`),U.join(`\r 147`)}function bi(M){var L={};return b(L,M),L}function Yh(M,L,O,F){var U=F&&F.unsafe;U||b(M);var z=!U&&ct.find(M,L);if(!z){var J=M.FullPaths[0];L.slice(0,J.length)==J?J=L:(J.slice(-1)!="/"&&(J+="/"),J=(J+L).replace("//","/")),z={name:i(L),type:2},M.FileIndex.push(z),M.FullPaths.push(J),U||ct.utils.cfb_gc(M)}return z.content=O,z.size=O?O.length:0,F&&(F.CLSID&&(z.clsid=F.CLSID),F.mt&&(z.mt=F.mt),F.ct&&(z.ct=F.ct)),z}function Gu(M,L){b(M);var O=ct.find(M,L);if(O){for(var F=0;F<M.FileIndex.length;++F)if(M.FileIndex[F]==O)return M.FileIndex.splice(F,1),M.FullPaths.splice(F,1),!0}return!1}function Wu(M,L,O){b(M);var F=ct.find(M,L);if(F){for(var U=0;U<M.FileIndex.length;++U)if(M.FileIndex[U]==F)return M.FileIndex[U].name=i(O),M.FullPaths[U]=O,!0}return!1}function rC(M){I(M,!0)}return e.find=k,e.read=V,e.parse=u,e.write=Ze,e.writeFile=vt,e.utils={cfb_new:bi,cfb_add:Yh,cfb_del:Gu,cfb_mov:Wu,cfb_gc:rC,ReadShift:Ry,CheckField:jH,prep_blob:Pi,bconcat:gi,use_zlib:j,_deflateRaw:Nt,_inflateRaw:Tv,consts:$e},e})(),tp;function Ble(r){return typeof r=="string"?$E(r):Array.isArray(r)?lle(r):r}function tv(r,e,t){if(typeof tp<"u"&&tp.writeFileSync)return t?tp.writeFileSync(r,e,t):tp.writeFileSync(r,e);if(typeof Deno<"u"){if(t&&typeof e=="string")switch(t){case"utf8":e=new TextEncoder(t).encode(e);break;case"binary":e=$E(e);break;default:throw new Error("Unsupported encoding "+t)}return Deno.writeFileSync(r,e)}var n=t=="utf8"?pl(e):e;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,r);if(typeof Blob<"u"){var i=new Blob([Ble(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(i,r);if(typeof saveAs<"u")return saveAs(i,r);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var a=URL.createObjectURL(i);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),chrome.downloads.download({url:a,filename:r,saveAs:!0});var s=document.createElement("a");if(s.download!=null)return s.download=r,s.href=a,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),a}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var o=File(r);return o.open("w"),o.encoding="binary",Array.isArray(e)&&(e=Mu(e)),o.write(e),o.close(),e}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+r)}function Nle(r){if(typeof tp<"u")return tp.readFileSync(r);if(typeof Deno<"u")return Deno.readFileSync(r);if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var e=File(r);e.open("r"),e.encoding="binary";var t=e.read();return e.close(),t}catch(n){if(!n.message||!n.message.match(/onstruct/))throw n}throw new Error("Cannot access file "+r)}function In(r){for(var e=Object.keys(r),t=[],n=0;n<e.length;
147++n)Object.prototype.hasOwnProperty.call(r,e[n])&&t.push(e[n]);return t}function mj(r,e){for(var t=[],n=In(r),i=0;i!==n.length;++i)t[r[n[i]][e]]==null&&(t[r[n[i]][e]]=n[i]);return t}function WE(r){for(var e=[],t=In(r),n=0;n!==t.length;++n)e[r[t[n]]]=t[n];return e}function qE(r){for(var e=[],t=In(r),n=0;n!==t.length;++n)e[r[t[n]]]=parseInt(t[n],10);return e}function Lle(r){for(var e=[],t=In(r),n=0;n!==t.length;++n)e[r[t[n]]]==null&&(e[r[t[n]]]=[]),e[r[t[n]]].push(t[n]);return e}var OE=new Date(1899,11,30,0,0,0);function ni(r,e){var t=r.getTime();e&&(t-=1462*24*60*60*1e3);var n=OE.getTime()+(r.getTimezoneOffset()-OE.getTimezoneOffset())*6e4;return(t-n)/(1440*60*1e3)}var TH=new Date,Vle=OE.getTime()+(TH.getTimezoneOffset()-OE.getTimezoneOffset())*6e4,pj=TH.getTimezoneOffset();function KE(r){var e=new Date;return e.setTime(r*24*60*60*1e3+Vle),e.getTimezoneOffset()!==pj&&e.setTime(e.getTime()+(e.getTimezoneOffset()-pj)*6e4),e}function Ule(r){var e=0,t=0,n=!1,i=r.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!i)throw new Error("|"+r+"| is not an ISO8601 Duration");for(var a=1;a!=i.length;++a)if(i[a]){switch(t=1,a>3&&(n=!0),i[a].slice(i[a].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+i[a].slice(i[a].length-1));case"D":t*=24;case"H":t*=60;case"M":if(n)t*=60;else throw new Error("Unsupported ISO Duration Field: M");case"S":break}e+=t*parseInt(i[a],10)}return e}var gj=new Date("2017-02-19T19:06:09.000Z"),CH=isNaN(gj.getFullYear())?new Date("2/19/17"):gj,zle=CH.getFullYear()==2017;function Wr(r,e){var t=new Date(r);if(zle)return e>0?t.setTime(t.getTime()+t.getTimezoneOffset()*60*1e3):e<0&&t.setTime(t.getTime()-t.getTimezoneOffset()*60*1e3),t;if(r instanceof Date)return r;if(CH.getFullYear()==1917&&!isNaN(t.getFullYear())){var n=t.getFullYear();return r.indexOf(""+n)>-1||t.setFullYear(t.getFullYear()+100),t}var i=r.match(/\d+/g)||["2017","2","19","0","0","0"],a=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return r.indexOf("Z")>-1&&(a=new Date(a.getTime()-a.getTimezoneOffset()*60*1e3)),a}function Th(r,e){if(Kt&&Buffer.isBuffer(r)){if(e){if(r[0]==255&&r[1]==254)return pl(r.slice(2).toString("utf16le"));if(r[1]==254&&r[2]==255)return pl(fH(r.slice(2).toString("binary")))}return r.toString("binary")}if(typeof TextDecoder<"u")try{if(e){if(r[0]==255&&r[1]==254)return pl(new TextDecoder("utf-16le").decode(r.slice(2)));if(r[0]==254&&r[1]==255)return pl(new TextDecoder("utf-16be").decode(r.slice(2)))}var t={"\u20AC":"\x80","\u201A":"\x82",\u0192:"\x83","\u201E":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87","\u02C6":"\x88","\u2030":"\x89",\u0160:"\x8A","\u2039":"\x8B",\u0152:"\x8C",\u017D:"\x8E","\u2018":"\x91","\u2019":"\x92","\u201C":"\x93","\u201D":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02DC":"\x98","\u2122":"\x99",\u0161:"\x9A","\u203A":"\x9B",\u0153:"\x9C",\u017E:"\x9E",\u0178:"\x9F"};return Array.isArray(r)&&(r=new Uint8Array(r)),new TextDecoder("latin1").decode(r).replace(/[â¬âÆââ¦â â¡Ëâ°Å â¹ÅŽâââââ¢ââËâ¢Å¡âºÅžŸ]/g,function(a){return t[a]||a})}catch{}for(var n=[],i=0;i!=r.length;++i)n.push(String.fromCharCode(r[i]));return n.join("")}function qr(r){if(typeof JSON<"u"&&!Array.isArray(r))return JSON.parse(JSON.stringify(r));if(typeof r!="object"||r==null)return r;if(r instanceof Date)return new Date(r.getTime());var e={};for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=qr(r[t]));return e}function _n(r,e){for(var t="";t.length<e;)t+=r;return t}function Mo(r){var e=Number(r);if(!isNaN(e))return isFinite(e)?e:NaN;if(!/\d/.test(r))return e;var t=1,n=r.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return t*=100,""});return!isNaN(e=Number(n))||(n=n.replace(/[(](.*)[)]/,function(i,a){return t=-t,a}),!isNaN(e=Number(n)))?e/t:e}var jle=["january","february","march","april","may","june","july","august","september","october","november","december"];function lp(r){var e=new Date(r),t=new Date(NaN),n=e.getYear(),i=e.getMonth(),a=e.getDate();if(isNaN(a))return t;var s=r.toLowerCase();if(s.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(s=s.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),s.length>3&&jle.indexOf(s)==-1)return t}else if(s.match(/[a-z]/))return t;return n<0||n>8099?t:(i>0||a>1)&&n!=101?e:r.match(/[^-0-9:,\/\\]/)?t:e}var Hle=(function(){var r="abacaba".split(/(:?b)/i).length==5;return function(t,n,i){if(r||typeof n=="string")return t.split(n);for(var a=t.split(n),s=[a[0]],o=1;o<a.length;++o)s.push(i),s.push(a[o]);return s}})();function SH(r){return r?r.content&&r.type?Th(r.content,!0):r.data?My(r.data):r.asNodeBuffer&&Kt?My(r.asNodeBuffer().toString("binary")):r.asBinary?My(r.asBinary()):r._data&&r._data.getContent?My(Th(Array.prototype.slice.call(r._data.getContent(),0))):null:null}function DH(r){if(!r)return null;if(r.data)return pR(r.data);if(r.asNodeBuffer&&Kt)return r.asNodeBuffer();if(r._data&&r._data.getContent){var e=r._data.getContent();return typeof e=="string"?pR(e):Array.prototype.slice.call(e)}return r.content&&r.type?r.content:null}function $le(r){return r&&r.name.slice(-4)===".bin"?DH(r):SH(r)}function qs(r,e){for(var t=r.FullPaths||In(r.files),n=e.toLowerCase().replace(/[\/]/g,"\\"),i=n.replace(/\\/g,"/"),a=0;a<t.length;++a){var s=t[a].replace(/^Root Entry[\/]/,"").toLowerCase();if(n==s||i==s)return r.files?r.files[t[a]]:r.FileIndex[a]}return null}function RR(r,e){var t=qs(r,e);if(t==null)throw new Error("Cannot find file "+e+" in zip");return t}function qn(r,e,t){if(!t)return $le(RR(r,e));if(!e)return null;try{return qn(r,e)}catch{return null}}function _s(r,e,t){if(!t)return SH(RR(r,e));if(!e)return null;try{return _s(r,e)}catch{return null}}function AH(r,e,t){if(!t)return DH(RR(r,e));if(!e)return null;try{return AH(r,e)}catch{return null}}function yj(r){for(var e=r.FullPaths||In(r.files),t=[],n=0;n<e.length;++n)e[n].slice(-1)!="/"&&t.push(e[n].replace(/^Root Entry[\/]/,""));return t.sort()}function Vt(r,e,t){if(r.FullPaths){if(typeof t=="string"){var n;return Kt?n=mc(t):n=cle(t),ct.utils.cfb_add(r,e,n)}ct.utils.cfb_add(r,e,t)}
147else r.file(e,t)}function OR(){return ct.utils.cfb_new()}function MH(r,e){switch(e.type){case"base64":return ct.read(r,{type:"base64"});case"binary":return ct.read(r,{type:"binary"});case"buffer":case"array":return ct.read(r,{type:"buffer"})}throw new Error("Unrecognized type "+e.type)}function Py(r,e){if(r.charAt(0)=="/")return r.slice(1);var t=e.split("/");e.slice(-1)!="/"&&t.pop();for(var n=r.split("/");n.length!==0;){var i=n.shift();i===".."?t.pop():i!=="."&&t.push(i)}return t.join("/")}var kn=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r 148`,Gle=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,vj=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,Wle=/<[^>]*>/g,aa=kn.match(vj)?vj:Wle,qle=/<\w*:/,Kle=/<(\/?)\w+:/;function Ct(r,e,t){for(var n={},i=0,a=0;i!==r.length&&!((a=r.charCodeAt(i))===32||a===10||a===13);++i);if(e||(n[0]=r.slice(0,i)),i===r.length)return n;var s=r.match(Gle),o=0,l="",c=0,u="",d="",f=1;if(s)for(c=0;c!=s.length;++c){for(d=s[c],a=0;a!=d.length&&d.charCodeAt(a)!==61;++a);for(u=d.slice(0,a).trim();d.charCodeAt(a+1)==32;)++a;for(f=(i=d.charCodeAt(a+1))==34||i==39?1:0,l=d.slice(a+1+f,d.length-f),o=0;o!=u.length&&u.charCodeAt(o)!==58;++o);if(o===u.length)u.indexOf("_")>0&&(u=u.slice(0,u.indexOf("_"))),n[u]=l,t||(n[u.toLowerCase()]=l);else{var p=(o===5&&u.slice(0,5)==="xmlns"?"xmlns":"")+u.slice(o+1);if(n[p]&&u.slice(o-3,o)=="ext")continue;n[p]=l,t||(n[p.toLowerCase()]=l)}}return n}function yl(r){return r.replace(Kle,"<$1")}var kH={""":'"',"'":"'",">":">","<":"<","&":"&"}
148,FR=WE(kH),dr=(function(){var r=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,e=/_x([\da-fA-F]{4})_/ig;return function t(n){var i=n+"",a=i.indexOf("<![CDATA[");if(a==-1)return i.replace(r,function(o,l){return kH[o]||String.fromCharCode(parseInt(l,o.indexOf("x")>-1?16:10))||o}).replace(e,function(o,l){return String.fromCharCode(parseInt(l,16))});var s=i.indexOf("]]>");return t(i.slice(0,a))+i.slice(a+9,s)+t(i.slice(s+3))}})(),BR=/[&<>'"]/g,Yle=/[\u0000-\u0008\u000b-\u001f]/g;function Cr(r){var e=r+"";return e.replace(BR,function(t){return FR[t]}).replace(Yle,function(t){return"_x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+"_"})}function _j(r){return Cr(r).replace(/ /g,"_x0020_")}var PH=/[\u0000-\u001f]/g;function NR(r){var e=r+"";return e.replace(BR,function(t){return FR[t]}).replace(/\n/g,"<br/>").replace(PH,function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"})}function Xle(r){var e=r+"";return e.replace(BR,function(t){return FR[t]}).replace(PH,function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"})}
148var bj=(function(){var r=/&#(\d+);/g;function e(t,n){return String.fromCharCode(parseInt(n,10))}return function(n){return n.replace(r,e)}})();function Qle(r){return r.replace(/(\r\n|[\r\n])/g," ")}function Gr(r){switch(r){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function rR(r){for(var e="",t=0,n=0,i=0,a=0,s=0,o=0;t<r.length;){if(n=r.charCodeAt(t++),n<128){e+=String.fromCharCode(n);continue}if(i=r.charCodeAt(t++),n>191&&n<224){s=(n&31)<<6,s|=i&63,e+=String.fromCharCode(s);continue}if(a=r.charCodeAt(t++),n<240){e+=String.fromCharCode((n&15)<<12|(i&63)<<6|a&63);continue}s=r.charCodeAt(t++),o=((n&7)<<18|(i&63)<<12|(a&63)<<6|s&63)-65536,e+=String.fromCharCode(55296+(o>>>10&1023)),e+=String.fromCharCode(56320+(o&1023))}return e}function wj(r){var e=Cu(2*r.length),t,n,i=1,a=0,s=0,o;for(n=0;n<r.length;n+=i)i=1,(o=r.charCodeAt(n))<128?t=o:o<224?(t=(o&31)*64+(r.charCodeAt(n+1)&63),i=2):o<240?(t=(o&15)*4096+(r.charCodeAt(n+1)&63)*64+(r.charCodeAt(n+2)&63),i=3):(i=4,t=(o&7)*262144+(r.charCodeAt(n+1)&63)*4096+(r.charCodeAt(n+2)&63)*64+(r.charCodeAt(n+3)&63),t-=65536,s=55296+(t>>>10&1023),t=56320+(t&1023)),s!==0&&(e[a++]=s&255,e[a++]=s>>>8,s=0),e[a++]=t%256,e[a++]=t>>>8;return e.slice(0,a).toString("ucs2")}function Ij(r){return mc(r,"binary").toString("utf8")}var wE="foo bar baz\xE2\x98\x83\xF0\x9F\x8D\xA3",kr=Kt&&(Ij(wE)==rR(wE)&&Ij||wj(wE)==rR(wE)&&wj)||rR,pl=Kt?function(r){return mc(r,"utf8").toString("binary")}:function(r){for(var e=[],t=0,n=0,i=0;t<r.length;)switch(n=r.charCodeAt(t++),!0){case n<128:e.push(String.fromCharCode(n));break;case n<2048:e.push(String.fromCharCode(192+(n>>6))),e.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,i=r.charCodeAt(t++)-56320+(n<<10),e.push(String.fromCharCode(240+(i>>18&7))),e.push(String.fromCharCode(144+(i>>12&63))),e.push(String.fromCharCode(128+(i>>6&63))),e.push(String.fromCharCode(128+(i&63)));break;default:e.push(String.fromCharCode(224+(n>>12))),e.push(String.fromCharCode(128+(n>>6&63))),e.push(String.fromCharCode(128+(n&63)))}return e.join("")},$y=(function(){var r={};return function(t,n){var i=t+"|"+(n||"");return r[i]?r[i]:r[i]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+t+">",n||"")}})(),RH=(function(){var r=[["nbsp"," "],["middot","\xB7"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]});return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,` 149`).replace(/<[^>]*>/g,""),i=0;i<r.length;++i)n=n.replace(r[i][0],r[i][1]);return n}})(),Jle=(function(){var r={};return function(t){return r[t]!==void 0?r[t]:r[t]=new RegExp("<(?:vt:)?"+t+">([\\s\\S]*?)</(?:vt:)?"+t+">","g")}})(),Zle=/<\/?(?:vt:)?variant>/g,ece=/<(?:vt:)([^>]*)>([\s\S]*)</;function xj(r,e){var t=Ct(r),n=r.match(Jle(t.baseType))||[],i=[];if(n.length!=t.size){if(e.WTF)throw new Error("unexpected vector length "+n.length+" != "+t.size);return i}return n.forEach(function(a){var s=a.replace(Zle,"").match(ece);s&&i.push({v:kr(s[2]),t:s[1]})}),i}var OH=/(^\s|\s$|\n)/;function Ri(r,e){return"<"+r+(e.match(OH)?' xml:space="preserve"':"")+">"+e+"</"+r+">"}function Gy(r){return In(r).map(function(e){return" "+e+'="'+r[e]+'"'}).join("")}function Ne(r,e,t){return"<"+r+(t!=null?Gy(t):"")+(e!=null?(e.match(OH)?' xml:space="preserve"':"")+">"+e+"</"+r:"/")+">"}function gR(r,e){try{return r.toISOString().replace(/\.\d*/,"")}catch(t){if(e)throw t}return""}function tce(r,e){switch(typeof r){case"string":var t=Ne("vt:lpwstr",Cr(r));return e&&(t=t.replace(/"/g,"_x0022_")),t;case"number":return Ne((r|0)==r?"vt:i4":"vt:r8",Cr(String(r)));case"boolean":return Ne("vt:bool",r?"true":"false")}if(r instanceof Date)return Ne("vt:filetime",gR(r));throw new Error("Unable to serialize "+r)}function LR(r){if(Kt&&Buffer.isBuffer(r))return r.toString("utf8");if(typeof r=="string")return r;if(typeof Uint8Array<"u"&&r instanceof Uint8Array)return kr(Mu(MR(r)));throw new Error("Bad input format: expected Buffer or string")}var Wy=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>
149/mg,ri={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},Mh=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],ys={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function rce(r,e){for(var t=1-2*(r[e+7]>>>7),n=((r[e+7]&127)<<4)+(r[e+6]>>>4&15),i=r[e+6]&15,a=5;a>=0;--a)i=i*256+r[e+a];return n==2047?i==0?t*(1/0):NaN:(n==0?n=-1022:(n-=1023,i+=Math.pow(2,52)),t*Math.pow(2,n-52)*i)}function nce(r,e,t){var n=(e<0||1/e==-1/0?1:0)<<7,i=0,a=0,s=n?-e:e;isFinite(s)?s==0?i=a=0:(i=Math.floor(Math.log(s)/Math.LN2),a=s*Math.pow(2,52-i),i<=-1023&&(!isFinite(a)||a<Math.pow(2,52))?i=-1022:(a-=Math.pow(2,52),i+=1023)):(i=2047,a=isNaN(e)?26985:0);for(var o=0;o<=5;++o,a/=256)r[t+o]=a&255;r[t+6]=(i&15)<<4|a&15,r[t+7]=i>>4|n}var Ej=function(r){for(var e=[],t=10240,n=0;n<r[0].length;++n)if(r[0][n])for(var i=0,a=r[0][n].length;i<a;i+=t)e.push.apply(e,r[0][n].slice(i,i+t));return e},Tj=Kt?function(r){return r[0].length>0&&Buffer.isBuffer(r[0][0])?Buffer.concat(r[0].map(function(e){return Buffer.isBuffer(e)?e:mc(e)})):Ej(r)}:Ej,Cj=function(r,e,t){for(var n=[],i=e;i<t;i+=2)n.push(String.fromCharCode(cc(r,i)));return n.join("").replace(ra,"")},YE=Kt?function(r,e,t){return Buffer.isBuffer(r)?r.toString("utf16le",e,t).replace(ra,""):Cj(r,e,t)}:Cj,Sj=function(r,e,t){for(var n=[],i=e;i<e+t;++i)n.push(("0"+r[i].toString(16)).slice(-2));return n.join("")},FH=Kt?function(r,e,t){return Buffer.isBuffer(r)?r.toString("hex",e,e+t):Sj(r,e,t)}:Sj,Dj=function(r,e,t){for(var n=[],i=e;i<t;i++)n.push(String.fromCharCode(ep(r,i)));return n.join("")},fp=Kt?function(e,t,n){return Buffer.isBuffer(e)?e.toString("utf8",t,n):Dj(e,t,n)}:Dj,BH=function(r,e){var t=pi(r,e);return t>0?fp(r,e+4,e+4+t-1):""},VR=BH,NH=function(r,e){var t=pi(r,e);return t>0?fp(r,e+4,e+4+t-1):""},UR=NH,LH=function(r,e){var t=2*pi(r,e);return t>0?fp(r,e+4,e+4+t-1):""},zR=LH,VH=function(e,t){var n=pi(e,t);return n>0?YE(e,t+4,t+4+n):""},jR=VH,UH=function(r,e){var t=pi(r,e);return t>0?fp(r,e+4,e+4+t):""},HR=UH,zH=function(r,e){return rce(r,e)},FE=zH,$R=function(e){return Array.isArray(e)||typeof Uint8Array<"u"&&e instanceof Uint8Array};Kt&&(VR=function(e,t){if(!Buffer.isBuffer(e))return BH(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},UR=function(e,t){if(!Buffer.isBuffer(e))return NH(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},zR=function(e,t){if(!Buffer.isBuffer(e))return LH(e,t);var n=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n-1)},jR=function(e,t){if(!Buffer.isBuffer(e))return VH(e,t);var n=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n)},HR=function(e,t){if(!Buffer.isBuffer(e))return UH(e,t);var n=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+n)},FE=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):zH(e,t)},$R=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||typeof Uint8Array<"u"&&e instanceof Uint8Array});function ice(){YE=function(r,e,t){return wr.utils.decode(1200,r.slice(e,t)).replace(ra,"")},fp=function(r,e,t){return wr.utils.decode(65001,r.slice(e,t))},VR=function(r,e){var t=pi(r,e);return t>0?wr.utils.decode(op,r.slice(e+4,e+4+t-1)):""},UR=function(r,e){var t=pi(r,e);return t>0?wr.utils.decode(gl,r.slice(e+4,e+4+t-1)):""},zR=function(r,e){var t=2*pi(r,e);return t>0?wr.utils.decode(1200,r.slice(e+4,e+4+t-1)):""},jR=function(r,e){var t=pi(r,e);return t>0?wr.utils.decode(1200,r.slice(e+4,e+4+t)):""},HR=function(r,e){var t=pi(r,e);return t>0?wr.utils.decode(65001,r.slice(e+4,e+4+t)):""}}typeof wr<"u"&&ice();var ep=function(r,e){return r[e]},cc=function(r,e){return r[e+1]*256+r[e]},ace=function(r,e){var t=r[e+1]*256+r[e];return t<32768?t:(65535-t+1)*-1},pi=function(r,e){return r[e+3]*(1<<24)+(r[e+2]<<16)+(r[e+1]<<8)+r[e]},vh=function(r,e){return r[e+3]<<24|r[e+2]<<16|r[e+1]<<8|r[e]},sce=function(r,e){return r[e]<<24|r[e+1]<<16|r[e+2]<<8|r[e+3]};function Ry(r,e){var t="",n,i,a=[],s,o,l,c;switch(e){case"dbcs":if(c=this.l,Kt&&Buffer.isBuffer(this))t=this.slice(this.l,this.l+2*r).toString("utf16le");else for(l=0;l<r;++l)t+=String.fromCharCode(cc(this,c)),c+=2;r*=2;break;case"utf8":t=fp(this,this.l,this.l+r);break;case"utf16le":r*=2,t=YE(this,this.l,this.l+r);break;case"wstr":if(typeof wr<"u")t=wr.utils.decode(gl,this.slice(this.l,this.l+2*r));else return Ry.call(this,r,"dbcs");r=2*r;break;case"lpstr-ansi":t=VR(this,this.l),r=4+pi(this,this.l);break;case"lpstr-cp":t=UR(this,this.l),r=4+pi(this,this.l);break;case"lpwstr":t=zR(this,this.l),r=4+2*pi(this,this.l);break;case"lpp4":r=4+pi(this,this.l),t=jR(this,this.l),r&2&&(r+=2);break;case"8lpp4":r=4+pi(this,this.l),t=HR(this,this.l),r&3&&(r+=4-(r&3));break;case"cstr":for(r=0,t="";(s=ep(this,this.l+r++))!==0;)a.push(bE(s));t=a.join("");break;case"_wstr":for(r=0,t="";(s=cc(this,this.l+r))!==0;)a.push(bE(s)),r+=2;r+=2,t=a.join("");break;case"dbcs-cont":for(t="",c=this.l,l=0;l<r;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return s=ep(this,c),this.l=c+1,o=Ry.call(this,r-l,s?"dbcs-cont":"sbcs-cont"),a.join("")+o;a.push(bE(cc(this,c))),c+=2}t=a.join(""),r*=2;break;case"cpstr":if(typeof wr<"u"){t=wr.utils.decode(gl,this.slice(this.l,this.l+r));break}case"sbcs-cont":for(t="",c=this.l,l=0;l!=r;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return s=ep(this,c),this.l=c+1,o=Ry.call(this,r-l,s?"dbcs-cont":"sbcs-cont"),a.join("")+o;a.push(bE(ep(this,c))),c+=1}t=a.join("");break;default:switch(r){case 1:return n=ep(this,this.l),this.l++,n;case 2:return n=(e==="i"?ace:cc)(this,this.l),this.l+=2,n;case 4:case-4:return e==="i"||(this[this.l+3]&128)===0?(n=(r>0?vh:sce)(this,this.l),this.l+=4,n):(i=pi(this,this.l),this.l+=4,i);case 8:case-8:if(e==="f")return r==8?i=FE(this,this.l):i=FE([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,i;r=8;case 16:t=FH(this,this.l,r);break}}return this.l+=r,t}var oce=function(r,e,t){r[t]=e&255,r[t+1]=e>>>8&255,r[t+2]=e>>>16&255,r[t+3]=e>>>24&255},lce=function(r,e,t){r[t]=e&255,r[t+1]=e>>8&255,r[t+2]=e>>16&255,r[t+3]=e>>24&255},cce=function(r,e,t){r[t]=e&255,r[t+1]=e>>>8&255};function uce(r,e,t){var n=0,i=0;if(t==="dbcs"){for(i=0;i!=e.length;++i)cce(this,e.charCodeAt(i),this.l+2*i);n=2*e.length}else if(t==="sbcs"){if(typeof wr<"u"&&op==874)for(i=0;i!=e.length;++i){var a=wr.utils.encode(op,e.charAt(i));this[this.l+i]=a[0]}else for(e=e.replace(/[^\x00-\x7F]/g,"_"),i=0;i!=e.length;++i)this[this.l+i]=e.charCodeAt(i)&255;n=e.length}else if(t==="hex"){for(;i<r;++i)this[this.l++]=parseInt(e.slice(2*i,2*i+2),16)||0;return this}else if(t==="utf16le"){var s=Math.min(this.l+r,this.length);for(i=0;i<Math.min(e.length,r);++i){var o=e.charCodeAt(i);this[this.l++]=o&255,this[this.l++]=o>>8}for(;this.l<s;)this[this.l++]=0;return this}else switch(r){case 1:n=1,this[this.l]=e&255;break;case 2:n=2,this[this.l]=e&255,e>>>=8,this[this.l+1]=e&255;break;case 3:n=3,this[this.l]=e&255,e>>>=8,this[this.l+1]=e&255,e>>>=8,this[this.l+2]=e&255;break;case 4:n=4,oce(this,e,this.l);break;case 8:if(n=8,t==="f"){nce(this,e,this.l);break}case 16:break;case-4:n=4,lce(this,e,this.l);break}return this.l+=n,this}function jH(r,e){var t=FH(this,this.l,r.length>>1);if(t!==r)throw new Error(e+"Expected "+r+" saw "+t);this.l+=r.length>>1}function Pi(r,e){r.l=e,r.read_shift=Ry,r.chk=jH,r.write_shift=uce}function ia(r,e){r.l+=e}function oe(r){var e=Cu(r);return Pi(e,0),e}function pc(r,e,t){if(r){var n,i,a;Pi(r,r.l||0);for(var s=r.length,o=0,l=0;r.l<s;){o=r.read_shift(1),o&128&&(o=(o&127)+((r.read_shift(1)&127)<<7));var c=Jy[o]||Jy[65535];for(n=r.read_shift(1),a=n&127,i=1;i<4&&n&128;++i)a+=((n=r.read_shift(1))&127)<<7*i;l=r.l+a;var u=c.f&&c.f(r,a,t);if(r.l=l,e(u,c,o))return}}}function Ka(){var r=[],e=Kt?256:2048,t=function(c){var u=oe(c);return Pi(u,0),u},n=t(e),i=function(){n&&(n.length>n.l&&(n=n.slice(0,n.l),n.l=n.length),n.length>0&&r.push(n),n=null)},a=function(c){return n&&c<n.length-n.l?n:(i(),n=t(Math.max(c+1,e)))},s=function(){return i(),gi(r)},o=function(c){i(),n=c,n.l==null&&(n.l=n.length),a(e)};return{next:a,push:o,end:s,_bufs:r}}function ye(r,e,t,n){var i=+e,a;
149if(!isNaN(i)){n||(n=Jy[i].p||(t||[]).length||0),a=1+(i>=128?1:0)+1,n>=128&&++a,n>=16384&&++a,n>=2097152&&++a;var s=r.next(a);i<=127?s.write_shift(1,i):(s.write_shift(1,(i&127)+128),s.write_shift(1,i>>7));for(var o=0;o!=4;++o)if(n>=128)s.write_shift(1,(n&127)+128),n>>=7;else{s.write_shift(1,n);break}n>0&&$R(t)&&r.push(t)}}function Oy(r,e,t){var n=qr(r);if(e.s?(n.cRel&&(n.c+=e.s.c),n.rRel&&(n.r+=e.s.r)):(n.cRel&&(n.c+=e.c),n.rRel&&(n.r+=e.r)),!t||t.biff<12){for(;n.c>=256;)n.c-=256;for(;n.r>=65536;)n.r-=65536}return n}function Aj(r,e,t){var n=qr(r);return n.s=Oy(n.s,e.s,t),n.e=Oy(n.e,e.s,t),n}function Fy(r,e){if(r.cRel&&r.c<0)for(r=qr(r);r.c<0;)r.c+=e>8?16384:256;if(r.rRel&&r.r<0)for(r=qr(r);r.r<0;)r.r+=e>8?1048576:e>5?65536:16384;var t=xt(r);return!r.cRel&&r.cRel!=null&&(t=fce(t)),!r.rRel&&r.rRel!=null&&(t=dce(t)),t}function nR(r,e){return r.s.r==0&&!r.s.rRel&&r.e.r==(e.biff>=12?1048575:e.biff>=8?65536:16384)&&!r.e.rRel?(r.s.cRel?"":"$")+on(r.s.c)+":"+(r.e.cRel?"":"$")+on(r.e.c):r.s.c==0&&!r.s.cRel&&r.e.c==(e.biff>=12?16383:255)&&!r.e.cRel?(r.s.rRel?"":"$")+Mn(r.s.r)+":"+(r.e.rRel?"":"$")+Mn(r.e.r):Fy(r.s,e.biff)+":"+Fy(r.e,e.biff)}function GR(r){return parseInt(hce(r),10)-1}function Mn(r){return""+(r+1)}function dce(r){return r.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function hce(r){return r.replace(/\$(\d+)$/,"$1")}function WR(r){for(var e=mce(r),t=0,n=0;n!==e.length;++n)t=26*t+e.charCodeAt(n)-64;return t-1}function on(r){if(r<0)throw new Error("invalid column "+r);var e="";for(++r;r;r=Math.floor((r-1)/26))e=String.fromCharCode((r-1)%26+65)+e;return e}function fce(r){return r.replace(/^([A-Z])/,"$$$1")}function mce(r){return r.replace(/^\$([A-Z])/,"$1")}function pce(r){return r.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")}function ln(r){for(var e=0,t=0,n=0;n<r.length;++n){var i=r.charCodeAt(n);i>=48&&i<=57?e=10*e+(i-48):i>=65&&i<=90&&(t=26*t+(i-64))}return{c:t-1,r:e-1}}function xt(r){for(var e=r.c+1,t="";e;e=(e-1)/26|0)t=String.fromCharCode((e-1)%26+65)+t;return t+(r.r+1)}function Ya(r){var e=r.indexOf(":");return e==-1?{s:ln(r),e:ln(r)}:{s:ln(r.slice(0,e)),e:ln(r.slice(e+1))}}function Bt(r,e){return typeof e>"u"||typeof e=="number"?Bt(r.s,r.e):(typeof r!="string"&&(r=xt(r)),typeof e!="string"&&(e=xt(e)),r==e?r:r+":"+e)}function hr(r){var e={s:{c:0,r:0},e:{c:0,r:0}},t=0,n=0,i=0,a=r.length;for(t=0;n<a&&!((i=r.charCodeAt(n)-64)<1||i>26);++n)t=26*t+i;for(e.s.c=--t,t=0;n<a&&!((i=r.charCodeAt(n)-48)<0||i>9);++n)t=10*t+i;if(e.s.r=--t,n===a||i!=10)return e.e.c=e.s.c,e.e.r=e.s.r,e;for(++n,t=0;n!=a&&!((i=r.charCodeAt(n)-64)<1||i>26);++n)t=26*t+i;for(e.e.c=--t,t=0;n!=a&&!((i=r.charCodeAt(n)-48)<0||i>9);++n)t=10*t+i;return e.e.r=--t,e}function Mj(r,e){var t=r.t=="d"&&e instanceof Date;if(r.z!=null)try{return r.w=Xs(r.z,t?ni(e):e)}catch{}try{return r.w=Xs((r.XF||{}).numFmtId||(t?14:0),t?ni(e):e)}catch{return""+e}}function fc(r,e,t){return r==null||r.t==null||r.t=="z"?"":r.w!==void 0?r.w:(r.t=="d"&&!r.z&&t&&t.dateNF&&(r.z=t.dateNF),r.t=="e"?gc[r.v]||r.v:e==null?Mj(r,r.v):Mj(r,e))}function ku(r,e){var t=e&&e.sheet?e.sheet:"Sheet1",n={};return n[t]=r,{SheetNames:[t],Sheets:n}}function HH(r,e,t){var n=t||{},i=r?Array.isArray(r):n.dense;wn!=null&&i==null&&(i=wn);var a=r||(i?[]:{}),s=0,o=0;if(a&&n.origin!=null){if(typeof n.origin=="number")s=n.origin;else{var l=typeof n.origin=="string"?ln(n.origin):n.origin;s=l.r,o=l.c}a["!ref"]||(a["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(a["!ref"]){var u=hr(a["!ref"]);c.s.c=u.s.c,c.s.r=u.s.r,c.e.c=Math.max(c.e.c,u.e.c),c.e.r=Math.max(c.e.r,u.e.r),s==-1&&(c.e.r=s=u.e.r+1)}for(var d=0;d!=e.length;++d)if(e[d]){if(!Array.isArray(e[d]))throw new Error("aoa_to_sheet expects an array of arrays");for(var f=0;f!=e[d].length;++f)if(!(typeof e[d][f]>"u")){var p={v:e[d][f]},g=s+d,y=o+f;if(c.s.r>g&&(c.s.r=g),c.s.c>y&&(c.s.c=y),c.e.r<g&&(c.e.r=g),c.e.c<y&&(c.e.c=y),e[d][f]&&typeof e[d][f]=="object"&&!Array.isArray(e[d][f])&&!(e[d][f]instanceof Date))p=e[d][f];else if(Array.isArray(p.v)&&(p.f=e[d][f][1],p.v=p.v[0]),p.v===null)if(p.f)p.t="n";else if(n.nullError)p.t="e",p.v=0;else if(n.sheetStubs)p.t="z";else continue;
149else typeof p.v=="number"?p.t="n":typeof p.v=="boolean"?p.t="b":p.v instanceof Date?(p.z=n.dateNF||yt[14],n.cellDates?(p.t="d",p.w=Xs(p.z,ni(p.v))):(p.t="n",p.v=ni(p.v),p.w=Xs(p.z,p.v))):p.t="s";if(i)a[g]||(a[g]=[]),a[g][y]&&a[g][y].z&&(p.z=a[g][y].z),a[g][y]=p;else{var v=xt({c:y,r:g});a[v]&&a[v].z&&(p.z=a[v].z),a[v]=p}}}return c.s.c<1e7&&(a["!ref"]=Bt(c)),a}function mp(r,e){return HH(null,r,e)}function gce(r){return r.read_shift(4,"i")}function ko(r,e){return e||(e=oe(4)),e.write_shift(4,r),e}function na(r){var e=r.read_shift(4);return e===0?"":r.read_shift(e,"dbcs")}function yi(r,e){var t=!1;return e==null&&(t=!0,e=oe(4+2*r.length)),e.write_shift(4,r.length),r.length>0&&e.write_shift(0,r,"dbcs"),t?e.slice(0,e.l):e}function yce(r){return{ich:r.read_shift(2),ifnt:r.read_shift(2)}}function vce(r,e){return e||(e=oe(4)),e.write_shift(2,r.ich||0),e.write_shift(2,r.ifnt||0),e}function qR(r,e){var t=r.l,n=r.read_shift(1),i=na(r),a=[],s={t:i,h:i};if((n&1)!==0){for(var o=r.read_shift(4),l=0;l!=o;++l)a.push(yce(r));s.r=a}else s.r=[{ich:0,ifnt:0}];return r.l=t+e,s}function _ce(r,e){var t=!1;return e==null&&(t=!0,e=oe(15+4*r.t.length)),e.write_shift(1,0),yi(r.t,e),t?e.slice(0,e.l):e}var bce=qR;function wce(r,e){var t=!1;return e==null&&(t=!0,e=oe(23+4*r.t.length)),e.write_shift(1,1),yi(r.t,e),e.write_shift(4,1),vce({ich:0,ifnt:0},e),t?e.slice(0,e.l):e}function Qs(r){var e=r.read_shift(4),t=r.read_shift(2);return t+=r.read_shift(1)<<16,r.l++,{c:e,iStyleRef:t}}function kh(r,e){return e==null&&(e=oe(8)),e.write_shift(-4,r.c),e.write_shift(3,r.iStyleRef||r.s),e.write_shift(1,0),e}function Ph(r){var e=r.read_shift(2);return e+=r.read_shift(1)<<16,r.l++,{c:-1,iStyleRef:e}}function Rh(r,e){return e==null&&(e=oe(4)),e.write_shift(3,r.iStyleRef||r.s),e.write_shift(1,0),e}var Ice=na,$H=yi;function KR(r){var e=r.read_shift(4);return e===0||e===4294967295?"":r.read_shift(e,"dbcs")}function BE(r,e){var t=!1;return e==null&&(t=!0,e=oe(127)),e.write_shift(4,r.length>0?r.length:4294967295),r.length>0&&e.write_shift(0,r,"dbcs"),t?e.slice(0,e.l):e}var xce=na,yR=KR,YR=BE;function XR(r){var e=r.slice(r.l,r.l+4),t=e[0]&1,n=e[0]&2;r.l+=4;var i=n===0?FE([0,0,0,0,e[0]&252,e[1],e[2],e[3]],0):vh(e,0)>>2;return t?i/100:i}function GH(r,e){e==null&&(e=oe(4));var t=0,n=0,i=r*100;if(r==(r|0)&&r>=-(1<<29)&&r<1<<29?n=1:i==(i|0)&&i>=-(1<<29)&&i<1<<29&&(n=1,t=1),n)e.write_shift(-4,((t?i:r)<<2)+(t+2));else throw new Error("unsupported RkNumber "+r)}function WH(r){var e={s:{},e:{}};return e.s.r=r.read_shift(4),e.e.r=r.read_shift(4),e.s.c=r.read_shift(4),e.e.c=r.read_shift(4),e}function Ece(r,e){return e||(e=oe(16)),e.write_shift(4,r.s.r),e.write_shift(4,r.e.r),e.write_shift(4,r.s.c),e.write_shift(4,r.e.c),e}var Oh=WH,pp=Ece;function ta(r){if(r.length-r.l<8)throw"XLS Xnum Buffer underflow";return r.read_shift(8,"f")}function Ch(r,e){return(e||oe(8)).write_shift(8,r,"f")}function Tce(r){var e={},t=r.read_shift(1),n=t>>>1,i=r.read_shift(1),a=r.read_shift(2,"i"),s=r.read_shift(1),o=r.read_shift(1),l=r.read_shift(1);switch(r.l++,n){case 0:e.auto=1;break;case 1:e.index=i;var c=bh[i];c&&(e.rgb=Ky(c));break;case 2:e.rgb=Ky([s,o,l]);break;case 3:e.theme=i;break}return a!=0&&(e.tint=a>0?a/32767:a/32768),e}function NE(r,e){if(e||(e=oe(8)),!r||r.auto)return e.write_shift(4,0),e.write_shift(4,0),e;r.index!=null?(e.write_shift(1,2),e.write_shift(1,r.index)):r.theme!=null?(e.write_shift(1,6),e.write_shift(1,r.theme)):(e.write_shift(1,5),e.write_shift(1,0));var t=r.tint||0;if(t>0?t*=32767:t<0&&(t*=32768),e.write_shift(2,t),!r.rgb||r.theme!=null)e.write_shift(2,0),e.write_shift(1,0),e.write_shift(1,0);else{var n=r.rgb||"FFFFFF";typeof n=="number"&&(n=("000000"+n.toString(16)).slice(-6)),e.write_shift(1,parseInt(n.slice(0,2),16)),e.write_shift(1,parseInt(n.slice(2,4),16)),e.write_shift(1,parseInt(n.slice(4,6),16)),e.write_shift(1,255)}return e}function Cce(r){var e=r.read_shift(1);r.l++;var t={fBold:e&1,fItalic:e&2,fUnderline:e&4,fStrikeout:e&8,fOutline:e&16,fShadow:e&32,fCondense:e&64,fExtend:e&128};return t}function Sce(r,e){e||(e=oe(2));var t=(r.italic?2:0)|(r.strike?8:0)|(r.outline?16:0)|(r.shadow?32:0)|(r.condense?64:0)|(r.extend?128:0);return e.write_shift(1,t),e.write_shift(1,0),e}function qH(r,e){var t={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},n=r.read_shift(4);switch(n){case 0:return"";case 4294967295:case 4294967294:return t[r.read_shift(4)]||""}if(n>400)throw new Error("Unsupported Clipboard: "+n.toString(16));return r.l-=4,r.read_shift(0,e==1?"lpstr":"lpwstr")}function Dce(r){return qH(r,1)}function Ace(r){return qH(r,2)}var QR=2,qa=3,IE=11,kj=12,LE=19;var xE=64,Mce=65,kce=71;var Pce=4108,Rce=4126,mi=80,KH=81,Oce=[mi,KH],vR={1:{n:"CodePage",t:QR},2:{n:"Category",t:mi},3:{n:"PresentationFormat",t:mi},4:{n:"ByteCount",t:qa},5:{n:"LineCount",t:qa},6:{n:"ParagraphCount",t:qa},7:{n:"SlideCount",t:qa},8:{n:"NoteCount",t:qa},9:{n:"HiddenCount",t:qa},10:{n:"MultimediaClipCount",t:qa},11:{n:"ScaleCrop",t:IE},12:{n:"HeadingPairs",t:Pce},13:{n:"TitlesOfParts",t:Rce},14:{n:"Manager",t:mi},15:{n:"Company",t:mi},16:{n:"LinksUpToDate",t:IE},17:{n:"CharacterCount",t:qa},19:{n:"SharedDoc",t:IE},22:{n:"HyperlinksChanged",t:IE},23:{n:"AppVersion",t:qa,p:"version"},24:{n:"DigSig",t:Mce},26:{n:"ContentType",t:mi},27:{n:"ContentStatus",t:mi},28:{n:"Language",t:mi},29:{n:"Version",t:mi},255:{},2147483648:{n:"Locale",t:LE},2147483651:{n:"Behavior",t:LE},1919054434:{}},_R={1:{n:"CodePage",t:QR},2:{n:"Title",t:mi},3:{n:"Subject",t:mi},4:{n:"Author",t:mi},5:{n:"Keywords",t:mi},6:{n:"Comments",t:mi},7:{n:"Template",t:mi},8:{n:"LastAuthor",t:mi},9:{n:"RevNumber",t:mi}
vendor: 8,091 bytes, line 149
149,10:{n:"EditTime",t:xE},11:{n:"LastPrinted",t:xE},12:{n:"CreatedDate",t:xE},13:{n:"ModifiedDate",t:xE},14:{n:"PageCount",t:qa},15:{n:"WordCount",t:qa},16:{n:"CharCount",t:qa},17:{n:"Thumbnail",t:kce},18:{n:"Application",t:mi},19:{n:"DocSecurity",t:qa},255:{},2147483648:{n:"Locale",t:LE},2147483651:{n:"Behavior",t:LE},1919054434:{}},Pj={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},Fce=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function Bce(r){return r.map(function(e){return[e>>16&255,e>>8&255,e&255]})}var Nce=Bce([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),bh=qr(Nce),gc={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},YH={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},bR={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},EE={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"}
149,comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function JR(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function Lce(r){var e=JR();if(!r||!r.match)return e;var t={};if((r.match(aa)||[]).forEach(function(n){var i=Ct(n);switch(i[0].replace(qle,"<")){case"<?xml":break;case"<Types":e.xmlns=i["xmlns"+(i[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":t[i.Extension]=i.ContentType;break;case"<Override":e[bR[i.ContentType]]!==void 0&&e[bR[i.ContentType]].push(i.PartName);break}}),e.xmlns!==ri.CT)throw new Error("Unknown Namespace: "+e.xmlns);return e.calcchain=e.calcchains.length>0?e.calcchains[0]:"",e.sst=e.strs.length>0?e.strs[0]:"",e.style=e.styles.length>0?e.styles[0]:"",e.defaults=t,delete e.calcchains,e}function XH(r,e){var t=Lle(bR),n=[],i;n[n.length]=kn,n[n.length]=Ne("Types",null,{xmlns:ri.CT,"xmlns:xsd":ri.xsd,"xmlns:xsi":ri.xsi}),n=n.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["t
149if","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return Ne("Default",null,{Extension:l[0],ContentType:l[1]})}));var a=function(l){r[l]&&r[l].length>0&&(i=r[l][0],n[n.length]=Ne("Override",null,{PartName:(i[0]=="/"?"":"/")+i,ContentType:EE[l][e.bookType]||EE[l].xlsx}))},s=function(l){(r[l]||[]).forEach(function(c){n[n.length]=Ne("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:EE[l][e.bookType]||EE[l].xlsx})})},o=function(l){(r[l]||[]).forEach(function(c){n[n.length]=Ne("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:t[l][0]})})};return a("workbooks"),s("sheets"),s("charts"),o("themes"),["strs","styles"].forEach(a),["coreprops","extprops","custprops"].forEach(o),o("vba"),o("comments"),o("threadedcomments"),o("drawings"),s("metadata"),o("people"),n.length>2&&(n[n.length]="</Types>",n[1]=n[1].replace("/>",">")),n.join("")}var Ut
vendor: 2,399 bytes, line 149
149={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",
149VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function qy(r){var e=r.lastIndexOf("/");return r.slice(0,e+1)+"_rels/"+r.slice(e+1)+".rels"}function By(r,e){var t={"!id":{}};if(!r)return t;e.charAt(0)!=="/"&&(e="/"+e);var n={};return(r.match(aa)||[]).forEach(function(i){var a=Ct(i);if(a[0]==="<Relationship"){var s={};s.Type=a.Type,s.Target=a.Target,s.Id=a.Id,a.TargetMode&&(s.TargetMode=a.TargetMode);var o=a.TargetMode==="External"?a.Target:Py(a.Target,e);t[o]=s,n[a.Id]=s}}),t["!id"]=n,t}function ip(r){var e=[kn,Ne("Relationships",null,{xmlns:ri.RELS})];return In(r["!id"]).forEach(function(t){e[e.length]=Ne("Relationship",null,r["!id"][t])}),e.length>2&&(e[e.length]="</Relationships>",e[1]=e[1].replace("/>",">")),e.join("")}function Tr(r,e,t,n,i,a){if(i||(i={}),r["!id"]||(r["!id"]={}),r["!idx"]||(r["!idx"]=1),e<0)for(e=r["!idx"];r["!id"]["rId"+e];++e);if(r["!idx"]=e+1,i.Id="rId"+e,i.Type=n,i.Target=t,a?i.TargetMode=a:[Ut.HLINK,Ut.XPATH,Ut.XMISS].indexOf(i.Type)>-1&&(i.TargetMode="External"),r["!id"][i.Id])throw new Error("Cannot rewrite rId "+e);return r["!id"][i.Id]=i,r[("/"+i.Target).replace("//","/")]=i,e}var Vce="application/vnd.oasis.opendocument.spreadsheet";function Uce(r,e){for(var t=LR(r),n,i;n=Wy.exec(t);)switch(n[3]){case"manifest":break;case"file-entry":if(i=Ct(n[0],!1),i.path=="/"&&i.type!==Vce)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(e&&e.WTF)throw n}}function zce(r){var e=[kn];e.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2"> 150`),e.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/> 151`);for(var t=0;t<r.length;++t)e.push(' <manifest:file-entry manifest:full-path="'+r[t][0]+'" manifest:media-type="'+r[t][1]+`"/> 152`);return e.push("</manifest:manifest>"),e.join("")}function Rj(r,e,t){return[' <rdf:Description rdf:about="'+r+`"> 153`,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(t||"odf")+"#"+e+`"/> 154`,` </rdf:Description> 155`].join("")}function jce(r,e){return[' <rdf:Description rdf:about="'+r+`"> 156`,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+e+`"/> 157`,` </rdf:Description> 158`].join("")}function Hce(r){var e=[kn];e.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> 159`);for(var t=0;t!=r.length;++t)e.push(Rj(r[t][0],r[t][1])),e.push(jce("",r[t][0]));return e.push(Rj("","Document","pkg")),e.push("</rdf:RDF>"),e.join("")}function QH(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+zy.version+"</meta:generator></office:meta></office:document-meta>"}var Ys=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],$ce=(function(){for(var r=new Array(Ys.length),e=0;e<Ys.length;++e){var t=Ys[e],n="(?:"+t[0].slice(0,t[0].indexOf(":"))+":)"+t[0].slice(t[0].indexOf(":")+1);r[e]=new RegExp("<"+n+"[^>]*>([\\s\\S]*?)</"+n+">")}return r})();function JH(r){var e={};r=kr(r);for(var t=0;t<Ys.length;++t){var n=Ys[t],i=r.match($ce[t]);i!=null&&i.length>0&&(e[n[1]]=dr(i[1])),n[2]==="date"&&e[n[1]]&&(e[n[1]]=Wr(e[n[1]]))}return e}function iR(r,e,t,n,i){i[r]!=null||e==null||e===""||(i[r]=e,e=Cr(e),n[n.length]=t?Ne(r,e,t):Ri(r,e))}function ZH(r,e){var t=e||{}
159,n=[kn,Ne("cp:coreProperties",null,{"xmlns:cp":ri.CORE_PROPS,"xmlns:dc":ri.dc,"xmlns:dcterms":ri.dcterms,"xmlns:dcmitype":ri.dcmitype,"xmlns:xsi":ri.xsi})],i={};if(!r&&!t.Props)return n.join("");r&&(r.CreatedDate!=null&&iR("dcterms:created",typeof r.CreatedDate=="string"?r.CreatedDate:gR(r.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),r.ModifiedDate!=null&&iR("dcterms:modified",typeof r.ModifiedDate=="string"?r.ModifiedDate:gR(r.ModifiedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var a=0;a!=Ys.length;++a){var s=Ys[a],o=t.Props&&t.Props[s[1]]!=null?t.Props[s[1]]:r?r[s[1]]:null;o===!0?o="1":o===!1?o="0":typeof o=="number"&&(o=String(o)),o!=null&&iR(s[0],o,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var wh=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],e9=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function t9(r,e,t,n){var i=[];if(typeof r=="string")i=xj(r,n);else for(var a=0;a<r.length;++a)i=i.concat(r[a].map(function(u){return{v:u}}));var s=typeof e=="string"?xj(e,n).map(function(u){return u.v}):e,o=0,l=0;if(s.length>0)for(var c=0;c!==i.length;c+=2){switch(l=+i[c+1].v,i[c].v){case"Worksheets":case"\u5DE5\u4F5C\u8868":case"\u041B\u0438\u0441\u0442\u044B":case"\u0623\u0648\u0631\u0627\u0642 \u0627\u0644\u0639\u0645\u0644":case"\u30EF\u30FC\u30AF\u30B7\u30FC\u30C8":case"\u05D2\u05DC\u05D9\u05D5\u05E0\u05D5\u05EA \u05E2\u05D1\u05D5\u05D3\u05D4":case"Arbeitsbl\xE4tter":case"\xC7al\u0131\u015Fma Sayfalar\u0131":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de c\xE1lculo":case"Planilhas":case"Regneark":case"Hojas de c\xE1lculo":case"Werkbladen":t.Worksheets=l,t.SheetNames=s.slice(o,o+l);break;case"Named Ranges":case"Rangos con nombre":case"\u540D\u524D\u4ED8\u304D\u4E00\u89A7":case"Benannte Bereiche":case"Navngivne omr\xE5der":t.NamedRanges=l,t.DefinedNames=s.slice(o,o+l);break;case"Charts":case"Diagramme":t.Chartsheets=l,t.ChartNames=s.slice(o,o+l);break}o+=l}}function Gce(r,e,t){var n={};return e||(e={}),r=kr(r),wh.forEach(function(i){var a=(r.match($y(i[0]))||[])[1];switch(i[2]){case"string":a&&(e[i[1]]=dr(a));break;case"bool":e[i[1]]=a==="true";break;case"raw":var s=r.match(new RegExp("<"+i[0]+"[^>]*>([\\s\\S]*?)</"+i[0]+">"));s&&s.length>0&&(n[i[1]]=s[1]);break}}),n.HeadingPairs&&n.TitlesOfParts&&t9(n.HeadingPairs,n.TitlesOfParts,e,t),e}function r9(r){var e=[],t=Ne;return r||(r={}),r.Application="SheetJS",e[e.length]=kn,e[e.length]=Ne("Properties",null,{xmlns:ri.EXT_PROPS,"xmlns:vt":ri.vt}
159),wh.forEach(function(n){if(r[n[1]]!==void 0){var i;switch(n[2]){case"string":i=Cr(String(r[n[1]]));break;case"bool":i=r[n[1]]?"true":"false";break}i!==void 0&&(e[e.length]=t(n[0],i))}}),e[e.length]=t("HeadingPairs",t("vt:vector",t("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+t("vt:variant",t("vt:i4",String(r.Worksheets))),{size:2,baseType:"variant"})),e[e.length]=t("TitlesOfParts",t("vt:vector",r.SheetNames.map(function(n){return"<vt:lpstr>"+Cr(n)+"</vt:lpstr>"}).join(""),{size:r.Worksheets,baseType:"lpstr"})),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}var Wce=/<[^>]+>[^<]*/g;function qce(r,e){var t={},n="",i=r.match(Wce);if(i)for(var a=0;a!=i.length;++a){var s=i[a],o=Ct(s);switch(o[0]){case"<?xml":break;case"<Properties":break;case"<property":n=dr(o.name);break;case"</property>":n=null;break;default:if(s.indexOf("<vt:")===0){var l=s.split(">"),c=l[0].slice(4),u=l[1];switch(c){case"lpstr":case"bstr":case"lpwstr":t[n]=dr(u);break;case"bool":t[n]=Gr(u);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":t[n]=parseInt(u,10);break;case"r4":case"r8":case"decimal":t[n]=parseFloat(u);break;case"filetime":case"date":t[n]=Wr(u);break;case"cy":case"error":t[n]=dr(u);break;default:if(c.slice(-1)=="/")break;e.WTF&&typeof console<"u"&&console.warn("Unexpected",s,c,l)}}else if(s.slice(0,2)!=="</"){if(e.WTF)throw new Error(s)}}}return t}function n9(r){var e=[kn,Ne("Properties",null,{xmlns:ri.CUST_PROPS,"xmlns:vt":ri.vt})];if(!r)return e.join("");var t=1;return In(r).forEach(function(i){++t,e[e.length]=Ne("property",tce(r[i],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t,name:Cr(i)})}),e.length>2&&(e[e.length]="</Properties>",e[1]=e[1].replace("/>",">")),e.join("")}var wR={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"},aR;function Kce(r,e,t){aR||(aR=WE(wR)),e=aR[e]||e,r[e]=t}function Yce(r,e){var t=[];return In(wR).map(function(n){for(var i=0;i<Ys.length;++i)if(Ys[i][1]==n)return Ys[i];for(i=0;i<wh.length;++i)if(wh[i][1]==n)return wh[i];throw n}).forEach(function(n){if(r[n[1]]!=null){var i=e&&e.Props&&e.Props[n[1]]!=null?e.Props[n[1]]:r[n[1]];switch(n[2]){case"date":i=new Date(i).toISOString().replace(/\.\d*Z/,"Z");break}typeof i=="number"?i=String(i):i===!0||i===!1?i=i?"1":"0":i instanceof Date&&(i=new Date(i).toISOString().replace(/\.\d*Z/,"")),t.push(Ri(wR[n[1]]||n[1],i))}}),Ne("DocumentProperties",t.join(""),{xmlns:ys.o})}function Xce(r,e){var t=["Worksheets","SheetNames"],n="CustomDocumentProperties",i=[];return r&&In(r).forEach(function(a){if(Object.prototype.hasOwnProperty.call(r,a)){for(var s=0;s<Ys.length;++s)if(a==Ys[s][1])return;for(s=0;s<wh.length;++s)if(a==wh[s][1])return;for(s=0;s<t.length;++s)if(a==t[s])return;var o=r[a],l="string";typeof o=="number"?(l="float",o=String(o)):o===!0||o===!1?(l="boolean",o=o?"1":"0"):o=String(o),i.push(Ne(_j(a),o,{"dt:dt":l}))}}),e&&In(e).forEach(function(a){if(Object.prototype.hasOwnProperty.call(e,a)&&!(r&&Object.prototype.hasOwnProperty.call(r,a))){var s=e[a],o="string";typeof s=="number"?(o="float",s=String(s)):s===!0||s===!1?(o="boolean",s=s?"1":"0"):s instanceof Date?(o="dateTime.tz",s=s.toISOString()):s=String(s),i.push(Ne(_j(a),s,{"dt:dt":o}))}}),"<"+n+' xmlns="'+ys.o+'">'+i.join("")+"</"+n+">"}function ZR(r){var e=r.read_shift(4),t=r.read_shift(4);return new Date((t/1e7*Math.pow(2,32)+e/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}function Qce(r){var e=typeof r=="string"?new Date(Date.parse(r)):r,t=e.getTime()/1e3+11644473600,n=t%Math.pow(2,32),i=(t-n)/Math.pow(2,32);n*=1e7,i*=1e7;var a=n/Math.pow(2,32)|0;a>0&&(n=n%Math.pow(2,32),i+=a);var s=oe(8);return s.write_shift(4,n),s.write_shift(4,i),s}function i9(r,e,t){var n=r.l,i=r.read_shift(0,"lpstr-cp");if(t)for(;r.l-n&3;)++r.l;return i}function a9(r,e,t){var n=r.read_shift(0,"lpwstr");return t&&(r.l+=4-(n.length+1&3)&3),n}function s9(r,e,t){return e===31?a9(r):i9(r,e,t)}function IR(r,e,t){return s9(r,e,t===!1?0:4)}
159function Jce(r,e){if(!e)throw new Error("VtUnalignedString must have positive length");return s9(r,e,0)}function Zce(r){for(var e=r.read_shift(4),t=[],n=0;n!=e;++n){var i=r.l;t[n]=r.read_shift(0,"lpwstr").replace(ra,""),r.l-i&2&&(r.l+=2)}return t}function eue(r){for(var e=r.read_shift(4),t=[],n=0;n!=e;++n)t[n]=r.read_shift(0,"lpstr-cp").replace(ra,"");return t}function tue(r){var e=r.l,t=VE(r,KH);r[r.l]==0&&r[r.l+1]==0&&r.l-e&2&&(r.l+=2);var n=VE(r,qa);return[t,n]}function rue(r){for(var e=r.read_shift(4),t=[],n=0;n<e/2;++n)t.push(tue(r));return t}function Oj(r,e){for(var t=r.read_shift(4),n={},i=0;i!=t;++i){var a=r.read_shift(4),s=r.read_shift(4);n[a]=r.read_shift(s,e===1200?"utf16le":"utf8").replace(ra,"").replace(ky,"!"),e===1200&&s%2&&(r.l+=2)}return r.l&3&&(r.l=r.l>>3<<2),n}function o9(r){var e=r.read_shift(4),t=r.slice(r.l,r.l+e);return r.l+=e,(e&3)>0&&(r.l+=4-(e&3)&3),t}function nue(r){var e={};return e.Size=r.read_shift(4),r.l+=e.Size+3-(e.Size-1)%4,e}function VE(r,e,t){var n=r.read_shift(2),i,a=t||{};if(r.l+=2,e!==kj&&n!==e&&Oce.indexOf(e)===-1&&!((e&65534)==4126&&(n&65534)==4126))throw new Error("Expected type "+e+" saw "+n);switch(e===kj?n:e){case 2:return i=r.read_shift(2,"i"),a.raw||(r.l+=2),i;case 3:return i=r.read_shift(4,"i"),i;case 11:return r.read_shift(4)!==0;case 19:return i=r.read_shift(4),i;case 30:return i9(r,n,4).replace(ra,"");case 31:return a9(r);case 64:return ZR(r);case 65:return o9(r);case 71:return nue(r);case 80:return IR(r,n,!a.raw).replace(ra,"");case 81:return Jce(r,n).replace(ra,"");case 4108:return rue(r);case 4126:case 4127:return n==4127?Zce(r):eue(r);default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+n)}}function Fj(r,e){var t=oe(4),n=oe(4);switch(t.write_shift(4,r==80?31:r),r){case 3:n.write_shift(-4,e);break;case 5:n=oe(8),n.write_shift(8,e,"f");break;case 11:n.write_shift(4,e?1:0);break;case 64:n=Qce(e);break;case 31:case 80:for(n=oe(4+2*(e.length+1)+(e.length%2?0:2)),n.write_shift(4,e.length+1),n.write_shift(0,e,"dbcs");n.l!=n.length;)n.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+r+" "+e)}return gi([t,n])}function Bj(r,e){var t=r.l,n=r.read_shift(4),i=r.read_shift(4),a=[],s=0,o=0,l=-1,c={};for(s=0;s!=i;++s){var u=r.read_shift(4),d=r.read_shift(4);a[s]=[u,d+t]}a.sort(function(C,x){return C[1]-x[1]});var f={};for(s=0;s!=i;++s){if(r.l!==a[s][1]){var p=!0;if(s>0&&e)switch(e[a[s-1][0]].t){case 2:r.l+2===a[s][1]&&(r.l+=2,p=!1);break;case 80:r.l<=a[s][1]&&(r.l=a[s][1],p=!1);break;case 4108:r.l<=a[s][1]&&(r.l=a[s][1],p=!1);break}if((!e||s==0)&&r.l<=a[s][1]&&(p=!1,r.l=a[s][1]),p)throw new Error("Read Error: Expected address "+a[s][1]+" at "+r.l+" :"+s)}if(e){var g=e[a[s][0]];if(f[g.n]=VE(r,g.t,{raw:!0}),g.p==="version"&&(f[g.n]=String(f[g.n]>>16)+"."+("0000"+String(f[g.n]&65535)).slice(-4)),g.n=="CodePage")switch(f[g.n]){case 0:f[g.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:Do(o=f[g.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+f[g.n])}}else if(a[s][0]===1){if(o=f.CodePage=VE(r,QR),Do(o),l!==-1){var y=r.l;r.l=a[l][1],c=Oj(r,o),r.l=y}}else if(a[s][0]===0){if(o===0){l=s,r.l=a[s+1][1];continue}c=Oj(r,o)}else{var v=c[a[s][0]],T;switch(r[r.l]){case 65:r.l+=4,T=o9(r);break;case 30:r.l+=4,T=IR(r,r[r.l-4]).replace(/\u0000+$/,"");break;case 31:r.l+=4,T=IR(r,r[r.l-4]).replace(/\u0000+$/,"");break;case 3:r.l+=4,T=r.read_shift(4,"i");break;case 19:r.l+=4,T=r.read_shift(4);break;case 5:r.l+=4,T=r.read_shift(8,"f");break;case 11:r.l+=4,T=An(r,4);break;case 64:r.l+=4,T=Wr(ZR(r));break;default:throw new Error("unparsed value: "+r[r.l])}f[v]=T}}return r.l=t+n,f}var l9=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function iue(r){switch(typeof r){case"boolean":return 11;case"number":return(r|0)==r?3:5;case"string":return 31;case"object":if(r instanceof Date)return 64;break}return-1}function Nj(r,e,t){var n=oe(8),i=[],a=[],s=8,o=0,l=oe(8),c=oe(8);
159if(l.write_shift(4,2),l.write_shift(4,1200),c.write_shift(4,1),a.push(l),i.push(c),s+=8+l.length,!e){c=oe(8),c.write_shift(4,0),i.unshift(c);var u=[oe(4)];for(u[0].write_shift(4,r.length),o=0;o<r.length;++o){var d=r[o][0];for(l=oe(8+2*(d.length+1)+(d.length%2?0:2)),l.write_shift(4,o+2),l.write_shift(4,d.length+1),l.write_shift(0,d,"dbcs");l.l!=l.length;)l.write_shift(1,0);u.push(l)}l=gi(u),a.unshift(l),s+=8+l.length}for(o=0;o<r.length;++o)if(!(e&&!e[r[o][0]])&&!(l9.indexOf(r[o][0])>-1||e9.indexOf(r[o][0])>-1)&&r[o][1]!=null){var f=r[o][1],p=0;if(e){p=+e[r[o][0]];var g=t[p];if(g.p=="version"&&typeof f=="string"){var y=f.split(".");f=(+y[0]<<16)+(+y[1]||0)}l=Fj(g.t,f)}else{var v=iue(f);v==-1&&(v=31,f=String(f)),l=Fj(v,f)}a.push(l),c=oe(8),c.write_shift(4,e?p:2+o),i.push(c),s+=8+l.length}var T=8*(a.length+1);for(o=0;o<a.length;++o)i[o].write_shift(4,T),T+=a[o].length;return n.write_shift(4,s),n.write_shift(4,a.length),gi([n].concat(i).concat(a))}function Lj(r,e,t){var n=r.content;if(!n)return{};Pi(n,0);var i,a,s,o,l=0;n.chk("feff","Byte Order: "),n.read_shift(2);var c=n.read_shift(4),u=n.read_shift(16);if(u!==ct.utils.consts.HEADER_CLSID&&u!==t)throw new Error("Bad PropertySet CLSID "+u);if(i=n.read_shift(4),i!==1&&i!==2)throw new Error("Unrecognized #Sets: "+i);if(a=n.read_shift(16),o=n.read_shift(4),i===1&&o!==n.l)throw new Error("Length mismatch: "+o+" !== "+n.l);i===2&&(s=n.read_shift(16),l=n.read_shift(4));var d=Bj(n,e),f={SystemIdentifier:c};for(var p in d)f[p]=d[p];if(f.FMTID=a,i===1)return f;if(l-n.l==2&&(n.l+=2),n.l!==l)throw new Error("Length mismatch 2: "+n.l+" !== "+l);var g;try{g=Bj(n,null)}catch{}for(p in g)f[p]=g[p];return f.FMTID=[a,s],f}function Vj(r,e,t,n,i,a){var s=oe(i?68:48),o=[s];s.write_shift(2,65534),s.write_shift(2,0),s.write_shift(4,842412599),s.write_shift(16,ct.utils.consts.HEADER_CLSID,"hex"),s.write_shift(4,i?2:1),s.write_shift(16,e,"hex"),s.write_shift(4,i?68:48);var l=Nj(r,t,n);if(o.push(l),i){var c=Nj(i,null,null);s.write_shift(16,a,"hex"),s.write_shift(4,68+l.length),o.push(c)}return gi(o)}function xu(r,e){return r.read_shift(e),null}function aue(r,e){e||(e=oe(r));for(var t=0;t<r;++t)e.write_shift(1,0);return e}function sue(r,e,t){for(var n=[],i=r.l+e;r.l<i;)n.push(t(r,i-r.l));if(i!==r.l)throw new Error("Slurp error");return n}function An(r,e){return r.read_shift(e)===1}function Sa(r,e){return e||(e=oe(2)),e.write_shift(2,+!!r),e}function Kn(r){return r.read_shift(2,"u")}function Ks(r,e){return e||(e=oe(2)),e.write_shift(2,r),e}function c9(r,e){return sue(r,e,Kn)}function oue(r){var e=r.read_shift(1),t=r.read_shift(1);return t===1?e:e===1}function u9(r,e,t){return t||(t=oe(2)),t.write_shift(1,e=="e"?+r:+!!r),t.write_shift(1,e=="e"?1:0),t}function rv(r,e,t){var n=r.read_shift(t&&t.biff>=12?2:1),i="sbcs-cont",a=gl;if(t&&t.biff>=8&&(gl=1200),!t||t.biff==8){var s=r.read_shift(1);s&&(i="dbcs-cont")}else t.biff==12&&(i="wstr");t.biff>=2&&t.biff<=5&&(i="cpstr");var o=n?r.read_shift(n,i):"";return gl=a,o}function lue(r){var e=gl;gl=1200;var t=r.read_shift(2),n=r.read_shift(1),i=n&4,a=n&8,s=1+(n&1),o=0,l,c={};a&&(o=r.read_shift(2)),i&&(l=r.read_shift(4));var u=s==2?"dbcs-cont":"sbcs-cont",d=t===0?"":r.read_shift(t,u);return a&&(r.l+=4*o),i&&(r.l+=l),c.t=d,a||(c.raw="<t>"+c.t+"</t>",c.r=c.t),gl=e,c}function cue(r){var e=r.t||"",t=1,n=oe(3+(t>1?2:0));n.write_shift(2,e.length),n.write_shift(1,(t>1?8:0)|1),t>1&&n.write_shift(2,t);var i=oe(2*e.length);i.write_shift(2*e.length,e,"utf16le");var a=[n,i];return gi(a)}function Sh(r,e,t){var n;if(t){if(t.biff>=2&&t.biff<=5)return r.read_shift(e,"cpstr");if(t.biff>=12)return r.read_shift(e,"dbcs-cont")}var i=r.read_shift(1);return i===0?n=r.read_shift(e,"sbcs-cont"):n=r.read_shift(e,"dbcs-cont"),n}function nv(r,e,t){var n=r.read_shift(t&&t.biff==2?1:2);return n===0?(r.l++,""):Sh(r,n,t)}function Fh(r,e,t){if(t.biff>5)return nv(r,e,t);var n=r.read_shift(1);return n===0?(r.l++,""):r.read_shift(n,t.biff<=4||!r.lens?"cpstr":"sbcs-cont")}function d9(r,e,t){return t||(t=oe(3+2*r.length)),t.write_shift(2,r.length),t.write_shift(1,1),t.write_shift(31,r,"utf16le"),t}function uue(r){var e=r.read_shift(1);r.l++;var t=r.read_shift(2);return r.l+=2,[e,t]}function due(r){var e=r.read_shift(4),t=r.l,n=!1;e>24&&(r.l+=e-24,r.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(n=!0),r.l=t);var i=r.read_shift((n?e-24:e)>>1,"utf16le").replace(ra,"");return n&&(r.l+=24),i}function hue(r){for(var e=r.read_shift(2),t="";e-- >0;)t+="../";var n=r.read_shift(0,"lpstr-ansi");if(r.l+=2,r.read_shift(2)!=57005)throw new Error("Bad FileMoniker");var i=r.read_shift(4);if(i===0)return t+n.replace(/\\/g,"/");var a=r.read_shift(4);if(r.read_shift(2)!=3)throw new Error("Bad FileMoniker");var s=r.read_shift(a>>1,"utf16le").replace(ra,"");return t+s}function fue(r,e){var t=r.read_shift(16);switch(e-=16,t){case"e0c9ea79f9bace118c8200aa004ba90b":return due(r,e);case"0303000000000000c000000000000046":return hue(r,e);default:throw new Error("Unsupported Moniker "+t)}}function TE(r){var e=r.read_shift(4),t=e>0?r.read_shift(e,"utf16le").replace(ra,""):"";return t}function Uj(r,e){e||(e=oe(6+r.length*2)),e.write_shift(4,1+r.length);for(var t=0;t<r.length;++t)e.write_shift(2,r.charCodeAt(t));return e.write_shift(2,0),e}function mue(r,e){var t=r.l+e,n=r.read_shift(4);if(n!==2)throw new Error("Unrecognized streamVersion: "+n);var i=r.read_shift(2);r.l+=2;var a,s,o,l,c="",u,d;i&16&&(a=TE(r,t-r.l)),i&128&&(s=TE(r,t-r.l)),(i&257)===257&&(o=TE(r,t-r.l)),(i&257)===1&&(l=fue(r,t-r.l)),i&8&&(c=TE(r,t-r.l)),i&32&&(u=r.read_shift(16)),i&64&&(d=ZR(r)),r.l=t;var f=s||o||l||"";f&&c&&(f+="#"+c),f||(f="#"+c),i&2&&f.charAt(0)=="/"&&f.charAt(1)!="/"&&(f="file://"+f);var p={Target:f};return u&&(p.guid=u),d&&(p.time=d),a&&(p.Tooltip=a),p}function pue(r){var e=oe(512),t=0,n=r.Target;n.slice(0,7)=="file://"&&(n=n.slice(7));var i=n.indexOf("#"),a=i>-1?31:23;switch(n.charAt(0)){case"#":a=28;break;case".":a&=-3;break}e.write_shift(4,2),e.write_shift(4,a);var s=[8,6815827,6619237,4849780,83];for(t=0;t<s.length;++t)e.write_shift(4,s[t]);if(a==28)n=n.slice(1),Uj(n,e);else if(a&2){for(s="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),t=0;t<s.length;++t)e.write_shift(1,parseInt(s[t],16));var o=i>-1?n.slice(0,i):n;for(e.write_shift(4,2*(o.length+1)),t=0;t<o.length;++t)e.write_shift(2,o.charCodeAt(t));e.write_shift(2,0),a&8&&Uj(i>-1?n.slice(i+1):"",e)}else{for(s="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),t=0;t<s.length;++t)e.write_shift(1,parseInt(s[t],16));for(var l=0;n.slice(l*3,l*3+3)=="../"||n.slice(l*3,l*3+3)=="..\\";)++l;for(e.write_shift(2,l),e.write_shift(4,n.length-3*l+1),t=0;t<n.length-3*l;
159++t)e.write_shift(1,n.charCodeAt(t+3*l)&255);for(e.write_shift(1,0),e.write_shift(2,65535),e.write_shift(2,57005),t=0;t<6;++t)e.write_shift(4,0)}return e.slice(0,e.l)}function h9(r){var e=r.read_shift(1),t=r.read_shift(1),n=r.read_shift(1),i=r.read_shift(1);return[e,t,n,i]}function f9(r,e){var t=h9(r,e);return t[3]=0,t}function vl(r){var e=r.read_shift(2),t=r.read_shift(2),n=r.read_shift(2);return{r:e,c:t,ixfe:n}}function Dh(r,e,t,n){return n||(n=oe(6)),n.write_shift(2,r),n.write_shift(2,e),n.write_shift(2,t||0),n}function gue(r){var e=r.read_shift(2),t=r.read_shift(2);return r.l+=8,{type:e,flags:t}}function yue(r,e,t){return e===0?"":Fh(r,e,t)}function vue(r,e,t){var n=t.biff>8?4:2,i=r.read_shift(n),a=r.read_shift(n,"i"),s=r.read_shift(n,"i");return[i,a,s]}function m9(r){var e=r.read_shift(2),t=XR(r);return[e,t]}function _ue(r,e,t){r.l+=4,e-=4;var n=r.l+e,i=rv(r,e,t),a=r.read_shift(2);if(n-=r.l,a!==n)throw new Error("Malformed AddinUdf: padding = "+n+" != "+a);return r.l+=a,i}function XE(r){var e=r.read_shift(2),t=r.read_shift(2),n=r.read_shift(2),i=r.read_shift(2);return{s:{c:n,r:e},e:{c:i,r:t}}}function p9(r,e){return e||(e=oe(8)),e.write_shift(2,r.s.r),e.write_shift(2,r.e.r),e.write_shift(2,r.s.c),e.write_shift(2,r.e.c),e}function g9(r){var e=r.read_shift(2),t=r.read_shift(2),n=r.read_shift(1),i=r.read_shift(1);return{s:{c:n,r:e},e:{c:i,r:t}}}var bue=g9;function y9(r){r.l+=4;var e=r.read_shift(2),t=r.read_shift(2),n=r.read_shift(2);return r.l+=12,[t,e,n]}function wue(r){var e={};return r.l+=4,r.l+=16,e.fSharedNote=r.read_shift(2),r.l+=4,e}function Iue(r){var e={};return r.l+=4,r.cf=r.read_shift(2),e}function Qi(r){r.l+=2,r.l+=r.read_shift(2)}var xue={0:Qi,4:Qi,5:Qi,6:Qi,7:Iue,8:Qi,9:Qi,10:Qi,11:Qi,12:Qi,13:wue,14:Qi,15:Qi,16:Qi,17:Qi,18:Qi,19:Qi,20:Qi,21:y9};function Eue(r,e){for(var t=r.l+e,n=[];r.l<t;){var i=r.read_shift(2);r.l-=2;try{n.push(xue[i](r,t-r.l))}catch{return r.l=t,n}}return r.l!=t&&(r.l=t),n}function CE(r,e){var t={BIFFVer:0,dt:0};switch(t.BIFFVer=r.read_shift(2),e-=2,e>=2&&(t.dt=r.read_shift(2),r.l-=2),t.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(e>6)throw new Error("Unexpected BIFF Ver "+t.BIFFVer)}return r.read_shift(e),t}function eO(r,e,t){var n=1536,i=16;switch(t.bookType){case"biff8":break;case"biff5":n=1280,i=8;break;case"biff4":n=4,i=6;break;case"biff3":n=3,i=6;break;case"biff2":n=2,i=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var a=oe(i);return a.write_shift(2,n),a.write_shift(2,e),i>4&&a.write_shift(2,29282),i>6&&a.write_shift(2,1997),i>8&&(a.write_shift(2,49161),a.write_shift(2,1),a.write_shift(2,1798),a.write_shift(2,0)),a}function Tue(r,e){return e===0||r.read_shift(2),1200}function Cue(r,e,t){if(t.enc)return r.l+=e,"";var n=r.l,i=Fh(r,0,t);return r.read_shift(e+n-r.l),i}function Sue(r,e){var t=!e||e.biff==8,n=oe(t?112:54);for(n.write_shift(e.biff==8?2:1,7),t&&n.write_shift(1,0),n.write_shift(4,859007059),n.write_shift(4,5458548|(t?0:536870912));n.l<n.length;)n.write_shift(1,t?0:32);return n}function Due(r,e,t){var n=t&&t.biff==8||e==2?r.read_shift(2):(r.l+=e,0);return{fDialog:n&16,fBelow:n&64,fRight:n&128}}function Aue(r,e,t){var n=r.read_shift(4),i=r.read_shift(1)&3,a=r.read_shift(1);switch(a){case 0:a="Worksheet";break;case 1:a="Macrosheet";break;case 2:a="Chartsheet";break;case 6:a="VBAModule";break}var s=rv(r,0,t);return s.length===0&&(s="Sheet1"),{pos:n,hs:i,dt:a,name:s}}function Mue(r,e){var t=!e||e.biff>=8?2:1,n=oe(8+t*r.name.length);n.write_shift(4,r.pos),n.write_shift(1,r.hs||0),n.write_shift(1,r.dt),n.write_shift(1,r.name.length),e.biff>=8&&n.write_shift(1,1),n.write_shift(t*r.name.length,r.name,e.biff<8?"sbcs":"utf16le");var i=n.slice(0,n.l);return i.l=n.l,i}function kue(r,e){for(var t=r.l+e,n=r.read_shift(4),i=r.read_shift(4),a=[],s=0;s!=i&&r.l<t;++s)a.push(lue(r));return a.Count=n,a.Unique=i,a}function Pue(r,e){var t=oe(8);t.write_shift(4,r.Count),t.write_shift(4,r.Unique);for(var n=[],i=0;i<r.length;++i)n[i]=cue(r[i],e);var a=gi([t].concat(n));return a.parts=[t.length].concat(n.map(function(s){return s.length})),a}function Rue(r,e){var t={};return t.dsst=r.read_shift(2),r.l+=e-2,t}function Oue(r){var e={};e.r=r.read_shift(2),e.c=r.read_shift(2),e.cnt=r.read_shift(2)-e.c;var t=r.read_shift(2);r.l+=4;var n=r.read_shift(1);return r.l+=3,n&7&&(e.level=n&7),n&32&&(e.hidden=!0),n&64&&(e.hpt=t/20),e}function Fue(r){var e=gue(r);if(e.type!=2211)throw new Error("Invalid Future Record "+e.type);var t=r.read_shift(4);return t!==0}function Bue(r){return r.read_shift(2),r.read_shift(4)}function zj(r,e,t){var n=0;t&&t.biff==2||(n=r.read_shift(2));var i=r.read_shift(2);t&&t.biff==2&&(n=1-(i>>15),i&=32767);var a={Unsynced:n&1,DyZero:(n&2)>>1,ExAsc:(n&4)>>2,ExDsc:(n&8)>>3};return[a,i]}function Nue(r){var e=r.read_shift(2),t=r.read_shift(2),n=r.read_shift(2),i=r.read_shift(2),a=r.read_shift(2),s=r.read_shift(2),o=r.read_shift(2),l=r.read_shift(2),c=r.read_shift(2);return{Pos:[e,t],Dim:[n,i],Flags:a,CurTab:s,FirstTab:o,Selected:l,TabRatio:c}}function Lue(){var r=oe(18);return r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,29280),r.write_shift(2,17600),r.write_shift(2,56),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,1),r.write_shift(2,500),r}function Vue(r,e,t){if(t&&t.biff>=2&&t.biff<5)return{};var n=r.read_shift(2);return{RTL:n&64}}function Uue(r){var e=oe(18),t=1718;
159return r&&r.RTL&&(t|=64),e.write_shift(2,t),e.write_shift(4,0),e.write_shift(4,64),e.write_shift(4,0),e.write_shift(4,0),e}function zue(){}function jue(r,e,t){var n={dyHeight:r.read_shift(2),fl:r.read_shift(2)};switch(t&&t.biff||8){case 2:break;case 3:case 4:r.l+=2;break;default:r.l+=10;break}return n.name=rv(r,0,t),n}function Hue(r,e){var t=r.name||"Arial",n=e&&e.biff==5,i=n?15+t.length:16+2*t.length,a=oe(i);return a.write_shift(2,(r.sz||12)*20),a.write_shift(4,0),a.write_shift(2,400),a.write_shift(4,0),a.write_shift(2,0),a.write_shift(1,t.length),n||a.write_shift(1,1),a.write_shift((n?1:2)*t.length,t,n?"sbcs":"utf16le"),a}function $ue(r){var e=vl(r);return e.isst=r.read_shift(4),e}function Gue(r,e,t,n){var i=oe(10);return Dh(r,e,n,i),i.write_shift(4,t),i}function Wue(r,e,t){t.biffguess&&t.biff==2&&(t.biff=5);var n=r.l+e,i=vl(r,6);t.biff==2&&r.l++;var a=nv(r,n-r.l,t);return i.val=a,i}function que(r,e,t,n,i){var a=!i||i.biff==8,s=oe(8+ +a+(1+a)*t.length);return Dh(r,e,n,s),s.write_shift(2,t.length),a&&s.write_shift(1,1),s.write_shift((1+a)*t.length,t,a?"utf16le":"sbcs"),s}function Kue(r,e,t){var n=r.read_shift(2),i=Fh(r,0,t);return[n,i]}function Yue(r,e,t,n){var i=t&&t.biff==5;n||(n=oe(i?3+e.length:5+2*e.length)),n.write_shift(2,r),n.write_shift(i?1:2,e.length),i||n.write_shift(1,1),n.write_shift((i?1:2)*e.length,e,i?"sbcs":"utf16le");var a=n.length>n.l?n.slice(0,n.l):n;return a.l==null&&(a.l=a.length),a}var Xue=Fh;function jj(r,e,t){var n=r.l+e,i=t.biff==8||!t.biff?4:2,a=r.read_shift(i),s=r.read_shift(i),o=r.read_shift(2),l=r.read_shift(2);return r.l=n,{s:{r:a,c:o},e:{r:s,c:l}}}function Que(r,e){var t=e.biff==8||!e.biff?4:2,n=oe(2*t+6);return n.write_shift(t,r.s.r),n.write_shift(t,r.e.r+1),n.write_shift(2,r.s.c),n.write_shift(2,r.e.c+1),n.write_shift(2,0),n}function Jue(r){var e=r.read_shift(2),t=r.read_shift(2),n=m9(r);return{r:e,c:t,ixfe:n[0],rknum:n[1]}}function Zue(r,e){for(var t=r.l+e-2,n=r.read_shift(2),i=r.read_shift(2),a=[];r.l<t;)a.push(m9(r));if(r.l!==t)throw new Error("MulRK read error");var s=r.read_shift(2);if(a.length!=s-i+1)throw new Error("MulRK length mismatch");return{r:n,c:i,C:s,rkrec:a}}function ede(r,e){for(var t=r.l+e-2,n=r.read_shift(2),i=r.read_shift(2),a=[];r.l<t;)a.push(r.read_shift(2));if(r.l!==t)throw new Error("MulBlank read error");var s=r.read_shift(2);if(a.length!=s-i+1)throw new Error("MulBlank length mismatch");return{r:n,c:i,C:s,ixfe:a}}function tde(r,e,t,n){var i={},a=r.read_shift(4),s=r.read_shift(4),o=r.read_shift(4),l=r.read_shift(2);return i.patternType=Fce[o>>26],n.cellStyles&&(i.alc=a&7,i.fWrap=a>>3&1,i.alcV=a>>4&7,i.fJustLast=a>>7&1,i.trot=a>>8&255,i.cIndent=a>>16&15,i.fShrinkToFit=a>>20&1,i.iReadOrder=a>>22&2,i.fAtrNum=a>>26&1,i.fAtrFnt=a>>27&1,i.fAtrAlc=a>>28&1,i.fAtrBdr=a>>29&1,i.fAtrPat=a>>30&1,i.fAtrProt=a>>31&1,i.dgLeft=s&15,i.dgRight=s>>4&15,i.dgTop=s>>8&15,i.dgBottom=s>>12&15,i.icvLeft=s>>16&127,i.icvRight=s>>23&127,i.grbitDiag=s>>30&3,i.icvTop=o&127,i.icvBottom=o>>7&127,i.icvDiag=o>>14&127,i.dgDiag=o>>21&15,i.icvFore=l&127,i.icvBack=l>>7&127,i.fsxButton=l>>14&1),i}function rde(r,e,t){var n={};return n.ifnt=r.read_shift(2),n.numFmtId=r.read_shift(2),n.flags=r.read_shift(2),n.fStyle=n.flags>>2&1,e-=6,n.data=tde(r,e,n.fStyle,t),n}function Hj(r,e,t,n){var i=t&&t.biff==5;n||(n=oe(i?16:20)),n.write_shift(2,0),r.style?(n.write_shift(2,r.numFmtId||0),n.write_shift(2,65524)):(n.write_shift(2,r.numFmtId||0),n.write_shift(2,e<<4));var a=0;return r.numFmtId>0&&i&&(a|=1024),n.write_shift(4,a),n.write_shift(4,0),i||n.write_shift(4,0),n.write_shift(2,0),n}function nde(r){r.l+=4;var e=[r.read_shift(2),r.read_shift(2)];if(e[0]!==0&&e[0]--,e[1]!==0&&e[1]--,e[0]>7||e[1]>7)throw new Error("Bad Gutters: "+e.join("|"));return e}function ide(r){var e=oe(8);return e.write_shift(4,0),e.write_shift(2,r[0]?r[0]+1:0),e.write_shift(2,r[1]?r[1]+1:0),e}function $j(r,e,t){var n=vl(r,6);(t.biff==2||e==9)&&++r.l;var i=oue(r,2);return n.val=i,n.t=i===!0||i===!1?"b":"e",n}function ade(r,e,t,n,i,a){var s=oe(8);return Dh(r,e,n,s),u9(t,a,s),s}function sde(r,e,t){t.biffguess&&t.biff==2&&(t.biff=5);var n=vl(r,6),i=ta(r,8);return n.val=i,n}function ode(r,e,t,n){var i=oe(14);return Dh(r,e,n,i),Ch(t,i),i}var Gj=yue;function lde(r,e,t){var n=r.l+e,i=r.read_shift(2),a=r.read_shift(2);if(t.sbcch=a,a==1025||a==14849)return[a,i];if(a<1||a>255)throw new Error("Unexpected SupBook type: "+a);for(var s=Sh(r,a),o=[];
159n>r.l;)o.push(nv(r));return[a,i,s,o]}function Wj(r,e,t){var n=r.read_shift(2),i,a={fBuiltIn:n&1,fWantAdvise:n>>>1&1,fWantPict:n>>>2&1,fOle:n>>>3&1,fOleLink:n>>>4&1,cf:n>>>5&1023,fIcon:n>>>15&1};return t.sbcch===14849&&(i=_ue(r,e-2,t)),a.body=i||r.read_shift(e-2),typeof i=="string"&&(a.Name=i),a}var cde=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function qj(r,e,t){var n=r.l+e,i=r.read_shift(2),a=r.read_shift(1),s=r.read_shift(1),o=r.read_shift(t&&t.biff==2?1:2),l=0;(!t||t.biff>=5)&&(t.biff!=5&&(r.l+=2),l=r.read_shift(2),t.biff==5&&(r.l+=2),r.l+=4);var c=Sh(r,s,t);i&32&&(c=cde[c.charCodeAt(0)]);var u=n-r.l;t&&t.biff==2&&--u;var d=n==r.l||o===0||!(u>0)?[]:Epe(r,u,t,o);return{chKey:a,Name:c,itab:l,rgce:d}}function v9(r,e,t){if(t.biff<8)return ude(r,e,t);for(var n=[],i=r.l+e,a=r.read_shift(t.biff>8?4:2);a--!==0;)n.push(vue(r,t.biff>8?12:6,t));if(r.l!=i)throw new Error("Bad ExternSheet: "+r.l+" != "+i);return n}function ude(r,e,t){r[r.l+1]==3&&r[r.l]++;var n=rv(r,e,t);return n.charCodeAt(0)==3?n.slice(1):n}function dde(r,e,t){if(t.biff<8){r.l+=e;return}var n=r.read_shift(2),i=r.read_shift(2),a=Sh(r,n,t),s=Sh(r,i,t);return[a,s]}function hde(r,e,t){var n=g9(r,6);r.l++;var i=r.read_shift(1);return e-=8,[Tpe(r,e,t),i,n]}function Kj(r,e,t){var n=bue(r,6);switch(t.biff){case 2:r.l++,e-=7;break;case 3:case 4:r.l+=2,e-=8;break;default:r.l+=6,e-=12}return[n,Ipe(r,e,t,n)]}function fde(r){var e=r.read_shift(4)!==0,t=r.read_shift(4)!==0,n=r.read_shift(4);return[e,t,n]}function mde(r,e,t){if(!(t.biff<8)){var n=r.read_shift(2),i=r.read_shift(2),a=r.read_shift(2),s=r.read_shift(2),o=Fh(r,0,t);return t.biff<8&&r.read_shift(1),[{r:n,c:i},o,s,a]}}function pde(r,e,t){return mde(r,e,t)}function gde(r,e){for(var t=[],n=r.read_shift(2);n--;)t.push(XE(r,e));return t}function yde(r){var e=oe(2+r.length*8);e.write_shift(2,r.length);for(var t=0;t<r.length;++t)p9(r[t],e);return e}function vde(r,e,t){if(t&&t.biff<8)return bde(r,e,t);var n=y9(r,22),i=Eue(r,e-22,n[1]);return{cmo:n,ft:i}}var _de={8:function(r,e){var t=r.l+e;r.l+=10;var n=r.read_shift(2);r.l+=4,r.l+=2,r.l+=2,r.l+=2,r.l+=4;var i=r.read_shift(1);return r.l+=i,r.l=t,{fmt:n}}};function bde(r,e,t){r.l+=4;var n=r.read_shift(2),i=r.read_shift(2),a=r.read_shift(2);r.l+=2,r.l+=2,r.l+=2,r.l+=2,r.l+=2,r.l+=2,r.l+=2,r.l+=2,r.l+=2,r.l+=6,e-=36;var s=[];return s.push((_de[n]||ia)(r,e,t)),{cmo:[i,n,a],ft:s}}function wde(r,e,t){var n=r.l,i="";try{r.l+=4;var a=(t.lastobj||{cmo:[0,0]}).cmo[1],s;[0,5,7,11,12,14].indexOf(a)==-1?r.l+=6:s=uue(r,6,t);var o=r.read_shift(2);r.read_shift(2),Kn(r,2);var l=r.read_shift(2);r.l+=l;for(var c=1;c<r.lens.length-1;++c){if(r.l-n!=r.lens[c])throw new Error("TxO: bad continue record");var u=r[r.l],d=Sh(r,r.lens[c+1]-r.lens[c]-1);if(i+=d,i.length>=(u?o:2*o))break}if(i.length!==o&&i.length!==o*2)throw new Error("cchText: "+o+" != "+i.length);return r.l=n+e,{t:i}}catch{return r.l=n+e,{t:i}}}function Ide(r,e){var t=XE(r,8);r.l+=16;var n=mue(r,e-24);return[t,n]}function xde(r){var e=oe(24),t=ln(r[0]);e.write_shift(2,t.r),e.write_shift(2,t.r),e.write_shift(2,t.c),e.write_shift(2,t.c);for(var n="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),i=0;i<16;++i)e.write_shift(1,parseInt(n[i],16));return gi([e,pue(r[1])])}function Ede(r,e){r.read_shift(2);var t=XE(r,8),n=r.read_shift((e-10)/2,"dbcs-cont");return n=n.replace(ra,""),[t,n]}function Tde(r){var e=r[1].Tooltip,t=oe(10+2*(e.length+1));t.write_shift(2,2048);var n=ln(r[0]);t.write_shift(2,n.r),t.write_shift(2,n.r),t.write_shift(2,n.c),t.write_shift(2,n.c);for(var i=0;i<e.length;++i)t.write_shift(2,e.charCodeAt(i));return t.write_shift(2,0),t}function Cde(r){var e=[0,0],t;return t=r.read_shift(2),e[0]=Pj[t]||t,t=r.read_shift(2),e[1]=Pj[t]||t,e}function Sde(r){return r||(r=oe(4)),r.write_shift(2,1),r.write_shift(2,1),r}function Dde(r){for(var e=r.read_shift(2),t=[];e-- >0;)t.push(f9(r,8));return t}function Ade(r){for(var e=r.read_shift(2),t=[];e-- >0;)t.push(f9(r,8));return t}function Mde(r){r.l+=2;var e={cxfs:0,crc:0};return e.cxfs=r.read_shift(2),e.crc=r.read_shift(4),e}function _9(r,e,t){if(!t.cellStyles)return ia(r,e);var n=t&&t.biff>=12?4:2,i=r.read_shift(n),a=r.read_shift(n),s=r.read_shift(n),o=r.read_shift(n),l=r.read_shift(2);n==2&&(r.l+=2);var c={s:i,e:a,w:s,ixfe:o,flags:l};return(t.biff>=5||!t.biff)&&(c.level=l>>8&7),c}function kde(r,e){var t=oe(12);t.write_shift(2,e),t.write_shift(2,e),t.write_shift(2,r.width*256),t.write_shift(2,0);var n=0;return r.hidden&&(n|=1),t.write_shift(1,n),n=r.level||0,t.write_shift(1,n),t.write_shift(2,0),t}function Pde(r,e){var t={};return e<32||(r.l+=16,t.header=ta(r,8),t.footer=ta(r,8),r.l+=2),t}function Rde(r,e,t){var n={area:!1};if(t.biff!=5)return r.l+=e,n;var i=r.read_shift(1);return r.l+=3,i&16&&(n.area=!0),n}function Ode(r){for(var e=oe(2*r),t=0;t<r;++t)e.write_shift(2,t+1);return e}
159var Fde=vl,Bde=c9,Nde=nv;function Lde(r){var e=r.read_shift(2),t=r.read_shift(2),n=r.read_shift(4),i={fmt:e,env:t,len:n,data:r.slice(r.l,r.l+n)};return r.l+=n,i}function Vde(r,e,t){t.biffguess&&t.biff==5&&(t.biff=2);var n=vl(r,6);++r.l;var i=Fh(r,e-7,t);return n.t="str",n.val=i,n}function Ude(r){var e=vl(r,6);++r.l;var t=ta(r,8);return e.t="n",e.val=t,e}function zde(r,e,t){var n=oe(15);return ov(n,r,e),n.write_shift(8,t,"f"),n}function jde(r){var e=vl(r,6);++r.l;var t=r.read_shift(2);return e.t="n",e.val=t,e}function Hde(r,e,t){var n=oe(9);return ov(n,r,e),n.write_shift(2,t),n}function $de(r){var e=r.read_shift(1);return e===0?(r.l++,""):r.read_shift(e,"sbcs-cont")}function Gde(r,e){r.l+=6,r.l+=2,r.l+=1,r.l+=3,r.l+=1,r.l+=e-13}function Wde(r,e,t){var n=r.l+e,i=vl(r,6),a=r.read_shift(2),s=Sh(r,a,t);return r.l=n,i.t="str",i.val=s,i}var qde=[2,3,48,49,131,139,140,245],xR=(function(){var r={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},e=WE({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function t(o,l){var c=[],u=Cu(1);switch(l.type){case"base64":u=vs(bs(o));break;case"binary":u=vs(o);break;case"buffer":case"array":u=o;break}Pi(u,0);var d=u.read_shift(1),f=!!(d&136),p=!1,g=!1;switch(d){case 2:break;case 3:break;case 48:p=!0,f=!0;break;case 49:p=!0,f=!0;break;case 131:break;case 139:break;case 140:g=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+d.toString(16))}var y=0,v=521;d==2&&(y=u.read_shift(2)),u.l+=3,d!=2&&(y=u.read_shift(4)),y>1048576&&(y=1e6),d!=2&&(v=u.read_shift(2));var T=u.read_shift(2),C=l.codepage||1252;d!=2&&(u.l+=16,u.read_shift(1),u[u.l]!==0&&(C=r[u[u.l]]),u.l+=1,u.l+=2),g&&(u.l+=36);for(var x=[],B={},q=Math.min(u.length,d==2?521:v-10-(p?264:0)),V=g?32:11;u.l<q&&u[u.l]!=13;)switch(B={},B.name=wr.utils.decode(C,u.slice(u.l,u.l+V)).replace(/[\u0000\r\n].*$/g,""),u.l+=V,B.type=String.fromCharCode(u.read_shift(1)),d!=2&&!g&&(B.offset=u.read_shift(4)),B.len=u.read_shift(1),d==2&&(B.offset=u.read_shift(2)),B.dec=u.read_shift(1),B.name.length&&x.push(B),d!=2&&(u.l+=g?13:14),B.type){case"B":(!p||B.len!=8)&&l.WTF&&console.log("Skipping "+B.name+":"+B.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+B.name+":"+B.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+B.type)}if(u[u.l]!==13&&(u.l=v-1),u.read_shift(1)!==13)throw new Error("DBF Terminator not found "+u.l+" "+u[u.l]);u.l=v;var b=0,E=0;for(c[0]=[],E=0;E!=x.length;++E)c[0][E]=x[E].name;for(;y-- >0;){if(u[u.l]===42){u.l+=T;continue}for(++u.l,c[++b]=[],E=0,E=0;E!=x.length;++E){var I=u.slice(u.l,u.l+x[E].len);u.l+=x[E].len,Pi(I,0);var S=wr.utils.decode(C,I);switch(x[E].type){case"C":S.trim().length&&(c[b][E]=S.replace(/\s+$/,""));break;case"D":S.length===8?c[b][E]=new Date(+S.slice(0,4),+S.slice(4,6)-1,+S.slice(6,8)):c[b][E]=S;break;case"F":c[b][E]=parseFloat(S.trim());break;case"+":case"I":c[b][E]=g?I.read_shift(-4,"i")^2147483648:I.read_shift(4,"i");break;case"L":switch(S.trim().toUpperCase()){case"Y":case"T":c[b][E]=!0;break;case"N":case"F":c[b][E]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+S+"|")}break;case"M":if(!f)throw new Error("DBF Unexpected MEMO for type "+d.toString(16));c[b][E]="##MEMO##"+(g?parseInt(S.trim(),10):I.read_shift(4));break;case"N":S=S.replace(/\u0000/g,"").trim(),S&&S!="."&&(c[b][E]=+S||0);break;case"@":c[b][E]=new Date(I.read_shift(-8,"f")-621356832e5);break;case"T":c[b][E]=new Date((I.read_shift(4)-2440588)*864e5+I.read_shift(4));break;case"Y":c[b][E]=I.read_shift(4,"i")/1e4+I.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":c[b][E]=-I.read_shift(-8,"f");break;case"B":if(p&&x[E].len==8){c[b][E]=I.read_shift(8,"f");break}case"G":case"P":I.l+=x[E].len;break;case"0":if(x[E].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+x[E].type)}}}if(d!=2&&u.l<u.length&&u[u.l++]!=26)throw new Error("DBF EOF Marker missing "+(u.l-1)+" of "+u.length+" "+u[u.l-1].toString(16));return l&&l.sheetRows&&(c=c.slice(0,l.sheetRows)),l.DBF=x,c}function n(o,l){var c=l||{};c.dateNF||(c.dateNF="yyyymmdd");var u=mp(t(o,c),c);return u["!cols"]=c.DBF.map(function(d){return{wch:d.len,DBF:d}}),delete c.DBF,u}function i(o,l){try{return ku(n(o,l),l)}catch(c){if(l&&l.WTF)throw c}return{SheetNames:[],Sheets:{}}}var a={B:8,C:250,L:1,D:8,"?":0,"":0};function s(o,l){var c=l||{};if(+c.codepage>=0&&Do(+c.codepage),c.type=="string")throw new Error("Cannot write DBF to JS string");var u=Ka(),d=HE(o,{header:1,raw:!0,cellDates:!0}
159),f=d[0],p=d.slice(1),g=o["!cols"]||[],y=0,v=0,T=0,C=1;for(y=0;y<f.length;++y){if(((g[y]||{}).DBF||{}).name){f[y]=g[y].DBF.name,++T;continue}if(f[y]!=null){if(++T,typeof f[y]=="number"&&(f[y]=f[y].toString(10)),typeof f[y]!="string")throw new Error("DBF Invalid column name "+f[y]+" |"+typeof f[y]+"|");if(f.indexOf(f[y])!==y){for(v=0;v<1024;++v)if(f.indexOf(f[y]+"_"+v)==-1){f[y]+="_"+v;break}}}}var x=hr(o["!ref"]),B=[],q=[],V=[];for(y=0;y<=x.e.c-x.s.c;++y){var b="",E="",I=0,S=[];for(v=0;v<p.length;++v)p[v][y]!=null&&S.push(p[v][y]);if(S.length==0||f[y]==null){B[y]="?";continue}for(v=0;v<S.length;++v){switch(typeof S[v]){case"number":E="B";break;case"string":E="C";break;case"boolean":E="L";break;case"object":E=S[v]instanceof Date?"D":"C";break;default:E="C"}I=Math.max(I,String(S[v]).length),b=b&&b!=E?"C":E}I>250&&(I=250),E=((g[y]||{}).DBF||{}).type,E=="C"&&g[y].DBF.len>I&&(I=g[y].DBF.len),b=="B"&&E=="N"&&(b="N",V[y]=g[y].DBF.dec,I=g[y].DBF.len),q[y]=b=="C"||E=="N"?I:a[b]||0,C+=q[y],B[y]=b}var k=u.next(32);for(k.write_shift(4,318902576),k.write_shift(4,p.length),k.write_shift(2,296+32*T),k.write_shift(2,C),y=0;y<4;++y)k.write_shift(4,0);for(k.write_shift(4,0|(+e[op]||3)<<8),y=0,v=0;y<f.length;++y)if(f[y]!=null){var D=u.next(32),R=(f[y].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);D.write_shift(1,R,"sbcs"),D.write_shift(1,B[y]=="?"?"C":B[y],"sbcs"),D.write_shift(4,v),D.write_shift(1,q[y]||a[B[y]]||0),D.write_shift(1,V[y]||0),D.write_shift(1,2),D.write_shift(4,0),D.write_shift(1,0),D.write_shift(4,0),D.write_shift(4,0),v+=q[y]||a[B[y]]||0}var De=u.next(264);for(De.write_shift(4,13),y=0;y<65;++y)De.write_shift(4,0);for(y=0;y<p.length;++y){var ve=u.next(C);for(ve.write_shift(1,0),v=0;v<f.length;++v)if(f[v]!=null)switch(B[v]){case"L":ve.write_shift(1,p[y][v]==null?63:p[y][v]?84:70);break;case"B":ve.write_shift(8,p[y][v]||0,"f");break;case"N":var rt="0";for(typeof p[y][v]=="number"&&(rt=p[y][v].toFixed(V[v]||0)),T=0;T<q[v]-rt.length;++T)ve.write_shift(1,32);ve.write_shift(1,rt,"sbcs");break;case"D":p[y][v]?(ve.write_shift(4,("0000"+p[y][v].getFullYear()).slice(-4),"sbcs"),ve.write_shift(2,("00"+(p[y][v].getMonth()+1)).slice(-2),"sbcs"),ve.write_shift(2,("00"+p[y][v].getDate()).slice(-2),"sbcs")):ve.write_shift(8,"00000000","sbcs");break;case"C":var $e=String(p[y][v]!=null?p[y][v]:"").slice(0,q[v]);for(ve.write_shift(1,$e,"sbcs"),T=0;T<q[v]-$e.length;++T)ve.write_shift(1,32);break}}return u.next(1).write_shift(1,26),u.end()}return{to_workbook:i,to_sheet:n,from_sheet:s}})(),b9=(function(){var r={AA:"\xC0",BA:"\xC1",CA:"\xC2",DA:195,HA:"\xC4",JA:197,AE:"\xC8",BE:"\xC9",CE:"\xCA",HE:"\xCB",AI:"\xCC",BI:"\xCD",CI:"\xCE",HI:"\xCF",AO:"\xD2",BO:"\xD3",CO:"\xD4",DO:213,HO:"\xD6",AU:"\xD9",BU:"\xDA",CU:"\xDB",HU:"\xDC",Aa:"\xE0",Ba:"\xE1",Ca:"\xE2",Da:227,Ha:"\xE4",Ja:229,Ae:"\xE8",Be:"\xE9",Ce:"\xEA",He:"\xEB",Ai:"\xEC",Bi:"\xED",Ci:"\xEE",Hi:"\xEF",Ao:"\xF2",Bo:"\xF3",Co:"\xF4",Do:245,Ho:"\xF6",Au:"\xF9",Bu:"\xFA",Cu:"\xFB",Hu:"\xFC",KC:"\xC7",Kc:"\xE7",q:"\xE6",z:"\u0153",a:"\xC6",j:"\u0152",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},e=new RegExp("\x1BN("+In(r).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),t=function(f,p){var g=r[p];return typeof g=="number"?aj(g):g},n=function(f,p,g){var y=p.charCodeAt(0)-32<<4|g.charCodeAt(0)-48;return y==59?f:aj(y)};r["|"]=254;function i(f,p){switch(p.type){case"base64":return a(bs(f),p);case"binary":return a(f,p);case"buffer":return a(Kt&&Buffer.isBuffer(f)?f.toString("binary"):Mu(f),p);case"array":return a(Th(f),p)}throw new Error("Unrecognized type "+p.type)}function a(f,p){var g=f.split(/[\n\r]+/),y=-1,v=-1,T=0,C=0,x=[],B=[],q=null,V={},b=[],E=[],I=[],S=0,k;for(+p.codepage>=0&&Do(+p.codepage);T!==g.length;++T){S=0;
159var D=g[T].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(e,t),R=D.replace(/;;/g,"\0").split(";").map(function(H){return H.replace(/\u0000/g,";")}),De=R[0],ve;if(D.length>0)switch(De){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":R[1].charAt(0)=="P"&&B.push(D.slice(3).replace(/;;/g,";"));break;case"C":var rt=!1,$e=!1,vt=!1,Be=!1,Ze=-1,le=-1;for(C=1;C<R.length;++C)switch(R[C].charAt(0)){case"A":break;case"X":v=parseInt(R[C].slice(1))-1,$e=!0;break;case"Y":for(y=parseInt(R[C].slice(1))-1,$e||(v=0),k=x.length;k<=y;++k)x[k]=[];break;case"K":ve=R[C].slice(1),ve.charAt(0)==='"'?ve=ve.slice(1,ve.length-1):ve==="TRUE"?ve=!0:ve==="FALSE"?ve=!1:isNaN(Mo(ve))?isNaN(lp(ve).getDate())||(ve=Wr(ve)):(ve=Mo(ve),q!==null&&dp(q)&&(ve=KE(ve))),typeof wr<"u"&&typeof ve=="string"&&(p||{}).type!="string"&&(p||{}).codepage&&(ve=wr.utils.decode(p.codepage,ve)),rt=!0;break;case"E":Be=!0;var j=ap(R[C].slice(1),{r:y,c:v});x[y][v]=[x[y][v],j];break;case"S":vt=!0,x[y][v]=[x[y][v],"S5S"];break;case"G":break;case"R":Ze=parseInt(R[C].slice(1))-1;break;case"C":le=parseInt(R[C].slice(1))-1;break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+D)}if(rt&&(x[y][v]&&x[y][v].length==2?x[y][v][0]=ve:x[y][v]=ve,q=null),vt){if(Be)throw new Error("SYLK shared formula cannot have own formula");var K=Ze>-1&&x[Ze][le];if(!K||!K[1])throw new Error("SYLK shared formula cannot find base");x[y][v][1]=L9(K[1],{r:y-Ze,c:v-le})}break;case"F":var W=0;for(C=1;C<R.length;++C)switch(R[C].charAt(0)){case"X":v=parseInt(R[C].slice(1))-1,++W;break;case"Y":for(y=parseInt(R[C].slice(1))-1,k=x.length;k<=y;++k)x[k]=[];break;case"M":S=parseInt(R[C].slice(1))/20;break;case"F":break;case"G":break;case"P":q=B[parseInt(R[C].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(I=R[C].slice(1).split(" "),k=parseInt(I[0],10);k<=parseInt(I[1],10);++k)S=parseInt(I[2],10),E[k-1]=S===0?{hidden:!0}:{wch:S},Su(E[k-1]);break;case"C":v=parseInt(R[C].slice(1))-1,E[v]||(E[v]={});break;case"R":y=parseInt(R[C].slice(1))-1,b[y]||(b[y]={}),S>0?(b[y].hpt=S,b[y].hpx=up(S)):S===0&&(b[y].hidden=!0);break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+D)}W<1&&(q=null);break;default:if(p&&p.WTF)throw new Error("SYLK bad record "+D)}}return b.length>0&&(V["!rows"]=b),E.length>0&&(V["!cols"]=E),p&&p.sheetRows&&(x=x.slice(0,p.sheetRows)),[x,V]}function s(f,p){var g=i(f,p),y=g[0],v=g[1],T=mp(y,p);return In(v).forEach(function(C){T[C]=v[C]}),T}function o(f,p){return ku(s(f,p),p)}function l(f,p,g,y){var v="C;Y"+(g+1)+";X"+(y+1)+";K";switch(f.t){case"n":v+=f.v||0,f.f&&!f.F&&(v+=";E"+sO(f.f,{r:g,c:y}));break;case"b":v+=f.v?"TRUE":"FALSE";break;case"e":v+=f.w||f.v;break;case"d":v+='"'+(f.w||f.v)+'"';break;case"s":v+='"'+f.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return v}function c(f,p){p.forEach(function(g,y){var v="F;W"+(y+1)+" "+(y+1)+" ";g.hidden?v+="0":(typeof g.width=="number"&&!g.wpx&&(g.wpx=Yy(g.width)),typeof g.wpx=="number"&&!g.wch&&(g.wch=Xy(g.wpx)),typeof g.wch=="number"&&(v+=Math.round(g.wch))),v.charAt(v.length-1)!=" "&&f.push(v)})}function u(f,p){p.forEach(function(g,y){var v="F;";g.hidden?v+="M0;":g.hpt?v+="M"+20*g.hpt+";":g.hpx&&(v+="M"+20*Qy(g.hpx)+";"),v.length>2&&f.push(v+"R"+(y+1))})}function d(f,p){var g=["ID;PWXL;N;E"],y=[],v=hr(f["!ref"]),T,C=Array.isArray(f),x=`\r 160`;g.push("P;PGeneral"),g.push("F;P0;DG0G8;M255"),f["!cols"]&&c(g,f["!cols"]),f["!rows"]&&u(g,f["!rows"]),g.push("B;Y"+(v.e.r-v.s.r+1)+";X"+(v.e.c-v.s.c+1)+";D"+[v.s.c,v.s.r,v.e.c,v.e.r].join(" "));for(var B=v.s.r;B<=v.e.r;++B)for(var q=v.s.c;q<=v.e.c;++q){var V=xt({r:B,c:q});T=C?(f[B]||[])[q]:f[V],!(!T||T.v==null&&(!T.f||T.F))&&y.push(l(T,f,B,q,p))}return g.join(x)+x+y.join(x)+x+"E"+x}return{to_workbook:o,to_sheet:s,from_sheet:d}})(),w9=(function(){function r(a,s){switch(s.type){case"base64":return e(bs(a),s);case"binary":return e(a,s);case"buffer":return e(Kt&&Buffer.isBuffer(a)?a.toString("binary"):Mu(a),s);case"array":return e(Th(a),s)}throw new Error("Unrecognized type "+s.type)}function e(a,s){for(var o=a.split(` 161`),l=-1,c=-1,u=0,d=[];u!==o.length;++u){if(o[u].trim()==="BOT"){d[++l]=[],c=0;continue}if(!(l<0)){var f=o[u].trim().split(","),p=f[0],g=f[1];++u;for(var y=o[u]||"";(y.match(/["]/g)||[]).length&1&&u<o.length-1;)y+=` 162`+o[++u];switch(y=y.trim(),+p){case-1:if(y==="BOT"){d[++l]=[],c=0;continue}else if(y!=="EOD")throw new Error("Unrecognized DIF special command "+y);break;case 0:y==="TRUE"?d[l][c]=!0:y==="FALSE"?d[l][c]=!1:isNaN(Mo(g))?isNaN(lp(g).getDate())?d[l][c]=g:d[l][c]=Wr(g):d[l][c]=Mo(g),++c;break;case 1:y=y.slice(1,y.length-1),y=y.replace(/""/g,'"'),Dy&&y&&y.match(/^=".*"$/)&&(y=y.slice(2,-1)),d[l][c++]=y!==""?y:null;break}if(y==="EOD")break}}return s&&s.sheetRows&&(d=d.slice(0,s.sheetRows)),d}function t(a,s){return mp(r(a,s),s)}function n(a,s){return ku(t(a,s),s)}var i=(function(){var a=function(l,c,u,d,f){l.push(c),l.push(u+","+d),l.push('"'+f.replace(/"/g,'""')+'"')},s=function(l,c,u,d){l.push(c+","+u),l.push(c==1?'"'+d.replace(/"/g,'""')+'"':d)};return function(l){var c=[],u=hr(l["!ref"]),d,f=Array.isArray(l);a(c,"TABLE",0,1,"sheetjs"),a(c,"VECTORS",0,u.e.r-u.s.r+1,""),a(c,"TUPLES",0,u.e.c-u.s.c+1,""),a(c,"DATA",0,0,"");for(var p=u.s.r;p<=u.e.r;++p){s(c,-1,0,"BOT");for(var g=u.s.c;g<=u.e.c;++g){var y=xt({r:p,c:g});
162if(d=f?(l[p]||[])[g]:l[y],!d){s(c,1,0,"");continue}switch(d.t){case"n":var v=Dy?d.w:d.v;!v&&d.v!=null&&(v=d.v),v==null?Dy&&d.f&&!d.F?s(c,1,0,"="+d.f):s(c,1,0,""):s(c,0,v,"V");break;case"b":s(c,0,d.v?1:0,d.v?"TRUE":"FALSE");break;case"s":s(c,1,0,!Dy||isNaN(d.v)?d.v:'="'+d.v+'"');break;case"d":d.w||(d.w=Xs(d.z||yt[14],ni(Wr(d.v)))),Dy?s(c,0,d.w,"V"):s(c,1,0,d.w);break;default:s(c,1,0,"")}}}s(c,-1,0,"EOD");var T=`\r 163`,C=c.join(T);return C}})();return{to_workbook:n,to_sheet:t,from_sheet:i}})(),I9=(function(){function r(d){return d.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,` 164`)}function e(d){return d.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function t(d,f){for(var p=d.split(` 165`),g=-1,y=-1,v=0,T=[];v!==p.length;++v){var C=p[v].trim().split(":");if(C[0]==="cell"){var x=ln(C[1]);if(T.length<=x.r)for(g=T.length;g<=x.r;++g)T[g]||(T[g]=[]);switch(g=x.r,y=x.c,C[2]){case"t":T[g][y]=r(C[3]);break;case"v":T[g][y]=+C[3];break;case"vtf":var B=C[C.length-1];case"vtc":switch(C[3]){case"nl":T[g][y]=!!+C[4];break;default:T[g][y]=+C[4];break}C[2]=="vtf"&&(T[g][y]=[T[g][y],B])}}}return f&&f.sheetRows&&(T=T.slice(0,f.sheetRows)),T}function n(d,f){return mp(t(d,f),f)}function i(d,f){return ku(n(d,f),f)}var a=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(` 166`),s=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(` 167`)+` 168`,o=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(` 169`),l="--SocialCalcSpreadsheetControlSave--";function c(d){if(!d||!d["!ref"])return"";for(var f=[],p=[],g,y="",v=Ya(d["!ref"]),T=Array.isArray(d),C=v.s.r;C<=v.e.r;++C)for(var x=v.s.c;x<=v.e.c;++x)if(y=xt({r:C,c:x}),g=T?(d[C]||[])[x]:d[y],!(!g||g.v==null||g.t==="z")){switch(p=["cell",y,"t"],g.t){case"s":case"str":p.push(e(g.v));break;case"n":g.f?(p[2]="vtf",p[3]="n",p[4]=g.v,p[5]=e(g.f)):(p[2]="v",p[3]=g.v);break;case"b":p[2]="vt"+(g.f?"f":"c"),p[3]="nl",p[4]=g.v?"1":"0",p[5]=e(g.f||(g.v?"TRUE":"FALSE"));break;case"d":var B=ni(Wr(g.v));p[2]="vtc",p[3]="nd",p[4]=""+B,p[5]=g.w||Xs(g.z||yt[14],B);break;case"e":continue}f.push(p.join(":"))}return f.push("sheet:c:"+(v.e.c-v.s.c+1)+":r:"+(v.e.r-v.s.r+1)+":tvf:1"),f.push("valueformat:1:text-wiki"),f.join(` 170`)}function u(d){return[a,s,o,s,c(d),l].join(` 171`)}return{to_workbook:i,to_sheet:n,from_sheet:u}})(),cp=(function(){function r(u,d,f,p,g){g.raw?d[f][p]=u:u===""||(u==="TRUE"?d[f][p]=!0:u==="FALSE"?d[f][p]=!1:isNaN(Mo(u))?isNaN(lp(u).getDate())?d[f][p]=u:d[f][p]=Wr(u):d[f][p]=Mo(u))}function e(u,d){var f=d||{},p=[];if(!u||u.length===0)return p;for(var g=u.split(/[\r\n]/),y=g.length-1;y>=0&&g[y].length===0;)--y;for(var v=10,T=0,C=0;C<=y;++C)T=g[C].indexOf(" "),T==-1?T=g[C].length:T++,v=Math.max(v,T);for(C=0;C<=y;++C){p[C]=[];var x=0;for(r(g[C].slice(0,v).trim(),p,C,x,f),x=1;x<=(g[C].length-v)/10+1;++x)r(g[C].slice(v+(x-1)*10,v+x*10).trim(),p,C,x,f)}return f.sheetRows&&(p=p.slice(0,f.sheetRows)),p}var t={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(u){for(var d={},f=!1,p=0,g=0;p<u.length;++p)(g=u.charCodeAt(p))==34?f=!f:!f&&g in t&&(d[g]=(d[g]||0)+1);g=[];for(p in d)Object.prototype.hasOwnProperty.call(d,p)&&g.push([d[p],p]);if(!g.length){d=n;for(p in d)Object.prototype.hasOwnProperty.call(d,p)&&g.push([d[p],p])}return g.sort(function(y,v){return y[0]-v[0]||n[y[1]]-n[v[1]]}),t[g.pop()[1]]||44}function a(u,d){var f=d||{},p="";wn!=null&&f.dense==null&&(f.dense=wn);var g=f.dense?[]:{},y={s:{c:0,r:0},e:{c:0,r:0}};u.slice(0,4)=="sep="?u.charCodeAt(5)==13&&u.charCodeAt(6)==10?(p=u.charAt(4),u=u.slice(7)):u.charCodeAt(5)==13||u.charCodeAt(5)==10?(p=u.charAt(4),u=u.slice(6)):p=i(u.slice(0,1024)):f&&f.FS?p=f.FS:p=i(u.slice(0,1024));var v=0,T=0,C=0,x=0,B=0,q=p.charCodeAt(0),V=!1,b=0,E=u.charCodeAt(0);u=u.replace(/\r\n/mg,` 172`);var I=f.dateNF!=null?Rle(f.dateNF):null;function S(){var k=u.slice(x,B),D={};if(k.charAt(0)=='"'&&k.charAt(k.length-1)=='"'&&(k=k.slice(1,-1).replace(/""/g,'"')),k.length===0)D.t="z";else if(f.raw)D.t="s",D.v=k;else if(k.trim().length===0)D.t="s",D.v=k;
vendor: 1,502 bytes, line 172
172else if(k.charCodeAt(0)==61)k.charCodeAt(1)==34&&k.charCodeAt(k.length-1)==34?(D.t="s",D.v=k.slice(2,-1).replace(/""/g,'"')):lme(k)?(D.t="n",D.f=k.slice(1)):(D.t="s",D.v=k);else if(k=="TRUE")D.t="b",D.v=!0;else if(k=="FALSE")D.t="b",D.v=!1;else if(!isNaN(C=Mo(k)))D.t="n",f.cellText!==!1&&(D.w=k),D.v=C;else if(!isNaN(lp(k).getDate())||I&&k.match(I)){D.z=f.dateNF||yt[14];var R=0;I&&k.match(I)&&(k=Ole(k,f.dateNF,k.match(I)||[]),R=1),f.cellDates?(D.t="d",D.v=Wr(k,R)):(D.t="n",D.v=ni(Wr(k,R))),f.cellText!==!1&&(D.w=Xs(D.z,D.v instanceof Date?ni(D.v):D.v)),f.cellNF||delete D.z}else D.t="s",D.v=k;if(D.t=="z"||(f.dense?(g[v]||(g[v]=[]),g[v][T]=D):g[xt({c:T,r:v})]=D),x=B+1,E=u.charCodeAt(x),y.e.c<T&&(y.e.c=T),y.e.r<v&&(y.e.r=v),b==q)++T;else if(T=0,++v,f.sheetRows&&f.sheetRows<=v)return!0}e:for(;B<u.length;++B)switch(b=u.charCodeAt(B)){case 34:E===34&&(V=!V);break;case q:case 10:case 13:if(!V&&S())break e;break;default:break}return B-x>0&&S(),g["!ref"]=Bt(y),g}function s(u,d){return!(d&&d.PRN)||d.FS||u.slice(0,4)=="sep="||u.indexOf(" ")>=0||u.indexOf(",")>=0||u.indexOf(";")>=0?a(u,d):mp(e(u,d),d)}function o(u,d){var f="",p=d.type=="string"?[0,0,0,0]:mO(u,d);switch(d.type){case"base64":f=bs(u);break;case"binary":f=u;break;case"buffer":d.codepage==65001?f=u.toString("utf8"):d.codepage&&typeof wr<"u"?f=wr.utils.decode(d.codepage,u):f=Kt&&Buffer.isBuffer(u)?u.toString("binary"):Mu(u);break;case"array":f=Th(u);break;case"string":f=u;break;default:throw new Error("Unrecognized type "+d.type)}
vendor: 5,879 bytes, lines 172-173
172return p[0]==239&&p[1]==187&&p[2]==191?f=kr(f.slice(3)):d.type!="string"&&d.type!="buffer"&&d.codepage==65001?f=kr(f):d.type=="binary"&&typeof wr<"u"&&d.codepage&&(f=wr.utils.decode(d.codepage,wr.utils.encode(28591,f))),f.slice(0,19)=="socialcalc:version:"?I9.to_sheet(d.type=="string"?f:kr(f),d):s(f,d)}function l(u,d){return ku(o(u,d),d)}function c(u){for(var d=[],f=hr(u["!ref"]),p,g=Array.isArray(u),y=f.s.r;y<=f.e.r;++y){for(var v=[],T=f.s.c;T<=f.e.c;++T){var C=xt({r:y,c:T});if(p=g?(u[y]||[])[T]:u[C],!p||p.v==null){v.push(" ");continue}for(var x=(p.w||(fc(p),p.w)||"").slice(0,10);x.length<10;)x+=" ";v.push(x+(T===0?" ":""))}d.push(v.join(""))}return d.join(` 173`)}return{to_workbook:l,to_sheet:o,from_sheet:c}})();function Kde(r,e){var t=e||{},n=!!t.WTF;t.WTF=!0;try{var i=b9.to_workbook(r,t);return t.WTF=n,i}catch(a){if(t.WTF=n,!a.message.match(/SYLK bad record ID/)&&n)throw a;return cp.to_workbook(r,e)}}var Ih=(function(){function r(j,K,W){if(j){Pi(j,j.l||0);for(var H=W.Enum||Ze;j.l<j.length;){var ne=j.read_shift(2),_e=H[ne]||H[65535],be=j.read_shift(2),we=j.l+be,ce=_e.f&&_e.f(j,be,W);if(j.l=we,K(ce,_e,ne))return}}}function e(j,K){switch(K.type){case"base64":return t(vs(bs(j)),K);case"binary":return t(vs(j),K);case"buffer":case"array":return t(j,K)}throw"Unsupported type "+K.type}function t(j,K){if(!j)return j;var W=K||{};wn!=null&&W.dense==null&&(W.dense=wn);var H=W.dense?[]:{},ne="Sheet1",_e="",be=0,we={},ce=[],et=[],N={s:{r:0,c:0},e:{r:0,c:0}},Et=W.sheetRows||0;if(j[2]==0&&(j[3]==8||j[3]==9)&&j.length>=16&&j[14]==5&&j[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(j[2]==2)W.Enum=Ze,r(j,function(We,nn,sa){switch(sa){case 0:W.vers=We,We>=4096&&(W.qpro=!0);break;case 6:N=We;break;case 204:We&&(_e=We);break;case 222:_e=We;break;case 15:case 51:W.qpro||(We[1].v=We[1].v.slice(1));case 13:case 14:case 16:sa==14&&(We[2]&112)==112&&(We[2]&15)>1&&(We[2]&15)<15&&(We[1].z=W.dateNF||yt[14],W.cellDates&&(We[1].t="d",We[1].v=KE(We[1].v))),W.qpro&&We[3]>be&&(H["!ref"]=Bt(N),we[ne]=H,ce.push(ne),H=W.dense?[]:{},N={s:{r:0,c:0},e:{r:0,c:0}},be=We[3],ne=_e||"Sheet"+(be+1),_e="");var Xa=W.dense?(H[We[0].r]||[])[We[0].c]:H[xt(We[0])];if(Xa){Xa.t=We[1].t,Xa.v=We[1].v,We[1].z!=null&&(Xa.z=We[1].z),We[1].f!=null&&(Xa.f=We[1].f);break}W.dense?(H[We[0].r]||(H[We[0].r]=[]),H[We[0].r][We[0].c]=We[1]):H[xt(We[0])]=We[1];break;default:}},W);else if(j[2]==26||j[2]==14)W.Enum=le,j[2]==14&&(W.qpro=!0,j.l=0),r(j,function(We,nn,sa){switch(sa){case 204:ne=We;break;case 22:We[1].v=We[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(We[3]>be&&(H["!ref"]=Bt(N),we[ne]=H,ce.push(ne),H=W.dense?[]:{},N={s:{r:0,c:0},e:{r:0,c:0}},be=We[3],ne="Sheet"+(be+1)),Et>0&&We[0].r>=Et)break;W.dense?(H[We[0].r]||(H[We[0].r]=[]),H[We[0].r][We[0].c]=We[1]):H[xt(We[0])]=We[1],N.e.c<We[0].c&&(N.e.c=We[0].c),N.e.r<We[0].r&&(N.e.r=We[0].r);break;case 27:We[14e3]&&(et[We[14e3][0]]=We[14e3][1]);break;case 1537:et[We[0]]=We[1],We[0]==be&&(ne=We[1]);break;default:break}},W);else throw new Error("Unrecognized LOTUS BOF "+j[2]);if(H["!ref"]=Bt(N),we[_e||ne]=H,ce.push(_e||ne),!et.length)return{SheetNames:ce,Sheets:we};for(var gt={},Jt=[],zt=0;zt<et.length;++zt)we[ce[zt]]?(Jt.push(et[zt]||ce[zt]),gt[et[zt]]=we[et[zt]]||we[ce[zt]]):(Jt.push(et[zt]),gt[et[zt]]={"!ref":"A1"});return{SheetNames:Jt,Sheets:gt}}function n(j,K){var W=K||{};if(+W.codepage>=0&&Do(+W.codepage),W.type=="string")throw new Error("Cannot write WK1 to JS string");var H=Ka(),ne=hr(j["!ref"]),_e=Array.isArray(j),be=[];Ve(H,0,a(1030)),Ve(H,6,l(ne));for(var we=Math.min(ne.e.r,8191),ce=ne.s.r;ce<=we;++ce)for(var et=Mn(ce),N=ne.s.c;N<=ne.e.c;++N){ce===ne.s.r&&(be[N]=on(N));var Et=be[N]+et,gt=_e?(j[ce]||[])[N]:j[Et];if(!(!gt||gt.t=="z"))if(gt.t=="n")(gt.v|0)==gt.v&>.v>=-32768&>.v<=32767?Ve(H,13,p(ce,N,gt.v)):Ve(H,14,y(ce,N,gt.v));else{var Jt=fc(gt);Ve(H,15,d(ce,N,Jt.slice(0,239)))}}return Ve(H,1),H.end()}function i(j,K){var W=K||{};if(+W.codepage>=0&&Do(+W.codepage),W.type=="string")throw new Error("Cannot write WK3 to JS string");var H=Ka();Ve(H,0,s(j));for(var ne=0,_e=0;ne<j.SheetNames.length;++ne)(j.Sheets[j.SheetNames[ne]]||{})["!ref"]&&Ve(H,27,Be(j.SheetNames[ne],_e++));var be=0;for(ne=0;ne<j.SheetNames.length;++ne){var we=j.Sheets[j.SheetNames[ne]];if(!(!we||!we["!ref"])){for(var ce=hr(we["!ref"]),et=Array.isArray(we),N=[],Et=Math.min(ce.e.r,8191),gt=ce.s.r;gt<=Et;++gt)for(var Jt=Mn(gt),zt=ce.s.c;zt<=ce.e.c;++zt){gt===ce.s.r&&(N[zt]=on(zt));var We=N[zt]+Jt,nn=et?(we[gt]||[])[zt]:we[We];if(!(!nn||nn.t=="z"))if(nn.t=="n")Ve(H,23,S(gt,zt,be,nn.v));else{var sa=fc(nn);Ve(H,22,b(gt,zt,be,sa.slice(0,239)))}}++be}}return Ve(H,1),H.end()}function a(j){var K=oe(2);return K.write_shift(2,j),K}function s(j){var K=oe(26);K.write_shift(2,4096),K.write_shift(2,4),K.write_shift(4,0);for(var W=0,H=0,ne=0,_e=0;_e<j.SheetNames.length;++_e){var be=j.SheetNames[_e],we=j.Sheets[be];if(!(!we||!we["!ref"])){++ne;var ce=Ya(we["!ref"]);W<ce.e.r&&(W=ce.e.r),H<ce.e.c&&(H=ce.e.c)}}return W>8191&&(W=8191),K.write_shift(2,W),K.write_shift(1,ne),K.write_shift(1,H),K.write_shift(2,0),K.write_shift(2,0),K.write_shift(1,1),K.write_shift(1,2),K.write_shift(4,0),K.write_shift(4,0),K}function o(j,K,W){var H={s:{c:0,r:0},e:{c:0,r:0}};return K==8&&W.qpro?(H.s.c=j.read_shift(1),j.l++,H.s.r=j.read_shift(2),H.e.c=j.read_shift(1),j.l++,H.e.r=j.read_shift(2),H):(H.s.c=j.read_shift(2),H.s.r=j.read_shift(2),K==12&&W.qpro&&(j.l+=2),H.e.c=j.read_shift(2),H.e.r=j.read_shift(2),K==12&&W.qpro&&(j.l+=2),H.s.c==65535&&(H.s.c=H.e.c=H.s.r=H.e.r=0),H)}function l(j){var K=oe(8);return K.write_shift(2,j.s.c),K.write_shift(2,j.s.r),K.write_shift(2,j.e.c),K.write_shift(2,j.e.r),K}function c(j,K,W){var H=[{c:0,r:0},{t:"n",v:0},0,0];return W.qpro&&W.vers!=20768?(H[0].c=j.read_shift(1),H[3]=j.read_shift(1),H[0].r=j.read_shift(2),j.l+=2):(H[2]=j.read_shift(1),H[0].c=j.read_shift(2),H[0].r
173=j.read_shift(2)),H}function u(j,K,W){var H=j.l+K,ne=c(j,K,W);if(ne[1].t="s",W.vers==20768){j.l++;var _e=j.read_shift(1);return ne[1].v=j.read_shift(_e,"utf8"),ne}return W.qpro&&j.l++,ne[1].v=j.read_shift(H-j.l,"cstr"),ne}function d(j,K,W){var H=oe(7+W.length);H.write_shift(1,255),H.write_shift(2,K),H.write_shift(2,j),H.write_shift(1,39);for(var ne=0;ne<H.length;++ne){var _e=W.charCodeAt(ne);H.write_shift(1,_e>=128?95:_e)}return H.write_shift(1,0),H}function f(j,K,W){var H=c(j,K,W);return H[1].v=j.read_shift(2,"i"),H}function p(j,K,W){var H=oe(7);return H.write_shift(1,255),H.write_shift(2,K),H.write_shift(2,j),H.write_shift(2,W,"i"),H}function g(j,K,W){var H=c(j,K,W);return H[1].v=j.read_shift(8,"f"),H}function y(j,K,W){var H=oe(13);return H.write_shift(1,255),H.write_shift(2,K),H.write_shift(2,j),H.write_shift(8,W,"f"),H}function v(j,K,W){var H=j.l+K,ne=c(j,K,W);if(ne[1].v=j.read_shift(8,"f"),W.qpro)j.l=H;else{var _e=j.read_shift(2);B(j.slice(j.l,j.l+_e),ne),j.l+=_e}return ne}function T(j,K,W){var H=K&32768;return K&=-32769,K=(H?j:0)+(K>=8192?K-16384:K),(H?"":"$")+(W?on(K):Mn(K))}var C={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},x=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function B(j,K){Pi(j,0);for(var W=[],H=0,ne="",_e="",be="",we="";j.l<j.length;){var ce=j[j.l++];switch(ce){case 0:W.push(j.read_shift(8,"f"));break;case 1:_e=T(K[0].c,j.read_shift(2),!0),ne=T(K[0].r,j.read_shift(2),!1),W.push(_e+ne);break;case 2:{var et=T(K[0].c,j.read_shift(2),!0),N=T(K[0].r,j.read_shift(2),!1);_e=T(K[0].c,j.read_shift(2),!0),ne=T(K[0].r,j.read_shift(2),!1),W.push(et+N+":"+_e+ne)}break;case 3:if(j.l<j.length){console.error("WK1 premature formula end");return}break;case 4:W.push("("+W.pop()+")");break;case 5:W.push(j.read_shift(2));break;case 6:{for(var Et="";ce=j[j.l++];)Et+=String.fromCharCode(ce);W.push('"'+Et.replace(/"/g,'""')+'"')}break;case 8:W.push("-"+W.pop());break;case 23:W.push("+"+W.pop());break;case 22:W.push("NOT("+W.pop()+")");break;case 20:case 21:we=W.pop(),be=W.pop(),W.push(["AND","OR"][ce-20]+"("+be+","+we+")");break;default:if(ce<32&&x[ce])we=W.pop(),be=W.pop(),W.push(be+x[ce]+we);else if(C[ce]){if(H=C[ce][1],H==69&&(H=j[j.l++]),H>W.length){console.error("WK1 bad formula parse 0x"+ce.toString(16)+":|"+W.join("|")+"|");return}var gt=W.slice(-H);W.length-=H,W.push(C[ce][0]+"("+gt.join(",")+")")}else return ce<=7?console.error("WK1 invalid opcode "+ce.toString(16)):ce<=24?console.error("WK1 unsupported op "+ce.toString(16)):ce<=30?console.error("WK1 invalid opcode "+ce.toString(16)):ce<=115?console.error("WK1 unsupported function opcode "+ce.toString(16)):console.error("WK1 unrecognized opcode "+ce.toString(16))}}W.length==1?K[1].f=""+W[0]:console.error("WK1 bad formula parse |"+W.join("|")+"|")}function q(j){var K=[{c:0,r:0},{t:"n",v:0},0];return K[0].r=j.read_shift(2),K[3]=j[j.l++],K[0].c=j[j.l++],K}function V(j,K){var W=q(j,K);return W[1].t="s",W[1].v=j.read_shift(K-4,"cstr"),W}function b(j,K,W,H){var ne=oe(6+H.length);ne.write_shift(2,j),ne.write_shift(1,W),ne.write_shift(1,K),ne.write_shift(1,39);for(var _e=0;_e<H.length;++_e){var be=H.charCodeAt(_e);ne.write_shift(1,be>=128?95:be)}return ne.write_shift(1,0),ne}function E(j,K){var W=q(j,K);W[1].v=j.read_shift(2);var H=W[1].v>>1;if(W[1].v&1)switch(H&7){case 0:H=(H>>3)*5e3;break;case 1:H=(H>>3)*500;break;case 2:H=(H>>3)/20;break;case 3:H=(H>>3)/200;break;case 4:H=(H>>3)/2e3;break;case 5:H=(H>>3)/2e4;break;case 6:H=(H>>3)/16;break;case 7:H=(H>>3)/64;break}return W[1].v=H,W}function I(j,K){var W=q(j,K),H=j.read_shift(4),ne=j.read_shift(4),_e=j.read_shift(2);if(_e==65535)return H===0&&ne===3221225472?(W[1].t="e",W[1].v=15):H===0&&ne===3489660928?(W[1].t="e",W[1].v=42):W[1].v=0,W;var be=_e&32768;return _e=(_e&32767)-16446,W[1].v=(1-be*2)*(ne*Math.pow(2,_e+32)+H*Math.pow(2,_e)),W}function S(j,K,W,H){var ne=oe(14);if(ne.write_shift(2,j),ne.write_shift(1,W),ne.write_shift(1,K),H==0)return ne.write_shift(4,0),ne.write_shift(4,0),ne.write_shift(2,65535),ne;var _e=0,be=0,we=0,ce=0;return H<0&&(_e=1,H=-H),be=Math.log2(H)|0,H/=Math.pow(2,be-31),ce=H>>>0,(ce&2147483648)==0&&(H/=2,++be,ce=H>>>0),H-=ce,ce|=2147483648,ce>>>=0,H*=Math.pow(2,32),we=H>>>0,ne.write_shift(4,we),ne.write_shift(4,ce),be+=16383+(_e?32768:0),ne.write_shift(2,be),ne}function k(j,K){var W=I(j,14);return j.l+=K-14,W}function D(j,K){var W=q(j,K),H=j.read_shift(4);return W[1].v=H>>6,W}function R(j,K){var W=q(j,K),H=j.read_shift(8,"f");return W[1].v=H,W}function De(j,K){var W=R(j,14);return j.l+=K-10,W}function ve(j,K){return j[j.l+K-1]==0?j.read_shift(K,"cstr"):""}function rt(j,K){var W=j[j.l++];W>K-1&&(W=K-1);for(var H="";H.length<W;)H+=String.fromCharCode(j[j.l++]);return H}function $e(j,K,W){if(!(!W.qpro||K<21)){var H=j.read_shift(1);j.l+=17,j.l+=1,j.l+=2;var ne=j.read_shift(K-21,"cstr");return[H,ne]}}function vt(j,K){for(var W={},H=j.l+K;j.l<H;){var ne=j.read_shift(2);
173if(ne==14e3){for(W[ne]=[0,""],W[ne][0]=j.read_shift(2);j[j.l];)W[ne][1]+=String.fromCharCode(j[j.l]),j.l++;j.l++}}return W}function Be(j,K){var W=oe(5+j.length);W.write_shift(2,14e3),W.write_shift(2,K);for(var H=0;H<j.length;++H){var ne=j.charCodeAt(H);W[W.l++]=ne>127?95:ne}return W[W.l++]=0,W}var Ze={0:{n:"BOF",f:Kn},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:o},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f},14:{n:"NUMBER",f:g},15:{n:"LABEL",f:u},16:{n:"FORMULA",f:v},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:u},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:ve},222:{n:"SHEETNAMELP",f:rt},65535:{n:""}},le={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:V},23:{n:"NUMBER17",f:I},24:{n:"NUMBER18",f:E},25:{n:"FORMULA19",f:k},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:vt},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:D},38:{n:"??"},39:{n:"NUMBER27",f:R},40:{n:"FORMULA28",f:De},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:ve},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:$e},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:n,book_to_wk3:i,to_workbook:e}})();function Yde(r){var e={},t=r.match(aa),n=0,i=!1;if(t)for(;n!=t.length;++n){var a=Ct(t[n]);switch(a[0].replace(/\w*:/g,"")){case"<condense":break;case"<extend":break;case"<shadow":if(!a.val)break;case"<shadow>":case"<shadow/>":e.shadow=1;break;case"</shadow>":break;case"<charset":if(a.val=="1")break;e.cp=SR[parseInt(a.val,10)];break;case"<outline":if(!a.val)break;case"<outline>":case"<outline/>":e.outline=1;break;case"</outline>":break;case"<rFont":e.name=a.val;break;case"<sz":e.sz=a.val;break;case"<strike":if(!a.val)break;case"<strike>":case"<strike/>":e.strike=1;break;case"</strike>":break;case"<u":if(!a.val)break;switch(a.val){case"double":e.uval="double";break;case"singleAccounting":e.uval="single-accounting";break;case"doubleAccounting":e.uval="double-accounting";break}case"<u>":case"<u/>":e.u=1;break;case"</u>":break;case"<b":if(a.val=="0")break;case"<b>":case"<b/>":e.b=1;break;case"</b>":break;case"<i":if(a.val=="0")break;case"<i>":case"<i/>":e.i=1;break;case"</i>":break;case"<color":a.rgb&&(e.color=a.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":e.family=a.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":e.valign=a.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":break;case"<scheme":break;case"<scheme>":case"<scheme/>":case"</scheme>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;
173default:if(a[0].charCodeAt(1)!==47&&!i)throw new Error("Unrecognized rich format "+a[0])}}return e}var Xde=(function(){var r=$y("t"),e=$y("rPr");function t(a){var s=a.match(r);if(!s)return{t:"s",v:""};var o={t:"s",v:dr(s[1])},l=a.match(e);return l&&(o.s=Yde(l[1])),o}var n=/<(?:\w+:)?r>/g,i=/<\/(?:\w+:)?r>/;return function(s){return s.replace(n,"").split(i).map(t).filter(function(o){return o.v})}})(),Qde=(function(){var e=/(\r\n|\n)/g;function t(i,a,s){var o=[];i.u&&o.push("text-decoration: underline;"),i.uval&&o.push("text-underline-style:"+i.uval+";"),i.sz&&o.push("font-size:"+i.sz+"pt;"),i.outline&&o.push("text-effect: outline;"),i.shadow&&o.push("text-shadow: auto;"),a.push('<span style="'+o.join("")+'">'),i.b&&(a.push("<b>"),s.push("</b>")),i.i&&(a.push("<i>"),s.push("</i>")),i.strike&&(a.push("<s>"),s.push("</s>"));var l=i.valign||"";return l=="superscript"||l=="super"?l="sup":l=="subscript"&&(l="sub"),l!=""&&(a.push("<"+l+">"),s.push("</"+l+">")),s.push("</span>"),i}function n(i){var a=[[],i.v,[]];return i.v?(i.s&&t(i.s,a[0],a[2]),a[0].join("")+a[1].replace(e,"<br/>")+a[2].join("")):""}return function(a){return a.map(n).join("")}})(),Jde=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Zde=/<(?:\w+:)?r>/,ehe=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function tO(r,e){var t=e?e.cellHTML:!0,n={};return r?(r.match(/^\s*<(?:\w+:)?t[^>]*>/)?(n.t=dr(kr(r.slice(r.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),n.r=kr(r),t&&(n.h=NR(n.t))):r.match(Zde)&&(n.r=kr(r),n.t=dr(kr((r.replace(ehe,"").match(Jde)||[]).join("").replace(aa,""))),t&&(n.h=Qde(Xde(n.r)))),n):{t:""}}var the=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,rhe=/<(?:\w+:)?(?:si|sstItem)>/g,nhe=/<\/(?:\w+:)?(?:si|sstItem)>/;function ihe(r,e){var t=[],n="";if(!r)return t;var i=r.match(the);if(i){n=i[2].replace(rhe,"").split(nhe);for(var a=0;a!=n.length;++a){var s=tO(n[a].trim(),e);s!=null&&(t[t.length]=s)}i=Ct(i[1]),t.Count=i.count,t.Unique=i.uniqueCount}return t}var ahe=/^\s|\s$|[\t\n\r]/;function x9(r,e){if(!e.bookSST)return"";var t=[kn];t[t.length]=Ne("sst",null,{xmlns:Mh[0],count:r.Count,uniqueCount:r.Unique});for(var n=0;n!=r.length;++n)if(r[n]!=null){var i=r[n],a="<si>";i.r?a+=i.r:(a+="<t",i.t||(i.t=""),i.t.match(ahe)&&(a+=' xml:space="preserve"'),a+=">"+Cr(i.t)+"</t>"),a+="</si>",t[t.length]=a}return t.length>2&&(t[t.length]="</sst>",t[1]=t[1].replace("/>",">")),t.join("")}function she(r){return[r.read_shift(4),r.read_shift(4)]}function ohe(r,e){var t=[],n=!1;return pc(r,function(a,s,o){switch(o){case 159:t.Count=a[0],t.Unique=a[1];break;case 19:t.push(a);break;case 160:return!0;case 35:n=!0;break;case 36:n=!1;break;default:if(s.T,!n||e.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}}),t}function lhe(r,e){return e||(e=oe(8)),e.write_shift(4,r.Count),e.write_shift(4,r.Unique),e}var che=_ce;function uhe(r){var e=Ka();ye(e,159,lhe(r));for(var t=0;t<r.length;++t)ye(e,19,che(r[t]));return ye(e,160),e.end()}function E9(r){if(typeof wr<"u")return wr.utils.encode(op,r);for(var e=[],t=r.split(""),n=0;n<t.length;++n)e[n]=t[n].charCodeAt(0);return e}function hc(r,e){var t={};return t.Major=r.read_shift(2),t.Minor=r.read_shift(2),e>=4&&(r.l+=e-4),t}function dhe(r){var e={};return e.id=r.read_shift(0,"lpp4"),e.R=hc(r,4),e.U=hc(r,4),e.W=hc(r,4),e}function hhe(r){for(var e=r.read_shift(4),t=r.l+e-4,n={},i=r.read_shift(4),a=[];i-- >0;)a.push({t:r.read_shift(4),v:r.read_shift(0,"lpp4")});if(n.name=r.read_shift(0,"lpp4"),n.comps=a,r.l!=t)throw new Error("Bad DataSpaceMapEntry: "+r.l+" != "+t);return n}function fhe(r){var e=[];r.l+=4;for(var t=r.read_shift(4);t-- >0;)e.push(hhe(r));return e}function mhe(r){var e=[];r.l+=4;for(var t=r.read_shift(4);t-- >0;)e.push(r.read_shift(0,"lpp4"));return e}function phe(r){var e={};return r.read_shift(4),r.l+=4,e.id=r.read_shift(0,"lpp4"),e.name=r.read_shift(0,"lpp4"),e.R=hc(r,4),e.U=hc(r,4),e.W=hc(r,4),e}function ghe(r){var e=phe(r);if(e.ename=r.read_shift(0,"8lpp4"),e.blksz=r.read_shift(4),e.cmode=r.read_shift(4),r.read_shift(4)!=4)throw new Error("Bad !Primary record");return e}function T9(r,e){var t=r.l+e,n={};n.Flags=r.read_shift(4)&63,r.l+=4,n.AlgID=r.read_shift(4);var i=!1;switch(n.AlgID){case 26126:case 26127:case 26128:i=n.Flags==36;break;case 26625:i=n.Flags==4;break;case 0:i=n.Flags==16||n.Flags==4||n.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+n.AlgID}if(!i)throw new Error("Encryption Flags/AlgID mismatch");return n.AlgIDHash=r.read_shift(4),n.KeySize=r.read_shift(4),n.ProviderType=r.read_shift(4),r.l+=8,n.CSPName=r.read_shift(t-r.l>>1,"utf16le"),r.l=t,n}function C9(r,e){var t={},n=r.l+e;return r.l+=4,t.Salt=r.slice(r.l,r.l+16),r.l+=16,t.Verifier=r.slice(r.l,r.l+16),r.l+=16,r.read_shift(4),t.VerifierHash=r.slice(r.l,n),r.l=n,t}function yhe(r){var e=hc(r);switch(e.Minor){case 2:return[e.Minor,vhe(r,e)];case 3:return[e.Minor,_he(r,e)];case 4:return[e.Minor,bhe(r,e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+e.Minor)}function vhe(r){var e=r.read_shift(4);if((e&63)!=36)throw new Error("EncryptionInfo mismatch");var t=r.read_shift(4),n=T9(r,t),i=C9(r,r.length-r.l);return{t:"Std",h:n,v:i}}function _he(){throw new Error("File is password-protected: ECMA-376 Extensible")}function bhe(r){var e=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];r.l+=4;var t=r.read_shift(r.length-r.l,"utf8"),n={};return t.replace(aa,function(a){var s=Ct(a);switch(yl(s[0])){case"<?xml":break;case"<encryption":case"</encryption>":break;case"<keyData":e.forEach(function(o){n[o]=s[o]});break;case"<dataIntegrity":n.encryptedHmacKey=s.encryptedHmacKey,n.encryptedHmacValue=s.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":n.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":n.uri=s.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":n.encs.push(s);break;default:throw s[0]}}),n}function whe(r,e){var t={},n=t.EncryptionVersionInfo=hc(r,4);if(e-=4,n.Minor!=2)throw new Error("unrecognized minor version code: "+n.Minor);if(n.Major>4||n.Major<2)throw new Error("unrecognized major version code: "+n.Major);t.Flags=r.read_shift(4),e-=4;var i=r.read_shift(4);return e-=4,t.EncryptionHeader=T9(r,i),e-=i,t.EncryptionVerifier=C9(r,e),t}function Ihe(r){var e={},t=e.EncryptionVersionInfo=hc(r,4);
173if(t.Major!=1||t.Minor!=1)throw"unrecognized version code "+t.Major+" : "+t.Minor;return e.Salt=r.read_shift(16),e.EncryptedVerifier=r.read_shift(16),e.EncryptedVerifierHash=r.read_shift(16),e}function rO(r){var e=0,t,n=E9(r),i=n.length+1,a,s,o,l,c;for(t=Cu(i),t[0]=n.length,a=1;a!=i;++a)t[a]=n[a-1];for(a=i-1;a>=0;--a)s=t[a],o=(e&16384)===0?0:1,l=e<<1&32767,c=o|l,e=c^s;return e^52811}var S9=(function(){var r=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],e=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],t=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],n=function(s){return(s/2|s*128)&255},i=function(s,o){return n(s^o)},a=function(s){for(var o=e[s.length-1],l=104,c=s.length-1;c>=0;--c)for(var u=s[c],d=0;d!=7;++d)u&64&&(o^=t[l]),u*=2,--l;return o};return function(s){for(var o=E9(s),l=a(o),c=o.length,u=Cu(16),d=0;d!=16;++d)u[d]=0;var f,p,g;for((c&1)===1&&(f=l>>8,u[c]=i(r[0],f),--c,f=l&255,p=o[o.length-1],u[c]=i(p,f));c>0;)--c,f=l>>8,u[c]=i(o[c],f),--c,f=l&255,u[c]=i(o[c],f);for(c=15,g=15-o.length;g>0;)f=l>>8,u[c]=i(r[g],f),--c,--g,f=l&255,u[c]=i(o[c],f),--c,--g;return u}})(),xhe=function(r,e,t,n,i){i||(i=e),n||(n=S9(r));var a,s;for(a=0;a!=e.length;++a)s=e[a],s^=n[t],s=(s>>5|s<<3)&255,i[a]=s,++t;return[i,t,n]},Ehe=function(r){var e=0,t=S9(r);return function(n){var i=xhe("",n,e,t);return e=i[1],i[0]}};function The(r,e,t,n){var i={key:Kn(r),verificationBytes:Kn(r)};return t.password&&(i.verifier=rO(t.password)),n.valid=i.verificationBytes===i.verifier,n.valid&&(n.insitu=Ehe(t.password)),i}function Che(r,e,t){var n=t||{};return n.Info=r.read_shift(2),r.l-=2,n.Info===1?n.Data=Ihe(r,e):n.Data=whe(r,e),n}function She(r,e,t){var n={Type:t.biff>=8?r.read_shift(2):0};return n.Type?Che(r,e-2,n):The(r,t.biff>=8?e:e-2,t,n),n}var D9=(function(){function r(i,a){switch(a.type){case"base64":return e(bs(i),a);case"binary":return e(i,a);case"buffer":return e(Kt&&Buffer.isBuffer(i)?i.toString("binary"):Mu(i),a);case"array":return e(Th(i),a)}throw new Error("Unrecognized type "+a.type)}function e(i,a){var s=a||{},o=s.dense?[]:{},l=i.match(/\\trowd.*?\\row\b/g);if(!l.length)throw new Error("RTF missing table");var c={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(u,d){Array.isArray(o)&&(o[d]=[]);for(var f=/\\\w+\b/g,p=0,g,y=-1;g=f.exec(u);){switch(g[0]){case"\\cell":var v=u.slice(p,f.lastIndex-g[0].length);if(v[0]==" "&&(v=v.slice(1)),++y,v.length){var T={v,t:"s"};Array.isArray(o)?o[d][y]=T:o[xt({r:d,c:y})]=T}break}p=f.lastIndex}y>c.e.c&&(c.e.c=y)}),o["!ref"]=Bt(c),o}function t(i,a){return ku(r(i,a),a)}function n(i){for(var a=["{\\rtf1\\ansi"],s=hr(i["!ref"]),o,l=Array.isArray(i),c=s.s.r;c<=s.e.r;++c){a.push("\\trowd\\trautofit1");for(var u=s.s.c;u<=s.e.c;++u)a.push("\\cellx"+(u+1));for(a.push("\\pard\\intbl"),u=s.s.c;u<=s.e.c;++u){var d=xt({r:c,c:u});o=l?(i[c]||[])[u]:i[d],!(!o||o.v==null&&(!o.f||o.F))&&(a.push(" "+(o.w||(fc(o),o.w))),a.push("\\cell"))}a.push("\\pard\\intbl\\row")}return a.join("")+"}"}return{to_workbook:t,to_sheet:r,from_sheet:n}})();function Dhe(r){var e=r.slice(r[0]==="#"?1:0).slice(0,6);return[parseInt(e.slice(0,2),16),parseInt(e.slice(2,4),16),parseInt(e.slice(4,6),16)]}function Ky(r){for(var e=0,t=1;e!=3;++e)t=t*256+(r[e]>255?255:r[e]<0?0:r[e]);return t.toString(16).toUpperCase().slice(1)}function Ahe(r){var e=r[0]/255,t=r[1]/255,n=r[2]/255,i=Math.max(e,t,n),a=Math.min(e,t,n),s=i-a;if(s===0)return[0,0,e];var o=0,l=0,c=i+a;switch(l=s/(c>1?2-c:c),i){case e:o=((t-n)/s+6)%6;break;case t:o=(n-e)/s+2;break;case n:o=(e-t)/s+4;break}return[o/6,l,c/2]}function Mhe(r){var e=r[0],t=r[1],n=r[2],i=t*2*(n<.5?n:1-n),a=n-i/2,s=[a,a,a],o=6*e,l;if(t!==0)switch(o|0){case 0:case 6:l=i*o,s[0]+=i,s[1]+=l;break;case 1:l=i*(2-o),s[0]+=l,s[1]+=i;break;case 2:l=i*(o-2),s[1]+=i,s[2]+=l;break;case 3:l=i*(4-o),s[1]+=l,s[2]+=i;break;case 4:l=i*(o-4),s[2]+=i,s[0]+=l;break;case 5:l=i*(6-o),s[2]+=l,s[0]+=i;break}for(var c=0;c!=3;++c)s[c]=Math.round(s[c]*255);return s}function UE(r,e){if(e===0)return r;var t=Ahe(Dhe(r));return e<0?t[2]=t[2]*(1+e):t[2]=1-(1-t[2])*(1-e),Ky(Mhe(t))}var A9=6,khe=15,Phe=1,ea=A9;function Yy(r){return Math.floor((r+Math.round(128/ea)/256)*ea)}function Xy(r){return Math.floor((r-5)/ea*100+.5)/100}function zE(r){return Math.round((r*ea+5)/ea*256)/256}function sR(r){return zE(Xy(Yy(r)))}function nO(r){var e=Math.abs(r-sR(r)),t=ea;if(e>.005)for(ea=Phe;ea<khe;
173++ea)Math.abs(r-sR(r))<=e&&(e=Math.abs(r-sR(r)),t=ea);ea=t}function Su(r){r.width?(r.wpx=Yy(r.width),r.wch=Xy(r.wpx),r.MDW=ea):r.wpx?(r.wch=Xy(r.wpx),r.width=zE(r.wch),r.MDW=ea):typeof r.wch=="number"&&(r.width=zE(r.wch),r.wpx=Yy(r.width),r.MDW=ea),r.customWidth&&delete r.customWidth}var Rhe=96,M9=Rhe;function Qy(r){return r*96/M9}function up(r){return r*M9/96}var Ohe={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};function Fhe(r,e,t,n){e.Borders=[];var i={},a=!1;(r[0].match(aa)||[]).forEach(function(s){var o=Ct(s);switch(yl(o[0])){case"<borders":case"<borders>":case"</borders>":break;case"<border":case"<border>":case"<border/>":i={},o.diagonalUp&&(i.diagonalUp=Gr(o.diagonalUp)),o.diagonalDown&&(i.diagonalDown=Gr(o.diagonalDown)),e.Borders.push(i);break;case"</border>":break;case"<left/>":break;case"<left":case"<left>":break;case"</left>":break;case"<right/>":break;case"<right":case"<right>":break;case"</right>":break;case"<top/>":break;case"<top":case"<top>":break;case"</top>":break;case"<bottom/>":break;case"<bottom":case"<bottom>":break;case"</bottom>":break;case"<diagonal":case"<diagonal>":case"<diagonal/>":break;case"</diagonal>":break;case"<horizontal":case"<horizontal>":case"<horizontal/>":break;case"</horizontal>":break;case"<vertical":case"<vertical>":case"<vertical/>":break;case"</vertical>":break;case"<start":case"<start>":case"<start/>":break;case"</start>":break;case"<end":case"<end>":case"<end/>":break;case"</end>":break;case"<color":case"<color>":break;case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(n&&n.WTF&&!a)throw new Error("unrecognized "+o[0]+" in borders")}})}function Bhe(r,e,t,n){e.Fills=[];var i={},a=!1;(r[0].match(aa)||[]).forEach(function(s){var o=Ct(s);switch(yl(o[0])){case"<fills":case"<fills>":case"</fills>":break;case"<fill>":case"<fill":case"<fill/>":i={},e.Fills.push(i);break;case"</fill>":break;case"<gradientFill>":break;case"<gradientFill":case"</gradientFill>":e.Fills.push(i),i={};break;case"<patternFill":case"<patternFill>":o.patternType&&(i.patternType=o.patternType);break;case"<patternFill/>":case"</patternFill>":break;case"<bgColor":i.bgColor||(i.bgColor={}),o.indexed&&(i.bgColor.indexed=parseInt(o.indexed,10)),o.theme&&(i.bgColor.theme=parseInt(o.theme,10)),o.tint&&(i.bgColor.tint=parseFloat(o.tint)),o.rgb&&(i.bgColor.rgb=o.rgb.slice(-6));break;case"<bgColor/>":case"</bgColor>":break;case"<fgColor":i.fgColor||(i.fgColor={}),o.theme&&(i.fgColor.theme=parseInt(o.theme,10)),o.tint&&(i.fgColor.tint=parseFloat(o.tint)),o.rgb!=null&&(i.fgColor.rgb=o.rgb.slice(-6));break;case"<fgColor/>":case"</fgColor>":break;case"<stop":case"<stop/>":break;case"</stop>":break;case"<color":case"<color/>":break;case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(n&&n.WTF&&!a)throw new Error("unrecognized "+o[0]+" in fills")}})}function Nhe(r,e,t,n){e.Fonts=[];var i={},a=!1;(r[0].match(aa)||[]).forEach(function(s){var o=Ct(s);switch(yl(o[0])){case"<fonts":case"<fonts>":case"</fonts>":break;case"<font":case"<font>":break;case"</font>":case"<font/>":e.Fonts.push(i),i={};break;case"<name":o.val&&(i.name=kr(o.val));break;case"<name/>":case"</name>":break;case"<b":i.bold=o.val?Gr(o.val):1;break;case"<b/>":i.bold=1;break;case"<i":i.italic=o.val?Gr(o.val):1;break;case"<i/>":i.italic=1;break;case"<u":switch(o.val){case"none":i.underline=0;break;case"single":i.underline=1;break;case"double":i.underline=2;break;case"singleAccounting":i.underline=33;break;case"doubleAccounting":i.underline=34;break}break;case"<u/>":i.underline=1;break;case"<strike":i.strike=o.val?Gr(o.val):1;break;case"<strike/>":i.strike=1;break;case"<outline":i.outline=o.val?Gr(o.val):1;break;case"<outline/>":i.outline=1;break;case"<shadow":i.shadow=o.val?Gr(o.val):1;break;case"<shadow/>":i.shadow=1;break;case"<condense":i.condense=o.val?Gr(o.val):1;break;case"<condense/>":i.condense=1;break;case"<extend":i.extend=o.val?Gr(o.val):1;break;case"<extend/>":i.extend=1;break;case"<sz":o.val&&(i.sz=+o.val);break;case"<sz/>":case"</sz>":break;case"<vertAlign":o.val&&(i.vertAlign=o.val);break;case"<vertAlign/>":case"</vertAlign>":break;case"<family":o.val&&(i.family=parseInt(o.val,10));break;case"<family/>":case"</family>":break;case"<scheme":o.val&&(i.scheme=o.val);break;case"<scheme/>":case"</scheme>":break;case"<charset":if(o.val=="1")break;o.codepage=SR[parseInt(o.val,10)];break;case"<color":if(i.color||(i.color={}),o.auto&&(i.color.auto=Gr(o.auto)),o.rgb)i.color.rgb=o.rgb.slice(-6);else if(o.indexed){i.color.index=parseInt(o.indexed,10);var l=bh[i.color.index];i.color.index==81&&(l=bh[1]),l||(l=bh[1]),i.color.rgb=l[0].toString(16)+l[1].toString(16)+l[2].toString(16)}else o.theme&&(i.color.theme=parseInt(o.theme,10),o.tint&&(i.color.tint=parseFloat(o.tint)),o.theme&&t.themeElements&&t.themeElements.clr
173Scheme&&(i.color.rgb=UE(t.themeElements.clrScheme[i.color.theme].rgb,i.color.tint||0)));break;case"<color/>":case"</color>":break;case"<AlternateContent":a=!0;break;case"</AlternateContent>":a=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(n&&n.WTF&&!a)throw new Error("unrecognized "+o[0]+" in fonts")}})}function Lhe(r,e,t){e.NumberFmt=[];for(var n=In(yt),i=0;i<n.length;++i)e.NumberFmt[n[i]]=yt[n[i]];var a=r[0].match(aa);if(a)for(i=0;i<a.length;++i){var s=Ct(a[i]);switch(yl(s[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":{var o=dr(kr(s.formatCode)),l=parseInt(s.numFmtId,10);if(e.NumberFmt[l]=o,l>0){if(l>392){for(l=392;l>60&&e.NumberFmt[l]!=null;--l);e.NumberFmt[l]=o}dc(o,l)}}break;case"</numFmt>":break;default:if(t.WTF)throw new Error("unrecognized "+s[0]+" in numFmts")}}}function Vhe(r){var e=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(var n=t[0];n<=t[1];++n)r[n]!=null&&(e[e.length]=Ne("numFmt",null,{numFmtId:n,formatCode:Cr(r[n])}))}),e.length===1?"":(e[e.length]="</numFmts>",e[0]=Ne("numFmts",null,{count:e.length-2}).replace("/>",">"),e.join(""))}var SE=["numFmtId","fillId","fontId","borderId","xfId"],DE=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function Uhe(r,e,t){e.CellXf=[];var n,i=!1;(r[0].match(aa)||[]).forEach(function(a){var s=Ct(a),o=0;switch(yl(s[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":case"<xf/>":for(n=s,delete n[0],o=0;o<SE.length;++o)n[SE[o]]&&(n[SE[o]]=parseInt(n[SE[o]],10));for(o=0;o<DE.length;++o)n[DE[o]]&&(n[DE[o]]=Gr(n[DE[o]]));if(e.NumberFmt&&n.numFmtId>392){for(o=392;o>60;--o)if(e.NumberFmt[n.numFmtId]==e.NumberFmt[o]){n.numFmtId=o;break}}e.CellXf.push(n);break;case"</xf>":break;case"<alignment":case"<alignment/>":var l={};s.vertical&&(l.vertical=s.vertical),s.horizontal&&(l.horizontal=s.horizontal),s.textRotation!=null&&(l.textRotation=s.textRotation),s.indent&&(l.indent=s.indent),s.wrapText&&(l.wrapText=Gr(s.wrapText)),n.alignment=l;break;case"</alignment>":break;case"<protection":break;case"</protection>":case"<protection/>":break;case"<AlternateContent":i=!0;break;case"</AlternateContent>":i=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(t&&t.WTF&&!i)throw new Error("unrecognized "+s[0]+" in cellXfs")}})}function zhe(r){var e=[];return e[e.length]=Ne("cellXfs",null),r.forEach(function(t){e[e.length]=Ne("xf",null,t)}),e[e.length]="</cellXfs>",e.length===2?"":(e[0]=Ne("cellXfs",null,{count:e.length-2}).replace("/>",">"),e.join(""))}var jhe=(function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,n=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,i=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,a=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(o,l,c){var u={};if(!o)return u;o=o.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");var d;return(d=o.match(e))&&Lhe(d,u,c),(d=o.match(i))&&Nhe(d,u,l,c),(d=o.match(n))&&Bhe(d,u,l,c),(d=o.match(a))&&Fhe(d,u,l,c),(d=o.match(t))&&Uhe(d,u,c),u}})();function k9(r,e){var t=[kn,Ne("styleSheet",null,{xmlns:Mh[0],"xmlns:vt":ri.vt})],n;return r.SSF&&(n=Vhe(r.SSF))!=null&&(t[t.length]=n),t[t.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',t[t.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',t[t.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',t[t.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(n=zhe(e.cellXfs))&&(t[t.length]=n),t[t.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',t[t.length]='<dxfs count="0"/>',t[t.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',t.length>2&&(t[t.length]="</styleSheet>",t[1]=t[1].replace("/>",">")),t.join("")}function Hhe(r,e){var t=r.read_shift(2),n=na(r,e-2);return[t,n]}function $he(r,e,t){t||(t=oe(6+4*e.length)),t.write_shift(2,r),yi(e,t);var n=t.length>t.l?t.slice(0,t.l):t;return t.l==null&&(t.l=t.length),n}function Ghe(r,e,t){var n={};n.sz=r.read_shift(2)/20;var i=Cce(r,2,t);i.fItalic&&(n.italic=1),i.fCondense&&(n.condense=1),i.fExtend&&(n.extend=1),i.fShadow&&(n.shadow=1),i.fOutline&&(n.outline=1),i.fStrikeout&&(n.strike=1);var a=r.read_shift(2);switch(a===700&&(n.bold=1),r.read_shift(2)){case 1:n.vertAlign="superscript";break;case 2:n.vertAlign="subscript";break}var s=r.read_shift(1);s!=0&&(n.underline=s);var o=r.read_shift(1);o>0&&(n.family=o);var l=r.read_shift(1);switch(l>0&&(n.charset=l),r.l++,n.color=Tce(r,8),r.read_shift(1)){case 1:n.scheme="major";break;case 2:n.scheme="minor";break}return n.name=na(r,e-21),n}
173function Whe(r,e){e||(e=oe(153)),e.write_shift(2,r.sz*20),Sce(r,e),e.write_shift(2,r.bold?700:400);var t=0;r.vertAlign=="superscript"?t=1:r.vertAlign=="subscript"&&(t=2),e.write_shift(2,t),e.write_shift(1,r.underline||0),e.write_shift(1,r.family||0),e.write_shift(1,r.charset||0),e.write_shift(1,0),NE(r.color,e);var n=0;return r.scheme=="major"&&(n=1),r.scheme=="minor"&&(n=2),e.write_shift(1,n),yi(r.name,e),e.length>e.l?e.slice(0,e.l):e}var qhe=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],oR,Khe=ia;function Yj(r,e){e||(e=oe(84)),oR||(oR=WE(qhe));var t=oR[r.patternType];t==null&&(t=40),e.write_shift(4,t);var n=0;if(t!=40)for(NE({auto:1},e),NE({auto:1},e);n<12;++n)e.write_shift(4,0);else{for(;n<4;++n)e.write_shift(4,0);for(;n<12;++n)e.write_shift(4,0)}return e.length>e.l?e.slice(0,e.l):e}function Yhe(r,e){var t=r.l+e,n=r.read_shift(2),i=r.read_shift(2);return r.l=t,{ixfe:n,numFmtId:i}}function P9(r,e,t){t||(t=oe(16)),t.write_shift(2,e||0),t.write_shift(2,r.numFmtId||0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);var n=0;return t.write_shift(1,n),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(1,0),t}function Ay(r,e){return e||(e=oe(10)),e.write_shift(1,0),e.write_shift(1,0),e.write_shift(4,0),e.write_shift(4,0),e}var Xhe=ia;function Qhe(r,e){return e||(e=oe(51)),e.write_shift(1,0),Ay(null,e),Ay(null,e),Ay(null,e),Ay(null,e),Ay(null,e),e.length>e.l?e.slice(0,e.l):e}function Jhe(r,e){return e||(e=oe(52)),e.write_shift(4,r.xfId),e.write_shift(2,1),e.write_shift(1,+r.builtinId),e.write_shift(1,0),BE(r.name||"",e),e.length>e.l?e.slice(0,e.l):e}function Zhe(r,e,t){var n=oe(2052);return n.write_shift(4,r),BE(e,n),BE(t,n),n.length>n.l?n.slice(0,n.l):n}function efe(r,e,t){var n={};n.NumberFmt=[];for(var i in yt)n.NumberFmt[i]=yt[i];n.CellXf=[],n.Fonts=[];var a=[],s=!1;return pc(r,function(l,c,u){switch(u){case 44:n.NumberFmt[l[0]]=l[1],dc(l[1],l[0]);break;case 43:n.Fonts.push(l),l.color.theme!=null&&e&&e.themeElements&&e.themeElements.clrScheme&&(l.color.rgb=UE(e.themeElements.clrScheme[l.color.theme].rgb,l.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:a[a.length-1]==617&&n.CellXf.push(l);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:s=!0;break;case 36:s=!1;break;case 37:a.push(u),s=!0;break;case 38:a.pop(),s=!1;break;default:if(c.T>0)a.push(u);else if(c.T<0)a.pop();else if(!s||t.WTF&&a[a.length-1]!=37)throw new Error("Unexpected record 0x"+u.toString(16))}}),n}function tfe(r,e){if(e){var t=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)e[i]!=null&&++t}),t!=0&&(ye(r,615,ko(t)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)e[i]!=null&&ye(r,44,$he(i,e[i]))}),ye(r,616))}}function rfe(r){var e=1;e!=0&&(ye(r,611,ko(e)),ye(r,43,Whe({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),ye(r,612))}function nfe(r){var e=2;e!=0&&(ye(r,603,ko(e)),ye(r,45,Yj({patternType:"none"})),ye(r,45,Yj({patternType:"gray125"})),ye(r,604))}function ife(r){var e=1;e!=0&&(ye(r,613,ko(e)),ye(r,46,Qhe({})),ye(r,614))}function afe(r){var e=1;ye(r,626,ko(e)),ye(r,47,P9({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),ye(r,627)}function sfe(r,e){ye(r,617,ko(e.length)),e.forEach(function(t){ye(r,47,P9(t,0))}),ye(r,618)}function ofe(r){var e=1;ye(r,619,ko(e)),ye(r,48,Jhe({xfId:0,builtinId:0,name:"Normal"})),ye(r,620)}function lfe(r){var e=0;ye(r,505,ko(e)),ye(r,506)}function cfe(r){var e=0;ye(r,508,Zhe(e,"TableStyleMedium9","PivotStyleMedium4")),ye(r,509)}function ufe(r,e){var t=Ka();return ye(t,278),tfe(t,r.SSF),rfe(t,r),nfe(t,r),ife(t,r),afe(t,r),sfe(t,e.cellXfs),ofe(t,r),lfe(t,r),cfe(t,r),ye(t,279),t.end()}var dfe=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];
vendor: 4,121 bytes, line 173
173function hfe(r,e,t){e.themeElements.clrScheme=[];var n={};(r[0].match(aa)||[]).forEach(function(i){var a=Ct(i);switch(a[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":n.rgb=a.val;break;case"<a:sysClr":n.rgb=a.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":a[0].charAt(1)==="/"?(e.themeElements.clrScheme[dfe.indexOf(a[0])]=n,n={}):n.name=a[0].slice(3,a[0].length-1);break;default:if(t&&t.WTF)throw new Error("Unrecognized "+a[0]+" in clrScheme")}})}function ffe(){}function mfe(){}var pfe=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,gfe=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,yfe=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;function vfe(r,e,t){e.themeElements={};var n;[["clrScheme",pfe,hfe],["fontScheme",gfe,ffe],["fmtScheme",yfe,mfe]].forEach(function(i){if(!(n=r.match(i[1])))throw new Error(i[0]+" not found in themeElements");i[2](n,e,t)})}var _fe=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function R9(r,e){(!r||r.length===0)&&(r=iO());var t,n={};if(!(t=r.match(_fe)))throw new Error("themeElements not found in theme");return vfe(t[0],n,e),n.raw=r,n}function iO(r,e){if(e&&e.themeXLSX)return e.themeXLSX;if(r&&typeof r.raw=="string")return r.raw;var t=[kn];return t[t.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',t[t.length]="<a:themeElements>",t[t.length]='<a:clrScheme name="Office">',t[t.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',t[t.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',t[t.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',t[t.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',t[t.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',t[t.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',t[t.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',t[t.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',t[t.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',t[t.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',t[t.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',t[t.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',t[t.length]="</a:clrScheme>",t[t.length]='<a:fontScheme name="Office">',t[t.length]="<a:majorFont>",t[t.length]='<a:latin typeface="Cambria"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface="\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF"/>',t[t.length]='<a:font script="Hang" typeface="\uB9D1\uC740 \uACE0\uB515"/>',t[t.length]='<a:font script="Hans" typeface="\u5B8B\u4F53"/>',t[t.length]='<a:font script="Hant" typeface="\u65B0\u7D30\u660E\u9AD4"/>',t[t.length]='<a:font script="Arab" typeface="Times New Roman"/>',t[t.length]='<a:font script="Hebr" typeface="Times New Roman"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="MoolBoran"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>
173',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Times New Roman"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:majorFont>",t[t.length]="<a:minorFont>",t[t.length]='<a:latin typeface="Calibri"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface="\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF"/>',t[t.length]='<a:font script="Hang" typeface="\uB9D1\uC740 \uACE0\uB515"/>',t[t.length]='<a:font script="Hans" typeface="\u5B8B\u4F53"/>',t[t.length]='<a:font script="Hant" typeface="\u65B0\u7D30\u660E\u9AD4"/>',t[t.length]='<a:font script="Arab" typeface="Arial"/>',t[t.length]='<a:font script="Hebr" typeface="Arial"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="DaunPenh"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Arial"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:minorFont>",t[t.length]="</a:fontScheme>",t[t.length]='<a:fmtScheme name="Office">',t[t.length]="<a:fillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:lin ang="16200000" scaled="1"/>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:lin ang="16200000" scaled="0"/>',t[t.length]="</a:gradFill>",t[t.length]="</a:fillStyleLst>",t[t.length]="<a:lnStyleLst>",t[t.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>
173',t[t.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]="</a:lnStyleLst>",t[t.length]="<a:effectStyleLst>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',t[t.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',t[t.length]="</a:effectStyle>",t[t.length]="</a:effectStyleLst>",t[t.length]="<a:bgFillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]="</a:bgFillStyleLst>",t[t.length]="</a:fmtScheme>",t[t.length]="</a:themeElements>",t[t.length]="<a:objectDefaults>",t[t.length]="<a:spDef>",t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',t[t.length]="</a:spDef>",t[t.length]="<a:lnDef>",t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',t[t.length]="</a:lnDef>",t[t.length]="</a:objectDefaults>",t[t.length]="<a:extraClrSchemeLst/>",t[t.length]="</a:theme>",t.join("")}function bfe(r,e,t){var n=r.l+e,i=r.read_shift(4);if(i!==124226){if(!t.cellStyles){r.l=n;return}var a=r.slice(r.l);r.l=n;var s;try{s=MH(a,{type:"array"})}catch{return}var o=_s(s,"theme/theme/theme1.xml",!0);if(o)return R9(o,t)}}function wfe(r){return r.read_shift(4)}function Ife(r){var e={};switch(e.xclrType=r.read_shift(2),e.nTintShade=r.read_shift(2),e.xclrType){case 0:r.l+=4;break;case 1:e.xclrValue=xfe(r,4);break;case 2:e.xclrValue=h9(r,4);break;case 3:e.xclrValue=wfe(r,4);break;case 4:r.l+=4;break}return r.l+=8,e}function xfe(r,e){return ia(r,e)}function Efe(r,e){return ia(r,e)}function Tfe(r){var e=r.read_shift(2),t=r.read_shift(2)-4,n=[e];switch(e){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:n[1]=Ife(r,t);break;case 6:n[1]=Efe(r,t);break;case 14:case 15:n[1]=r.read_shift(t===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+e+" "+t)}return n}function Cfe(r,e){var t=r.l+e;r.l+=2;var n=r.read_shift(2);r.l+=2;for(var i=r.read_shift(2),a=[];i-- >0;)a.push(Tfe(r,t-r.l));return{ixfe:n,ext:a}}function Sfe(r,e){e.forEach(function(t){switch(t[0]){case 4:break;case 5:break;case 6:break;case 7:break;case 8:break;case 9:break;case 10:break;case 11:break;case 13:break;case 14:break;case 15:break}})}function Dfe(r,e){return{flags:r.read_shift(4),version:r.read_shift(4),name:na(r,e-8)}}function Afe(r){var e=oe(12+2*r.name.length);return e.write_shift(4,r.flags),e.write_shift(4,r.version),yi(r.name,e),e.slice(0,e.l)}function Mfe(r){for(var e=[],t=r.read_shift(4);t-- >0;)e.push([r.read_shift(4),r.read_shift(4)]);return e}function kfe(r){var e=oe(4+8*r.length);e.write_shift(4,r.length);for(var t=0;t<r.length;++t)e.write_shift(4,r[t][0]),e.write_shift(4,r[t][1]);return e}function Pfe(r,e){var t=oe(8+2*e.length);return t.write_shift(4,r),yi(e,t),t.slice(0,t.l)}function Rfe(r){return r.l+=4,r.read_shift(4)!=0}function Ofe(r,e){var t=oe(8);return t.write_shift(4,r),t.write_shift(4,e?1:0),t}function Ffe(r,e,t){var n={Types:[],Cell:[],Value:[]},i=t||{},a=[],s=!1,o=2;return pc(r,function(l,c,u){switch(u){case 335:n.Types.push({name:l.name});break;case 51:l.forEach(function(d){o==1?n.Cell.push({type:n.Types[d[0]-1].name,index:d[1]}):o==0&&n.Value.push({type:n.Types[d[0]-1].name,index:d[1]})});break;case 337:o=l?1:0;break;case 338:o=2;break;case 35:a.push(u),s=!0;break;case 36:a.pop(),s=!1;break;default:if(!c.T){if(!s||i.WTF&&a[a.length-1]!=35)throw new Error("Unexpected record 0x"+u.toString(16))}}}),n}function Bfe(){var r=Ka();return ye(r,332),ye(r,334,ko(1)),ye(r,335,Afe({name:"XLDAPR",version:12e4,flags:3496657072})),ye(r,336),ye(r,339,Pfe(1,"XLDAPR")),ye(r,52),ye(r,35,ko(514)),ye(r,4096,ko(0)),ye(r,4097,Ks(1)),ye(r,36),ye(r,53),ye(r,340),ye(r,337,Ofe(1,
vendor: 4,665 bytes, lines 173-191
173!0)),ye(r,51,kfe([[1,0]])),ye(r,338),ye(r,333),r.end()}function Nfe(r,e,t){var n={Types:[],Cell:[],Value:[]};if(!r)return n;var i=!1,a=2,s;return r.replace(aa,function(o){var l=Ct(o);switch(yl(l[0])){case"<?xml":break;case"<metadata":case"</metadata>":break;case"<metadataTypes":case"</metadataTypes>":break;case"<metadataType":n.Types.push({name:l.name});break;case"</metadataType>":break;case"<futureMetadata":for(var c=0;c<n.Types.length;++c)n.Types[c].name==l.name&&(s=n.Types[c]);break;case"</futureMetadata>":break;case"<bk>":break;case"</bk>":break;case"<rc":a==1?n.Cell.push({type:n.Types[l.t-1].name,index:+l.v}):a==0&&n.Value.push({type:n.Types[l.t-1].name,index:+l.v});break;case"</rc>":break;case"<cellMetadata":a=1;break;case"</cellMetadata>":a=2;break;case"<valueMetadata":a=0;break;case"</valueMetadata>":a=2;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;case"<rvb":if(!s)break;s.offsets||(s.offsets=[]),s.offsets.push(+l.i);break;default:if(!i&&t.WTF)throw new Error("unrecognized "+l[0]+" in metadata")}return o}),n}function O9(){var r=[kn];return r.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray"> 174 <metadataTypes count="1"> 175 <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/> 176 </metadataTypes> 177 <futureMetadata name="XLDAPR" count="1"> 178 <bk> 179 <extLst> 180 <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}"> 181 <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/> 182 </ext> 183 </extLst> 184 </bk> 185 </futureMetadata> 186 <cellMetadata count="1"> 187 <bk> 188 <rc t="1" v="0"/> 189 </bk> 190 </cellMetadata> 191</metadata>`),r.join("")}function Lfe(r){var e=[];if(!r)return e;var t=1;return(r.match(aa)||[]).forEach(function(n){var i=Ct(n);switch(i[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete i[0],i.i?t=i.i:i.i=t,e.push(i);break}}),e}function Vfe(r){var e={};e.i=r.read_shift(4);var t={};t.r=r.read_shift(4),t.c=r.read_shift(4),e.r=xt(t);var n=r.read_shift(1);return n&2&&(e.l="1"),n&8&&(e.a="1"),e}function Ufe(r,e,t){var n=[],i=!1;return pc(r,function(s,o,l){switch(l){case 63:n.push(s);break;default:if(!o.T){if(!i||t.WTF)throw new Error("Unexpected record 0x"+l.toString(16))}}}),n}function zfe(r,e,t,n){if(!r)return r;var i=n||{},a=!1,s=!1;pc(r,function(l,c,u){if(!s)switch(u){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:a=!0;break;case 36:a=!1;break;default:if(!c.T){if(!a||i.WTF)throw new Error("Unexpected record 0x"+u.toString(16))}}},i)}function jfe(r,e){if(!r)return"??";var t=(r.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return e["!id"][t].Target}var rp=1024;function F9(r,e){for(var t=[21600,21600],n=["m0,0l0",t[1],t[0],t[1],t[0],"0xe"].join(","),i=[Ne("xml",null,{"xmlns:v":ys.v,"xmlns:o":ys.o,"xmlns:x":ys.x,"xmlns:mv":ys.mv}).replace(/\/>/,">"),Ne("o:shapelayout",Ne("o:idmap",null,{"v:ext":"edit",data:r}),{"v:ext":"edit"}),Ne("v:shapetype",[Ne("v:stroke",null,{joinstyle:"miter"}),Ne("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:t.join(","),path:n})];rp<r*1e3;)rp+=1e3;return e.forEach(function(a){var s=ln(a[0]),o={color2:"#BEFF82",type:"gradient"};o.type=="gradient"&&(o.angle="-180");var l=o.type=="gradient"?Ne("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,c=Ne("v:fill",l,o),u={on:"t",obscured:"t"};++rp,i=i.concat(["<v:shape"+Gy({id:"_x0000_s"+rp,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(a[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",c,Ne("v:shadow",null,u),Ne("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Ri("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),Ri("x:AutoFill","False"),Ri("x:Row",String(s.r)),Ri("x:Column",String(s.c)),a[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function Xj(r,e,t,n){var i=Array.isArray(r),a;e.forEach(function(s){var o=ln(s.ref);
191if(i?(r[o.r]||(r[o.r]=[]),a=r[o.r][o.c]):a=r[s.ref],!a){a={t:"z"},i?r[o.r][o.c]=a:r[s.ref]=a;var l=hr(r["!ref"]||"BDWGO1000001:A1");l.s.r>o.r&&(l.s.r=o.r),l.e.r<o.r&&(l.e.r=o.r),l.s.c>o.c&&(l.s.c=o.c),l.e.c<o.c&&(l.e.c=o.c);var c=Bt(l);c!==r["!ref"]&&(r["!ref"]=c)}a.c||(a.c=[]);var u={a:s.author,t:s.t,r:s.r,T:t};s.h&&(u.h=s.h);for(var d=a.c.length-1;d>=0;--d){if(!t&&a.c[d].T)return;t&&!a.c[d].T&&a.c.splice(d,1)}if(t&&n){for(d=0;d<n.length;++d)if(u.a==n[d].id){u.a=n[d].name||u.a;break}}a.c.push(u)})}function Hfe(r,e){if(r.match(/<(?:\w+:)?comments *\/>/))return[];var t=[],n=[],i=r.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);i&&i[1]&&i[1].split(/<\/\w*:?author>/).forEach(function(s){if(!(s===""||s.trim()==="")){var o=s.match(/<(?:\w+:)?author[^>]*>(.*)/);o&&t.push(o[1])}});var a=r.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return a&&a[1]&&a[1].split(/<\/\w*:?comment>/).forEach(function(s){if(!(s===""||s.trim()==="")){var o=s.match(/<(?:\w+:)?comment[^>]*>/);if(o){var l=Ct(o[0]),c={author:l.authorId&&t[l.authorId]||"sheetjsghost",ref:l.ref,guid:l.guid},u=ln(l.ref);if(!(e.sheetRows&&e.sheetRows<=u.r)){var d=s.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),f=!!d&&!!d[1]&&tO(d[1])||{r:"",t:"",h:""};c.r=f.r,f.r=="<t></t>"&&(f.t=f.h=""),c.t=(f.t||"").replace(/\r\n/g,` 192`).replace(/\r/g,` 193`),e.cellHTML&&(c.h=f.h),n.push(c)}}}}),n}function B9(r){var e=[kn,Ne("comments",null,{xmlns:Mh[0]})],t=[];return e.push("<authors>"),r.forEach(function(n){n[1].forEach(function(i){var a=Cr(i.a);t.indexOf(a)==-1&&(t.push(a),e.push("<author>"+a+"</author>")),i.T&&i.ID&&t.indexOf("tc="+i.ID)==-1&&(t.push("tc="+i.ID),e.push("<author>tc="+i.ID+"</author>"))})}),t.length==0&&(t.push("SheetJ5"),e.push("<author>SheetJ5</author>")),e.push("</authors>"),e.push("<commentList>"),r.forEach(function(n){var i=0,a=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?i=t.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(i=t.indexOf(Cr(l.a))),a.push(l.t||"")}),e.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>'),a.length<=1)e.push(Ri("t",Cr(a[0]||"")));else{for(var s=`Comment: 194 `+a[0]+` 195`,o=1;o<a.length;++o)s+=`Reply: 196 `+a[o]+` 197`;e.push(Ri("t",Cr(s)))}e.push("</text></comment>")}),e.push("</commentList>"),e.length>2&&(e[e.length]="</comments>",e[1]=e[1].replace("/>",">")),e.join("")}function $fe(r,e){var t=[],n=!1,i={},a=0;return r.replace(aa,function(o,l){var c=Ct(o);switch(yl(c[0])){case"<?xml":break;case"<ThreadedComments":break;case"</ThreadedComments>":break;case"<threadedComment":i={author:c.personId,guid:c.id,ref:c.ref,T:1};break;case"</threadedComment>":i.t!=null&&t.push(i);break;case"<text>":case"<text":a=l+o.length;break;case"</text>":i.t=r.slice(a,l).replace(/\r\n/g,` 198`).replace(/\r/g,` 199`);break;case"<mentions":case"<mentions>":n=!0;break;case"</mentions>":n=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&e.WTF)throw new Error("unrecognized "+c[0]+" in threaded comments")}return o}),t}function Gfe(r,e,t){var n=[kn,Ne("ThreadedComments",null,{xmlns:ri.TCMNT}).replace(/[\/]>/,">")];return r.forEach(function(i){var a="";(i[1]||[]).forEach(function(s,o){if(!s.T){delete s.ID;return}s.a&&e.indexOf(s.a)==-1&&e.push(s.a);var l={ref:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+t.tcid++).slice(-12)+"}"};o==0?a=l.id:l.parentId=a,s.ID=l.id,s.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+e.indexOf(s.a)).slice(-12)+"}"),n.push(Ne("threadedComment",Ri("text",s.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function Wfe(r,e){var t=[],n=!1;return r.replace(aa,function(a){var s=Ct(a);switch(yl(s[0])){case"<?xml":break;case"<personList":break;case"</personList>":break;case"<person":t.push({name:s.displayname,id:s.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(!n&&e.WTF)throw new Error("unrecognized "+s[0]+" in threaded comments")}return a}),t}function qfe(r){var e=[kn,Ne("personList",null,{xmlns:ri.TCMNT,"xmlns:x":Mh[0]}).replace(/[\/]>/,">")];return r.forEach(function(t,n){e.push(Ne("person",null,{displayName:t,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:t,providerId:"None"}))}),e.push("</personList>"),e.join("")}function Kfe(r){var e={};e.iauthor=r.read_shift(4);var t=Oh(r,16);return e.rfx=t.s,e.ref=xt(t.s),r.l+=16,e}function Yfe(r,e){return e==null&&(e=oe(36)),e.write_shift(4,r[1].iauthor),pp(r[0],e),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e.write_shift(4,0),e}var Xfe=na;function Qfe(r){return yi(r.slice(0,54))}function Jfe(r,e){var t=[],n=[],i={},a=!1;return pc(r,function(o,l,c){switch(c){case 632:n.push(o);break;case 635:i=o;break;case 637:i.t=o.t,i.h=o.h,i.r=o.r;break;case 636:if(i.author=n[i.iauthor],delete i.iauthor,e.sheetRows&&i.rfx&&e.sheetRows<=i.rfx.r)break;
199i.t||(i.t=""),delete i.rfx,t.push(i);break;case 3072:break;case 35:a=!0;break;case 36:a=!1;break;case 37:break;case 38:break;default:if(!l.T){if(!a||e.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}}}),t}function Zfe(r){var e=Ka(),t=[];return ye(e,628),ye(e,630),r.forEach(function(n){n[1].forEach(function(i){t.indexOf(i.a)>-1||(t.push(i.a.slice(0,54)),ye(e,632,Qfe(i.a)))})}),ye(e,631),ye(e,633),r.forEach(function(n){n[1].forEach(function(i){i.iauthor=t.indexOf(i.a);var a={s:ln(n[0]),e:ln(n[0])};ye(e,635,Yfe([a,i])),i.t&&i.t.length>0&&ye(e,637,wce(i)),ye(e,636),delete i.iauthor})}),ye(e,634),ye(e,629),e.end()}var eme="application/vnd.ms-office.vbaProject";function tme(r){var e=ct.utils.cfb_new({root:"R"});return r.FullPaths.forEach(function(t,n){if(!(t.slice(-1)==="/"||!t.match(/_VBA_PROJECT_CUR/))){var i=t.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");ct.utils.cfb_add(e,i,r.FileIndex[n].content)}}),ct.write(e)}function rme(r,e){e.FullPaths.forEach(function(t,n){if(n!=0){var i=t.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&ct.utils.cfb_add(r,i,e.FileIndex[n].content)}})}var N9=["xlsb","xlsm","xlam","biff8","xla"];function nme(){return{"!type":"dialog"}}function ime(){return{"!type":"dialog"}}function ame(){return{"!type":"macro"}}function sme(){return{"!type":"macro"}}
199var ap=(function(){var r=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,e={r:0,c:0};function t(n,i,a,s){var o=!1,l=!1;a.length==0?l=!0:a.charAt(0)=="["&&(l=!0,a=a.slice(1,-1)),s.length==0?o=!0:s.charAt(0)=="["&&(o=!0,s=s.slice(1,-1));var c=a.length>0?parseInt(a,10)|0:0,u=s.length>0?parseInt(s,10)|0:0;return o?u+=e.c:--u,l?c+=e.r:--c,i+(o?"":"$")+on(u)+(l?"":"$")+Mn(c)}return function(i,a){return e=a,i.replace(r,t)}})(),aO=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,sO=(function(){return function(e,t){return e.replace(aO,function(n,i,a,s,o,l){var c=WR(s)-(a?0:t.c),u=GR(l)-(o?0:t.r),d=u==0?"":o?u+1:"["+u+"]",f=c==0?"":a?c+1:"["+c+"]";return i+"R"+d+"C"+f})}})();function L9(r,e){return r.replace(aO,function(t,n,i,a,s,o){return n+(i=="$"?i+a:on(WR(a)+e.c))+(s=="$"?s+o:Mn(GR(o)+e.r))})}function ome(r,e,t){var n=Ya(e),i=n.s,a=ln(t),s={r:a.r-i.r,c:a.c-i.c};return L9(r,s)}function lme(r){return r.length!=1}function Qj(r){return r.replace(/_xlfn\./g,"")}function Wn(r){r.l+=1}function Du(r,e){var t=r.read_shift(e==1?1:2);return[t&16383,t>>14&1,t>>15&1]}function V9(r,e,t){var n=2;if(t){if(t.biff>=2&&t.biff<=5)return U9(r,e,t);t.biff==12&&(n=4)}var i=r.read_shift(n),a=r.read_shift(n),s=Du(r,2),o=Du(r,2);return{s:{r:i,c:s[0],cRel:s[1],rRel:s[2]},e:{r:a,c:o[0],cRel:o[1],rRel:o[2]}}}function U9(r){var e=Du(r,2),t=Du(r,2),n=r.read_shift(1),i=r.read_shift(1);return{s:{r:e[0],c:n,cRel:e[1],rRel:e[2]},e:{r:t[0],c:i,cRel:t[1],rRel:t[2]}}}function cme(r,e,t){if(t.biff<8)return U9(r,e,t);var n=r.read_shift(t.biff==12?4:2),i=r.read_shift(t.biff==12?4:2),a=Du(r,2),s=Du(r,2);return{s:{r:n,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function z9(r,e,t){if(t&&t.biff>=2&&t.biff<=5)return ume(r,e,t);var n=r.read_shift(t&&t.biff==12?4:2),i=Du(r,2);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function ume(r){var e=Du(r,2),t=r.read_shift(1);return{r:e[0],c:t,cRel:e[1],rRel:e[2]}}function dme(r){var e=r.read_shift(2),t=r.read_shift(2);return{r:e,c:t&255,fQuoted:!!(t&16384),cRel:t>>15,rRel:t>>15}}function hme(r,e,t){var n=t&&t.biff?t.biff:8;if(n>=2&&n<=5)return fme(r,e,t);var i=r.read_shift(n>=12?4:2),a=r.read_shift(2),s=(a&16384)>>14,o=(a&32768)>>15;if(a&=16383,o==1)for(;i>524287;)i-=1048576;if(s==1)for(;a>8191;)a=a-16384;return{r:i,c:a,cRel:s,rRel:o}}function fme(r){var e=r.read_shift(2),t=r.read_shift(1),n=(e&32768)>>15,i=(e&16384)>>14;return e&=16383,n==1&&e>=8192&&(e=e-16384),i==1&&t>=128&&(t=t-256),{r:e,c:t,cRel:i,rRel:n}}function mme(r,e,t){var n=(r[r.l++]&96)>>5,i=V9(r,t.biff>=2&&t.biff<=5?6:8,t);return[n,i]}function pme(r,e,t){var n=(r[r.l++]&96)>>5,i=r.read_shift(2,"i"),a=8;if(t)switch(t.biff){case 5:r.l+=12,a=6;break;case 12:a=12;break}var s=V9(r,a,t);return[n,i,s]}function gme(r,e,t){var n=(r[r.l++]&96)>>5;return r.l+=t&&t.biff>8?12:t.biff<8?6:8,[n]}function yme(r,e,t){var n=(r[r.l++]&96)>>5,i=r.read_shift(2),a=8;if(t)switch(t.biff){case 5:r.l+=12,a=6;break;case 12:a=12;break}return r.l+=a,[n,i]}function vme(r,e,t){var n=(r[r.l++]&96)>>5,i=cme(r,e-1,t);return[n,i]}function _me(r,e,t){var n=(r[r.l++]&96)>>5;return r.l+=t.biff==2?6:t.biff==12?14:7,[n]}function Jj(r){var e=r[r.l+1]&1,t=1;return r.l+=4,[e,t]}function bme(r,e,t){r.l+=2;for(var n=r.read_shift(t&&t.biff==2?1:2),i=[],a=0;a<=n;++a)i.push(r.read_shift(t&&t.biff==2?1:2));return i}function wme(r,e,t){var n=r[r.l+1]&255?1:0;return r.l+=2,[n,r.read_shift(t&&t.biff==2?1:2)]}function Ime(r,e,t){var n=r[r.l+1]&255?1:0;return r.l+=2,[n,r.read_shift(t&&t.biff==2?1:2)]}function xme(r){var e=r[r.l+1]&255?1:0;return r.l+=2,[e,r.read_shift(2)]}function Eme(r,e,t){var n=r[r.l+1]&255?1:0;return r.l+=t&&t.biff==2?3:4,[n]}function j9(r){var e=r.read_shift(1),t=r.read_shift(1);return[e,t]}function Tme(r){return r.read_shift(2),j9(r,2)}function Cme(r){return r.read_shift(2),j9(r,2)}function Sme(r,e,t){var n=(r[r.l]&96)>>5;r.l+=1;var i=z9(r,0,t);return[n,i]}function Dme(r,e,t){var n=(r[r.l]&96)>>5;r.l+=1;var i=hme(r,0,t);return[n,i]}function Ame(r,e,t){var n=(r[r.l]&96)>>5;r.l+=1;var i=r.read_shift(2);
199t&&t.biff==5&&(r.l+=12);var a=z9(r,0,t);return[n,i,a]}function Mme(r,e,t){var n=(r[r.l]&96)>>5;r.l+=1;var i=r.read_shift(t&&t.biff<=3?1:2);return[Rpe[i],G9[i],n]}function kme(r,e,t){var n=r[r.l++],i=r.read_shift(1),a=t&&t.biff<=3?[n==88?-1:0,r.read_shift(1)]:Pme(r);return[i,(a[0]===0?G9:Ppe)[a[1]]]}function Pme(r){return[r[r.l+1]>>7,r.read_shift(2)&32767]}function Rme(r,e,t){r.l+=t&&t.biff==2?3:4}function Ome(r,e,t){if(r.l++,t&&t.biff==12)return[r.read_shift(4,"i"),0];var n=r.read_shift(2),i=r.read_shift(t&&t.biff==2?1:2);return[n,i]}function Fme(r){return r.l++,gc[r.read_shift(1)]}function Bme(r){return r.l++,r.read_shift(2)}function Nme(r){return r.l++,r.read_shift(1)!==0}function Lme(r){return r.l++,ta(r,8)}function Vme(r,e,t){return r.l++,rv(r,e-1,t)}function Ume(r,e){var t=[r.read_shift(1)];if(e==12)switch(t[0]){case 2:t[0]=4;break;case 4:t[0]=16;break;case 0:t[0]=1;break;case 1:t[0]=2;break}switch(t[0]){case 4:t[1]=An(r,1)?"TRUE":"FALSE",e!=12&&(r.l+=7);break;case 37:case 16:t[1]=gc[r[r.l]],r.l+=e==12?4:8;break;case 0:r.l+=8;break;case 1:t[1]=ta(r,8);break;case 2:t[1]=Fh(r,0,{biff:e>0&&e<8?2:e});break;default:throw new Error("Bad SerAr: "+t[0])}return t}function zme(r,e,t){for(var n=r.read_shift(t.biff==12?4:2),i=[],a=0;a!=n;++a)i.push((t.biff==12?Oh:XE)(r,8));return i}function jme(r,e,t){var n=0,i=0;t.biff==12?(n=r.read_shift(4),i=r.read_shift(4)):(i=1+r.read_shift(1),n=1+r.read_shift(2)),t.biff>=2&&t.biff<8&&(--n,--i==0&&(i=256));for(var a=0,s=[];a!=n&&(s[a]=[]);++a)for(var o=0;o!=i;++o)s[a][o]=Ume(r,t.biff);return s}function Hme(r,e,t){var n=r.read_shift(1)>>>5&3,i=!t||t.biff>=8?4:2,a=r.read_shift(i);switch(t.biff){case 2:r.l+=5;break;case 3:case 4:r.l+=8;break;case 5:r.l+=12;break}return[n,0,a]}function $me(r,e,t){if(t.biff==5)return Gme(r,e,t);var n=r.read_shift(1)>>>5&3,i=r.read_shift(2),a=r.read_shift(4);return[n,i,a]}function Gme(r){var e=r.read_shift(1)>>>5&3,t=r.read_shift(2,"i");r.l+=8;var n=r.read_shift(2);return r.l+=12,[e,t,n]}function Wme(r,e,t){var n=r.read_shift(1)>>>5&3;r.l+=t&&t.biff==2?3:4;var i=r.read_shift(t&&t.biff==2?1:2);return[n,i]}function qme(r,e,t){var n=r.read_shift(1)>>>5&3,i=r.read_shift(t&&t.biff==2?1:2);return[n,i]}function Kme(r,e,t){var n=r.read_shift(1)>>>5&3;return r.l+=4,t.biff<8&&r.l--,t.biff==12&&(r.l+=2),[n]}function Yme(r,e,t){var n=(r[r.l++]&96)>>5,i=r.read_shift(2),a=4;if(t)switch(t.biff){case 5:a=15;break;case 12:a=6;break}return r.l+=a,[n,i]}var Xme=ia,Qme=ia,Jme=ia;function iv(r,e,t){return r.l+=2,[dme(r,4,t)]}function oO(r){return r.l+=6,[]}var Zme=iv,epe=oO,tpe=oO,rpe=iv;function H9(r){return r.l+=2,[Kn(r),r.read_shift(2)&1]}var npe=iv,ipe=H9,ape=oO,spe=iv,ope=iv,lpe=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function cpe(r){r.l+=2;var e=r.read_shift(2),t=r.read_shift(2),n=r.read_shift(4),i=r.read_shift(2),a=r.read_shift(2),s=lpe[t>>2&31];return{ixti:e,coltype:t&3,rt:s,idx:n,c:i,C:a}}function upe(r){return r.l+=2,[r.read_shift(4)]}function dpe(r,e,t){return r.l+=5,r.l+=2,r.l+=t.biff==2?1:4,["PTGSHEET"]}function hpe(r,e,t){return r.l+=t.biff==2?4:5,["PTGENDSHEET"]}function fpe(r){var e=r.read_shift(1)>>>5&3,t=r.read_shift(2);return[e,t]}function mpe(r){var e=r.read_shift(1)>>>5&3,t=r.read_shift(2);return[e,t]}function ppe(r){return r.l+=4,[0,0]}var Zj={1:{n:"PtgExp",f:Ome},2:{n:"PtgTbl",f:Jme},3:{n:"PtgAdd",f:Wn},4:{n:"PtgSub",f:Wn},5:{n:"PtgMul",f:Wn},6:{n:"PtgDiv",f:Wn},7:{n:"PtgPower",f:Wn},8:{n:"PtgConcat",f:Wn},9:{n:"PtgLt",f:Wn},10:{n:"PtgLe",f:Wn},11:{n:"PtgEq",f:Wn},12:{n:"PtgGe",f:Wn},13:{n:"PtgGt",f:Wn},14:{n:"PtgNe",f:Wn},15:{n:"PtgIsect",f:Wn},16:{n:"PtgUnion",f:Wn},17:{n:"PtgRange",f:Wn},18:{n:"PtgUplus",f:Wn},19:{n:"PtgUminus",f:Wn},20:{n:"PtgPercent",f:Wn},21:{n:"PtgParen",f:Wn},22:{n:"PtgMissArg",f:Wn},23:{n:"PtgStr",f:Vme}
vendor: 5,755 bytes, line 199
199,26:{n:"PtgSheet",f:dpe},27:{n:"PtgEndSheet",f:hpe},28:{n:"PtgErr",f:Fme},29:{n:"PtgBool",f:Nme},30:{n:"PtgInt",f:Bme},31:{n:"PtgNum",f:Lme},32:{n:"PtgArray",f:_me},33:{n:"PtgFunc",f:Mme},34:{n:"PtgFuncVar",f:kme},35:{n:"PtgName",f:Hme},36:{n:"PtgRef",f:Sme},37:{n:"PtgArea",f:mme},38:{n:"PtgMemArea",f:Wme},39:{n:"PtgMemErr",f:Xme},40:{n:"PtgMemNoMem",f:Qme},41:{n:"PtgMemFunc",f:qme},42:{n:"PtgRefErr",f:Kme},43:{n:"PtgAreaErr",f:gme},44:{n:"PtgRefN",f:Dme},45:{n:"PtgAreaN",f:vme},46:{n:"PtgMemAreaN",f:fpe},47:{n:"PtgMemNoMemN",f:mpe},57:{n:"PtgNameX",f:$me},58:{n:"PtgRef3d",f:Ame},59:{n:"PtgArea3d",f:pme},60:{n:"PtgRefErr3d",f:Yme},61:{n:"PtgAreaErr3d",f:yme},255:{}},gpe={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},ype={1:{n:"PtgElfLel",f:H9},2:{n:"PtgElfRw",f:spe},3:{n:"PtgElfCol",f:Zme},6:{n:"PtgElfRwV",f:ope},7:{n:"PtgElfColV",f:rpe},10:{n:"PtgElfRadical",f:npe},11:{n:"PtgElfRadicalS",f:ape},13:{n:"PtgElfColS",f:epe},15:{n:"PtgElfColSV",f:tpe},16:{n:"PtgElfRadicalLel",f:ipe},25:{n:"PtgList",f:cpe},29:{n:"PtgSxName",f:upe},255:{}},vpe={0:{n:"PtgAttrNoop",f:ppe},1:{n:"PtgAttrSemi",f:Eme},2:{n:"PtgAttrIf",f:Ime},4:{n:"PtgAttrChoose",f:bme},8:{n:"PtgAttrGoto",f:wme},16:{n:"PtgAttrSum",f:Rme},32:{n:"PtgAttrBaxcel",f:Jj},33:{n:"PtgAttrBaxcel",f:Jj},64:{n:"PtgAttrSpace",f:Tme},65:{n:"PtgAttrSpaceSemi",f:Cme},128:{n:"PtgAttrIfError",f:xme},255:{}};function av(r,e,t,n){if(n.biff<8)return ia(r,e);for(var i=r.l+e,a=[],s=0;s!==t.length;++s)switch(t[s][0]){case"PtgArray":t[s][1]=jme(r,0,n),a.push(t[s][1]);break;case"PtgMemArea":t[s][2]=zme(r,t[s][1],n),a.push(t[s][2]);break;case"PtgExp":n&&n.biff==12&&(t[s][1][1]=r.read_shift(4),a.push(t[s][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+t[s][0];default:break}return e=i-r.l,e!==0&&a.push(ia(r,e)),a}function sv(r,e,t){for(var n=r.l+e,i,a,s=[];n!=r.l;)e=n-r.l,a=r[r.l],i=Zj[a]||Zj[gpe[a]],(a===24||a===25)&&(i=(a===24?ype:vpe)[r[r.l+1]]),!i||!i.f?ia(r,e):s.push([i.n,i.f(r,e,t)]);return s}function _pe(r){for(var e=[],t=0;t<r.length;++t){for(var n=r[t],i=[],a=0;a<n.length;++a){var s=n[a];if(s)switch(s[0]){case 2:i.push('"'+s[1].replace(/"/g,'""')+'"');break;default:i.push(s[1])}else i.push("")}e.push(i.join(","))}return e.join(";")}var bpe={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function wpe(r,e){if(!r&&!(e&&e.biff<=5&&e.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(r)?"'"+r+"'":r}function $9(r,e,t){if(!r)return"SH33TJSERR0";if(t.biff>8&&(!r.XTI||!r.XTI[e]))return r.SheetNames[e];if(!r.XTI)return"SH33TJSERR6";var n=r.XTI[e];if(t.biff<8)return e>1e4&&(e-=65536),e<0&&(e=-e),e==0?"":r.XTI[e-1];if(!n)return"SH33TJSERR1";var i="";if(t.biff>8)switch(r[n[0]][0]){case 357:return i=n[1]==-1?"#REF":r.SheetNames[n[1]],n[1]==n[2]?i:i+":"+r.SheetNames[n[2]];case 358:return t.SID!=null?r.SheetNames[t.SID]:"SH33TJSSAME"+r[n[0]][0];case 355:default:return"SH33TJSSRC"+r[n[0]][0]}switch(r[n[0]][0][0]){case 1025:return i=n[1]==-1?"#REF":r.SheetNames[n[1]]||"SH33TJSERR3",n[1]==n[2]?i:i+":"+r.SheetNames[n[2]];case 14849:return r[n[0]].slice(1).map(function(a){return a.Name}).join(";;");default:return r[n[0]][0][3]?(i=n[1]==-1?"#REF":r[n[0]][0][3][n[1]]||"SH33TJSERR4",n[1]==n[2]?i:i+":"+r[n[0]][0][3][n[2]]):"SH33TJSERR2"}}function eH(r,e,t){var n=$9(r,e,t);return n=="#REF"?n:wpe(n,t)}function Zi(r,e,t,n,i){var a=i&&i.biff||8,s={s:{c:0,r:0},e:{c:0,r:0}},o=[],l,c,u,d=0,f=0,p,g="";if(!r[0]||!r[0][0])return"";for(var y=-1,v="",T=0,C=r[0].length;T<C;++T){var x=r[0][T];switch(x[0]){case"PtgUminus":o.push("-"+o.pop());break;case"PtgUplus":o.push("+"+o.pop());break;case"PtgPercent":o.push(o.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(l=o.pop(),c=o.pop(),y>=0){switch(r[0][y][1][0]){case 0:v=_n(" ",r[0][y][1][1]);break;case 1:v=_n("\r",r[0][y][1][1]);break;default:if(v="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+r[0][y][1][0])}c=c+v,y=-1}o.push(c+bpe[x[0]]+l);break;case"PtgIsect":l=o.pop(),c=o.pop(),o.push(c+" "+l);break;case"PtgUnion":l=o.pop(),c=o.pop(),o.push(c+","+l);break;case"PtgRange":l=o.pop(),c=o.pop(),o.push(c+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":u=Oy(x[1][1],s,i),o.push(Fy(u,a));break;case"PtgRefN":u=t?Oy(x[1][1],t,i):x[1][1],o.push(Fy(u,a));break;case"PtgRef3d":d=x[1][1],u=Oy(x[1][2],s,i),g=eH(n,d,i);var B=g;o.push(g+"!"+Fy(u,a));break;case"PtgFunc":case"PtgFuncVar":var q=x[1][0],V=x[1][1];q||(q=0),q&=127;var b=q==0?[]:o.slice(-q);o.length-=q,V==="User"&&(V=b.shift()),o.push(V+"("+b.join(",")+")");break;case"PtgBool":o.push(x[1]?"TRUE":"FALSE");break;case"PtgInt":o.push(x[1]);break;case"PtgNum":o.push(String(x[1]));break;case"PtgStr":o.push('"'+x[1].replace(/"/g,'""')+'"');break;case"PtgErr":o.push(x[1]);break;case"PtgAreaN":p=Aj(x[1][1],t?{s:t}:s,i),o.push(nR(p,i));break;case"PtgArea":p=Aj(x[1][1],s,i),o.push(nR(p,i));break;case"PtgArea3d":d=x[1][1],p=x[1][2],g=eH(n,d,i),o.push(g+"!"+nR(p,i));break;case"PtgAttrSum":o.push("SUM("+o.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":f=x[1][2];var E=(n.names||[])[f-1]||(n[0]||[])[f],I=E?E.Name:"SH33TJSNAME"+String(f);I&&I.slice(0,6)=="_xlfn."&&!i.xlfn&&(I=I.slice(6)),o.push(I);break;case"PtgNameX":var S=x[1][1];
199f=x[1][2];var k;if(i.biff<=5)S<0&&(S=-S),n[S]&&(k=n[S][f]);else{var D="";if(((n[S]||[])[0]||[])[0]==14849||(((n[S]||[])[0]||[])[0]==1025?n[S][f]&&n[S][f].itab>0&&(D=n.SheetNames[n[S][f].itab-1]+"!"):D=n.SheetNames[f-1]+"!"),n[S]&&n[S][f])D+=n[S][f].Name;else if(n[0]&&n[0][f])D+=n[0][f].Name;else{var R=($9(n,S,i)||"").split(";;");R[f-1]?D=R[f-1]:D+="SH33TJSERRX"}o.push(D);break}k||(k={Name:"SH33TJSERRY"}),o.push(k.Name);break;case"PtgParen":var De="(",ve=")";if(y>=0){switch(v="",r[0][y][1][0]){case 2:De=_n(" ",r[0][y][1][1])+De;break;case 3:De=_n("\r",r[0][y][1][1])+De;break;case 4:ve=_n(" ",r[0][y][1][1])+ve;break;case 5:ve=_n("\r",r[0][y][1][1])+ve;break;default:if(i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+r[0][y][1][0])}y=-1}o.push(De+o.pop()+ve);break;case"PtgRefErr":o.push("#REF!");break;case"PtgRefErr3d":o.push("#REF!");break;case"PtgExp":u={c:x[1][1],r:x[1][0]};var rt={c:t.c,r:t.r};if(n.sharedf[xt(u)]){var $e=n.sharedf[xt(u)];o.push(Zi($e,s,rt,n,i))}else{var vt=!1;for(l=0;l!=n.arrayf.length;++l)if(c=n.arrayf[l],!(u.c<c[0].s.c||u.c>c[0].e.c)&&!(u.r<c[0].s.r||u.r>c[0].e.r)){o.push(Zi(c[1],s,rt,n,i)),vt=!0;break}vt||o.push(x[1])}break;case"PtgArray":o.push("{"+_pe(x[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":y=T;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":o.push("");break;case"PtgAreaErr":o.push("#REF!");break;case"PtgAreaErr3d":o.push("#REF!");break;case"PtgList":o.push("Table"+x[1].idx+"[#"+x[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(x));default:throw new Error("Unrecognized Formula Token: "+String(x))}var Be=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(i.biff!=3&&y>=0&&Be.indexOf(r[0][T][0])==-1){x=r[0][y];var Ze=!0;switch(x[1][0]){case 4:Ze=!1;case 0:v=_n(" ",x[1][1]);break;case 5:Ze=!1;case 1:v=_n("\r",x[1][1]);break;default:if(v="",i.WTF)throw new Error("Unexpected PtgAttrSpaceType "+x[1][0])}o.push((Ze?v:"")+o.pop()+(Ze?"":v)),y=-1}}if(o.length>1&&i.WTF)throw new Error("bad formula stack");return o[0]}function Ipe(r,e,t){var n=r.l+e,i=t.biff==2?1:2,a,s=r.read_shift(i);if(s==65535)return[[],ia(r,e-2)];var o=sv(r,s,t);return e!==s+i&&(a=av(r,e-s-i,o,t)),r.l=n,[o,a]}function xpe(r,e,t){var n=r.l+e,i=t.biff==2?1:2,a,s=r.read_shift(i);if(s==65535)return[[],ia(r,e-2)];var o=sv(r,s,t);return e!==s+i&&(a=av(r,e-s-i,o,t)),r.l=n,[o,a]}function Epe(r,e,t,n){var i=r.l+e,a=sv(r,n,t),s;return i!==r.l&&(s=av(r,i-r.l,a,t)),[a,s]}function Tpe(r,e,t){var n=r.l+e,i,a=r.read_shift(2),s=sv(r,a,t);return a==65535?[[],ia(r,e-2)]:(e!==a+2&&(i=av(r,n-a-2,s,t)),[s,i])}function Cpe(r){var e;if(cc(r,r.l+6)!==65535)return[ta(r),"n"];switch(r[r.l]){case 0:return r.l+=8,["String","s"];case 1:return e=r[r.l+2]===1,r.l+=8,[e,"b"];case 2:return e=r[r.l+2],r.l+=8,[e,"e"];case 3:return r.l+=8,["","s"]}return[]}function Spe(r){if(r==null){var e=oe(8);return e.write_shift(1,3),e.write_shift(1,0),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,65535),e}else if(typeof r=="number")return Ch(r);return Ch(0)}function lR(r,e,t){var n=r.l+e,i=vl(r,6);t.biff==2&&++r.l;var a=Cpe(r,8),s=r.read_shift(1);t.biff!=2&&(r.read_shift(1),t.biff>=5&&r.read_shift(4));var o=xpe(r,n-r.l,t);return{cell:i,val:a[0],formula:o,shared:s>>3&1,tt:a[1]}}function Dpe(r,e,t,n,i){var a=Dh(e,t,i),s=Spe(r.v),o=oe(6),l=33;o.write_shift(2,l),o.write_shift(4,0);for(var c=oe(r.bf.length),u=0;u<r.bf.length;++u)c[u]=r.bf[u];var d=gi([a,s,o,c]);return d}function QE(r,e,t){var n=r.read_shift(4),i=sv(r,n,t),a=r.read_shift(4),s=a>0?av(r,a,i,t):null;return[i,s]}var Ape=QE,JE=QE,Mpe=QE,kpe=QE,Ppe
vendor: 7,369 bytes, line 199
199={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"}
199,G9={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284
199:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},Rpe={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function tH(r){return r.slice(0,3)=="of:"&&(r=r.slice(3)),r.charCodeAt(0)==61&&(r=r.slice(1),r.charCodeAt(0)==61&&(r=r.slice(1))),r=r.replace(/COM\.MICROSOFT\./g,""),r=r.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(e,t){return t.replace(/\./g,"")}),r=r.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),r.replace(/[;~]/g,",").replace(/\|/g,";")}function Ope(r){var e="of:="+r.replace(aO,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return e.replace(/;/g,"|").replace(/,/g,";")}function cR(r){var e=r.split(":"),t=e[0].split(".")[0];return[t,e[0].split(".")[1]+(e.length>1?":"+(e[1].split(".")[1]||e[1].split(".")[0]):"")]}function Fpe(r){return r.replace(/\./,"!")}var Ny={},sp={},Ly=typeof Map<"u";function lO(r,e,t){var n=0,i=r.length;if(t){if(Ly?t.has(e):Object.prototype.hasOwnProperty.call(t,e)){for(var a=Ly?t.get(e):t[e];n<a.length;++n)if(r[a[n]].t===e)return r.Count++,a[n]}}else for(;n<i;++n)if(r[n].t===e)return r.Count++,n;return r[i]={t:e},r.Count++,r.Unique++,t&&(Ly?(t.has(e)||t.set(e,[]),t.get(e).push(i)):(Object.prototype.hasOwnProperty.call(t,e)||(t[e]=[]),t[e].push(i))),i}function ZE(r,e){var t={min:r+1,max:r+1},n=-1;return e.MDW&&(ea=e.MDW),e.width!=null?t.customWidth=1:e.wpx!=null?n=Xy(e.wpx):e.wch!=null&&(n=e.wch),n>-1?(t.width=zE(n),t.customWidth=1):e.width!=null&&(t.width=e.width),e.hidden&&(t.hidden=!0),e.level!=null&&(t.outlineLevel=t.level=e.level),t}function xh(r,e){if(r){var t=[.7,.7,.75,.75,.3,.3];e=="xlml"&&(t=[1,1,1,1,.5,.5]),r.left==null&&(r.left=t[0]),r.right==null&&(r.right=t[1]),r.top==null&&(r.top=t[2]),r.bottom==null&&(r.bottom=t[3]),r.header==null&&(r.header=t[4]),r.footer==null&&(r.footer=t[5])}}function Pu(r,e,t){var n=t.revssf[e.z!=null?e.z:"General"],i=60,a=r.length;if(n==null&&t.ssf){for(;i<392;++i)if(t.ssf[i]==null){dc(e.z,i),t.ssf[i]=e.z,t.revssf[e.z]=n=i;break}}for(i=0;i!=a;++i)if(r[i].numFmtId===n)return i;return r[a]={numFmtId:n,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},a}function W9(r,e,t,n,i,a){try{n.cellNF&&(r.z=yt[e])}catch(o){if(n.WTF)throw o}if(!(r.t==="z"&&!n.cellStyles)){if(r.t==="d"&&typeof r.v=="string"&&(r.v=Wr(r.v)),(!n||n.cellText!==!1)&&r.t!=="z")try{if(yt[e]==null&&dc(Ple[e]||"General",e),r.t==="e")r.w=r.w||gc[r.v];
199else if(e===0)if(r.t==="n")(r.v|0)===r.v?r.w=r.v.toString(10):r.w=Hy(r.v);else if(r.t==="d"){var s=ni(r.v);(s|0)===s?r.w=s.toString(10):r.w=Hy(s)}else{if(r.v===void 0)return"";r.w=Eh(r.v,sp)}else r.t==="d"?r.w=Xs(e,ni(r.v),sp):r.w=Xs(e,r.v,sp)}catch(o){if(n.WTF)throw o}if(n.cellStyles&&t!=null)try{r.s=a.Fills[t],r.s.fgColor&&r.s.fgColor.theme&&!r.s.fgColor.rgb&&(r.s.fgColor.rgb=UE(i.themeElements.clrScheme[r.s.fgColor.theme].rgb,r.s.fgColor.tint||0),n.WTF&&(r.s.fgColor.raw_rgb=i.themeElements.clrScheme[r.s.fgColor.theme].rgb)),r.s.bgColor&&r.s.bgColor.theme&&(r.s.bgColor.rgb=UE(i.themeElements.clrScheme[r.s.bgColor.theme].rgb,r.s.bgColor.tint||0),n.WTF&&(r.s.bgColor.raw_rgb=i.themeElements.clrScheme[r.s.bgColor.theme].rgb))}catch(o){if(n.WTF&&a.Fills)throw o}}}function Bpe(r,e,t){if(r&&r["!ref"]){var n=hr(r["!ref"]);if(n.e.c<n.s.c||n.e.r<n.s.r)throw new Error("Bad range ("+t+"): "+r["!ref"])}}function Npe(r,e){var t=hr(e);t.s.r<=t.e.r&&t.s.c<=t.e.c&&t.s.r>=0&&t.s.c>=0&&(r["!ref"]=Bt(t))}var Lpe=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,Vpe=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,Upe=/<(?:\w:)?hyperlink [^>]*>/mg,zpe=/"(\w*:\w*)"/,jpe=/<(?:\w:)?col\b[^>]*[\/]?>/g,Hpe=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,$pe=/<(?:\w:)?pageMargins[^>]*\/>/g,q9=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,Gpe=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,Wpe=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function qpe(r,e,t,n,i,a,s){if(!r)return r;n||(n={"!id":{}}),wn!=null&&e.dense==null&&(e.dense=wn);var o=e.dense?[]:{},l={s:{r:2e6,c:2e6},e:{r:0,c:0}},c="",u="",d=r.match(Vpe);d?(c=r.slice(0,d.index),u=r.slice(d.index+d[0].length)):c=u=r;var f=c.match(q9);f?cO(f[0],o,i,t):(f=c.match(Gpe))&&Ype(f[0],f[1]||"",o,i,t,s,a);var p=(c.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(p>0){var g=c.slice(p,p+50).match(zpe);g&&Npe(o,g[1])}var y=c.match(Wpe);y&&y[1]&&lge(y[1],i);var v=[];if(e.cellStyles){var T=c.match(jpe);T&&nge(v,T)}d&&dge(d[1],o,e,l,a,s);var C=u.match(Hpe);C&&(o["!autofilter"]=age(C[0]));var x=[],B=u.match(Lpe);
199if(B)for(p=0;p!=B.length;++p)x[p]=hr(B[p].slice(B[p].indexOf('"')+1));var q=u.match(Upe);q&&ege(o,q,n);var V=u.match($pe);if(V&&(o["!margins"]=tge(Ct(V[0]))),!o["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r&&(o["!ref"]=Bt(l)),e.sheetRows>0&&o["!ref"]){var b=hr(o["!ref"]);e.sheetRows<=+b.e.r&&(b.e.r=e.sheetRows-1,b.e.r>l.e.r&&(b.e.r=l.e.r),b.e.r<b.s.r&&(b.s.r=b.e.r),b.e.c>l.e.c&&(b.e.c=l.e.c),b.e.c<b.s.c&&(b.s.c=b.e.c),o["!fullref"]=o["!ref"],o["!ref"]=Bt(b))}return v.length>0&&(o["!cols"]=v),x.length>0&&(o["!merges"]=x),o}function Kpe(r){if(r.length===0)return"";for(var e='<mergeCells count="'+r.length+'">',t=0;t!=r.length;++t)e+='<mergeCell ref="'+Bt(r[t])+'"/>';return e+"</mergeCells>"}function cO(r,e,t,n){var i=Ct(r);t.Sheets[n]||(t.Sheets[n]={}),i.codeName&&(t.Sheets[n].CodeName=dr(kr(i.codeName)))}function Ype(r,e,t,n,i){cO(r.slice(0,r.indexOf(">")),t,n,i)}function Xpe(r,e,t,n,i){var a=!1,s={},o=null;if(n.bookType!=="xlsx"&&e.vbaraw){var l=e.SheetNames[t];try{e.Workbook&&(l=e.Workbook.Sheets[t].CodeName||l)}catch{}a=!0,s.codeName=pl(Cr(l))}if(r&&r["!outline"]){var c={summaryBelow:1,summaryRight:1};r["!outline"].above&&(c.summaryBelow=0),r["!outline"].left&&(c.summaryRight=0),o=(o||"")+Ne("outlinePr",null,c)}!a&&!o||(i[i.length]=Ne("sheetPr",o,s))}var Qpe=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Jpe=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function Zpe(r){var e={sheet:1};return Qpe.forEach(function(t){r[t]!=null&&r[t]&&(e[t]="1")}),Jpe.forEach(function(t){r[t]!=null&&!r[t]&&(e[t]="0")}),r.password&&(e.password=rO(r.password).toString(16).toUpperCase()),Ne("sheetProtection",null,e)}function ege(r,e,t){for(var n=Array.isArray(r),i=0;i!=e.length;++i){var a=Ct(kr(e[i]),!0);if(!a.ref)return;var s=((t||{})["!id"]||[])[a.id];s?(a.Target=s.Target,a.location&&(a.Target+="#"+dr(a.location))):(a.Target="#"+dr(a.location),s={Target:a.Target,TargetMode:"Internal"}),a.Rel=s,a.tooltip&&(a.Tooltip=a.tooltip,delete a.tooltip);for(var o=hr(a.ref),l=o.s.r;l<=o.e.r;++l)for(var c=o.s.c;c<=o.e.c;++c){var u=xt({c,r:l});n?(r[l]||(r[l]=[]),r[l][c]||(r[l][c]={t:"z",v:void 0}),r[l][c].l=a):(r[u]||(r[u]={t:"z",v:void 0}),r[u].l=a)}}}function tge(r){var e={};return["left","right","top","bottom","header","footer"].forEach(function(t){r[t]&&(e[t]=parseFloat(r[t]))}),e}function rge(r){return xh(r),Ne("pageMargins",null,r)}function nge(r,e){for(var t=!1,n=0;n!=e.length;++n){var i=Ct(e[n],!0);i.hidden&&(i.hidden=Gr(i.hidden));var a=parseInt(i.min,10)-1,s=parseInt(i.max,10)-1;for(i.outlineLevel&&(i.level=+i.outlineLevel||0),delete i.min,delete i.max,i.width=+i.width,!t&&i.width&&(t=!0,nO(i.width)),Su(i);a<=s;)r[a++]=qr(i)}}function ige(r,e){for(var t=["<cols>"],n,i=0;i!=e.length;++i)(n=e[i])&&(t[t.length]=Ne("col",null,ZE(i,n)));return t[t.length]="</cols>",t.join("")}function age(r){var e={ref:(r.match(/ref="([^"]*)"/)||[])[1]};return e}function sge(r,e,t,n){var i=typeof r.ref=="string"?r.ref:Bt(r.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var a=t.Workbook.Names,s=Ya(i);s.s.r==s.e.r&&(s.e.r=Ya(e["!ref"]).e.r,i=Bt(s));for(var o=0;o<a.length;++o){var l=a[o];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==n){l.Ref="'"+t.SheetNames[n]+"'!"+i;break}}return o==a.length&&a.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+t.SheetNames[n]+"'!"+i}),Ne("autoFilter",null,{ref:i})}var oge=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function lge(r,e){e.Views||(e.Views=[{}]),(r.match(oge)||[]).forEach(function(t,n){var i=Ct(t);e.Views[n]||(e.Views[n]={}),+i.zoomScale&&(e.Views[n].zoom=+i.zoomScale),Gr(i.rightToLeft)&&(e.Views[n].RTL=!0)})}function cge(r,e,t,n){var i={workbookViewId:"0"};return(((n||{}).Workbook||{}).Views||[])[0]&&(i.rightToLeft=n.Workbook.Views[0].RTL?"1":"0"),Ne("sheetViews",Ne("sheetView",null,i),{})}function uge(r,e,t,n){if(r.c&&t["!comments"].push([e,r.c]),r.v===void 0&&typeof r.f!="string"||r.t==="z"&&!r.f)return"";var i="",a=r.t,s=r.v;if(r.t!=="z")switch(r.t){case"b":i=r.v?"1":"0";break;case"n":i=""+r.v;break;case"e":i=gc[r.v];break;case"d":n&&n.cellDates?i=Wr(r.v,-1).toISOString():(r=qr(r),r.t="n",i=""+(r.v=ni(Wr(r.v)))),typeof r.z>"u"&&(r.z=yt[14]);break;default:i=r.v;break}var o=Ri("v",Cr(i)),l={r:e}
199,c=Pu(n.cellXfs,r,n);switch(c!==0&&(l.s=c),r.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(r.v==null){delete r.t;break}if(r.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(n&&n.bookSST){o=Ri("v",""+lO(n.Strings,r.v,n.revStrings)),l.t="s";break}l.t="str";break}if(r.t!=a&&(r.t=a,r.v=s),typeof r.f=="string"&&r.f){var u=r.F&&r.F.slice(0,e.length)==e?{t:"array",ref:r.F}:null;o=Ne("f",Cr(r.f),u)+(r.v!=null?o:"")}return r.l&&t["!links"].push([e,r.l]),r.D&&(l.cm=1),Ne("c",o,l)}var dge=(function(){var r=/<(?:\w+:)?c[ \/>]/,e=/<\/(?:\w+:)?row>/,t=/r=["']([^"']*)["']/,n=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,i=/ref=["']([^"']*)["']/,a=$y("v"),s=$y("f");return function(l,c,u,d,f,p){for(var g=0,y="",v=[],T=[],C=0,x=0,B=0,q="",V,b,E=0,I=0,S,k,D=0,R=0,De=Array.isArray(p.CellXf),ve,rt=[],$e=[],vt=Array.isArray(c),Be=[],Ze={},le=!1,j=!!u.sheetStubs,K=l.split(e),W=0,H=K.length;W!=H;++W){y=K[W].trim();var ne=y.length;if(ne!==0){var _e=0;e:for(g=0;g<ne;++g)switch(y[g]){case">":if(y[g-1]!="/"){++g;break e}if(u&&u.cellStyles){if(b=Ct(y.slice(_e,g),!0),E=b.r!=null?parseInt(b.r,10):E+1,I=-1,u.sheetRows&&u.sheetRows<E)continue;Ze={},le=!1,b.ht&&(le=!0,Ze.hpt=parseFloat(b.ht),Ze.hpx=up(Ze.hpt)),b.hidden=="1"&&(le=!0,Ze.hidden=!0),b.outlineLevel!=null&&(le=!0,Ze.level=+b.outlineLevel),le&&(Be[E-1]=Ze)}break;case"<":_e=g;break}if(_e>=g)break;if(b=Ct(y.slice(_e,g),!0),E=b.r!=null?parseInt(b.r,10):E+1,I=-1,!(u.sheetRows&&u.sheetRows<E)){d.s.r>E-1&&(d.s.r=E-1),d.e.r<E-1&&(d.e.r=E-1),u&&u.cellStyles&&(Ze={},le=!1,b.ht&&(le=!0,Ze.hpt=parseFloat(b.ht),Ze.hpx=up(Ze.hpt)),b.hidden=="1"&&(le=!0,Ze.hidden=!0),b.outlineLevel!=null&&(le=!0,Ze.level=+b.outlineLevel),le&&(Be[E-1]=Ze)),v=y.slice(g).split(r);for(var be=0;be!=v.length&&v[be].trim().charAt(0)=="<";++be);for(v=v.slice(be),g=0;g!=v.length;++g)if(y=v[g].trim(),y.length!==0){if(T=y.match(t),C=g,x=0,B=0,y="<c "+(y.slice(0,1)=="<"?">":"")+y,T!=null&&T.length===2){for(C=0,q=T[1],x=0;x!=q.length&&!((B=q.charCodeAt(x)-64)<1||B>26);++x)C=26*C+B;--C,I=C}else++I;for(x=0;x!=y.length&&y.charCodeAt(x)!==62;++x);if(++x,b=Ct(y.slice(0,x),!0),b.r||(b.r=xt({r:E-1,c:I})),q=y.slice(x),V={t:""},(T=q.match(a))!=null&&T[1]!==""&&(V.v=dr(T[1])),u.cellFormula){if((T=q.match(s))!=null&&T[1]!==""){if(V.f=dr(kr(T[1])).replace(/\r\n/g,` 200`),u.xlfn||(V.f=Qj(V.f)),T[0].indexOf('t="array"')>-1)V.F=(q.match(i)||[])[1],V.F.indexOf(":")>-1&&rt.push([hr(V.F),V.F]);else if(T[0].indexOf('t="shared"')>-1){k=Ct(T[0]);var we=dr(kr(T[1]));u.xlfn||(we=Qj(we)),$e[parseInt(k.si,10)]=[k,we,b.r]}}else(T=q.match(/<f[^>]*\/>/))&&(k=Ct(T[0]),$e[k.si]&&(V.f=ome($e[k.si][1],$e[k.si][2],b.r)));var ce=ln(b.r);for(x=0;x<rt.length;++x)ce.r>=rt[x][0].s.r&&ce.r<=rt[x][0].e.r&&ce.c>=rt[x][0].s.c&&ce.c<=rt[x][0].e.c&&(V.F=rt[x][1])}if(b.t==null&&V.v===void 0)if(V.f||V.F)V.v=0,V.t="n";else if(j)V.t="z";else continue;else V.t=b.t||"n";switch(d.s.c>I&&(d.s.c=I),d.e.c<I&&(d.e.c=I),V.t){case"n":if(V.v==""||V.v==null){if(!j)continue;V.t="z"}else V.v=parseFloat(V.v);break;case"s":if(typeof V.v>"u"){if(!j)continue;V.t="z"}else S=Ny[parseInt(V.v,10)],V.v=S.t,V.r=S.r,u.cellHTML&&(V.h=S.h);break;
vendor: 6,224 bytes, line 200
200case"str":V.t="s",V.v=V.v!=null?kr(V.v):"",u.cellHTML&&(V.h=NR(V.v));break;case"inlineStr":T=q.match(n),V.t="s",T!=null&&(S=tO(T[1]))?(V.v=S.t,u.cellHTML&&(V.h=S.h)):V.v="";break;case"b":V.v=Gr(V.v);break;case"d":u.cellDates?V.v=Wr(V.v,1):(V.v=ni(Wr(V.v,1)),V.t="n");break;case"e":(!u||u.cellText!==!1)&&(V.w=V.v),V.v=YH[V.v];break}if(D=R=0,ve=null,De&&b.s!==void 0&&(ve=p.CellXf[b.s],ve!=null&&(ve.numFmtId!=null&&(D=ve.numFmtId),u.cellStyles&&ve.fillId!=null&&(R=ve.fillId))),W9(V,D,R,u,f,p),u.cellDates&&De&&V.t=="n"&&dp(yt[D])&&(V.t="d",V.v=KE(V.v)),b.cm&&u.xlmeta){var et=(u.xlmeta.Cell||[])[+b.cm-1];et&&et.type=="XLDAPR"&&(V.D=!0)}if(vt){var N=ln(b.r);c[N.r]||(c[N.r]=[]),c[N.r][N.c]=V}else c[b.r]=V}}}}Be.length>0&&(c["!rows"]=Be)}})();function hge(r,e,t,n){var i=[],a=[],s=hr(r["!ref"]),o="",l,c="",u=[],d=0,f=0,p=r["!rows"],g=Array.isArray(r),y={r:c},v,T=-1;for(f=s.s.c;f<=s.e.c;++f)u[f]=on(f);for(d=s.s.r;d<=s.e.r;++d){for(a=[],c=Mn(d),f=s.s.c;f<=s.e.c;++f){l=u[f]+c;var C=g?(r[d]||[])[f]:r[l];C!==void 0&&(o=uge(C,l,r,e,t,n))!=null&&a.push(o)}(a.length>0||p&&p[d])&&(y={r:c},p&&p[d]&&(v=p[d],v.hidden&&(y.hidden=1),T=-1,v.hpx?T=Qy(v.hpx):v.hpt&&(T=v.hpt),T>-1&&(y.ht=T,y.customHeight=1),v.level&&(y.outlineLevel=v.level)),i[i.length]=Ne("row",a.join(""),y))}if(p)for(;d<p.length;++d)p&&p[d]&&(y={r:d+1},v=p[d],v.hidden&&(y.hidden=1),T=-1,v.hpx?T=Qy(v.hpx):v.hpt&&(T=v.hpt),T>-1&&(y.ht=T,y.customHeight=1),v.level&&(y.outlineLevel=v.level),i[i.length]=Ne("row","",y));return i.join("")}function K9(r,e,t,n){var i=[kn,Ne("worksheet",null,{xmlns:Mh[0],"xmlns:r":ri.r})],a=t.SheetNames[r],s=0,o="",l=t.Sheets[a];l==null&&(l={});var c=l["!ref"]||"A1",u=hr(c);if(u.e.c>16383||u.e.r>1048575){if(e.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");u.e.c=Math.min(u.e.c,16383),u.e.r=Math.min(u.e.c,1048575),c=Bt(u)}n||(n={}),l["!comments"]=[];var d=[];Xpe(l,t,r,e,i),i[i.length]=Ne("dimension",null,{ref:c}),i[i.length]=cge(l,e,r,t),e.sheetFormat&&(i[i.length]=Ne("sheetFormatPr",null,{defaultRowHeight:e.sheetFormat.defaultRowHeight||"16",baseColWidth:e.sheetFormat.baseColWidth||"10",outlineLevelRow:e.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(i[i.length]=ige(l,l["!cols"])),i[s=i.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(o=hge(l,e,r,t,n),o.length>0&&(i[i.length]=o)),i.length>s+1&&(i[i.length]="</sheetData>",i[s]=i[s].replace("/>",">")),l["!protect"]&&(i[i.length]=Zpe(l["!protect"])),l["!autofilter"]!=null&&(i[i.length]=sge(l["!autofilter"],l,t,r)),l["!merges"]!=null&&l["!merges"].length>0&&(i[i.length]=Kpe(l["!merges"]));var f=-1,p,g=-1;return l["!links"].length>0&&(i[i.length]="<hyperlinks>",l["!links"].forEach(function(y){y[1].Target&&(p={ref:y[0]},y[1].Target.charAt(0)!="#"&&(g=Tr(n,-1,Cr(y[1].Target).replace(/#.*$/,""),Ut.HLINK),p["r:id"]="rId"+g),(f=y[1].Target.indexOf("#"))>-1&&(p.location=Cr(y[1].Target.slice(f+1))),y[1].Tooltip&&(p.tooltip=Cr(y[1].Tooltip)),i[i.length]=Ne("hyperlink",null,p))}),i[i.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(i[i.length]=rge(l["!margins"])),(!e||e.ignoreEC||e.ignoreEC==null)&&(i[i.length]=Ri("ignoredErrors",Ne("ignoredError",null,{numberStoredAsText:1,sqref:c}))),d.length>0&&(g=Tr(n,-1,"../drawings/drawing"+(r+1)+".xml",Ut.DRAW),i[i.length]=Ne("drawing",null,{"r:id":"rId"+g}),l["!drawing"]=d),l["!comments"].length>0&&(g=Tr(n,-1,"../drawings/vmlDrawing"+(r+1)+".vml",Ut.VML),i[i.length]=Ne("legacyDrawing",null,{"r:id":"rId"+g}),l["!legacy"]=g),i.length>1&&(i[i.length]="</worksheet>",i[1]=i[1].replace("/>",">")),i.join("")}function fge(r,e){var t={},n=r.l+e;t.r=r.read_shift(4),r.l+=4;var i=r.read_shift(2);r.l+=1;var a=r.read_shift(1);return r.l=n,a&7&&(t.level=a&7),a&16&&(t.hidden=!0),a&32&&(t.hpt=i/20),t}function mge(r,e,t){var n=oe(145),i=(t["!rows"]||[])[r]||{};n.write_shift(4,r),n.write_shift(4,0);var a=320;i.hpx?a=Qy(i.hpx)*20:i.hpt&&(a=i.hpt*20),n.write_shift(2,a),n.write_shift(1,0);var s=0;i.level&&(s|=i.level),i.hidden&&(s|=16),(i.hpx||i.hpt)&&(s|=32),n.write_shift(1,s),n.write_shift(1,0);var o=0,l=n.l;n.l+=4;for(var c={r,c:0},u=0;u<16;++u)if(!(e.s.c>u+1<<10||e.e.c<u<<10)){for(var d=-1,f=-1,p=u<<10;p<u+1<<10;++p){c.c=p;var g=Array.isArray(t)?(t[c.r]||[])[c.c]:t[xt(c)];g&&(d<0&&(d=p),f=p)}d<0||(++o,n.write_shift(4,d),n.write_shift(4,f))}var y=n.l;return n.l=l,n.write_shift(4,o),n.l=y,n.length>n.l?n.slice(0,n.l):n}function pge(r,e,t,n){var i=mge(n,t,e);(i.length>17||(e["!rows"]||[])[n])&&ye(r,0,i)}var gge=Oh,yge=pp;function vge(){}function _ge(r,e){var t={},n=r[r.l];return++r.l,t.above=!(n&64),t.left=!(n&128),r.l+=18,t.name=Ice(r,e-19),t}function bge(r,e,t){t==null&&(t=oe(84+4*r.length));var n=192;e&&(e.above&&(n&=-65),e.left&&(n&=-129)),t.write_shift(1,n);for(var i=1;i<3;++i)t.write_shift(1,0);return NE({auto:1},t),t.write_shift(-4,-1),t.write_shift(-4,-1),$H(r,t),t.slice(0,t.l)}function wge(r){var e=Qs(r);return[e]}function Ige(r,e,t){return t==null&&(t=oe(8)),kh(e,t)}function xge(r){var e=Ph(r);return[e]}function Ege(r,e,t){return t==null&&(t=oe(4)),Rh(e,t)}function Tge(r){var e=Qs(r),t=r.read_shift(1);return[e,t,"b"]}function Cge(r,e,t){return t==null&&(t=oe(9)),kh(e,t),t.write_shift(1,r.v?1:0),t}function Sge(r){var e=Ph(r),t=r.read_shift(1);return[e,t,"b"]}function Dge(r,e,t){return t==null&&(t=oe(5)),Rh(e,t),t.write_shift(1,r.v?1:0),t}function Age(r){var e=Qs(r),t=r.read_shift(1);return[e,t,"e"]}function Mge(r,e,t){return t==null&&(t=oe(9)),kh(e,t),t.write_shift(1,r.v),t}function kge(r){var e=Ph(r),t=r.read_shift(1);return[e,t,"e"]}function Pge(r,e,t){return t==null&&(t=oe(8)),Rh(e,t),t.write_shift(1,r.v),t.write_shift(2,0),t.write_shift(1,0),t}function Rge(r){var e=Qs(r),t=r.read_shift(4);return[e,t,"s"]}function Oge(r,e,t){return t==null&&(t=oe(12)),kh(e,t),t.write_shift(4,e.v),t}function Fge(r){var e=Ph(r),t=r.read_shift(4);return[e,t,"s"]}function Bge(r,e,t){return t==null&&(t=oe(8)),Rh(e,t),t.write_shift(4,e.v),t}function Nge(r){var e=Qs(r),t=ta(r);return[e,t,"n"]}function Lge(r,e,t){return t==null&&(t=oe(16)),kh(e,t),Ch(r.v,t),t}function Y9(r){var e=Ph(r),t=ta(r);return[e,t,"n"]}function Vge(r,e,t){return t==null&&(t=oe(12)),Rh(e,t),Ch(r.v,t),t}function Uge(r){var e=Qs(r),t=XR(r);return[e,t,"n"]}
200function zge(r,e,t){return t==null&&(t=oe(12)),kh(e,t),GH(r.v,t),t}function jge(r){var e=Ph(r),t=XR(r);return[e,t,"n"]}function Hge(r,e,t){return t==null&&(t=oe(8)),Rh(e,t),GH(r.v,t),t}function $ge(r){var e=Qs(r),t=qR(r);return[e,t,"is"]}function Gge(r){var e=Qs(r),t=na(r);return[e,t,"str"]}function Wge(r,e,t){return t==null&&(t=oe(12+4*r.v.length)),kh(e,t),yi(r.v,t),t.length>t.l?t.slice(0,t.l):t}function qge(r){var e=Ph(r),t=na(r);return[e,t,"str"]}function Kge(r,e,t){return t==null&&(t=oe(8+4*r.v.length)),Rh(e,t),yi(r.v,t),t.length>t.l?t.slice(0,t.l):t}function Yge(r,e,t){var n=r.l+e,i=Qs(r);i.r=t["!row"];var a=r.read_shift(1),s=[i,a,"b"];if(t.cellFormula){r.l+=2;var o=JE(r,n-r.l,t);s[3]=Zi(o,null,i,t.supbooks,t)}else r.l=n;return s}function Xge(r,e,t){var n=r.l+e,i=Qs(r);i.r=t["!row"];var a=r.read_shift(1),s=[i,a,"e"];if(t.cellFormula){r.l+=2;var o=JE(r,n-r.l,t);s[3]=Zi(o,null,i,t.supbooks,t)}else r.l=n;return s}function Qge(r,e,t){var n=r.l+e,i=Qs(r);i.r=t["!row"];var a=ta(r),s=[i,a,"n"];if(t.cellFormula){r.l+=2;var o=JE(r,n-r.l,t);s[3]=Zi(o,null,i,t.supbooks,t)}else r.l=n;return s}function Jge(r,e,t){var n=r.l+e,i=Qs(r);i.r=t["!row"];var a=na(r),s=[i,a,"str"];if(t.cellFormula){r.l+=2;var o=JE(r,n-r.l,t);s[3]=Zi(o,null,i,t.supbooks,t)}else r.l=n;return s}var Zge=Oh,e0e=pp;function t0e(r,e){return e==null&&(e=oe(4)),e.write_shift(4,r),e}function r0e(r,e){var t=r.l+e,n=Oh(r,16),i=KR(r),a=na(r),s=na(r),o=na(r);r.l=t;var l={rfx:n,relId:i,loc:a,display:o};return s&&(l.Tooltip=s),l}function n0e(r,e){var t=oe(50+4*(r[1].Target.length+(r[1].Tooltip||"").length));pp({s:ln(r[0]),e:ln(r[0])},t),YR("rId"+e,t);var n=r[1].Target.indexOf("#"),i=n==-1?"":r[1].Target.slice(n+1);return yi(i||"",t),yi(r[1].Tooltip||"",t),yi("",t),t.slice(0,t.l)}function i0e(){}function a0e(r,e,t){var n=r.l+e,i=WH(r,16),a=r.read_shift(1),s=[i];if(s[2]=a,t.cellFormula){var o=Ape(r,n-r.l,t);s[1]=o}else r.l=n;return s}function s0e(r,e,t){var n=r.l+e,i=Oh(r,16),a=[i];if(t.cellFormula){var s=kpe(r,n-r.l,t);a[1]=s,r.l=n}else r.l=n;return a}function o0e(r,e,t){t==null&&(t=oe(18));var n=ZE(r,e);t.write_shift(-4,r),t.write_shift(-4,r),t.write_shift(4,(n.width||10)*256),t.write_shift(4,0);var i=0;return e.hidden&&(i|=1),typeof n.width=="number"&&(i|=2),e.level&&(i|=e.level<<8),t.write_shift(2,i),t}var X9=["left","right","top","bottom","header","footer"];function l0e(r){var e={};return X9.forEach(function(t){e[t]=ta(r,8)}),e}function c0e(r,e){return e==null&&(e=oe(48)),xh(r),X9.forEach(function(t){Ch(r[t],e)}),e}function u0e(r){var e=r.read_shift(2);return r.l+=28,{RTL:e&32}}function d0e(r,e,t){t==null&&(t=oe(30));var n=924;return(((e||{}).Views||[])[0]||{}).RTL&&(n|=32),t.write_shift(2,n),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,100),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(4,0),t}function h0e(r){var e=oe(24);return e.write_shift(4,4),e.write_shift(4,1),pp(r,e),e}function f0e(r,e){return e==null&&(e=oe(66)),e.write_shift(2,r.password?rO(r.password):0),e.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(t){t[1]?e.write_shift(4,r[t[0]]!=null&&!r[t[0]]?1:0):e.write_shift(4,r[t[0]]!=null&&r[t[0]]?0:1)}),e}function m0e(){}function p0e(){}function g0e(r,e,t,n,i,a,s){if(!r)return r;var o=e||{};n||(n={"!id":{}}),wn!=null&&o.dense==null&&(o.dense=wn);var l=o.dense?[]:{},c,u={s:{r:2e6,c:2e6},e:{r:0,c:0}},d=[],f=!1,p=!1,g,y,v,T,C,x,B,q,V,b=[];o.biff=12,o["!row"]=0;var E=0,I=!1,S=[],k={},D=o.supbooks||i.supbooks||[[]];if(D.sharedf=k,D.arrayf=S,D.SheetNames=i.SheetNames||i.Sheets.map(function(Ze){return Ze.name}),!o.supbooks&&(o.supbooks=D,i.Names))for(var R=0;R<i.Names.length;++R)D[0][R+1]=i.Names[R];var De=[],ve=[],rt=!1;Jy[16]={n:"BrtShortReal",f:Y9};var $e,vt;if(pc(r,function(le,j,K){if(!p)switch(K){case 148:c=le;break;case 0:g=le,o.sheetRows&&o.sheetRows<=g.r&&(p=!0),q=Mn(T=g.r),o["!row"]=g.r,(le.hidden||le.hpt||le.level!=null)&&(le.hpt&&(le.hpx=up(le.hpt)),ve[le.r]=le);break;
vendor: 4,714 bytes, line 200
200case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(y={t:le[2]},le[2]){case"n":y.v=le[1];break;case"s":B=Ny[le[1]],y.v=B.t,y.r=B.r;break;case"b":y.v=!!le[1];break;case"e":y.v=le[1],o.cellText!==!1&&(y.w=gc[y.v]);break;case"str":y.t="s",y.v=le[1];break;case"is":y.t="s",y.v=le[1].t;break}if((v=s.CellXf[le[0].iStyleRef])&&W9(y,v.numFmtId,null,o,a,s),C=le[0].c==-1?C+1:le[0].c,o.dense?(l[T]||(l[T]=[]),l[T][C]=y):l[on(C)+q]=y,o.cellFormula){for(I=!1,E=0;E<S.length;++E){var W=S[E];g.r>=W[0].s.r&&g.r<=W[0].e.r&&C>=W[0].s.c&&C<=W[0].e.c&&(y.F=Bt(W[0]),I=!0)}!I&&le.length>3&&(y.f=le[3])}if(u.s.r>g.r&&(u.s.r=g.r),u.s.c>C&&(u.s.c=C),u.e.r<g.r&&(u.e.r=g.r),u.e.c<C&&(u.e.c=C),o.cellDates&&v&&y.t=="n"&&dp(yt[v.numFmtId])){var H=_h(y.v);H&&(y.t="d",y.v=new Date(H.y,H.m-1,H.d,H.H,H.M,H.S,H.u))}$e&&($e.type=="XLDAPR"&&(y.D=!0),$e=void 0),vt&&(vt=void 0);break;case 1:case 12:if(!o.sheetStubs||f)break;y={t:"z",v:void 0},C=le[0].c==-1?C+1:le[0].c,o.dense?(l[T]||(l[T]=[]),l[T][C]=y):l[on(C)+q]=y,u.s.r>g.r&&(u.s.r=g.r),u.s.c>C&&(u.s.c=C),u.e.r<g.r&&(u.e.r=g.r),u.e.c<C&&(u.e.c=C),$e&&($e.type=="XLDAPR"&&(y.D=!0),$e=void 0),vt&&(vt=void 0);break;case 176:b.push(le);break;case 49:$e=((o.xlmeta||{}).Cell||[])[le-1];break;case 494:var ne=n["!id"][le.relId];for(ne?(le.Target=ne.Target,le.loc&&(le.Target+="#"+le.loc),le.Rel=ne):le.relId==""&&(le.Target="#"+le.loc),T=le.rfx.s.r;T<=le.rfx.e.r;++T)for(C=le.rfx.s.c;C<=le.rfx.e.c;++C)o.dense?(l[T]||(l[T]=[]),l[T][C]||(l[T][C]={t:"z",v:void 0}),l[T][C].l=le):(x=xt({c:C,r:T}),l[x]||(l[x]={t:"z",v:void 0}),l[x].l=le);break;case 426:if(!o.cellFormula)break;S.push(le),V=o.dense?l[T][C]:l[on(C)+q],V.f=Zi(le[1],u,{r:g.r,c:C},D,o),V.F=Bt(le[0]);break;case 427:if(!o.cellFormula)break;k[xt(le[0].s)]=le[1],V=o.dense?l[T][C]:l[on(C)+q],V.f=Zi(le[1],u,{r:g.r,c:C},D,o);break;case 60:if(!o.cellStyles)break;for(;le.e>=le.s;)De[le.e--]={width:le.w/256,hidden:!!(le.flags&1),level:le.level},rt||(rt=!0,nO(le.w/256)),Su(De[le.e+1]);break;case 161:l["!autofilter"]={ref:Bt(le)};break;case 476:l["!margins"]=le;break;case 147:i.Sheets[t]||(i.Sheets[t]={}),le.name&&(i.Sheets[t].CodeName=le.name),(le.above||le.left)&&(l["!outline"]={above:le.above,left:le.left});break;case 137:i.Views||(i.Views=[{}]),i.Views[0]||(i.Views[0]={}),le.RTL&&(i.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:f=!0;break;case 36:f=!1;break;case 37:d.push(K),f=!0;break;case 38:d.pop(),f=!1;break;default:if(!j.T){if(!f||o.WTF)throw new Error("Unexpected record 0x"+K.toString(16))}}},o),delete o.supbooks,delete o["!row"],!l["!ref"]&&(u.s.r<2e6||c&&(c.e.r>0||c.e.c>0||c.s.r>0||c.s.c>0))&&(l["!ref"]=Bt(c||u)),o.sheetRows&&l["!ref"]){var Be=hr(l["!ref"]);o.sheetRows<=+Be.e.r&&(Be.e.r=o.sheetRows-1,Be.e.r>u.e.r&&(Be.e.r=u.e.r),Be.e.r<Be.s.r&&(Be.s.r=Be.e.r),Be.e.c>u.e.c&&(Be.e.c=u.e.c),Be.e.c<Be.s.c&&(Be.s.c=Be.e.c),l["!fullref"]=l["!ref"],l["!ref"]=Bt(Be))}return b.length>0&&(l["!merges"]=b),De.length>0&&(l["!cols"]=De),ve.length>0&&(l["!rows"]=ve),l}function y0e(r,e,t,n,i,a,s){if(e.v===void 0)return!1;var o="";switch(e.t){case"b":o=e.v?"1":"0";break;case"d":e=qr(e),e.z=e.z||yt[14],e.v=ni(Wr(e.v)),e.t="n";break;case"n":case"e":o=""+e.v;break;default:o=e.v;break}var l={r:t,c:n};switch(l.s=Pu(i.cellXfs,e,i),e.l&&a["!links"].push([xt(l),e.l]),e.c&&a["!comments"].push([xt(l),e.c]),e.t){case"s":case"str":return i.bookSST?(o=lO(i.Strings,e.v,i.revStrings),l.t="s",l.v=o,s?ye(r,18,Bge(e,l)):ye(r,7,Oge(e,l))):(l.t="str",s?ye(r,17,Kge(e,l)):ye(r,6,Wge(e,l))),!0;case"n":return e.v==(e.v|0)&&e.v>-1e3&&e.v<1e3?s?ye(r,13,Hge(e,l)):ye(r,2,zge(e,l)):s?ye(r,16,Vge(e,l)):ye(r,5,Lge(e,l)),!0;case"b":return l.t="b",s?ye(r,15,Dge(e,l)):ye(r,4,Cge(e,l)),!0;case"e":return l.t="e",s?ye(r,14,Pge(e,l)):ye(r,3,Mge(e,l)),!0}return s?ye(r,12,Ege(e,l)):ye(r,1,Ige(e,l)),!0}function v0e(r,e,t,n){var i=hr(e["!ref"]||"A1"),a,s="",o=[];ye(r,145);var l=Array.isArray(e),c=i.e.r;e["!rows"]&&(c=Math.max(i.e.r,e["!rows"].length-1));for(var u=i.s.r;u<=c;++u){s=Mn(u),pge(r,e,i,u);var d=!1;if(u<=i.e.r)for(var f=i.s.c;f<=i.e.c;++f){u===i.s.r&&(o[f]=on(f)),a=o[f]+s;var p=l?(e[u]||[])[f]:e[a];if(!p){d=!1;continue}d=y0e(r,p,u,f,n,e,d)}}
200ye(r,146)}function _0e(r,e){!e||!e["!merges"]||(ye(r,177,t0e(e["!merges"].length)),e["!merges"].forEach(function(t){ye(r,176,e0e(t))}),ye(r,178))}function b0e(r,e){!e||!e["!cols"]||(ye(r,390),e["!cols"].forEach(function(t,n){t&&ye(r,60,o0e(n,t))}),ye(r,391))}function w0e(r,e){!e||!e["!ref"]||(ye(r,648),ye(r,649,h0e(hr(e["!ref"]))),ye(r,650))}function I0e(r,e,t){e["!links"].forEach(function(n){if(n[1].Target){var i=Tr(t,-1,n[1].Target.replace(/#.*$/,""),Ut.HLINK);ye(r,494,n0e(n,i))}}),delete e["!links"]}function x0e(r,e,t,n){if(e["!comments"].length>0){var i=Tr(n,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Ut.VML);ye(r,551,YR("rId"+i)),e["!legacy"]=i}}function E0e(r,e,t,n){if(e["!autofilter"]){var i=e["!autofilter"],a=typeof i.ref=="string"?i.ref:Bt(i.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var s=t.Workbook.Names,o=Ya(a);o.s.r==o.e.r&&(o.e.r=Ya(e["!ref"]).e.r,a=Bt(o));for(var l=0;l<s.length;++l){var c=s[l];if(c.Name=="_xlnm._FilterDatabase"&&c.Sheet==n){c.Ref="'"+t.SheetNames[n]+"'!"+a;break}}l==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:n,Ref:"'"+t.SheetNames[n]+"'!"+a}),ye(r,161,pp(hr(a))),ye(r,162)}}function T0e(r,e,t){ye(r,133),ye(r,137,d0e(e,t)),ye(r,138),ye(r,134)}function C0e(r,e){e["!protect"]&&ye(r,535,f0e(e["!protect"]))}function S0e(r,e,t,n){var i=Ka(),a=t.SheetNames[r],s=t.Sheets[a]||{},o=a;try{t&&t.Workbook&&(o=t.Workbook.Sheets[r].CodeName||o)}catch{}var l=hr(s["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(e.WTF)throw new Error("Range "+(s["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return s["!links"]=[],s["!comments"]=[],ye(i,129),(t.vbaraw||s["!outline"])&&ye(i,147,bge(o,s["!outline"])),ye(i,148,yge(l)),T0e(i,s,t.Workbook),b0e(i,s,r,e,t),v0e(i,s,r,e,t),C0e(i,s),E0e(i,s,t,r),_0e(i,s),I0e(i,s,n),s["!margins"]&&ye(i,476,c0e(s["!margins"])),(!e||e.ignoreEC||e.ignoreEC==null)&&w0e(i,s),x0e(i,s,r,n),ye(i,130),i.end()}function D0e(r){var e=[],t=r.match(/^<c:numCache>/),n;(r.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/mg)||[]).forEach(function(a){var s=a.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);s&&(e[+s[1]]=t?+s[2]:s[2])});var i=dr((r.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(r.match(/<c:f>(.*?)<\/c:f>/mg)||[]).forEach(function(a){n=a.replace(/<.*?>/g,"")}),[e,i,n]}function A0e(r,e,t,n,i,a){var s=a||{"!type":"chart"};if(!r)return a;var o=0,l=0,c="A",u={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(r.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(d){var f=D0e(d);u.s.r=u.s.c=0,u.e.c=o,c=on(o),f[0].forEach(function(p,g){s[c+Mn(g)]={t:"n",v:p,z:f[1]},l=g}),u.e.r<l&&(u.e.r=l),++o}),o>0&&(s["!ref"]=Bt(u)),s}function M0e(r,e,t,n,i){if(!r)return r;n||(n={"!id":{}});var a={"!type":"chart","!drawel":null,"!rel":""},s,o=r.match(q9);return o&&cO(o[0],a,i,t),(s=r.match(/drawing r:id="(.*?)"/))&&(a["!rel"]=s[1]),n["!id"][a["!rel"]]&&(a["!drawel"]=n["!id"][a["!rel"]]),a}function k0e(r,e){r.l+=10;var t=na(r,e-10);return{name:t}}function P0e(r,e,t,n,i){if(!r)return r;n||(n={"!id":{}});var a={"!type":"chart","!drawel":null,"!rel":""},s=[],o=!1;return pc(r,function(c,u,d){switch(d){case 550:a["!rel"]=c;break;case 651:i.Sheets[t]||(i.Sheets[t]={}),c.name&&(i.Sheets[t].CodeName=c.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:s.push(d);break;case 38:s.pop();break;default:if(u.T>0)s.push(d);else if(u.T<0)s.pop();else if(!o||e.WTF)throw new Error("Unexpected record 0x"+d.toString(16))}},e),n["!id"][a["!rel"]]&&(a["!drawel"]=n["!id"][a["!rel"]]),a}var uO=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],R0e=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],O0e=[],F0e=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function rH(r,e){for(var t=0;t!=r.length;++t)for(var n=r[t],i=0;i!=e.length;++i){var a=e[i];if(n[a[0]]==null)n[a[0]]=a[1];else switch(a[2]){case"bool":typeof n[a[0]]=="string"&&(n[a[0]]=Gr(n[a[0]]));break;case"int":typeof n[a[0]]=="string"&&(n[a[0]]=parseInt(n[a[0]],10));break}}}function nH(r,e){for(var t=0;t!=e.length;++t){var n=e[t];if(r[n[0]]==null)r[n[0]]=n[1];else switch(n[2]){case"bool":typeof r[n[0]]=="string"&&(r[n[0]]=Gr(r[n[0]]));break;case"int":typeof r[n[0]]=="string"&&(r[n[0]]=parseInt(r[n[0]],10));break}}}function Q9(r){nH(r.WBProps,uO),nH(r.CalcPr,F0e),rH(r.WBView,R0e),rH(r.Sheets,O0e),sp.date1904=Gr(r.WBProps.date1904)}function B0e(r){return!r.Workbook||!r.Workbook.WBProps?"false":Gr(r.Workbook.WBProps.date1904)?"true":"false"}var N0e="][*?/\\".split("");function J9(r,e){if(r.length>
20031){if(e)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var t=!0;return N0e.forEach(function(n){if(r.indexOf(n)!=-1){if(!e)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");t=!1}}),t}function L0e(r,e,t){r.forEach(function(n,i){J9(n);for(var a=0;a<i;++a)if(n==r[a])throw new Error("Duplicate Sheet Name: "+n);if(t){var s=e&&e[i]&&e[i].CodeName||n;if(s.charCodeAt(0)==95&&s.length>22)throw new Error("Bad Code Name: Worksheet"+s)}})}function V0e(r){if(!r||!r.SheetNames||!r.Sheets)throw new Error("Invalid Workbook");if(!r.SheetNames.length)throw new Error("Workbook is empty");var e=r.Workbook&&r.Workbook.Sheets||[];L0e(r.SheetNames,e,!!r.vbaraw);for(var t=0;t<r.SheetNames.length;++t)Bpe(r.Sheets[r.SheetNames[t]],r.SheetNames[t],t)}var U0e=/<\w+:workbook/;function z0e(r,e){if(!r)throw new Error("Could not find file");var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},n=!1,i="xmlns",a={},s=0;if(r.replace(aa,function(l,c){var u=Ct(l);switch(yl(u[0])){case"<?xml":break;case"<workbook":l.match(U0e)&&(i="xmlns"+l.match(/<(\w+):/)[1]),t.xmlns=u[i];break;case"</workbook>":break;case"<fileVersion":delete u[0],t.AppVersion=u;break;case"<fileVersion/>":case"</fileVersion>":break;case"<fileSharing":break;case"<fileSharing/>":break;case"<workbookPr":case"<workbookPr/>":uO.forEach(function(d){if(u[d[0]]!=null)switch(d[2]){case"bool":t.WBProps[d[0]]=Gr(u[d[0]]);break;case"int":t.WBProps[d[0]]=parseInt(u[d[0]],10);break;default:t.WBProps[d[0]]=u[d[0]]}}),u.codeName&&(t.WBProps.CodeName=kr(u.codeName));break;case"</workbookPr>":break;case"<workbookProtection":break;case"<workbookProtection/>":break;case"<bookViews":case"<bookViews>":case"</bookViews>":break;case"<workbookView":case"<workbookView/>":delete u[0],t.WBView.push(u);break;case"</workbookView>":break;case"<sheets":case"<sheets>":case"</sheets>":break;case"<sheet":switch(u.state){case"hidden":u.Hidden=1;break;case"veryHidden":u.Hidden=2;break;default:u.Hidden=0}delete u.state,u.name=dr(kr(u.name)),delete u[0],t.Sheets.push(u);break;case"</sheet>":break;case"<functionGroups":case"<functionGroups/>":break;case"<functionGroup":break;case"<externalReferences":case"</externalReferences>":case"<externalReferences>":break;case"<externalReference":break;case"<definedNames/>":break;case"<definedNames>":case"<definedNames":n=!0;break;case"</definedNames>":n=!1;break;case"<definedName":a={},a.Name=kr(u.name),u.comment&&(a.Comment=u.comment),u.localSheetId&&(a.Sheet=+u.localSheetId),Gr(u.hidden||"0")&&(a.Hidden=!0),s=c+l.length;break;case"</definedName>":a.Ref=dr(kr(r.slice(s,c))),t.Names.push(a);break;case"<definedName/>":break;case"<calcPr":delete u[0],t.CalcPr=u;break;case"<calcPr/>":delete u[0],t.CalcPr=u;break;case"</calcPr>":break;case"<oleSize":break;case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":break;case"<customWorkbookView":case"</customWorkbookView>":break;case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":break;case"<pivotCache":break;case"<smartTagPr":case"<smartTagPr/>":break;case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":break;case"<smartTagType":break;case"<webPublishing":case"<webPublishing/>":break;case"<fileRecoveryPr":case"<fileRecoveryPr/>":break;case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":break;case"<webPublishObject":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;case"<ArchID":break;case"<AlternateContent":case"<AlternateContent>":n=!0;break;case"</AlternateContent>":n=!1;break;case"<revisionPtr":break;default:if(!n&&e.WTF)throw new Error("unrecognized "+u[0]+" in workbook")}return l}),Mh.indexOf(t.xmlns)===-1)throw new Error("Unknown Namespace: "+t.xmlns);return Q9(t),t}function Z9(r){var e=[kn];e[e.length]=Ne("workbook",null,{xmlns:Mh[0],"xmlns:r":ri.r});var t=r.Workbook&&(r.Workbook.Names||[]).length>0,n={codeName:"ThisWorkbook"};r.Workbook&&r.Workbook.WBProps&&(uO.forEach(function(o){r.Workbook.WBProps[o[0]]!=null&&r.Workbook.WBProps[o[0]]!=o[1]&&(n[o[0]]=r.Workbook.WBProps[o[0]])}),r.Workbook.WBProps.CodeName&&(n.codeName=r.Workbook.WBProps.CodeName,delete n.CodeName)),e[e.length]=Ne("workbookPr",null,n);var i=r.Workbook&&r.Workbook.Sheets||[],a=0;if(i&&i[0]&&i[0].Hidden){for(e[e.length]="<bookViews>",a=0;a!=r.SheetNames.length&&!(!i[a]||!i[a].Hidden);++a);a==r.SheetNames.length&&(a=0),e[e.length]='<workbookView firstSheet="'+a+'" activeTab="'+a+'"/>',e[e.length]="</bookViews>"}for(e[e.length]="<sheets>",a=0;a!=r.SheetNames.length;++a){var s={name:Cr(r.SheetNames[a].slice(0,31))};if(s.sheetId=""+(a+1),s["r:id"]="rId"+(a+1),i[a])switch(i[a].Hidden){case 1:s.state="hidden";break;case 2:s.state="veryHidden";break}e[e.length]=Ne("sheet",null,s)}return e[e.length]="</sheets>",t&&(e[e.length]="<definedNames>
200",r.Workbook&&r.Workbook.Names&&r.Workbook.Names.forEach(function(o){var l={name:o.Name};o.Comment&&(l.comment=o.Comment),o.Sheet!=null&&(l.localSheetId=""+o.Sheet),o.Hidden&&(l.hidden="1"),o.Ref&&(e[e.length]=Ne("definedName",Cr(o.Ref),l))}),e[e.length]="</definedNames>"),e.length>2&&(e[e.length]="</workbook>",e[1]=e[1].replace("/>",">")),e.join("")}function j0e(r,e){var t={};return t.Hidden=r.read_shift(4),t.iTabID=r.read_shift(4),t.strRelID=yR(r,e-8),t.name=na(r),t}function H0e(r,e){return e||(e=oe(127)),e.write_shift(4,r.Hidden),e.write_shift(4,r.iTabID),YR(r.strRelID,e),yi(r.name.slice(0,31),e),e.length>e.l?e.slice(0,e.l):e}function $0e(r,e){var t={},n=r.read_shift(4);t.defaultThemeVersion=r.read_shift(4);var i=e>8?na(r):"";return i.length>0&&(t.CodeName=i),t.autoCompressPictures=!!(n&65536),t.backupFile=!!(n&64),t.checkCompatibility=!!(n&4096),t.date1904=!!(n&1),t.filterPrivacy=!!(n&8),t.hidePivotFieldList=!!(n&1024),t.promptedSolutions=!!(n&16),t.publishItems=!!(n&2048),t.refreshAllConnections=!!(n&262144),t.saveExternalLinkValues=!!(n&128),t.showBorderUnselectedTables=!!(n&4),t.showInkAnnotation=!!(n&32),t.showObjects=["all","placeholders","none"][n>>13&3],t.showPivotChartFilter=!!(n&32768),t.updateLinks=["userSet","never","always"][n>>8&3],t}function G0e(r,e){e||(e=oe(72));var t=0;return r&&r.filterPrivacy&&(t|=8),e.write_shift(4,t),e.write_shift(4,0),$H(r&&r.CodeName||"ThisWorkbook",e),e.slice(0,e.l)}function W0e(r,e){var t={};return r.read_shift(4),t.ArchID=r.read_shift(4),r.l+=e-8,t}function q0e(r,e,t){var n=r.l+e;r.l+=4,r.l+=1;var i=r.read_shift(4),a=xce(r),s=Mpe(r,0,t),o=KR(r);r.l=n;var l={Name:a,Ptg:s};return i<268435455&&(l.Sheet=i),o&&(l.Comment=o),l}function K0e(r,e){var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},n=[],i=!1;e||(e={}),e.biff=12;var a=[],s=[[]];return s.SheetNames=[],s.XTI=[],Jy[16]={n:"BrtFRTArchID$",f:W0e},pc(r,function(l,c,u){switch(u){case 156:s.SheetNames.push(l.name),t.Sheets.push(l);break;case 153:t.WBProps=l;break;case 39:l.Sheet!=null&&(e.SID=l.Sheet),l.Ref=Zi(l.Ptg,null,null,s,e),delete e.SID,delete l.Ptg,a.push(l);break;case 1036:break;case 357:case 358:case 355:case 667:s[0].length?s.push([u,l]):s[0]=[u,l],s[s.length-1].XTI=[];break;case 362:s.length===0&&(s[0]=[],s[0].XTI=[]),s[s.length-1].XTI=s[s.length-1].XTI.concat(l),s.XTI=s.XTI.concat(l);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:n.push(u),i=!0;break;case 36:n.pop(),i=!1;break;case 37:n.push(u),i=!0;break;case 38:n.pop(),i=!1;break;case 16:break;default:if(!c.T){if(!i||e.WTF&&n[n.length-1]!=37&&n[n.length-1]!=35)throw new Error("Unexpected record 0x"+u.toString(16))}}},e),Q9(t),t.Names=a,t.supbooks=s,t}function Y0e(r,e){ye(r,143);for(var t=0;t!=e.SheetNames.length;++t){var n=e.Workbook&&e.Workbook.Sheets&&e.Workbook.Sheets[t]&&e.Workbook.Sheets[t].Hidden||0,i={Hidden:n,iTabID:t+1,strRelID:"rId"+(t+1),name:e.SheetNames[t]};ye(r,156,H0e(i))}ye(r,144)}function X0e(r,e){e||(e=oe(127));for(var t=0;t!=4;++t)e.write_shift(4,0);return yi("SheetJS",e),yi(zy.version,e),yi(zy.version,e),yi("7262",e),e.length>e.l?e.slice(0,e.l):e}function Q0e(r,e){e||(e=oe(29)),e.write_shift(-4,0),e.write_shift(-4,460),e.write_shift(4,28800),e.write_shift(4,17600),e.write_shift(4,500),e.write_shift(4,r),e.write_shift(4,r);var t=120;return e.write_shift(1,t),e.length>e.l?e.slice(0,e.l):e}function J0e(r,e){if(!(!e.Workbook||!e.Workbook.Sheets)){for(var t=e.Workbook.Sheets,n=0,i=-1,a=-1;n<t.length;++n)!t[n]||!t[n].Hidden&&i==-1?i=n:t[n].Hidden==1&&a==-1&&(a=n);a>i||(ye(r,135),ye(r,158,Q0e(i)),ye(r,136))}}function Z0e(r,e){var t=Ka();return ye(t,131),ye(t,128,X0e()),ye(t,153,G0e(r.Workbook&&r.Workbook.WBProps||null)),J0e(t,r,e),Y0e(t,r,e),ye(t,132),t.end()}function eye(r,e,t){return e.slice(-4)===".bin"?K0e(r,t):z0e(r,t)}function tye(r,e,t,n,i,a,s,o){return e.slice(-4)===".bin"?g0e(r,n,t,i,a,s,o):qpe(r,n,t,i,a,s,o)}function rye(r,e,t,n,i,a,s,o){return e.slice(-4)===".bin"?P0e(r,n,t,i,a,s,o):M0e(r,n,t,i,a,s,o)}function nye(r,e,t,n,i,a,s,o){return e.slice(-4)===".bin"?ame(r,n,t,i,a,s,o):sme(r,n,t,i,a,s,o)}function iye(r,e,t,n,i,a,s,o){return e.slice(-4)===".bin"?nme(r,n,t,i,a,s,o):ime(r,n,t,i,a,s,o)}function aye(r,e,t,n){return e.slice(-4)===".bin"?efe(r,t,n):jhe(r,t,n)}function sye(r,e,t){return R9(r,t)}function oye(r,e,t){return e.slice(-4)===".bin"?ohe(r,t):ihe(r,t)}function lye(r,e,t){return e.slice(-4)===".bin"?Jfe(r,t):Hfe(r,t)}function cye(r,e,t){return e.slice(-4)===".bin"?Ufe(r,e,t):Lfe(r,e,t)}function uye(r,e,t,n){return t.slice(-4)===".bin"?zfe(r,e,t,n):void 0}function dye(r,e,t){return e.slice(-4)===".bin"?Ffe(r,e,t):Nfe(r,e,t)}function hye(r,e,t){return(e.slice(-4)===".bin"?Z0e:Z9)(r,t)}function fye(r,e,t,n,i){return(e.slice(-4)===".bin"?S0e:K9)(r,t,n,i)}function mye(r,e,t){return(e.slice(-4)===".bin"?ufe:k9)(r,t)}function pye(r,e,t){return(e.slice(-4)===".bin"?uhe:x9)(r,t)}function gye(r,e,t){return(e.slice(-4)===".bin"?Zfe:B9)(r,t)}function yye(r){return(r.slice(-4)===".bin"?Bfe:O9)()}var e$=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,t$=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function So(r,e){var t=r.split(/\s+/),n=[];if(e||(n[0]=t[0]),t.length===1)return n;var i=r.match(e$),a,s,o,l;if(i)for(l=0;l!=i.length;++l)a=i[l].match(t$),(s=a[1].indexOf(":"))===-1?n[a[1]]=a[2].slice(1,a[2].length-1):(a[1].slice(0,6)==="xmlns:"?o="xmlns"+a[1].slice(6):o=a[1].slice(s+1),n[o]=a[2].slice(1,a[2].length-1));return n}function vye(r){var e=r.split(/\s+/),t={};if(e.length===1)return t;var n=r.match(e$),i,a,s,o;
vendor: 5,388 bytes, lines 200-202
200if(n)for(o=0;o!=n.length;++o)i=n[o].match(t$),(a=i[1].indexOf(":"))===-1?t[i[1]]=i[2].slice(1,i[2].length-1):(i[1].slice(0,6)==="xmlns:"?s="xmlns"+i[1].slice(6):s=i[1].slice(a+1),t[s]=i[2].slice(1,i[2].length-1));return t}var Vy;function _ye(r,e){var t=Vy[r]||dr(r);return t==="General"?Eh(e):Xs(t,e)}function bye(r,e,t,n){var i=n;switch((t[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":i=Gr(n);break;case"i2":case"int":i=parseInt(n,10);break;case"r4":case"float":i=parseFloat(n);break;case"date":case"dateTime.tz":i=Wr(n);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+t[0])}r[dr(e)]=i}function wye(r,e,t){if(r.t!=="z"){if(!t||t.cellText!==!1)try{r.t==="e"?r.w=r.w||gc[r.v]:e==="General"?r.t==="n"?(r.v|0)===r.v?r.w=r.v.toString(10):r.w=Hy(r.v):r.w=Eh(r.v):r.w=_ye(e||"General",r.v)}catch(a){if(t.WTF)throw a}try{var n=Vy[e]||e||"General";if(t.cellNF&&(r.z=n),t.cellDates&&r.t=="n"&&dp(n)){var i=_h(r.v);i&&(r.t="d",r.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}catch(a){if(t.WTF)throw a}}}function Iye(r,e,t){if(t.cellStyles&&e.Interior){var n=e.Interior;n.Pattern&&(n.patternType=Ohe[n.Pattern]||n.Pattern)}r[e.ID]=e}function xye(r,e,t,n,i,a,s,o,l,c){var u="General",d=n.StyleID,f={};c=c||{};var p=[],g=0;for(d===void 0&&o&&(d=o.StyleID),d===void 0&&s&&(d=s.StyleID);a[d]!==void 0&&(a[d].nf&&(u=a[d].nf),a[d].Interior&&p.push(a[d].Interior),!!a[d].Parent);)d=a[d].Parent;switch(t.Type){case"Boolean":n.t="b",n.v=Gr(r);break;case"String":n.t="s",n.r=bj(dr(r)),n.v=r.indexOf("<")>-1?dr(e||r).replace(/<.*?>/g,""):n.r;break;case"DateTime":r.slice(-1)!="Z"&&(r+="Z"),n.v=(Wr(r)-new Date(Date.UTC(1899,11,30)))/(1440*60*1e3),n.v!==n.v?n.v=dr(r):n.v<60&&(n.v=n.v-1),(!u||u=="General")&&(u="yyyy-mm-dd");case"Number":n.v===void 0&&(n.v=+r),n.t||(n.t="n");break;case"Error":n.t="e",n.v=YH[r],c.cellText!==!1&&(n.w=r);break;default:r==""&&e==""?n.t="z":(n.t="s",n.v=bj(e||r));break}if(wye(n,u,c),c.cellFormula!==!1)if(n.Formula){var y=dr(n.Formula);y.charCodeAt(0)==61&&(y=y.slice(1)),n.f=ap(y,i),delete n.Formula,n.ArrayRange=="RC"?n.F=ap("RC:RC",i):n.ArrayRange&&(n.F=ap(n.ArrayRange,i),l.push([hr(n.F),n.F]))}else for(g=0;g<l.length;++g)i.r>=l[g][0].s.r&&i.r<=l[g][0].e.r&&i.c>=l[g][0].s.c&&i.c<=l[g][0].e.c&&(n.F=l[g][1]);c.cellStyles&&(p.forEach(function(v){!f.patternType&&v.patternType&&(f.patternType=v.patternType)}),n.s=f),n.StyleID!==void 0&&(n.ixfe=n.StyleID)}function Eye(r){r.t=r.v||"",r.t=r.t.replace(/\r\n/g,` 201`).replace(/\r/g,` 202`),r.v=r.w=r.ixfe=void 0}function uR(r,e){var t=e||{};hp();var n=My(LR(r));(t.type=="binary"||t.type=="array"||t.type=="base64")&&(typeof wr<"u"?n=wr.utils.decode(65001,pR(n)):n=kr(n));var i=n.slice(0,1024).toLowerCase(),a=!1;if(i=i.replace(/".*?"/g,""),(i.indexOf(">")&1023)>Math.min(i.indexOf(",")&1023,i.indexOf(";")&1023)){var s=qr(t);return s.type="string",cp.to_workbook(n,s)}if(i.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(nn){i.indexOf("<"+nn)>=0&&(a=!0)}),a)return cve(n,t);Vy={"General Number":"General","General Date":yt[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":yt[15],"Short Date":yt[14],"Long Time":yt[19],"Medium Time":yt[18],"Short Time":yt[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:yt[2],Standard:yt[4],Percent:yt[10],Scientific:yt[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var o,l=[],c;wn!=null&&t.dense==null&&(t.dense=wn);var u={},d=[],f=t.dense?[]:{},p="",g={},y={},v=So('<Data ss:Type="String">'),T=0,C=0,x=0,B={s:{r:2e6,c:2e6},e:{r:0,c:0}},q={},V={},b="",E=0,I=[],S={},k={},D=0,R=[],De=[],ve={},rt=[],$e,vt=!1,Be=[],Ze=[],le={},j=0,K=0,W={Sheets:[],WBProps:{date1904:!1}},H={};Wy.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"");for(var ne="";o=Wy.exec(n);)switch(o[3]=(ne=o[3]).toLowerCase()){case"data":if(ne=="data"){if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"))}else o[0].charAt(o[0].length-2)!=="/"&&l.push([o[3],!0]);break}if(l[l.length-1][1])break;o[1]==="/"?xye(n.slice(T,o.index),b,v,l[l.length-1][0]=="comment"?ve:g,{c:C,r:x},q,rt[C],y,Be,t):(b="",v=So(o[0]),T=o.index+o[0].length);break;case"cell":if(o[1]==="/")if(De.length>0&&(g.c=De),(!t.sheetRows||t.sheetRows>x)&&g.v!==void 0&&(t.dense?(f[x]||(f[x]=[]),f[x][C]=g):f[on(C)+Mn(x)]=g),g.HRef&&(g.l={Target:dr(g.HRef)},g.HRefScreenTip&&(g.l.Tooltip=g.HRefScreenTip),delete g.HRef,delete g.HRefScreenTip),(g.MergeAcross||g.MergeDown)&&(j=C+(parseInt(g.MergeAcross,10)|0),K=x+(parseInt(g.MergeDown,10)|0),I.push({s:{c:C,r:x},e:{c:j,r:K}})),!t.sheetStubs)g.MergeAcross?C=j+1:++C;else if(g.MergeAcross||g.MergeDown){for(var _e=C;_e<=j;++_e)for(var be=x;be<=K;++be)(_e>C||be>x)&&(t.dense?(f[be]||(f[be]=[]),f[be][_e]={t:"z"}):f[on(_e)+Mn(be)]={t:"z"});C=j+1}else++C;else g=vye(o[0]),g.Index&&(C=+g.Index-1),C<B.s.c&&(B.s.c=C),C>B.e.c&&(B.e.c=C),o[0].slice(-2)==="/>"&&++C,De=[];break;case"row":o[1]==="/"||o[0].slice(-2)==="/>"?(x<B.s.r&&(B.s.r=x),x>B.e.r&&(B.e.r=x),o[0].slice(-2)==="/>"&&(y=So(o[0]),y.Index&&(x=+y.Index-1)),C=0,++x):(y=So(o[0]),y.Index&&(x=+y.Index-1),le={},(y.AutoFitHeight=="0"||y.Height)&&(le.hpx=parseInt(y.Height,10),le.hpt=Qy(le.hpx),Ze[x]=le),y.Hidden=="1"&&(le.hidden=!0,Ze[x]=le));break;case"worksheet":if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"));
202d.push(p),B.s.r<=B.e.r&&B.s.c<=B.e.c&&(f["!ref"]=Bt(B),t.sheetRows&&t.sheetRows<=B.e.r&&(f["!fullref"]=f["!ref"],B.e.r=t.sheetRows-1,f["!ref"]=Bt(B))),I.length&&(f["!merges"]=I),rt.length>0&&(f["!cols"]=rt),Ze.length>0&&(f["!rows"]=Ze),u[p]=f}else B={s:{r:2e6,c:2e6},e:{r:0,c:0}},x=C=0,l.push([o[3],!1]),c=So(o[0]),p=dr(c.Name),f=t.dense?[]:{},I=[],Be=[],Ze=[],H={name:p,Hidden:0},W.Sheets.push(H);break;case"table":if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"))}else{if(o[0].slice(-2)=="/>")break;l.push([o[3],!1]),rt=[],vt=!1}break;case"style":o[1]==="/"?Iye(q,V,t):V=So(o[0]);break;case"numberformat":V.nf=dr(So(o[0]).Format||"General"),Vy[V.nf]&&(V.nf=Vy[V.nf]);for(var we=0;we!=392&&yt[we]!=V.nf;++we);if(we==392){for(we=57;we!=392;++we)if(yt[we]==null){dc(V.nf,we);break}}break;case"column":if(l[l.length-1][0]!=="table")break;if($e=So(o[0]),$e.Hidden&&($e.hidden=!0,delete $e.Hidden),$e.Width&&($e.wpx=parseInt($e.Width,10)),!vt&&$e.wpx>10){vt=!0,ea=A9;for(var ce=0;ce<rt.length;++ce)rt[ce]&&Su(rt[ce])}vt&&Su($e),rt[$e.Index-1||rt.length]=$e;for(var et=0;et<+$e.Span;++et)rt[rt.length]=qr($e);break;case"namedrange":if(o[1]==="/")break;W.Names||(W.Names=[]);
vendor: 4,494 bytes, line 202
202var N=Ct(o[0]),Et={Name:N.Name,Ref:ap(N.RefersTo.slice(1),{r:0,c:0})};W.Sheets.length>0&&(Et.Sheet=W.Sheets.length-1),W.Names.push(Et);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if(o[0].slice(-2)==="/>")break;o[1]==="/"?b+=n.slice(E,o.index):E=o.index+o[0].length;break;case"interior":if(!t.cellStyles)break;V.Interior=So(o[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if(o[0].slice(-2)==="/>")break;o[1]==="/"?Kce(S,ne,n.slice(D,o.index)):D=o.index+o[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"))}else l.push([o[3],!1]);break;case"comment":if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"));Eye(ve),De.push(ve)}else l.push([o[3],!1]),c=So(o[0]),ve={a:c.Author};break;case"autofilter":if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"))}else if(o[0].charAt(o[0].length-2)!=="/"){var gt=So(o[0]);f["!autofilter"]={ref:ap(gt.Range).replace(/\$/g,"")},l.push([o[3],!0])}break;case"name":break;case"datavalidation":if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"))}else o[0].charAt(o[0].length-2)!=="/"&&l.push([o[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if(o[1]==="/"){if((c=l.pop())[0]!==o[3])throw new Error("Bad state: "+c.join("|"))}else o[0].charAt(o[0].length-2)!=="/"&&l.push([o[3],!0]);break;case"null":break;default:if(l.length==0&&o[3]=="document"||l.length==0&&o[3]=="uof")return lH(n,t);var Jt=!0;switch(l[l.length-1][0]){case"officedocumentsettings":switch(o[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:Jt=!1}break;case"componentoptions":switch(o[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:Jt=!1}break;case"excelworkbook":switch(o[3]){case"date1904":W.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:Jt=!1}break;case"workbookoptions":switch(o[3]){case"owcversion":break;case"height":break;case"width":break;default:Jt=!1}break;case"worksheetoptions":switch(o[3]){case"visible":if(o[0].slice(-2)!=="/>")if(o[1]==="/")switch(n.slice(D,o.index)){case"SheetHidden":H.Hidden=1;break;case"SheetVeryHidden":H.Hidden=2;break}else D=o.index+o[0].length;break;case"header":f["!margins"]||xh(f["!margins"]={}
202,"xlml"),isNaN(+Ct(o[0]).Margin)||(f["!margins"].header=+Ct(o[0]).Margin);break;case"footer":f["!margins"]||xh(f["!margins"]={},"xlml"),isNaN(+Ct(o[0]).Margin)||(f["!margins"].footer=+Ct(o[0]).Margin);break;case"pagemargins":var zt=Ct(o[0]);f["!margins"]||xh(f["!margins"]={},"xlml"),isNaN(+zt.Top)||(f["!margins"].top=+zt.Top),isNaN(+zt.Left)||(f["!margins"].left=+zt.Left),isNaN(+zt.Right)||(f["!margins"].right=+zt.Right),isNaN(+zt.Bottom)||(f["!margins"].bottom=+zt.Bottom);break;case"displayrighttoleft":W.Views||(W.Views=[]),W.Views[0]||(W.Views[0]={}),W.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":f["!outline"]||(f["!outline"]={}),f["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":f["!outline"]||(f["!outline"]={}),f["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:Jt=!1}break;case"pivottable":case"pivotcache":switch(o[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:Jt=!1}break;case"pagebreaks":switch(o[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:Jt=!1}break;case"autofilter":switch(o[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:Jt=!1}break;case"querytable":switch(o[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:Jt=!1}break;case"datavalidation":switch(o[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;
202case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:Jt=!1}break;case"sorting":case"conditionalformatting":switch(o[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:Jt=!1}break;case"mapinfo":case"schema":case"data":switch(o[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:Jt=!1}break;case"smarttags":break;default:Jt=!1;break}if(Jt||o[3].match(/!\[CDATA/))break;if(!l[l.length-1][1])throw"Unrecognized tag: "+o[3]+"|"+l.join("|");if(l[l.length-1][0]==="customdocumentproperties"){if(o[0].slice(-2)==="/>")break;o[1]==="/"?bye(k,ne,R,n.slice(D,o.index)):(R=o,D=o.index+o[0].length);break}if(t.WTF)throw"Unrecognized tag: "+o[3]+"|"+l.join("|")}var We={};return!t.bookSheets&&!t.bookProps&&(We.Sheets=u),We.SheetNames=d,We.Workbook=W,We.SSF=qr(yt),We.Props=S,We.Custprops=k,We}function ER(r,e){switch(hO(e=e||{}),e.type||"base64"){case"base64":return uR(bs(r),e);case"binary":case"buffer":case"file":return uR(r,e);case"array":return uR(Mu(r),e)}}function Tye(r,e){var t=[];return r.Props&&t.push(Yce(r.Props,e)),r.Custprops&&t.push(Xce(r.Props,r.Custprops,e)),t.join("")}function Cye(){return""}function Sye(r,e){var t=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return e.cellXfs.forEach(function(n,i){var a=[];a.push(Ne("NumberFormat",null,{"ss:Format":Cr(yt[n.numFmtId])}));var s={"ss:ID":"s"+(21+i)};t.push(Ne("Style",a.join(""),s))}),Ne("Styles",t.join(""))}function r$(r){return Ne("NamedRange",null,{"ss:Name":r.Name,"ss:RefersTo":"="+sO(r.Ref,{r:0,c:0})})}function Dye(r){if(!((r||{}).Workbook||{}).Names)return"";for(var e=r.Workbook.Names,t=[],n=0;n<e.length;++n){var i=e[n];i.Sheet==null&&(i.Name.match(/^_xlfn\./)||t.push(r$(i)))}return Ne("Names",t.join(""))}function Aye(r,e,t,n){if(!r||!((n||{}).Workbook||{}).Names)return"";for(var i=n.Workbook.Names,a=[],s=0;s<i.length;++s){var o=i[s];o.Sheet==t&&(o.Name.match(/^_xlfn\./)||a.push(r$(o)))}return a.join("")}function Mye(r,e,t,n){if(!r)return"";var i=[];if(r["!margins"]&&(i.push("<PageSetup>"),r["!margins"].header&&i.push(Ne("Header",null,{"x:Margin":r["!margins"].header})),r["!margins"].footer&&i.push(Ne("Footer",null,{"x:Margin":r["!margins"].footer})),i.push(Ne("PageMargins",null,{"x:Bottom":r["!margins"].bottom||"0.75","x:Left":r["!margins"].left||"0.7","x:Right":r["!margins"].right||"0.7","x:Top":r["!margins"].top||"0.75"})),i.push("</PageSetup>")),n&&n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[t])if(n.Workbook.Sheets[t].Hidden)i.push(Ne("Visible",n.Workbook.Sheets[t].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var a=0;a<t&&!(n.Workbook.Sheets[a]&&!n.Workbook.Sheets[a].Hidden);++a);a==t&&i.push("<Selected/>")}return((((n||{}).Workbook||{}).Views||[])[0]||{}).RTL&&i.push("<DisplayRightToLeft/>"),r["!protect"]&&(i.push(Ri("ProtectContents","True")),r["!protect"].objects&&i.push(Ri("ProtectObjects","True")),r["!protect"].scenarios&&i.push(Ri("ProtectScenarios","True")),r["!protect"].selectLockedCells!=null&&!r["!protect"].selectLockedCells?i.push(Ri("EnableSelection","NoSelection")):r["!protect"].selectUnlockedCells!=null&&!r["!protect"].selectUnlockedCells&&i.push(Ri("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEac
vendor: 2,663 bytes, line 202
202h(function(s){r["!protect"][s[0]]&&i.push("<"+s[1]+"/>")})),i.length==0?"":Ne("WorksheetOptions",i.join(""),{xmlns:ys.x})}function kye(r){return r.map(function(e){var t=Qle(e.t||""),n=Ne("ss:Data",t,{xmlns:"http://www.w3.org/TR/REC-html40"});return Ne("Comment",n,{"ss:Author":e.a})}).join("")}function Pye(r,e,t,n,i,a,s){if(!r||r.v==null&&r.f==null)return"";var o={};if(r.f&&(o["ss:Formula"]="="+Cr(sO(r.f,s))),r.F&&r.F.slice(0,e.length)==e){var l=ln(r.F.slice(e.length+1));o["ss:ArrayRange"]="RC:R"+(l.r==s.r?"":"["+(l.r-s.r)+"]")+"C"+(l.c==s.c?"":"["+(l.c-s.c)+"]")}if(r.l&&r.l.Target&&(o["ss:HRef"]=Cr(r.l.Target),r.l.Tooltip&&(o["x:HRefScreenTip"]=Cr(r.l.Tooltip))),t["!merges"])for(var c=t["!merges"],u=0;u!=c.length;++u)c[u].s.c!=s.c||c[u].s.r!=s.r||(c[u].e.c>c[u].s.c&&(o["ss:MergeAcross"]=c[u].e.c-c[u].s.c),c[u].e.r>c[u].s.r&&(o["ss:MergeDown"]=c[u].e.r-c[u].s.r));var d="",f="";switch(r.t){case"z":if(!n.sheetStubs)return"";break;case"n":d="Number",f=String(r.v);break;case"b":d="Boolean",f=r.v?"1":"0";break;case"e":d="Error",f=gc[r.v];break;case"d":d="DateTime",f=new Date(r.v).toISOString(),r.z==null&&(r.z=r.z||yt[14]);break;case"s":d="String",f=Xle(r.v||"");break}var p=Pu(n.cellXfs,r,n);o["ss:StyleID"]="s"+(21+p),o["ss:Index"]=s.c+1;var g=r.v!=null?f:"",y=r.t=="z"?"":'<Data ss:Type="'+d+'">'+g+"</Data>";return(r.c||[]).length>0&&(y+=kye(r.c)),Ne("Cell",y,o)}function Rye(r,e){var t='<Row ss:Index="'+(r+1)+'"';return e&&(e.hpt&&!e.hpx&&(e.hpx=up(e.hpt)),e.hpx&&(t+=' ss:AutoFitHeight="0" ss:Height="'+e.hpx+'"'),e.hidden&&(t+=' ss:Hidden="1"')),t+">"}function Oye(r,e,t,n){if(!r["!ref"])return"";var i=hr(r["!ref"]),a=r["!merges"]||[],s=0,o=[];r["!cols"]&&r["!cols"].forEach(function(v,T){Su(v);var C=!!v.width,x=ZE(T,v),B={"ss:Index":T+1};C&&(B["ss:Width"]=Yy(x.width)),v.hidden&&(B["ss:Hidden"]="1"),o.push(Ne("Column",null,B))});for(var l=Array.isArray(r),c=i.s.r;c<=i.e.r;++c){for(var u=[Rye(c,(r["!rows"]||[])[c])],d=i.s.c;d<=i.e.c;++d){var f=!1;for(s=0;s!=a.length;++s)if(!(a[s].s.c>d)&&!(a[s].s.r>c)&&!(a[s].e.c<d)&&!(a[s].e.r<c)){(a[s].s.c!=d||a[s].s.r!=c)&&(f=!0);break}if(!f){var p={r:c,c:d},g=xt(p),y=l?(r[c]||[])[d]:r[g];u.push(Pye(y,g,r,e,t,n,p))}}u.push("</Row>"),u.length>2&&o.push(u.join(""))}return o.join("")}function Fye(r,e,t){var n=[],i=t.SheetNames[r],a=t.Sheets[i],s=a?Aye(a,e,r,t):"";return s.length>0&&n.push("<Names>"+s+"</Names>"),s=a?Oye(a,e,r,t):"",s.length>0&&n.push("<Table>"+s+"</Table>"),n.push(Mye(a,e,r,t)),n.join("")}function Bye(r,e){e||(e={}),r.SSF||(r.SSF=qr(yt)),r.SSF&&(hp(),GE(r.SSF),e.revssf=qE(r.SSF),e.revssf[r.SSF[65535]]=0,e.ssf=r.SSF,e.cellXfs=[],Pu(e.cellXfs,{},{revssf:{General:0}}));var t=[];
vendor: 4,345 bytes, line 202
202t.push(Tye(r,e)),t.push(Cye(r,e)),t.push(""),t.push("");for(var n=0;n<r.SheetNames.length;++n)t.push(Ne("Worksheet",Fye(n,e,r),{"ss:Name":Cr(r.SheetNames[n])}));return t[2]=Sye(r,e),t[3]=Dye(r,e),kn+Ne("Workbook",t.join(""),{xmlns:ys.ss,"xmlns:o":ys.o,"xmlns:x":ys.x,"xmlns:ss":ys.ss,"xmlns:dt":ys.dt,"xmlns:html":ys.html})}function Nye(r){var e={},t=r.content;if(t.l=28,e.AnsiUserType=t.read_shift(0,"lpstr-ansi"),e.AnsiClipboardFormat=Dce(t),t.length-t.l<=4)return e;var n=t.read_shift(4);if(n==0||n>40||(t.l-=4,e.Reserved1=t.read_shift(0,"lpstr-ansi"),t.length-t.l<=4)||(n=t.read_shift(4),n!==1907505652)||(e.UnicodeClipboardFormat=Ace(t),n=t.read_shift(4),n==0||n>40))return e;t.l-=4,e.Reserved2=t.read_shift(0,"lpwstr")}var Lye=[60,1084,2066,2165,2175];function Vye(r,e,t,n,i){var a=n,s=[],o=t.slice(t.l,t.l+a);if(i&&i.enc&&i.enc.insitu&&o.length>0)switch(r){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:i.enc.insitu(o)}s.push(o),t.l+=a;for(var l=cc(t,t.l),c=TR[l],u=0;c!=null&&Lye.indexOf(l)>-1;)a=cc(t,t.l+2),u=t.l+4,l==2066?u+=4:(l==2165||l==2175)&&(u+=12),o=t.slice(u,t.l+4+a),s.push(o),t.l+=4+a,c=TR[l=cc(t,t.l)];var d=gi(s);Pi(d,0);var f=0;d.lens=[];for(var p=0;p<s.length;++p)d.lens.push(f),f+=s[p].length;if(d.length<n)throw"XLS Record 0x"+r.toString(16)+" Truncated: "+d.length+" < "+n;return e.f(d,d.length,i)}function hl(r,e,t){if(r.t!=="z"&&r.XF){var n=0;try{n=r.z||r.XF.numFmtId||0,e.cellNF&&(r.z=yt[n])}catch(a){if(e.WTF)throw a}if(!e||e.cellText!==!1)try{r.t==="e"?r.w=r.w||gc[r.v]:n===0||n=="General"?r.t==="n"?(r.v|0)===r.v?r.w=r.v.toString(10):r.w=Hy(r.v):r.w=Eh(r.v):r.w=Xs(n,r.v,{date1904:!!t,dateNF:e&&e.dateNF})}catch(a){if(e.WTF)throw a}if(e.cellDates&&n&&r.t=="n"&&dp(yt[n]||String(n))){var i=_h(r.v);i&&(r.t="d",r.v=new Date(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u))}}}function AE(r,e,t){return{v:r,ixfe:e,t}}function Uye(r,e){var t={opts:{}},n={};wn!=null&&e.dense==null&&(e.dense=wn);var i=e.dense?[]:{},a={},s={},o=null,l=[],c="",u={},d,f="",p,g,y,v,T={},C=[],x,B,q=[],V=[],b={Sheets:[],WBProps:{date1904:!1},Views:[{}]},E={},I=function(Nt){return Nt<8?bh[Nt]:Nt<64&&V[Nt-8]||bh[Nt]},S=function(Nt,Kr,Da){var zr=Kr.XF.data;if(!(!zr||!zr.patternType||!Da||!Da.cellStyles)){Kr.s={},Kr.s.patternType=zr.patternType;var Ro;(Ro=Ky(I(zr.icvFore)))&&(Kr.s.fgColor={rgb:Ro}),(Ro=Ky(I(zr.icvBack)))&&(Kr.s.bgColor={rgb:Ro})}},k=function(Nt,Kr,Da){if(!(le>1)&&!(Da.sheetRows&&Nt.r>=Da.sheetRows)){if(Da.cellStyles&&Kr.XF&&Kr.XF.data&&S(Nt,Kr,Da),delete Kr.ixfe,delete Kr.XF,d=Nt,f=xt(Nt),(!s||!s.s||!s.e)&&(s={s:{r:0,c:0},e:{r:0,c:0}}),Nt.r<s.s.r&&(s.s.r=Nt.r),Nt.c<s.s.c&&(s.s.c=Nt.c),Nt.r+1>s.e.r&&(s.e.r=Nt.r+1),Nt.c+1>s.e.c&&(s.e.c=Nt.c+1),Da.cellFormula&&Kr.f){for(var zr=0;zr<C.length;++zr)if(!(C[zr][0].s.c>Nt.c||C[zr][0].s.r>Nt.r)&&!(C[zr][0].e.c<Nt.c||C[zr][0].e.r<Nt.r)){Kr.F=Bt(C[zr][0]),(C[zr][0].s.c!=Nt.c||C[zr][0].s.r!=Nt.r)&&delete Kr.f,Kr.f&&(Kr.f=""+Zi(C[zr][1],s,Nt,Be,D));break}}Da.dense?(i[Nt.r]||(i[Nt.r]=[]),i[Nt.r][Nt.c]=Kr):i[f]=Kr}},D={enc:!1,sbcch:0,snames:[],sharedf:T,arrayf:C,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!e&&!!e.cellStyles,WTF:!!e&&!!e.wtf};e.password&&(D.password=e.password);var R,De=[],ve=[],rt=[],$e=[],vt=!1,Be=[];Be.SheetNames=D.snames,Be.sharedf=D.sharedf,Be.arrayf=D.arrayf,Be.names=[],Be.XTI=[];var Ze=0,le=0,j=0,K=[],W=[],H;D.codepage=1200,Do(1200);for(var ne=!1;r.l<r.length-1;){var _e=r.l,be=r.read_shift(2);if(be===0&&Ze===10)break;var we=r.l===r.length?0:r.read_shift(2),ce=TR[be];if(ce&&ce.f){if(e.bookSheets&&Ze===133&&be!==133)break;if(Ze=be,ce.r===2||ce.r==12){var et=r.read_shift(2);if(we-=2,!D.enc&&et!==be&&((et&255)<<8|et>>8)!==be)throw new Error("rt mismatch: "+et+"!="+be);ce.r==12&&(r.l+=10,we-=10)}var N={};if(be===10?N=ce.f(r,we,D):N=Vye(be,ce,r,we,D),le==0&&[9,521,1033,2057].indexOf(Ze)===-1)continue;switch(be){case 34:t.opts.Date1904=b.WBProps.date1904=N;break;case 134:t.opts.WriteProtect=!0;break;case 47:if(D.enc||(r.l=0),D.enc=N,!e.password)throw new Error("File is password-protected");if(N.valid==null)throw new Error("Encryption scheme unsupported");if(!N.valid)throw new Error("Password is incorrect");break;case 92:D.lastuser=N;break;case 66:var Et=Number(N);switch(Et){case 21010:Et=1200;break;case 32768:Et=1e4;break;case 32769:Et=1252;break}
vendor: 4,149 bytes, line 202
202Do(D.codepage=Et),ne=!0;break;case 317:D.rrtabid=N;break;case 25:D.winlocked=N;break;case 439:t.opts.RefreshAll=N;break;case 12:t.opts.CalcCount=N;break;case 16:t.opts.CalcDelta=N;break;case 17:t.opts.CalcIter=N;break;case 13:t.opts.CalcMode=N;break;case 14:t.opts.CalcPrecision=N;break;case 95:t.opts.CalcSaveRecalc=N;break;case 15:D.CalcRefMode=N;break;case 2211:t.opts.FullCalc=N;break;case 129:N.fDialog&&(i["!type"]="dialog"),N.fBelow||((i["!outline"]||(i["!outline"]={})).above=!0),N.fRight||((i["!outline"]||(i["!outline"]={})).left=!0);break;case 224:q.push(N);break;case 430:Be.push([N]),Be[Be.length-1].XTI=[];break;case 35:case 547:Be[Be.length-1].push(N);break;case 24:case 536:H={Name:N.Name,Ref:Zi(N.rgce,s,null,Be,D)},N.itab>0&&(H.Sheet=N.itab-1),Be.names.push(H),Be[0]||(Be[0]=[],Be[0].XTI=[]),Be[Be.length-1].push(N),N.Name=="_xlnm._FilterDatabase"&&N.itab>0&&N.rgce&&N.rgce[0]&&N.rgce[0][0]&&N.rgce[0][0][0]=="PtgArea3d"&&(W[N.itab-1]={ref:Bt(N.rgce[0][0][1][2])});break;case 22:D.ExternCount=N;break;case 23:Be.length==0&&(Be[0]=[],Be[0].XTI=[]),Be[Be.length-1].XTI=Be[Be.length-1].XTI.concat(N),Be.XTI=Be.XTI.concat(N);break;case 2196:if(D.biff<8)break;H!=null&&(H.Comment=N[1]);break;case 18:i["!protect"]=N;break;case 19:N!==0&&D.WTF&&console.error("Password verifier: "+N);break;case 133:a[N.pos]=N,D.snames.push(N.name);break;case 10:{if(--le)break;if(s.e){if(s.e.r>0&&s.e.c>0){if(s.e.r--,s.e.c--,i["!ref"]=Bt(s),e.sheetRows&&e.sheetRows<=s.e.r){var gt=s.e.r;s.e.r=e.sheetRows-1,i["!fullref"]=i["!ref"],i["!ref"]=Bt(s),s.e.r=gt}s.e.r++,s.e.c++}De.length>0&&(i["!merges"]=De),ve.length>0&&(i["!objects"]=ve),rt.length>0&&(i["!cols"]=rt),$e.length>0&&(i["!rows"]=$e),b.Sheets.push(E)}c===""?u=i:n[c]=i,i=e.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(D.biff===8&&(D.biff={9:2,521:3,1033:4}[be]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[N.BIFFVer]||8),D.biffguess=N.BIFFVer==0,N.BIFFVer==0&&N.dt==4096&&(D.biff=5,ne=!0,Do(D.codepage=28591)),D.biff==8&&N.BIFFVer==0&&N.dt==16&&(D.biff=2),le++)break;if(i=e.dense?[]:{},D.biff<8&&!ne&&(ne=!0,Do(D.codepage=e.codepage||1252)),D.biff<5||N.BIFFVer==0&&N.dt==4096){c===""&&(c="Sheet1"),s={s:{r:0,c:0},e:{r:0,c:0}};var Jt={pos:r.l-we,name:c};a[Jt.pos]=Jt,D.snames.push(c)}else c=(a[_e]||{name:""}).name;N.dt==32&&(i["!type"]="chart"),N.dt==64&&(i["!type"]="macro"),De=[],ve=[],D.arrayf=C=[],rt=[],$e=[],vt=!1,E={Hidden:(a[_e]||{hs:0}).hs,name:c}}break;case 515:case 3:case 2:i["!type"]=="chart"&&(e.dense?(i[N.r]||[])[N.c]:i[xt({c:N.c,r:N.r})])&&++N.c,x={ixfe:N.ixfe,XF:q[N.ixfe]||{},v:N.val,t:"n"},j>0&&(x.z=K[x.ixfe>>8&63]),hl(x,e,t.opts.Date1904),k({c:N.c,r:N.r},x,e);break;case 5:case 517:x={ixfe:N.ixfe,XF:q[N.ixfe],v:N.val,t:N.t},j>0&&(x.z=K[x.ixfe>>8&63]),hl(x,e,t.opts.Date1904),k({c:N.c,r:N.r},x,e);break;case 638:x={ixfe:N.ixfe,XF:q[N.ixfe],v:N.rknum,t:"n"},j>0&&(x.z=K[x.ixfe>>8&63]),hl(x,e,t.opts.Date1904),k({c:N.c,r:N.r},x,e);break;case 189:for(var zt=N.c;zt<=N.C;++zt){var We=N.rkrec[zt-N.c][0];x={ixfe:We,XF:q[We],v:N.rkrec[zt-N.c][1],t:"n"},j>0&&(x.z=K[x.ixfe>>8&63]),hl(x,e,t.opts.Date1904),k({c:zt,r:N.r},x,e)}break;case 6:case 518:case 1030:{if(N.val=="String"){o=N;break}if(x=AE(N.val,N.cell.ixfe,N.tt),x.XF=q[x.ixfe],e.cellFormula){var nn=N.formula;if(nn&&nn[0]&&nn[0][0]&&nn[0][0][0]=="PtgExp"){var sa=nn[0][0][1][0],Xa=nn[0][0][1][1],Qa=xt({r:sa,c:Xa});T[Qa]?x.f=""+Zi(N.formula,s,N.cell,Be,D):x.F=((e.dense?(i[sa]||[])[Xa]:i[Qa])||{}).F}else x.f=""+Zi(N.formula,s,N.cell,Be,D)}j>0&&(x.z=K[x.ixfe>>8&63]),hl(x,e,t.opts.Date1904),k(N.cell,x,e),o=N}break;case 7:case 519:if(o)o.val=N,x=AE(N,o.cell.ixfe,"s"),x.XF=q[x.ixfe],e.cellFormula&&(x.f=""+Zi(o.formula,s,o.cell,Be,D)),j>0&&(x.z=K[x.ixfe>>8&63]),hl(x,e,t.opts.Date1904),k(o.cell,x,e),o=null;else throw new Error("String record expects Formula");break;case 33:case 545:{C.push(N);var _c=xt(N[0].s);if(p=e.dense?(i[N[0].s.r]||[])[N[0].s.c]:i[_c],e.cellFormula&&p){if(!o||!_c||!p)break;p.f=""+Zi(N[1],s,N[0],Be,D),p.F=Bt(N[0])}}break;case 1212:{if(!e.cellFormula)break;if(f){if(!o)break;T[xt(o.cell)]=N[0],p=e.dense?(i[o.cell.r]||[])[o.cell.c]:i[xt(o.cell)],(p||{}).f=""+Zi(N[0],s,d,Be,D)}}break;
202case 253:x=AE(l[N.isst].t,N.ixfe,"s"),l[N.isst].h&&(x.h=l[N.isst].h),x.XF=q[x.ixfe],j>0&&(x.z=K[x.ixfe>>8&63]),hl(x,e,t.opts.Date1904),k({c:N.c,r:N.r},x,e);break;case 513:e.sheetStubs&&(x={ixfe:N.ixfe,XF:q[N.ixfe],t:"z"},j>0&&(x.z=K[x.ixfe>>8&63]),hl(x,e,t.opts.Date1904),k({c:N.c,r:N.r},x,e));break;case 190:if(e.sheetStubs)for(var Po=N.c;Po<=N.C;++Po){var _i=N.ixfe[Po-N.c];x={ixfe:_i,XF:q[_i],t:"z"},j>0&&(x.z=K[x.ixfe>>8&63]),hl(x,e,t.opts.Date1904),k({c:Po,r:N.r},x,e)}break;case 214:case 516:case 4:x=AE(N.val,N.ixfe,"s"),x.XF=q[x.ixfe],j>0&&(x.z=K[x.ixfe>>8&63]),hl(x,e,t.opts.Date1904),k({c:N.c,r:N.r},x,e);break;case 0:case 512:le===1&&(s=N);break;case 252:l=N;break;case 1054:if(D.biff==4){K[j++]=N[1];for(var Ja=0;Ja<j+163&&yt[Ja]!=N[1];++Ja);Ja>=163&&dc(N[1],j+163)}else dc(N[1],N[0]);break;case 30:{K[j++]=N;for(var Is=0;Is<j+163&&yt[Is]!=N;++Is);Is>=163&&dc(N,j+163)}break;case 229:De=De.concat(N);break;case 93:ve[N.cmo[0]]=D.lastobj=N;break;case 438:D.lastobj.TxO=N;break;case 127:D.lastobj.ImData=N;break;case 440:for(v=N[0].s.r;v<=N[0].e.r;++v)for(y=N[0].s.c;y<=N[0].e.c;++y)p=e.dense?(i[v]||[])[y]:i[xt({c:y,r:v})],p&&(p.l=N[1]);break;case 2048:for(v=N[0].s.r;v<=N[0].e.r;++v)for(y=N[0].s.c;y<=N[0].e.c;++y)p=e.dense?(i[v]||[])[y]:i[xt({c:y,r:v})],p&&p.l&&(p.l.Tooltip=N[1]);break;case 28:{if(D.biff<=5&&D.biff>=2)break;p=e.dense?(i[N[0].r]||[])[N[0].c]:i[xt(N[0])];var cn=ve[N[2]];p||(e.dense?(i[N[0].r]||(i[N[0].r]=[]),p=i[N[0].r][N[0].c]={t:"z"}):p=i[xt(N[0])]={t:"z"},s.e.r=Math.max(s.e.r,N[0].r),s.s.r=Math.min(s.s.r,N[0].r),s.e.c=Math.max(s.e.c,N[0].c),s.s.c=Math.min(s.s.c,N[0].c)),p.c||(p.c=[]),g={a:N[1],t:cn.TxO.t},p.c.push(g)}break;case 2173:Sfe(q[N.ixfe],N.ext);break;case 125:{if(!D.cellStyles)break;for(;N.e>=N.s;)rt[N.e--]={width:N.w/256,level:N.level||0,hidden:!!(N.flags&1)},vt||(vt=!0,nO(N.w/256)),Su(rt[N.e+1])}break;case 520:{var pr={};N.level!=null&&($e[N.r]=pr,pr.level=N.level),N.hidden&&($e[N.r]=pr,pr.hidden=!0),N.hpt&&($e[N.r]=pr,pr.hpt=N.hpt,pr.hpx=up(N.hpt))}break;case 38:case 39:case 40:case 41:i["!margins"]||xh(i["!margins"]={}),i["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[be]]=N;break;case 161:i["!margins"]||xh(i["!margins"]={}),i["!margins"].header=N.header,i["!margins"].footer=N.footer;break;case 574:N.RTL&&(b.Views[0].RTL=!0);break;case 146:V=N;break;case 2198:R=N;break;case 140:B=N;break;case 442:c?E.CodeName=N||E.name:b.WBProps.CodeName=N||"ThisWorkbook";break}}else ce||console.error("Missing Info for XLS Record 0x"+be.toString(16)),r.l+=we}return t.SheetNames=In(a).sort(function(oa,Nt){return Number(oa)-Number(Nt)}).map(function(oa){return a[oa].name}),e.bookSheets||(t.Sheets=n),!t.SheetNames.length&&u["!ref"]?(t.SheetNames.push("Sheet1"),t.Sheets&&(t.Sheets.Sheet1=u)):t.Preamble=u,t.Sheets&&W.forEach(function(oa,Nt){t.Sheets[t.SheetNames[Nt]]["!autofilter"]=oa}),t.Strings=l,t.SSF=qr(yt),D.enc&&(t.Encryption=D.enc),R&&(t.Themes=R),t.Metadata={},B!==void 0&&(t.Metadata.Country=B),Be.names.length>0&&(b.Names=Be.names),t.Workbook=b,t}var Uy={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function zye(r,e,t){var n=ct.find(r,"/!DocumentSummaryInformation");if(n&&n.size>0)try{var i=Lj(n,vR,Uy.DSI);for(var a in i)e[a]=i[a]}catch(c){if(t.WTF)throw c}var s=ct.find(r,"/!SummaryInformation");if(s&&s.size>0)try{var o=Lj(s,_R,Uy.SI);for(var l in o)e[l]==null&&(e[l]=o[l])}catch(c){if(t.WTF)throw c}e.HeadingPairs&&e.TitlesOfParts&&(t9(e.HeadingPairs,e.TitlesOfParts,e,t),delete e.HeadingPairs,delete e.TitlesOfParts)}function jye(r,e){var t=[],n=[],i=[],a=0,s,o=mj(vR,"n"),l=mj(_R,"n");if(r.Props)for(s=In(r.Props),a=0;a<s.length;++a)(Object.prototype.hasOwnProperty.call(o,s[a])?t:Object.prototype.hasOwnProperty.call(l,s[a])?n:i).push([s[a],r.Props[s[a]]]);if(r.Custprops)for(s=In(r.Custprops),a=0;a<s.length;++a)Object.prototype.hasOwnProperty.call(r.Props||{},s[a])||(Object.prototype.hasOwnProperty.call(o,s[a])?t:Object.prototype.hasOwnProperty.call(l,s[a])?n:i).push([s[a],r.Custprops[s[a]]]);var c=[];for(a=0;a<i.length;++a)l9.indexOf(i[a][0])>-1||e9.indexOf(i[a][0])>-1||i[a][1]!=null&&c.push(i[a]);n.length&&ct.utils.cfb_add(e,"/�SummaryInformation",Vj(n,Uy.SI,l,_R)),(t.length||c.length)&&ct.utils.cfb_add(e,"/�DocumentSummaryInformation",Vj(t,Uy.DSI,o,vR,c.length?c:null,Uy.UDI))}function n$(r,e){e||(e={}
202),hO(e),AR(),e.codepage&&DR(e.codepage);var t,n;if(r.FullPaths){if(ct.find(r,"/encryption"))throw new Error("File is password-protected");t=ct.find(r,"!CompObj"),n=ct.find(r,"/Workbook")||ct.find(r,"/Book")}else{switch(e.type){case"base64":r=vs(bs(r));break;case"binary":r=vs(r);break;case"buffer":break;case"array":Array.isArray(r)||(r=Array.prototype.slice.call(r));break}Pi(r,0),n={content:r}}var i,a;if(t&&Nye(t),e.bookProps&&!e.bookSheets)i={};else{var s=Kt?"buffer":"array";if(n&&n.content)i=Uye(n.content,e);else if((a=ct.find(r,"PerfectOffice_MAIN"))&&a.content)i=Ih.to_workbook(a.content,(e.type=s,e));else if((a=ct.find(r,"NativeContent_MAIN"))&&a.content)i=Ih.to_workbook(a.content,(e.type=s,e));else throw(a=ct.find(r,"MN0"))&&a.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");e.bookVBA&&r.FullPaths&&ct.find(r,"/_VBA_PROJECT_CUR/VBA/dir")&&(i.vbaraw=tme(r))}var o={};return r.FullPaths&&zye(r,o,e),i.Props=i.Custprops=o,e.bookFiles&&(i.cfb=r),i}function Hye(r,e){var t=e||{},n=ct.utils.cfb_new({root:"R"}),i="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"xla":t.bookType||(t.bookType="xla");case"biff8":i="/Workbook",t.biff=8;break;case"biff5":i="/Book",t.biff=5;break;default:throw new Error("invalid type "+t.bookType+" for XLS CFB")}return ct.utils.cfb_add(n,i,i$(r,t)),t.biff==8&&(r.Props||r.Custprops)&&jye(r,n),t.biff==8&&r.vbaraw&&rme(n,ct.read(r.vbaraw,{type:typeof r.vbaraw=="string"?"binary":"buffer"})),n}var Jy={0:{f:fge},1:{f:wge},2:{f:Uge},3:{f:Age},4:{f:Tge},5:{f:Nge},6:{f:Gge},7:{f:Rge},8:{f:Jge},9:{f:Qge},10:{f:Yge},11:{f:Xge},12:{f:xge},13:{f:jge},14:{f:kge},15:{f:Sge},16:{f:Y9},17:{f:qge},18:{f:Fge},19:{f:qR},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:q0e},40:{},42:{},43:{f:Ghe},44:{f:Hhe},45:{f:Khe},46:{f:Xhe},47:{f:Yhe},48:{},49:{f:gce},50:{},51:{f:Mfe},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:_9},62:{f:$ge},63:{f:Vfe},64:{f:m0e},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:ia,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:u0e},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:_ge},148:{f:gge,p:16},151:{f:i0e},152:{},153:{f:$0e},154:{},155:{},156:{f:j0e},157:{},158:{},159:{T:1,f:she},160:{T:-1},161:{T:1,f:Oh},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:Zge},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1}
vendor: 5,984 bytes, line 202
202,322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:Dfe},336:{T:-1},337:{f:Rfe,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:yR},357:{},358:{},359:{},360:{T:1},361:{},362:{f:v9},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:a0e},427:{f:s0e},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:l0e},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:vge},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:r0e},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:yR},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:Xfe},633:{T:1},634:{T:-1},635:{T:1,f:Kfe},636:{T:-1},637:{f:bce},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:k0e},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:p0e},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},TR={6:{f:lR},10:{f:xu},12:{f:Kn}
202,13:{f:Kn},14:{f:An},15:{f:An},16:{f:ta},17:{f:An},18:{f:An},19:{f:Kn},20:{f:Gj},21:{f:Gj},23:{f:v9},24:{f:qj},25:{f:An},26:{},27:{},28:{f:pde},29:{},34:{f:An},35:{f:Wj},38:{f:ta},39:{f:ta},40:{f:ta},41:{f:ta},42:{f:An},43:{f:An},47:{f:She},49:{f:jue},51:{f:Kn},60:{},61:{f:Nue},64:{f:An},65:{f:zue},66:{f:Kn},77:{},80:{},81:{},82:{},85:{f:Kn},89:{},90:{},91:{},92:{f:Cue},93:{f:vde},94:{},95:{f:An},96:{},97:{},99:{f:An},125:{f:_9},128:{f:nde},129:{f:Due},130:{f:Kn},131:{f:An},132:{f:An},133:{f:Aue},134:{},140:{f:Cde},141:{f:Kn},144:{},146:{f:Ade},151:{},152:{},153:{},154:{},155:{},156:{f:Kn},157:{},158:{},160:{f:Bde},161:{f:Pde},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:Zue},190:{f:ede},193:{f:xu},197:{},198:{},199:{},200:{},201:{},202:{f:An},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:Kn},220:{},221:{f:An},222:{},224:{f:rde},225:{f:Tue},226:{f:xu},227:{},229:{f:gde},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:kue},253:{f:$ue},255:{f:Rue},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:c9},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:An},353:{f:xu},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:lde},431:{f:An},432:{},433:{},434:{},437:{},438:{f:wde},439:{f:An},440:{f:Ide},441:{},442:{f:nv},443:{},444:{f:Kn},445:{},446:{},448:{f:xu},449:{f:Bue,r:2},450:{f:xu},512:{f:jj},513:{f:Fde},515:{f:sde},516:{f:Wue},517:{f:$j},519:{f:Nde},520:{f:Oue},523:{},545:{f:Kj},549:{f:zj},566:{},574:{f:Vue},638:{f:Jue},659:{},1048:{},1054:{f:Kue},1084:{},1212:{f:hde},2048:{f:Ede},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:CE},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:xu},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:Mde,r:12},2173:{f:Cfe,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:An,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:dde,r:12},2197:{},2198:{f:bfe,r:12},2199:{},2200:{},2201:{},2202:{f:fde,r:12},2203:{f:xu},2204:{},2205:{},2206:{},2207:{},2211:{f:Fue},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:Kn},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:Rde},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:Dde},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:jj},1:{},2:{f:jde},3:{f:Ude},4:{f:Vde},5:{f:$j},7:{f:$de},8:{},9:{f:CE},11:{},22:{f:Kn},30:{f:Xue},31:{},32:{},33:{f:Kj},36:{},37:{f:zj},50:{f:Gde},62:{},52:{},67:{},68:{f:Kn},69:{},86:{},126:{},127:{f:Lde},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:Wde},223:{},234:{},354:{},421:{},518:{f:lR},521:{f:CE},536:{f:qj},547:{f:Wj},561:{},579:{},1030:{f:lR},1033:{f:CE},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function Ve(r,e,t,n){var i=e;if(!isNaN(i)){var a=n||(t||[]).length||0,s=r.next(4);s.write_shift(2,i),s.write_shift(2,a),a>0&&$R(t)&&r.push(t)}}function $ye(r,e,t,n){var i=n||(t||[]).length||0;if(i<=8224)return Ve(r,e,t,i);var a=e;if(!isNaN(a)){for(var s=t.parts||[],o=0,l=0,c=0;c+(s[o]||8224)<=8224;)c+=s[o]||8224,o++;var u=r.next(4);for(u.write_shift(2,a),u.write_shift(2,c),r.push(t.slice(l,l+c)),l+=c;l<i;){for(u=r.next(4),u.write_shift(2,60),c=0;c+(s[o]||8224)<=8224;)c+=s[o]||8224,o++;u.write_shift(2,c),r.push(t.slice(l,l+c)),l+=c}}}function ov(r,e,t){return r||(r=oe(7)),r.write_shift(2,e),r.write_shift(2,t),r.write_shift(2,0),r.write_shift(1,0),r}function Gye(r,e,t,n){var i=oe(9);return ov(i,r,e),u9(t,n||"b",i),i}function Wye(r,e,t){var n=oe(8+2*t.length);return ov(n,r,e),n.write_shift(1,t.length),n.write_shift(t.length,t,"sbcs"),n.l<n.length?n.slice(0,n.l):n}function qye(r,e,t,n){if(e.v!=null)switch(e.t){case"d":case"n":var i=e.t=="d"?ni(Wr(e.v)):e.v;i==(i|0)&&i>=0&&i<65536?Ve(r,2,Hde(t,n,i)):Ve(r,3,zde(t,n,i));return;case"b":case"e":Ve(r,5,Gye(t,n,e.v,e.t));return;case"s":case"str":Ve(r,4,Wye(t,n,(e.v||"").slice(0,255)));return}Ve(r,1,ov(null,t,n))}function Kye(r,e,t,n){var i=Array.isArray(e),a=hr(e["!ref"]||"A1"),s,o="",l=[];if(a.e.c>255||a.e.r>16383){if(n.WTF)throw new Error("Range "+(e["!ref"]||"A1")+" exceeds format limit A1:IV16384");a.e.c=Math.min(a.e.c,255),a.e.r=Math.min(a.e.c,16383),s=Bt(a)}for(var c=a.s.r;c<=a.e.r;++c){o=Mn(c);for(var u=a.s.c;u<=a.e.c;++u){c===a.s.r&&(l[u]=on(u)),s=l[u]+o;var d=i?(e[c]||[])[u]:e[s];d&&qye(r,d,c,u,n)}}}function Yye(r,e){var t=e||{};wn!=null&&t.dense==null&&(t.dense=wn);for(var n=Ka(),i=0,a=0;a<r.SheetNames.length;++a)r.SheetNames[a]==t.sheet&&(i=a);if(i==0&&t.sheet&&r.SheetNames[0]!=t.sheet)throw new Error("Sheet not found: "+t.sheet);return Ve(n,t.biff==4?1033:t.biff==3?521:9,eO(r,16,t)),Kye(n,r.Sheets[r.SheetNames[i]],i,t,r),Ve(n,10),n.end()}function Xye(r,e,t){Ve(r,49,Hue({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},t))}
202function Qye(r,e,t){e&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(n){for(var i=n[0];i<=n[1];++i)e[i]!=null&&Ve(r,1054,Yue(i,e[i],t))})}function Jye(r,e){var t=oe(19);t.write_shift(4,2151),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(2,3),t.write_shift(1,1),t.write_shift(4,0),Ve(r,2151,t),t=oe(39),t.write_shift(4,2152),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(2,3),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(2,1),t.write_shift(4,4),t.write_shift(2,0),p9(hr(e["!ref"]||"A1"),t),t.write_shift(4,4),Ve(r,2152,t)}function Zye(r,e){for(var t=0;t<16;++t)Ve(r,224,Hj({numFmtId:0,style:!0},0,e));e.cellXfs.forEach(function(n){Ve(r,224,Hj(n,0,e))})}function eve(r,e){for(var t=0;t<e["!links"].length;++t){var n=e["!links"][t];Ve(r,440,xde(n)),n[1].Tooltip&&Ve(r,2048,Tde(n))}delete e["!links"]}function tve(r,e){if(e){var t=0;e.forEach(function(n,i){++t<=256&&n&&Ve(r,125,kde(ZE(i,n),i))})}}function rve(r,e,t,n,i){var a=16+Pu(i.cellXfs,e,i);if(e.v==null&&!e.bf){Ve(r,513,Dh(t,n,a));return}if(e.bf)Ve(r,6,Dpe(e,t,n,i,a));else switch(e.t){case"d":case"n":var s=e.t=="d"?ni(Wr(e.v)):e.v;Ve(r,515,ode(t,n,s,a,i));break;case"b":case"e":Ve(r,517,ade(t,n,e.v,a,i,e.t));break;case"s":case"str":if(i.bookSST){var o=lO(i.Strings,e.v,i.revStrings);Ve(r,253,Gue(t,n,o,a,i))}else Ve(r,516,que(t,n,(e.v||"").slice(0,255),a,i));break;default:Ve(r,513,Dh(t,n,a))}}function nve(r,e,t){var n=Ka(),i=t.SheetNames[r],a=t.Sheets[i]||{},s=(t||{}).Workbook||{},o=(s.Sheets||[])[r]||{},l=Array.isArray(a),c=e.biff==8,u,d="",f=[],p=hr(a["!ref"]||"A1"),g=c?65536:16384;if(p.e.c>255||p.e.r>=g){if(e.WTF)throw new Error("Range "+(a["!ref"]||"A1")+" exceeds format limit A1:IV16384");p.e.c=Math.min(p.e.c,255),p.e.r=Math.min(p.e.c,g-1)}Ve(n,2057,eO(t,16,e)),Ve(n,13,Ks(1)),Ve(n,12,Ks(100)),Ve(n,15,Sa(!0)),Ve(n,17,Sa(!1)),Ve(n,16,Ch(.001)),Ve(n,95,Sa(!0)),Ve(n,42,Sa(!1)),Ve(n,43,Sa(!1)),Ve(n,130,Ks(1)),Ve(n,128,ide([0,0])),Ve(n,131,Sa(!1)),Ve(n,132,Sa(!1)),c&&tve(n,a["!cols"]),Ve(n,512,Que(p,e)),c&&(a["!links"]=[]);for(var y=p.s.r;y<=p.e.r;++y){d=Mn(y);for(var v=p.s.c;v<=p.e.c;++v){y===p.s.r&&(f[v]=on(v)),u=f[v]+d;var T=l?(a[y]||[])[v]:a[u];T&&(rve(n,T,y,v,e),c&&T.l&&a["!links"].push([u,T.l]))}}var C=o.CodeName||o.name||i;return c&&Ve(n,574,Uue((s.Views||[])[0])),c&&(a["!merges"]||[]).length&&Ve(n,229,yde(a["!merges"])),c&&eve(n,a),Ve(n,442,d9(C,e)),c&&Jye(n,a),Ve(n,10),n.end()}function ive(r,e,t){var n=Ka(),i=(r||{}).Workbook||{},a=i.Sheets||[],s=i.WBProps||{},o=t.biff==8,l=t.biff==5;if(Ve(n,2057,eO(r,5,t)),t.bookType=="xla"&&Ve(n,135),Ve(n,225,o?Ks(1200):null),Ve(n,193,aue(2)),l&&Ve(n,191),l&&Ve(n,192),Ve(n,226),Ve(n,92,Sue("SheetJS",t)),Ve(n,66,Ks(o?1200:1252)),o&&Ve(n,353,Ks(0)),o&&Ve(n,448),Ve(n,317,Ode(r.SheetNames.length)),o&&r.vbaraw&&Ve(n,211),o&&r.vbaraw){var c=s.CodeName||"ThisWorkbook";Ve(n,442,d9(c,t))}Ve(n,156,Ks(17)),Ve(n,25,Sa(!1)),Ve(n,18,Sa(!1)),Ve(n,19,Ks(0)),o&&Ve(n,431,Sa(!1)),o&&Ve(n,444,Ks(0)),Ve(n,61,Lue(t)),Ve(n,64,Sa(!1)),Ve(n,141,Ks(0)),Ve(n,34,Sa(B0e(r)=="true")),Ve(n,
20214,Sa(!0)),o&&Ve(n,439,Sa(!1)),Ve(n,218,Ks(0)),Xye(n,r,t),Qye(n,r.SSF,t),Zye(n,t),o&&Ve(n,352,Sa(!1));var u=n.end(),d=Ka();o&&Ve(d,140,Sde()),o&&t.Strings&&$ye(d,252,Pue(t.Strings,t)),Ve(d,10);var f=d.end(),p=Ka(),g=0,y=0;for(y=0;y<r.SheetNames.length;++y)g+=(o?12:11)+(o?2:1)*r.SheetNames[y].length;var v=u.length+g+f.length;for(y=0;y<r.SheetNames.length;++y){var T=a[y]||{};Ve(p,133,Mue({pos:v,hs:T.Hidden||0,dt:0,name:r.SheetNames[y]},t)),v+=e[y].length}var C=p.end();if(g!=C.length)throw new Error("BS8 "+g+" != "+C.length);var x=[];return u.length&&x.push(u),C.length&&x.push(C),f.length&&x.push(f),gi(x)}function ave(r,e){var t=e||{},n=[];r&&!r.SSF&&(r.SSF=qr(yt)),r&&r.SSF&&(hp(),GE(r.SSF),t.revssf=qE(r.SSF),t.revssf[r.SSF[65535]]=0,t.ssf=r.SSF),t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,fO(t),t.cellXfs=[],Pu(t.cellXfs,{},{revssf:{General:0}}),r.Props||(r.Props={});for(var i=0;i<r.SheetNames.length;++i)n[n.length]=nve(i,t,r);return n.unshift(ive(r,n,t)),gi(n)}function i$(r,e){for(var t=0;t<=r.SheetNames.length;++t){var n=r.Sheets[r.SheetNames[t]];if(!(!n||!n["!ref"])){var i=Ya(n["!ref"]);i.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+r.SheetNames[t]+"' extends beyond column IV (255). Data may be lost.")}}var a=e||{};switch(a.biff||2){case 8:case 5:return ave(r,e);case 4:case 3:case 2:return Yye(r,e)}throw new Error("invalid type "+a.bookType+" for BIFF")}function iH(r,e){var t=e||{};wn!=null&&t.dense==null&&(t.dense=wn);var n=t.dense?[]:{};r=r.replace(/<!--.*?-->/g,"");var i=r.match(/<table/i);if(!i)throw new Error("Invalid HTML: could not find <table>");var a=r.match(/<\/table/i),s=i.index,o=a&&a.index||r.length,l=Hle(r.slice(s,o),/(:?<tr[^>]*>)/i,"<tr>"),c=-1,u=0,d=0,f=0,p={s:{r:1e7,c:1e7},e:{r:0,c:0}},g=[];for(s=0;s<l.length;++s){var y=l[s].trim(),v=y.slice(0,3).toLowerCase();if(v=="<tr"){if(++c,t.sheetRows&&t.sheetRows<=c){--c;break}u=0;continue}if(!(v!="<td"&&v!="<th")){var T=y.split(/<\/t[dh]>/i);for(o=0;o<T.length;++o){var C=T[o].trim();if(C.match(/<t[dh]/i)){for(var x=C,B=0;x.charAt(0)=="<"&&(B=x.indexOf(">"))>-1;)x=x.slice(B+1);for(var q=0;q<g.length;++q){var V=g[q];V.s.c==u&&V.s.r<c&&c<=V.e.r&&(u=V.e.c+1,q=-1)}var b=Ct(C.slice(0,C.indexOf(">")));f=b.colspan?+b.colspan:1,((d=+b.rowspan)>1||f>1)&&g.push({s:{r:c,c:u},e:{r:c+(d||1)-1,c:u+f-1}});var E=b.t||b["data-t"]||"";if(!x.length){u+=f;continue}if(x=RH(x),p.s.r>c&&(p.s.r=c),p.e.r<c&&(p.e.r=c),p.s.c>u&&(p.s.c=u),p.e.c<u&&(p.e.c=u),!x.length){u+=f;continue}var I={t:"s",v:x};t.raw||!x.trim().length||E=="s"||(x==="TRUE"?I={t:"b",v:!0}:x==="FALSE"?I={t:"b",v:!1}:isNaN(Mo(x))?isNaN(lp(x).getDate())||(I={t:"d",v:Wr(x)},t.cellDates||(I={t:"n",v:ni(I.v)}),I.z=t.dateNF||yt[14]):I={t:"n",v:Mo(x)}),t.dense?(n[c]||(n[c]=[]),n[c][u]=I):n[xt({r:c,c:u})]=I,u+=f}}}}return n["!ref"]=Bt(p),g.length&&(n["!merges"]=g),n}function sve(r,e,t,n){for(var i=r["!merges"]||[],a=[],s=e.s.c;s<=e.e.c;++s){for(var o=0,l=0,c=0;c<i.length;++c)if(!(i[c].s.r>t||i[c].s.c>s)&&!(i[c].e.r<t||i[c].e.c<s)){if(i[c].s.r<t||i[c].s.c<s){o=-1;break}o=i[c].e.r-i[c].s.r+1,l=i[c].e.c-i[c].s.c+1;break}if(!(o<0)){var u=xt({r:t,c:s}),d=n.dense?(r[t]||[])[s]:r[u],f=d&&d.v!=null&&(d.h||NR(d.w||(fc(d),d.w)||""))||"",p={};o>
2021&&(p.rowspan=o),l>1&&(p.colspan=l),n.editable?f='<span contenteditable="true">'+f+"</span>":d&&(p["data-t"]=d&&d.t||"z",d.v!=null&&(p["data-v"]=d.v),d.z!=null&&(p["data-z"]=d.z),d.l&&(d.l.Target||"#").charAt(0)!="#"&&(f='<a href="'+d.l.Target+'">'+f+"</a>")),p.id=(n.id||"sjs")+"-"+u,a.push(Ne("td",f,p))}}var g="<tr>";return g+a.join("")+"</tr>"}var ove='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',lve="</body></html>";function cve(r,e){var t=r.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!t||t.length==0)throw new Error("Invalid HTML: could not find <table>");if(t.length==1)return ku(iH(t[0],e),e);var n=gO();return t.forEach(function(i,a){yO(n,iH(i,e),"Sheet"+(a+1))}),n}function uve(r,e,t){var n=[];return n.join("")+"<table"+(t&&t.id?' id="'+t.id+'"':"")+">"}function a$(r,e){var t=e||{},n=t.header!=null?t.header:ove,i=t.footer!=null?t.footer:lve,a=[n],s=Ya(r["!ref"]);t.dense=Array.isArray(r),a.push(uve(r,s,t));for(var o=s.s.r;o<=s.e.r;++o)a.push(sve(r,s,o,t));return a.push("</table>"+i),a.join("")}function s$(r,e,t){var n=t||{};wn!=null&&(n.dense=wn);var i=0,a=0;if(n.origin!=null)if(typeof n.origin=="number")i=n.origin;else{var s=typeof n.origin=="string"?ln(n.origin):n.origin;i=s.r,a=s.c}var o=e.getElementsByTagName("tr"),l=Math.min(n.sheetRows||1e7,o.length),c={s:{r:0,c:0},e:{r:i,c:a}};if(r["!ref"]){var u=Ya(r["!ref"]);c.s.r=Math.min(c.s.r,u.s.r),c.s.c=Math.min(c.s.c,u.s.c),c.e.r=Math.max(c.e.r,u.e.r),c.e.c=Math.max(c.e.c,u.e.c),i==-1&&(c.e.r=i=u.e.r+1)}var d=[],f=0,p=r["!rows"]||(r["!rows"]=[]),g=0,y=0,v=0,T=0,C=0,x=0;for(r["!cols"]||(r["!cols"]=[]);g<o.length&&y<l;++g){var B=o[g];if(aH(B)){if(n.display)continue;p[y]={hidden:!0}}var q=B.children;for(v=T=0;v<q.length;++v){var V=q[v];if(!(n.display&&aH(V))){var b=V.hasAttribute("data-v")?V.getAttribute("data-v"):V.hasAttribute("v")?V.getAttribute("v"):RH(V.innerHTML),E=V.getAttribute("data-z")||V.getAttribute("z");for(f=0;f<d.length;++f){var I=d[f];I.s.c==T+a&&I.s.r<y+i&&y+i<=I.e.r&&(T=I.e.c+1-a,f=-1)}x=+V.getAttribute("colspan")||1,((C=+V.getAttribute("rowspan")||1)>1||x>1)&&d.push({s:{r:y+i,c:T+a},e:{r:y+i+(C||1)-1,c:T+a+(x||1)-1}});var S={t:"s",v:b},k=V.getAttribute("data-t")||V.getAttribute("t")||"";b!=null&&(b.length==0?S.t=k||"z":n.raw||b.trim().length==0||k=="s"||(b==="TRUE"?S={t:"b",v:!0}:b==="FALSE"?S={t:"b",v:!1}:isNaN(Mo(b))?isNaN(lp(b).getDate())||(S={t:"d",v:Wr(b)},n.cellDates||(S={t:"n",v:ni(S.v)}),S.z=n.dateNF||yt[14]):S={t:"n",v:Mo(b)})),S.z===void 0&&E!=null&&(S.z=E);var D="",R=V.getElementsByTagName("A");if(R&&R.length)for(var De=0;De<R.length&&!(R[De].hasAttribute("href")&&(D=R[De].getAttribute("href"),D.charAt(0)!="#"));++De);D&&D.charAt(0)!="#"&&(S.l={Target:D}),n.dense?(r[y+i]||(r[y+i]=[]),r[y+i][T+a]=S):r[xt({c:T+a,r:y+i})]=S,c.e.c<T+a&&(c.e.c=T+a),T+=x}}++y}return d.length&&(r["!merges"]=(r["!merges"]||[]).concat(d)),c.e.r=Math.max(c.e.r,y-1+i),r["!ref"]=Bt(c),y>=l&&(r["!fullref"]=Bt((c.e.r=o.length-g+y-1+i,c))),r}function o$(r,e){var t=e||{},n=t.dense?[]:{};return s$(n,r,e)}function dve(r,e){return ku(o$(r,e),e)}function aH(r){var e="",t=hve(r);return t&&(e=t(r).getPropertyValue("display")),e||(e=r.style&&r.style.display),e==="none"}function hve(r){return r.ownerDocument.defaultView&&typeof r.ownerDocument.defaultView.getComputedStyle=="function"?r.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null}function fve(r){var e=r.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(n,i){return Array(parseInt(i,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g," ").replace(/<text:line-break\/>/g,` 203`),t=dr(e.replace(/<[^>]*>/g,""));return[t]}var sH={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function l$(r,e){var t=e||{};wn!=null&&t.dense==null&&(t.dense=wn);var n=LR(r),i=[],a,s,o={name:""},l="",c=0,u,d,f={},p=[],g=t.dense?[]:{},y,v,T={value:""}
vendor: 4,557 bytes, line 203
203,C="",x=0,B,q=[],V=-1,b=-1,E={s:{r:1e6,c:1e7},e:{r:0,c:0}},I=0,S={},k=[],D={},R=0,De=0,ve=[],rt=1,$e=1,vt=[],Be={Names:[]},Ze={},le=["",""],j=[],K={},W="",H=0,ne=!1,_e=!1,be=0;for(Wy.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");y=Wy.exec(n);)switch(y[3]=y[3].replace(/_.*$/,"")){case"table":case"\u5DE5\u4F5C\u8868":y[1]==="/"?(E.e.c>=E.s.c&&E.e.r>=E.s.r?g["!ref"]=Bt(E):g["!ref"]="A1:A1",t.sheetRows>0&&t.sheetRows<=E.e.r&&(g["!fullref"]=g["!ref"],E.e.r=t.sheetRows-1,g["!ref"]=Bt(E)),k.length&&(g["!merges"]=k),ve.length&&(g["!rows"]=ve),u.name=u.\u540D\u79F0||u.name,typeof JSON<"u"&&JSON.stringify(u),p.push(u.name),f[u.name]=g,_e=!1):y[0].charAt(y[0].length-2)!=="/"&&(u=Ct(y[0],!1),V=b=-1,E.s.r=E.s.c=1e7,E.e.r=E.e.c=0,g=t.dense?[]:{},k=[],ve=[],_e=!0);break;case"table-row-group":y[1]==="/"?--I:++I;break;case"table-row":case"\u884C":if(y[1]==="/"){V+=rt,rt=1;break}if(d=Ct(y[0],!1),d.\u884C\u53F7?V=d.\u884C\u53F7-1:V==-1&&(V=0),rt=+d["number-rows-repeated"]||1,rt<10)for(be=0;be<rt;++be)I>0&&(ve[V+be]={level:I});b=-1;break;case"covered-table-cell":y[1]!=="/"&&++b,t.sheetStubs&&(t.dense?(g[V]||(g[V]=[]),g[V][b]={t:"z"}):g[xt({r:V,c:b})]={t:"z"}),C="",q=[];break;case"table-cell":case"\u6570\u636E":if(y[0].charAt(y[0].length-2)==="/")++b,T=Ct(y[0],!1),$e=parseInt(T["number-columns-repeated"]||"1",10),v={t:"z",v:null},T.formula&&t.cellFormula!=!1&&(v.f=tH(dr(T.formula))),(T.\u6570\u636E\u7C7B\u578B||T["value-type"])=="string"&&(v.t="s",v.v=dr(T["string-value"]||""),t.dense?(g[V]||(g[V]=[]),g[V][b]=v):g[xt({r:V,c:b})]=v),b+=$e-1;else if(y[1]!=="/"){++b,C="",x=0,q=[],$e=1;var we=rt?V+rt-1:V;if(b>E.e.c&&(E.e.c=b),b<E.s.c&&(E.s.c=b),V<E.s.r&&(E.s.r=V),we>E.e.r&&(E.e.r=we),T=Ct(y[0],!1),j=[],K={},v={t:T.\u6570\u636E\u7C7B\u578B||T["value-type"],v:null},t.cellFormula)if(T.formula&&(T.formula=dr(T.formula)),T["number-matrix-columns-spanned"]&&T["number-matrix-rows-spanned"]&&(R=parseInt(T["number-matrix-rows-spanned"],10)||0,De=parseInt(T["number-matrix-columns-spanned"],10)||0,D={s:{r:V,c:b},e:{r:V+R-1,c:b+De-1}},v.F=Bt(D),vt.push([D,v.F])),T.formula)v.f=tH(T.formula);else for(be=0;be<vt.length;++be)V>=vt[be][0].s.r&&V<=vt[be][0].e.r&&b>=vt[be][0].s.c&&b<=vt[be][0].e.c&&(v.F=vt[be][1]);switch((T["number-columns-spanned"]||T["number-rows-spanned"])&&(R=parseInt(T["number-rows-spanned"],10)||0,De=parseInt(T["number-columns-spanned"],10)||0,D={s:{r:V,c:b},e:{r:V+R-1,c:b+De-1}},k.push(D)),T["number-columns-repeated"]&&($e=parseInt(T["number-columns-repeated"],10)),v.t){case"boolean":v.t="b",v.v=Gr(T["boolean-value"]);break;case"float":v.t="n",v.v=parseFloat(T.value);break;case"percentage":v.t="n",v.v=parseFloat(T.value);break;case"currency":v.t="n",v.v=parseFloat(T.value);break;case"date":v.t="d",v.v=Wr(T["date-value"]),t.cellDates||(v.t="n",v.v=ni(v.v)),v.z="m/d/yy";break;case"time":v.t="n",v.v=Ule(T["time-value"])/86400,t.cellDates&&(v.t="d",v.v=KE(v.v)),v.z="HH:MM:SS";break;case"number":v.t="n",v.v=parseFloat(T.\u6570\u636E\u6570\u503C);break;default:if(v.t==="string"||v.t==="text"||!v.t)v.t="s",T["string-value"]!=null&&(C=dr(T["string-value"]),q=[]);else throw new Error("Unsupported value type "+v.t)}}else{if(ne=!1,v.t==="s"&&(v.v=C||"",q.length&&(v.R=q),ne=x==0),Ze.Target&&(v.l=Ze),j.length>0&&(v.c=j,j=[]),C&&t.cellText!==!1&&(v.w=C),ne&&(v.t="z",delete v.v),(!ne||t.sheetStubs)&&!(t.sheetRows&&t.sheetRows<=V))for(var ce=0;ce<rt;++ce){if($e=parseInt(T["number-columns-repeated"]||"1",10),t.dense)for(g[V+ce]||(g[V+ce]=[]),g[V+ce][b]=ce==0?v:qr(v);--$e>0;)g[V+ce][b+$e]=qr(v);else for(g[xt({r:V+ce,c:b})]=v;--$e>0;)g[xt({r:V+ce,c:b+$e})]=qr(v);E.e.c<=b&&(E.e.c=b)}$e=parseInt(T["number-columns-repeated"]||"1",10),b+=$e-1,$e=0,v={},C="",q=[]}Ze={};break;case"document":case"document-content":case"\u7535\u5B50\u8868\u683C\u6587\u6863":case"spreadsheet":case"\u4E3B\u4F53":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(y[1]==="/"){if((a=i.pop())[0]!==y[3])throw"Bad state: "+a}else y[0].charAt(y[0].length-2)!=="/"&&i.push([y[3],!0]);break;case"annotation":if(y[1]==="/"){if((a=i.pop())[0]!==y[3])throw"Bad state: "+a;K.t=C,q.length&&(K.R=q),K.a=W,j.push(K)}else y[0].charAt(y[0].length-2)!=="/"&&i.push([y[3],!1]);W="",H=0,C="",x=0,q=[];break;case"creator":y[1]==="/"?W=n.slice(H,y.index):H=y.index+y[0].length;break;case"meta":case"\u5143\u6570\u636E":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-
203pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(y[1]==="/"){if((a=i.pop())[0]!==y[3])throw"Bad state: "+a}else y[0].charAt(y[0].length-2)!=="/"&&i.push([y[3],!1]);C="",x=0,q=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(y[1]==="/"){if(S[o.name]=l,(a=i.pop())[0]!==y[3])throw"Bad state: "+a}else y[0].charAt(y[0].length-2)!=="/"&&(l="",o=Ct(y[0],!1),i.push([y[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(i[i.length-1][0]){case"time-style":case"date-style":s=Ct(y[0],!1),l+=sH[y[3]][s.style==="long"?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(i[i.length-1][0]){case"time-style":case"date-style":s=Ct(y[0],!1),l+=sH[y[3]][s.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(y[0].slice(-2)==="/>")break;if(y[1]==="/")switch(i[i.length-1][0]){case"number-style":case"date-style":case"time-style":l+=n.slice(c,y.index);break}else c=y.index+y[0].length;break;case"named-range":s=Ct(y[0],!1),le=cR(s["cell-range-address"]);var et={Name:s.name,Ref:le[0]+"!"+le[1]};_e&&(et.Sheet=p.length),Be.Names.push(et);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"\u7535\u5B50\u8868\u683C":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"\u6587\u672C\u4E32":if(["master-styles"].indexOf(i[i.length-1][0])>-1)break;if(y[1]==="/"&&(!T||!T["string-value"])){var N=fve(n.slice(x,y.index),B);C=(C.length>0?C+` 204`:"")+N[0]}else B=Ct(y[0],!1),x=y.index+y[0].length;break;case"s":break;case"database-range":if(y[1]==="/")break;try{le=cR(Ct(y[0])["target-range-address"]),f[le[0]]["!autofilter"]={ref:le[1]}}catch{}break;case"date":break;case"object":break;case"title":case"\u6807\u9898":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-
204pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(y[1]!=="/"){if(Ze=Ct(y[0],!1),!Ze.href)break;Ze.Target=dr(Ze.href),delete Ze.href,Ze.Target.charAt(0)=="#"&&Ze.Target.indexOf(".")>-1?(le=cR(Ze.Target.slice(1)),Ze.Target="#"+le[0]+"!"+le[1]):Ze.Target.match(/^\.\.[\\\/]/)&&(Ze.Target=Ze.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(y[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"\u8868:":case"\u5B57:":break;default:if(t.WTF)throw new Error(y)}}var Et={Sheets:f,SheetNames:p,Workbook:Be};return t.bookSheets&&delete Et.Sheets,Et}function oH(r,e){e=e||{},qs(r,"META-INF/manifest.xml")&&Uce(qn(r,"META-INF/manifest.xml"),e);var t=_s(r,"content.xml");if(!t)throw new Error("Missing content.xml in ODS / UOF file");var n=l$(kr(t),e);return qs(r,"meta.xml")&&(n.Props=JH(qn(r,"meta.xml"))),n}function lH(r,e){return l$(r,e)}var mve=(function(){var r=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),e="<office:document-styles "+Gy({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+r+"</office:document-styles>";return function(){return kn+e}})(),cH=(function(){var r=function(a){return Cr(a).replace(/ +/g,function(s){return'<text:s text:c="'+s.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},e=` <table:table-cell /> 205`,t=` <table:covered-table-cell/> 206`,n=function(a,s,o){var l=[];l.push(' <table:table table:name="'+Cr(s.SheetNames[o])+`" table:style-name="ta1"> 207`);var c=0,u=0,d=Ya(a["!ref"]||"A1"),f=a["!merges"]||[],p=0,g=Array.isArray(a);if(a["!cols"])for(u=0;u<=d.e.c;++u)l.push(" <table:table-column"+(a["!cols"][u]?' table:style-name="co'+a["!cols"][u].ods+'"':"")+`></table:table-column> 208`);var y="",v=a["!rows"]||[];for(c=0;c<d.s.r;++c)y=v[c]?' table:style-name="ro'+v[c].ods+'"':"",l.push(" <table:table-row"+y+`></table:table-row> 209`);for(;c<=d.e.r;++c){for(y=v[c]?' table:style-name="ro'+v[c].ods+'"':"",l.push(" <table:table-row"+y+`> 210`),u=0;u<d.s.c;++u)l.push(e);for(;u<=d.e.c;++u){var T=!1,C={},x="";for(p=0;p!=f.length;++p)if(!(f[p].s.c>u)&&!(f[p].s.r>c)&&!(f[p].e.c<u)&&!(f[p].e.r<c)){(f[p].s.c!=u||f[p].s.r!=c)&&(T=!0),C["table:number-columns-spanned"]=f[p].e.c-f[p].s.c+1,C["table:number-rows-spanned"]=f[p].e.r-f[p].s.r+1;break}if(T){l.push(t);continue}var B=xt({r:c,c:u}),q=g?(a[c]||[])[u]:a[B];if(q&&q.f&&(C["table:formula"]=Cr(Ope(q.f)),q.F&&q.F.slice(0,B.length)==B)){var V=Ya(q.F);C["table:number-matrix-columns-spanned"]=V.e.c-V.s.c+1,C["table:number-matrix-rows-spanned"]=V.e.r-V.s.r+1}if(!q){l.push(e);continue}switch(q.t){case"b":x=q.v?"TRUE":"FALSE",C["office:value-type"]="boolean",C["office:boolean-value"]=q.v?"true":"false";break;case"n":x=q.w||String(q.v||0),C["office:value-type"]="float",C["office:value"]=q.v||0;break;case"s":case"str":x=q.v==null?"":q.v,C["office:value-type"]="string";break;case"d":x=q.w||Wr(q.v).toISOString(),C["office:value-type"]="date",C["office:date-value"]=Wr(q.v).toISOString(),C["table:style-name"]="ce1";break;default:l.push(e);continue}var b=r(x);if(q.l&&q.l.Target){var E=q.l.Target;E=E.charAt(0)=="#"?"#"+Fpe(E.slice(1)):E,E.charAt(0)!="#"&&!E.match(/^\w+:/)&&(E="../"+E),b=Ne("text:a",b,{"xlink:href":E.replace(/&/g,"&")})}l.push(" "+Ne("table:table-cell",Ne("text:p",b,{}),C)+` 211`)}l.push(` </table:table-row> 212`)}return l.push(` </table:table> 213`),l.join("")},i=function(a,s){a.push(` <office:automatic-styles> 214`),a.push(` <number:date-style style:name="N37" number:automatic-order="true"> 215`),a.push(` <number:month number:style="long"/> 216`),a.push(` <number:text>/</number:text> 217`),a.push(` <number:day number:style="long"/> 218`),a.push(` <number:text>/</number:text> 219`),a.push(` <number:year/> 220`),a.push(` </number:date-style> 221`);var o=0;s.SheetNames.map(function(c){return s.Sheets[c]}
vendor: 4,786 bytes, lines 221-238
221).forEach(function(c){if(c&&c["!cols"]){for(var u=0;u<c["!cols"].length;++u)if(c["!cols"][u]){var d=c["!cols"][u];if(d.width==null&&d.wpx==null&&d.wch==null)continue;Su(d),d.ods=o;var f=c["!cols"][u].wpx+"px";a.push(' <style:style style:name="co'+o+`" style:family="table-column"> 222`),a.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+f+`"/> 223`),a.push(` </style:style> 224`),++o}}});var l=0;s.SheetNames.map(function(c){return s.Sheets[c]}).forEach(function(c){if(c&&c["!rows"]){for(var u=0;u<c["!rows"].length;++u)if(c["!rows"][u]){c["!rows"][u].ods=l;var d=c["!rows"][u].hpx+"px";a.push(' <style:style style:name="ro'+l+`" style:family="table-row"> 225`),a.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+d+`"/> 226`),a.push(` </style:style> 227`),++l}}}),a.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1"> 228`),a.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/> 229`),a.push(` </style:style> 230`),a.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/> 231`),a.push(` </office:automatic-styles> 232`)};return function(s,o){var l=[kn],c=Gy({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),u=Gy({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});o.bookType=="fods"?(l.push("<office:document"+c+u+`> 233`),l.push(QH().replace(/office:document-meta/g,"office:meta"))):l.push("<office:document-content"+c+`> 234`),i(l,s),l.push(` <office:body> 235`),l.push(` <office:spreadsheet> 236`);for(var d=0;d!=s.SheetNames.length;++d)l.push(n(s.Sheets[s.SheetNames[d]],s,d,o));return l.push(` </office:spreadsheet> 237`),l.push(` </office:body> 238`),o.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}})();function c$(r,e){if(e.bookType=="fods")return cH(r,e);var t=OR(),n="",i=[],a=[];return n="mimetype",Vt(t,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",Vt(t,n,cH(r,e)),i.push([n,"text/xml"]),a.push([n,"ContentFile"]),n="styles.xml",Vt(t,n,mve(r,e)),i.push([n,"text/xml"]),a.push([n,"StylesFile"]),n="meta.xml",Vt(t,n,kn+QH()),i.push([n,"text/xml"]),a.push([n,"MetadataFile"]),n="manifest.rdf",Vt(t,n,Hce(a)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",Vt(t,n,zce(i)),t}function Ah(r){return new DataView(r.buffer,r.byteOffset,r.byteLength)}function CR(r){return typeof TextDecoder<"u"?new TextDecoder().decode(r):kr(Mu(r))}function pve(r){return typeof TextEncoder<"u"?new TextEncoder().encode(r):vs(
238pl(r))}function gve(r,e){e:for(var t=0;t<=r.length-e.length;++t){for(var n=0;n<e.length;++n)if(r[t+n]!=e[n])continue e;return!0}return!1}function Au(r){var e=r.reduce(function(i,a){return i+a.length},0),t=new Uint8Array(e),n=0;return r.forEach(function(i){t.set(i,n),n+=i.length}),t}function uH(r){return r-=r>>1&1431655765,r=(r&858993459)+(r>>2&858993459),(r+(r>>4)&252645135)*16843009>>>24}function yve(r,e){for(var t=(r[e+15]&127)<<7|r[e+14]>>1,n=r[e+14]&1,i=e+13;i>=e;--i)n=n*256+r[i];return(r[e+15]&128?-n:n)*Math.pow(10,t-6176)}function vve(r,e,t){var n=Math.floor(t==0?0:Math.LOG10E*Math.log(Math.abs(t)))+6176-20,i=t/Math.pow(10,n-6176);r[e+15]|=n>>7,r[e+14]|=(n&127)<<1;for(var a=0;i>=1;++a,i/=256)r[e+a]=i&255;r[e+15]|=t>=0?0:128}function Zy(r,e){var t=e?e[0]:0,n=r[t]&127;e:if(r[t++]>=128&&(n|=(r[t]&127)<<7,r[t++]<128||(n|=(r[t]&127)<<14,r[t++]<128)||(n|=(r[t]&127)<<21,r[t++]<128)||(n+=(r[t]&127)*Math.pow(2,28),++t,r[t++]<128)||(n+=(r[t]&127)*Math.pow(2,35),++t,r[t++]<128)||(n+=(r[t]&127)*Math.pow(2,42),++t,r[t++]<128)))break e;return e&&(e[0]=t),n}function Er(r){var e=new Uint8Array(7);e[0]=r&127;var t=1;e:if(r>127){if(e[t-1]|=128,e[t]=r>>7&127,++t,r<=16383||(e[t-1]|=128,e[t]=r>>14&127,++t,r<=2097151)||(e[t-1]|=128,e[t]=r>>21&127,++t,r<=268435455)||(e[t-1]|=128,e[t]=r/256>>>21&127,++t,r<=34359738367)||(e[t-1]|=128,e[t]=r/65536>>>21&127,++t,r<=4398046511103))break e;e[t-1]|=128,e[t]=r/16777216>>>21&127,++t}return e.slice(0,t)}function bn(r){var e=0,t=r[e]&127;e:if(r[e++]>=128){if(t|=(r[e]&127)<<7,r[e++]<128||(t|=(r[e]&127)<<14,r[e++]<128)||(t|=(r[e]&127)<<21,r[e++]<128))break e;t|=(r[e]&127)<<28}return t}function mr(r){for(var e=[],t=[0];t[0]<r.length;){var n=t[0],i=Zy(r,t),a=i&7;i=Math.floor(i/8);var s=0,o;if(i==0)break;switch(a){case 0:{for(var l=t[0];r[t[0]++]>=128;);o=r.slice(l,t[0])}break;case 5:s=4,o=r.slice(t[0],t[0]+s),t[0]+=s;break;case 1:s=8,o=r.slice(t[0],t[0]+s),t[0]+=s;break;case 2:s=Zy(r,t),o=r.slice(t[0],t[0]+s),t[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(a," for Field ").concat(i," at offset ").concat(n))}var c={data:o,type:a};e[i]==null?e[i]=[c]:e[i].push(c)}return e}function ki(r){var e=[];return r.forEach(function(t,n){t.forEach(function(i){i.data&&(e.push(Er(n*8+i.type)),i.type==2&&e.push(Er(i.data.length)),e.push(i.data))})}),Au(e)}function dO(r,e){return r?.map(function(t){return e(t.data)})||[]}function Gs(r){for(var e,t=[],n=[0];n[0]<r.length;){var i=Zy(r,n),a=mr(r.slice(n[0],n[0]+i));n[0]+=i;var s={id:bn(a[1][0].data),messages:[]};a[2].forEach(function(o){var l=mr(o.data),c=bn(l[3][0].data);s.messages.push({meta:l,data:r.slice(n[0],n[0]+c)}),n[0]+=c}),(e=a[3])!=null&&e[0]&&(s.merge=bn(a[3][0].data)>>>0>0),t.push(s)}return t}function Jm(r){var e=[];return r.forEach(function(t){var n=[];n[1]=[{data:Er(t.id),type:0}],n[2]=[],t.merge!=null&&(n[3]=[{data:Er(+!!t.merge),type:0}]);var i=[];t.messages.forEach(function(s){i.push(s.data),s.meta[3]=[{type:0,data:Er(s.data.length)}],n[2].push({data:ki(s.meta),type:2})});var a=ki(n);
vendor: 4,115 bytes, line 238
238e.push(Er(a.length)),e.push(a),i.forEach(function(s){return e.push(s)})}),Au(e)}function _ve(r,e){if(r!=0)throw new Error("Unexpected Snappy chunk type ".concat(r));for(var t=[0],n=Zy(e,t),i=[];t[0]<e.length;){var a=e[t[0]]&3;if(a==0){var s=e[t[0]++]>>2;if(s<60)++s;else{var o=s-59;s=e[t[0]],o>1&&(s|=e[t[0]+1]<<8),o>2&&(s|=e[t[0]+2]<<16),o>3&&(s|=e[t[0]+3]<<24),s>>>=0,s++,t[0]+=o}i.push(e.slice(t[0],t[0]+s)),t[0]+=s;continue}else{var l=0,c=0;if(a==1?(c=(e[t[0]]>>2&7)+4,l=(e[t[0]++]&224)<<3,l|=e[t[0]++]):(c=(e[t[0]++]>>2)+1,a==2?(l=e[t[0]]|e[t[0]+1]<<8,t[0]+=2):(l=(e[t[0]]|e[t[0]+1]<<8|e[t[0]+2]<<16|e[t[0]+3]<<24)>>>0,t[0]+=4)),i=[Au(i)],l==0)throw new Error("Invalid offset 0");if(l>i[0].length)throw new Error("Invalid offset beyond length");if(c>=l)for(i.push(i[0].slice(-l)),c-=l;c>=i[i.length-1].length;)i.push(i[i.length-1]),c-=i[i.length-1].length;i.push(i[0].slice(-l,-l+c))}}var u=Au(i);if(u.length!=n)throw new Error("Unexpected length: ".concat(u.length," != ").concat(n));return u}function Ws(r){for(var e=[],t=0;t<r.length;){var n=r[t++],i=r[t]|r[t+1]<<8|r[t+2]<<16;t+=3,e.push(_ve(n,r.slice(t,t+i))),t+=i}if(t!==r.length)throw new Error("data is not a valid framed stream!");return Au(e)}function Zm(r){for(var e=[],t=0;t<r.length;){var n=Math.min(r.length-t,268435455),i=new Uint8Array(4);e.push(i);var a=Er(n),s=a.length;e.push(a),n<=60?(s++,e.push(new Uint8Array([n-1<<2]))):n<=256?(s+=2,e.push(new Uint8Array([240,n-1&255]))):n<=65536?(s+=3,e.push(new Uint8Array([244,n-1&255,n-1>>8&255]))):n<=16777216?(s+=4,e.push(new Uint8Array([248,n-1&255,n-1>>8&255,n-1>>16&255]))):n<=4294967296&&(s+=5,e.push(new Uint8Array([252,n-1&255,n-1>>8&255,n-1>>16&255,n-1>>>24&255]))),e.push(r.slice(t,t+n)),s+=n,i[0]=0,i[1]=s&255,i[2]=s>>8&255,i[3]=s>>16&255,t+=n}return Au(e)}function bve(r,e,t,n){var i=Ah(r),a=i.getUint32(4,!0),s=(n>1?12:8)+uH(a&(n>1?3470:398))*4,o=-1,l=-1,c=NaN,u=new Date(2001,0,1);a&512&&(o=i.getUint32(s,!0),s+=4),s+=uH(a&(n>1?12288:4096))*4,a&16&&(l=i.getUint32(s,!0),s+=4),a&32&&(c=i.getFloat64(s,!0),s+=8),a&64&&(u.setTime(u.getTime()+i.getFloat64(s,!0)*1e3),s+=8);var d;switch(r[2]){case 0:break;case 2:d={t:"n",v:c};break;case 3:d={t:"s",v:e[l]};break;case 5:d={t:"d",v:u};break;case 6:d={t:"b",v:c>0};break;case 7:d={t:"n",v:c/86400};break;case 8:d={t:"e",v:0};break;case 9:if(o>-1)d={t:"s",v:t[o]};else if(l>-1)d={t:"s",v:e[l]};else if(!isNaN(c))d={t:"n",v:c};else throw new Error("Unsupported cell type ".concat(r.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(r.slice(0,4)))}return d}function wve(r,e,t){var n=Ah(r),i=n.getUint32(8,!0),a=12,s=-1,o=-1,l=NaN,c=NaN,u=new Date(2001,0,1);i&1&&(l=yve(r,a),a+=16),i&2&&(c=n.getFloat64(a,!0),a+=8),i&4&&(u.setTime(u.getTime()+n.getFloat64(a,!0)*1e3),a+=8),i&8&&(o=n.getUint32(a,!0),a+=4),i&16&&(s=n.getUint32(a,!0),a+=4);var d;switch(r[1]){case 0:break;case 2:d={t:"n",v:l};break;case 3:d={t:"s",v:e[o]};break;case 5:d={t:"d",v:u};break;case 6:d={t:"b",v:c>0};break;case 7:d={t:"n",v:c/86400};break;case 8:d={t:"e",v:0};break;case 9:if(s>-1)d={t:"s",v:t[s]};else throw new Error("Unsupported cell type ".concat(r[1]," : ").concat(i&31," : ").concat(r.slice(0,4)));break;case 10:d={t:"n",v:l};break;default:throw new Error("Unsupported cell type ".concat(r[1]," : ").concat(i&31," : ").concat(r.slice(0,4)))}return d}function dR(r,e){var t=new Uint8Array(32),n=Ah(t),i=12,a=0;switch(t[0]=5,r.t){case"n":t[1]=2,vve(t,i,r.v),a|=1,i+=16;break;case"b":t[1]=6,n.setFloat64(i,r.v?1:0,!0),a|=2,i+=8;break;case"s":if(e.indexOf(r.v)==-1)throw new Error("Value ".concat(r.v," missing from SST!"));t[1]=3,n.setUint32(i,e.indexOf(r.v),!0),a|=8,i+=4;break;default:throw"unsupported cell type "+r.t}return n.setUint32(8,a,!0),t.slice(0,i)}function hR(r,e){var t=new Uint8Array(32),n=Ah(t),i=12,a=0;switch(t[0]=3,r.t){case"n":t[2]=2,n.setFloat64(i,r.v,!0),a|=32,i+=8;break;case"b":t[2]=6,n.setFloat64(i,r.v?1:0,!0),a|=32,i+=8;break;case"s":if(e.indexOf(r.v)==-1)throw new Error("Value ".concat(r.v," missing from SST!"));t[2]=3,n.setUint32(i,e.indexOf(r.v),!0),a|=16,i+=4;break;default:throw"unsupported cell type "+r.t}
238return n.setUint32(4,a,!0),t.slice(0,i)}function Ive(r,e,t){switch(r[0]){case 0:case 1:case 2:case 3:return bve(r,e,t,r[0]);case 5:return wve(r,e,t);default:throw new Error("Unsupported payload version ".concat(r[0]))}}function Ji(r){var e=mr(r);return Zy(e[1][0].data)}function dH(r,e){var t=mr(e.data),n=bn(t[1][0].data),i=t[3],a=[];return(i||[]).forEach(function(s){var o=mr(s.data),l=bn(o[1][0].data)>>>0;switch(n){case 1:a[l]=CR(o[3][0].data);break;case 8:{var c=r[Ji(o[9][0].data)][0],u=mr(c.data),d=r[Ji(u[1][0].data)][0],f=bn(d.meta[1][0].data);if(f!=2001)throw new Error("2000 unexpected reference to ".concat(f));var p=mr(d.data);a[l]=p[3].map(function(g){return CR(g.data)}).join("")}break}}),a}function xve(r,e){var t,n,i,a,s,o,l,c,u,d,f,p,g,y,v=mr(r),T=bn(v[1][0].data)>>>0,C=bn(v[2][0].data)>>>0,x=((n=(t=v[8])==null?void 0:t[0])==null?void 0:n.data)&&bn(v[8][0].data)>0||!1,B,q;if((a=(i=v[7])==null?void 0:i[0])!=null&&a.data&&e!=0)B=(o=(s=v[7])==null?void 0:s[0])==null?void 0:o.data,q=(c=(l=v[6])==null?void 0:l[0])==null?void 0:c.data;else if((d=(u=v[4])==null?void 0:u[0])!=null&&d.data&&e!=1)B=(p=(f=v[4])==null?void 0:f[0])==null?void 0:p.data,q=(y=(g=v[3])==null?void 0:g[0])==null?void 0:y.data;else throw"NUMBERS Tile missing ".concat(e," cell storage");for(var V=x?4:1,b=Ah(B),E=[],I=0;I<B.length/2;++I){var S=b.getUint16(I*2,!0);S<65535&&E.push([I,S])}if(E.length!=C)throw"Expected ".concat(C," cells, found ").concat(E.length);var k=[];for(I=0;I<E.length-1;++I)k[E[I][0]]=q.subarray(E[I][1]*V,E[I+1][1]*V);return E.length>=1&&(k[E[E.length-1][0]]=q.subarray(E[E.length-1][1]*V)),{R:T,cells:k}}function Eve(r,e){var t,n=mr(e.data),i=(t=n?.[7])!=null&&t[0]?bn(n[7][0].data)>>>0>0?1:0:-1,a=dO(n[5],function(s){return xve(s,i)});return{nrows:bn(n[4][0].data)>>>0,data:a.reduce(function(s,o){return s[o.R]||(s[o.R]=[]),o.cells.forEach(function(l,c){if(s[o.R][c])throw new Error("Duplicate cell r=".concat(o.R," c=").concat(c));s[o.R][c]=l}),s},[])}}function Tve(r,e,t){var n,i=mr(e.data),a={s:{r:0,c:0},e:{r:0,c:0}};if(a.e.r=(bn(i[6][0].data)>>>0)-1,a.e.r<0)throw new Error("Invalid row varint ".concat(i[6][0].data));if(a.e.c=(bn(i[7][0].data)>>>0)-1,a.e.c<0)throw new Error("Invalid col varint ".concat(i[7][0].data));t["!ref"]=Bt(a);var s=mr(i[4][0].data),o=dH(r,r[Ji(s[4][0].data)][0]),l=(n=s[17])!=null&&n[0]?dH(r,r[Ji(s[17][0].data)][0]):[],c=mr(s[3][0].data),u=0;c[1].forEach(function(d){var f=mr(d.data),p=r[Ji(f[2][0].data)][0],g=bn(p.meta[1][0].data);if(g!=6002)throw new Error("6001 unexpected reference to ".concat(g));var y=Eve(r,p);y.data.forEach(function(v,T){v.forEach(function(C,x){var B=xt({r:u+T,c:x}),q=Ive(C,o,l);q&&(t[B]=q)})}),u+=y.nrows})}function Cve(r,e){var t=mr(e.data),n={"!ref":"A1"},i=r[Ji(t[2][0].data)],a=bn(i[0].meta[1][0].data);if(a!=6001)throw new Error("6000 unexpected reference to ".concat(a));return Tve(r,i[0],n),n}function Sve(r,e){var t,n=mr(e.data),i={name:(t=n[1])!=null&&t[0]?CR(n[1][0].data):"",sheets:[]},a=dO(n[2],Ji);return a.forEach(function(s){r[s].forEach(function(o){var l=bn(o.meta[1][0].data);l==6e3&&i.sheets.push(Cve(r,o))})}),i}function Dve(r,e){var t=gO(),n=mr(e.data),i=dO(n[1],Ji);if(i.forEach(function(a){r[a].forEach(function(s){var o=bn(s.meta[1][0].data);if(o==2){var l=Sve(r,s);l.sheets.forEach(function(c,u){yO(t,c,u==0?l.name:l.name+"_"+u,!0)})}})}),t.SheetNames.length==0)throw new Error("Empty NUMBERS file");return t}function fR(r){var e,t,n,i,a={},s=[];if(r.FullPaths.forEach(function(l){if(l.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),r.FileIndex.forEach(function(l){if(l.name.match(/\.iwa$/)){var c;try{c=Ws(l.content)}catch(d){return console.log("?? "+l.content.length+" "+(d.message||d))}var u;try{u=Gs(c)}catch(d){return console.log("## "+(d.message||d))}u.forEach(function(d){a[d.id]=d.messages,s.push(d.id)})}}),!s.length)throw new Error("File has no messages");var o=((i=(n=(t=(e=a?.[1])==null?void 0:e[0])==null?void 0:t.meta)==null?void 0:n[1])==null?void 0:i[0].data)&&bn(a[1][0].meta[1][0].data)==1&&a[1][0];if(o||s.forEach(function(l){a[l].forEach(function(c){var u=bn(c.meta[1][0].data)>>>0;if(u==1)if(!o)o=c;else throw new Error("Document has multiple roots")})}),!o)throw new Error("Cannot find Document root");return Dve(a,o)}function Ave(r,e,t){var n,i,a,s;if(!((n=r[6])!=null&&n[0])||!((i=r[7])!=null&&i[0]))throw"Mutation only works on post-BNC storages!";var o=((s=(a=r[8])==null?void 0:a[0])==null?void 0:s.data)&&bn(r[8][0].data)>0||!1;if(o)throw"Math only works with normal offsets";for(var l=0,c=Ah(r[7][0].data),u=0,d=[],f=Ah(r[4][0].data),p=0,g=[],y=0;y<e.length;++y){if(e[y]==null){c.setUint16(y*2,65535,!0),f.setUint16(y*2,65535);continue}c.setUint16(y*2,u,!0),f.setUint16(y*2,p,!0);var v,T;switch(typeof e[y]){case"string":v=dR({t:"s",v:e[y]},t),T=hR({t:"s",v:e[y]},t);break;case"number":v=dR({t:"n",v:e[y]},t),T=hR({t:"n",v:e[y]},t);break;case"boolean":v=dR({t:"b",v:e[y]},t),T=hR({t:"b",v:e[y]},t);break;default:throw new Error("Unsupported value "+e[y])}d.push(v),u+=v.length,g.push(T),p+=T.length,++l}for(r[2][0].data=Er(l);y<r[7][0].data.length/2;++y)c.setUint16(y*2,65535,!0),f.setUint16(y*2,65535,!0);return r[6][0].data=Au(d),r[3][0].data=Au(g),l}
238function Mve(r,e){if(!e||!e.numbers)throw new Error("Must pass a `numbers` option -- check the README");var t=r.Sheets[r.SheetNames[0]];r.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var n=Ya(t["!ref"]);n.s.r=n.s.c=0;var i=!1;n.e.c>9&&(i=!0,n.e.c=9),n.e.r>49&&(i=!0,n.e.r=49),i&&console.error("The Numbers writer is currently limited to ".concat(Bt(n)));var a=HE(t,{range:n,header:1}),s=["~Sh33tJ5~"];a.forEach(function(W){return W.forEach(function(H){typeof H=="string"&&s.push(H)})});var o={},l=[],c=ct.read(e.numbers,{type:"base64"});c.FileIndex.map(function(W,H){return[W,c.FullPaths[H]]}).forEach(function(W){var H=W[0],ne=W[1];if(H.type==2&&H.name.match(/\.iwa/)){var _e=H.content,be=Ws(_e),we=Gs(be);we.forEach(function(ce){l.push(ce.id),o[ce.id]={deps:[],location:ne,type:bn(ce.messages[0].meta[1][0].data)}})}}),l.sort(function(W,H){return W-H});var u=l.filter(function(W){return W>1}).map(function(W){return[W,Er(W)]});c.FileIndex.map(function(W,H){return[W,c.FullPaths[H]]}).forEach(function(W){var H=W[0],ne=W[1];if(H.name.match(/\.iwa/)){var _e=Gs(Ws(H.content));_e.forEach(function(be){be.messages.forEach(function(we){u.forEach(function(ce){be.messages.some(function(et){return bn(et.meta[1][0].data)!=11006&&gve(et.data,ce[1])})&&o[ce[0]].deps.push(be.id)})})})}});function d(){for(var W=927262;W<2e6;++W)if(!o[W])return W;throw new Error("Too many messages")}for(var f=ct.find(c,o[1].location),p=Gs(Ws(f.content)),g,y=0;y<p.length;++y){var v=p[y];v.id==1&&(g=v)}var T=Ji(mr(g.messages[0].data)[1][0].data);for(f=ct.find(c,o[T].location),p=Gs(Ws(f.content)),y=0;y<p.length;++y)v=p[y],v.id==T&&(g=v);for(T=Ji(mr(g.messages[0].data)[2][0].data),f=ct.find(c,o[T].location),p=Gs(Ws(f.content)),y=0;y<p.length;++y)v=p[y],v.id==T&&(g=v);for(T=Ji(mr(g.messages[0].data)[2][0].data),f=ct.find(c,o[T].location),p=Gs(Ws(f.content)),y=0;y<p.length;++y)v=p[y],v.id==T&&(g=v);var C=mr(g.messages[0].data);{C[6][0].data=Er(n.e.r+1),C[7][0].data=Er(n.e.c+1);var x=Ji(C[46][0].data),B=ct.find(c,o[x].location),q=Gs(Ws(B.content));{for(var V=0;V<q.length&&q[V].id!=x;++V);if(q[V].id!=x)throw"Bad ColumnRowUIDMapArchive";var b=mr(q[V].messages[0].data);b[1]=[],b[2]=[],b[3]=[];for(var E=0;E<=n.e.c;++E){var I=[];I[1]=I[2]=[{type:0,data:Er(E+420690)}],b[1].push({type:2,data:ki(I)}),b[2].push({type:0,data:Er(E)}),b[3].push({type:0,data:Er(E)})}b[4]=[],b[5]=[],b[6]=[];for(var S=0;S<=n.e.r;++S)I=[],I[1]=I[2]=[{type:0,data:Er(S+726270)}],b[4].push({type:2,data:ki(I)}),b[5].push({type:0,data:Er(S)}),b[6].push({type:0,data:Er(S)});q[V].messages[0].data=ki(b)}B.content=Zm(Jm(q)),B.size=B.content.length,delete C[46];var k=mr(C[4][0].data);{k[7][0].data=Er(n.e.r+1);var D=mr(k[1][0].data),R=Ji(D[2][0].data);B=ct.find(c,o[R].location),q=Gs(Ws(B.content));{if(q[0].id!=R)throw"Bad HeaderStorageBucket";var De=mr(q[0].messages[0].data);for(S=0;S<a.length;++S){var ve=mr(De[2][0].data);ve[1][0].data=Er(S),ve[4][0].data=Er(a[S].length),De[2][S]={type:De[2][0].type,data:ki(ve)}}q[0].messages[0].data=ki(De)}B.content=Zm(Jm(q)),B.size=B.content.length;var rt=Ji(k[2][0].data);B=ct.find(c,o[rt].location),q=Gs(Ws(B.content));{if(q[0].id!=rt)throw"Bad HeaderStorageBucket";for(De=mr(q[0].messages[0].data),E=0;E<=n.e.c;++E)ve=mr(De[2][0].data),ve[1][0].data=Er(E),ve[4][0].data=Er(n.e.r+1),De[2][E]={type:De[2][0].type,data:ki(ve)};q[0].messages[0].data=ki(De)}B.content=Zm(Jm(q)),B.size=B.content.length;var $e=Ji(k[4][0].data);(function(){for(var W=ct.find(c,o[$e].location),H=Gs(Ws(W.content)),ne,_e=0;_e<H.length;++_e){var be=H[_e];be.id==$e&&(ne=be)}var we=mr(ne.messages[0].data);{we[3]=[];var ce=[];s.forEach(function(Et,gt){ce[1]=[{type:0,data:Er(gt)}],ce[2]=[{type:0,data:Er(1)}],ce[3]=[{type:2,data:pve(Et)}],we[3].push({type:2,data:ki(ce)})})}ne.messages[0].data=ki(we);var et=Jm(H),N=Zm(et);W.content=N,W.size=W.content.length})();var vt=mr(k[3][0].data);{var Be=vt[1][0];delete vt[2];var Ze=mr(Be.data);{var le=Ji(Ze[2][0].data);(function(){for(var W=ct.find(c,o[le].location),H=Gs(Ws(W.content)),ne,_e=0;_e<H.length;++_e){var be=H[_e];be.id==le&&(ne=be)}var we=mr(ne.messages[0].data);{delete we[6],delete vt[7];var ce=new Uint8Array(we[5][0].data);we[5]=[];for(var et=0,N=0;N<=n.e.r;++N){var Et=mr(ce);et+=Ave(Et,a[N],s),Et[1][0].data=Er(N),we[5].push({data:ki(Et),type:2})}we[1]=[{type:0,data:Er(n.e.c+1)}],we[2]=[{type:0,data:Er(n.e.r+1)}],we[3]=[{type:0,data:Er(et)}],we[4]=[{type:0,data:Er(n.e.r+1)}]}ne.messages[0].data=ki(we);var gt=Jm(H),Jt=Zm(gt);W.content=Jt,W.size=W.content.length})()}Be.data=ki(Ze)}k[3][0].data=ki(vt)}C[4][0].data=ki(k)}g.messages[0].data=ki(C);var j=Jm(p),K=Zm(j);return f.content=K,f.size=f.content.length,c}function u$(r){return function(t){for(var n=0;n!=r.length;++n){var i=r[n];t[i[0]]===void 0&&(t[i[0]]=i[1]),i[2]==="n"&&(t[i[0]]=Number(t[i[0]]))}}}function hO(r){u$([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0
238],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(r)}function fO(r){u$([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(r)}function kve(r){return Ut.WS.indexOf(r)>-1?"sheet":Ut.CS&&r==Ut.CS?"chart":Ut.DS&&r==Ut.DS?"dialog":Ut.MS&&r==Ut.MS?"macro":r&&r.length?r:"sheet"}function Pve(r,e){if(!r)return 0;try{r=e.map(function(n){return n.id||(n.id=n.strRelID),[n.name,r["!id"][n.id].Target,kve(r["!id"][n.id].Type)]})}catch{return null}return!r||r.length===0?null:r}function Rve(r,e,t,n,i,a,s,o,l,c,u,d){try{a[n]=By(_s(r,t,!0),e);var f=qn(r,e),p;switch(o){case"sheet":p=tye(f,e,i,l,a[n],c,u,d);break;case"chart":if(p=rye(f,e,i,l,a[n],c,u,d),!p||!p["!drawel"])break;var g=Py(p["!drawel"].Target,e),y=qy(g),v=jfe(_s(r,g,!0),By(_s(r,y,!0),g)),T=Py(v,g),C=qy(T);p=A0e(_s(r,T,!0),T,l,By(_s(r,C,!0),T),c,p);break;case"macro":p=nye(f,e,i,l,a[n],c,u,d);break;case"dialog":p=iye(f,e,i,l,a[n],c,u,d);break;default:throw new Error("Unrecognized sheet type "+o)}s[n]=p;var x=[];a&&a[n]&&In(a[n]).forEach(function(B){var q="";if(a[n][B].Type==Ut.CMNT){q=Py(a[n][B].Target,e);var V=lye(qn(r,q,!0),q,l);if(!V||!V.length)return;Xj(p,V,!1)}a[n][B].Type==Ut.TCMNT&&(q=Py(a[n][B].Target,e),x=x.concat($fe(qn(r,q,!0),l)))}),x&&x.length&&Xj(p,x,!0,l.people||[])}catch(B){if(l.WTF)throw B}}function Hs(r){return r.charAt(0)=="/"?r.slice(1):r}function Ove(r,e){if(hp(),e=e||{},hO(e),qs(r,"META-INF/manifest.xml")||qs(r,"objectdata.xml"))return oH(r,e);if(qs(r,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof fR<"u"){if(r.FileIndex)return fR(r);var t=ct.utils.cfb_new();return yj(r).forEach(function(De){Vt(t,De,AH(r,De))}),fR(t)}throw new Error("Unsupported NUMBERS file")}if(!qs(r,"[Content_Types].xml"))throw qs(r,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):qs(r,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var n=yj(r),i=Lce(_s(r,"[Content_Types].xml")),a=!1,s,o;if(i.workbooks.length===0&&(o="xl/workbook.xml",qn(r,o,!0)&&i.workbooks.push(o)),i.workbooks.length===0){if(o="xl/workbook.bin",!qn(r,o,!0))throw new Error("Could not find workbook");i.workbooks.push(o),a=!0}i.workbooks[0].slice(-3)=="bin"&&(a=!0);var l={},c={};if(!e.bookSheets&&!e.bookProps){if(Ny=[],i.sst)try{Ny=oye(qn(r,Hs(i.sst)),i.sst,e)}catch(De){if(e.WTF)throw De}e.cellStyles&&i.themes.length&&(l=sye(_s(r,i.themes[0].replace(/^\//,""),!0)||"",i.themes[0],e)),i.style&&(c=aye(qn(r,Hs(i.style)),i.style,l,e))}i.links.map(function(De){try{var ve=By(_s(r,qy(Hs(De))),De);return uye(qn(r,Hs(De)),ve,De,e)}catch{}});var u=eye(qn(r,Hs(i.workbooks[0])),i.workbooks[0],e),d={},f="";i.coreprops.length&&(f=qn(r,Hs(i.coreprops[0]),!0),f&&(d=JH(f)),i.extprops.length!==0&&(f=qn(r,Hs(i.extprops[0]),!0),f&&Gce(f,d,e)));var p={};(!e.bookSheets||e.bookProps)&&i.custprops.length!==0&&(f=_s(r,Hs(i.custprops[0]),!0),f&&(p=qce(f,e)));var g={};if((e.bookSheets||e.bookProps)&&(u.Sheets?s=u.Sheets.map(function(ve){return ve.name}):d.Worksheets&&d.SheetNames.length>0&&(s=d.SheetNames),e.bookProps&&(g.Props=d,g.Custprops=p),e.bookSheets&&typeof s<"u"&&(g.SheetNames=s),e.bookSheets?g.SheetNames:e.bookProps))return g;s={};var y={};e.bookDeps&&i.calcchain&&(y=cye(qn(r,Hs(i.calcchain)),i.calcchain,e));var v=0,T={},C,x;{var B=u.Sheets;d.Worksheets=B.length,d.SheetNames=[];for(var q=0;q!=B.length;++q)d.SheetNames[q]=B[q].name}var V=a?"bin":"xml",b=i.workbooks[0].lastIndexOf("/"),E=(i.workbooks[0].slice(0,b+1)+"_rels/"+i.workbooks[0].slice(b+1)+".rels").replace(/^\//,"");qs(r,E)||(E="xl/_rels/workbook."+V+".rels");var I=By(_s(r,E,!0),E.replace(/_rels.*/,"s5s"));(i.metadata||[]).length>=1&&(e.xlmeta=dye(qn(r,Hs(i.metadata[0])),i.metadata[0],e)),(i.people||[]).length>=1&&(e.people=Wfe(qn(r,Hs(i.people[0])),e)),I&&(I=Pve(I,u.Sheets));var S=qn(r,"xl/worksheets/sheet.xml",!0)?1:0;e:for(v=0;v!=d.Worksheets;++v){var k="sheet";if(I&&I[v]?(C="xl/"+I[v][1].replace(/[\/]?xl\//,""),qs(r,C)||(C=I[v][1]),qs(r,C)||(C=E.replace(/_rels\/.*$/,"")+I[v][1]),k=I[v][2]):(C="xl/worksheets/sheet"+(v+1-S)+"."+V,C=C.replace(/sheet0\./,"sheet.")),x=C.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),e&&e.sheets!=null)switch(typeof e.sheets){case"number":if(v!=e.sheets)continue e;break;case"string":if(d.SheetNames[v].toLowerCase()!=e.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(e.sheets)){for(var D=!1,R=0;R!=e.sheets.length;++R)typeof e.sheets[R]=="number"&&e.sheets[R]==v&&(D=1),typeof e.sheets[R]=="string"&&e.sheets[R].toLowerCase()==d.SheetNames[v].toLowerCase()&&(D=1);if(!D)continue e}}Rve(r,C,x,d.SheetNames[v],v,T,s,k,e,u,l,c)}return g={Directory:i,Workbook:u,Props:d,Custprops:p,Deps:y,Sheets:s,SheetNames:d.SheetNames,Strings:Ny,Styles:c,Themes:l,SSF:qr(yt)},e&&e.bookFiles&&(r.files?(g.keys=n,g.files=r.files):(g.keys=[],g.files={}
vendor: 4,241 bytes, line 238
238,r.FullPaths.forEach(function(De,ve){De=De.replace(/^Root Entry[\/]/,""),g.keys.push(De),g.files[De]=r.FileIndex[ve]}))),e&&e.bookVBA&&(i.vba.length>0?g.vbaraw=qn(r,Hs(i.vba[0]),!0):i.defaults&&i.defaults.bin===eme&&(g.vbaraw=qn(r,"xl/vbaProject.bin",!0))),g}function Fve(r,e){var t=e||{},n="Workbook",i=ct.find(r,n);try{if(n="/!DataSpaces/Version",i=ct.find(r,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(dhe(i.content),n="/!DataSpaces/DataSpaceMap",i=ct.find(r,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var a=fhe(i.content);if(a.length!==1||a[0].comps.length!==1||a[0].comps[0].t!==0||a[0].name!=="StrongEncryptionDataSpace"||a[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",i=ct.find(r,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var s=mhe(i.content);if(s.length!=1||s[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+n);if(n="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",i=ct.find(r,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);ghe(i.content)}catch{}if(n="/EncryptionInfo",i=ct.find(r,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);var o=yhe(i.content);if(n="/EncryptedPackage",i=ct.find(r,n),!i||!i.content)throw new Error("ECMA-376 Encrypted file missing "+n);if(o[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(o[1],i.content,t.password||"",t);if(o[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(o[1],i.content,t.password||"",t);throw new Error("File is password-protected")}function Bve(r,e){return e.bookType=="ods"?c$(r,e):e.bookType=="numbers"?Mve(r,e):e.bookType=="xlsb"?Nve(r,e):Lve(r,e)}function Nve(r,e){rp=1024,r&&!r.SSF&&(r.SSF=qr(yt)),r&&r.SSF&&(hp(),GE(r.SSF),e.revssf=qE(r.SSF),e.revssf[r.SSF[65535]]=0,e.ssf=r.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,Ly?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var t=e.bookType=="xlsb"?"bin":"xml",n=N9.indexOf(e.bookType)>-1,i=JR();fO(e=e||{});var a=OR(),s="",o=0;if(e.cellXfs=[],Pu(e.cellXfs,{},{revssf:{General:0}}),r.Props||(r.Props={}),s="docProps/core.xml",Vt(a,s,ZH(r.Props,e)),i.coreprops.push(s),Tr(e.rels,2,s,Ut.CORE_PROPS),s="docProps/app.xml",!(r.Props&&r.Props.SheetNames))if(!r.Workbook||!r.Workbook.Sheets)r.Props.SheetNames=r.SheetNames;else{for(var l=[],c=0;c<r.SheetNames.length;++c)(r.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(r.SheetNames[c]);r.Props.SheetNames=l}for(r.Props.Worksheets=r.Props.SheetNames.length,Vt(a,s,r9(r.Props,e)),i.extprops.push(s),Tr(e.rels,3,s,Ut.EXT_PROPS),r.Custprops!==r.Props&&In(r.Custprops||{}).length>0&&(s="docProps/custom.xml",Vt(a,s,n9(r.Custprops,e)),i.custprops.push(s),Tr(e.rels,4,s,Ut.CUST_PROPS)),o=1;o<=r.SheetNames.length;++o){var u={"!id":{}},d=r.Sheets[r.SheetNames[o-1]],f=(d||{})["!type"]||"sheet";switch(f){case"chart":default:s="xl/worksheets/sheet"+o+"."+t,Vt(a,s,fye(o-1,s,e,r,u)),i.sheets.push(s),Tr(e.wbrels,-1,"worksheets/sheet"+o+"."+t,Ut.WS[0])}if(d){var p=d["!comments"],g=!1,y="";p&&p.length>0&&(y="xl/comments"+o+"."+t,Vt(a,y,gye(p,y,e)),i.comments.push(y),Tr(u,-1,"../comments"+o+"."+t,Ut.CMNT),g=!0),d["!legacy"]&&g&&Vt(a,"xl/drawings/vmlDrawing"+o+".vml",F9(o,d["!comments"])),delete d["!comments"],delete d["!legacy"]}u["!id"].rId1&&Vt(a,qy(s),ip(u))}return e.Strings!=null&&e.Strings.length>0&&(s="xl/sharedStrings."+t,Vt(a,s,pye(e.Strings,s,e)),i.strs.push(s),Tr(e.wbrels,-1,"sharedStrings."+t,Ut.SST)),s="xl/workbook."+t,Vt(a,s,hye(r,s,e)),i.workbooks.push(s),Tr(e.rels,1,s,Ut.WB),s="xl/theme/theme1.xml",Vt(a,s,iO(r.Themes,e)),i.themes.push(s),Tr(e.wbrels,-1,"theme/theme1.xml",Ut.THEME),s="xl/styles."+t,Vt(a,s,mye(r,s,e)),i.styles.push(s),Tr(e.wbrels,-1,"styles."+t,Ut.STY),r.vbaraw&&n&&(s="xl/vbaProject.bin",Vt(a,s,r.vbaraw),i.vba.push(s),Tr(e.wbrels,-1,"vbaProject.bin",Ut.VBA)),s="xl/metadata."+t,Vt(a,s,yye(s)),i.metadata.push(s),Tr(e.wbrels,-1,"metadata."+t,Ut.XLMETA),Vt(a,"[Content_Types].xml",XH(i,e)),Vt(a,"_rels/.rels",ip(e.rels)),Vt(a,"xl/_rels/workbook."+t+".rels",ip(e.wbrels)),delete e.revssf,delete e.ssf,a}
vendor: 7,578 bytes, line 238
238function Lve(r,e){rp=1024,r&&!r.SSF&&(r.SSF=qr(yt)),r&&r.SSF&&(hp(),GE(r.SSF),e.revssf=qE(r.SSF),e.revssf[r.SSF[65535]]=0,e.ssf=r.SSF),e.rels={},e.wbrels={},e.Strings=[],e.Strings.Count=0,e.Strings.Unique=0,Ly?e.revStrings=new Map:(e.revStrings={},e.revStrings.foo=[],delete e.revStrings.foo);var t="xml",n=N9.indexOf(e.bookType)>-1,i=JR();fO(e=e||{});var a=OR(),s="",o=0;if(e.cellXfs=[],Pu(e.cellXfs,{},{revssf:{General:0}}),r.Props||(r.Props={}),s="docProps/core.xml",Vt(a,s,ZH(r.Props,e)),i.coreprops.push(s),Tr(e.rels,2,s,Ut.CORE_PROPS),s="docProps/app.xml",!(r.Props&&r.Props.SheetNames))if(!r.Workbook||!r.Workbook.Sheets)r.Props.SheetNames=r.SheetNames;else{for(var l=[],c=0;c<r.SheetNames.length;++c)(r.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(r.SheetNames[c]);r.Props.SheetNames=l}r.Props.Worksheets=r.Props.SheetNames.length,Vt(a,s,r9(r.Props,e)),i.extprops.push(s),Tr(e.rels,3,s,Ut.EXT_PROPS),r.Custprops!==r.Props&&In(r.Custprops||{}).length>0&&(s="docProps/custom.xml",Vt(a,s,n9(r.Custprops,e)),i.custprops.push(s),Tr(e.rels,4,s,Ut.CUST_PROPS));var u=["SheetJ5"];for(e.tcid=0,o=1;o<=r.SheetNames.length;++o){var d={"!id":{}},f=r.Sheets[r.SheetNames[o-1]],p=(f||{})["!type"]||"sheet";switch(p){case"chart":default:s="xl/worksheets/sheet"+o+"."+t,Vt(a,s,K9(o-1,e,r,d)),i.sheets.push(s),Tr(e.wbrels,-1,"worksheets/sheet"+o+"."+t,Ut.WS[0])}if(f){var g=f["!comments"],y=!1,v="";if(g&&g.length>0){var T=!1;g.forEach(function(C){C[1].forEach(function(x){x.T==!0&&(T=!0)})}),T&&(v="xl/threadedComments/threadedComment"+o+"."+t,Vt(a,v,Gfe(g,u,e)),i.threadedcomments.push(v),Tr(d,-1,"../threadedComments/threadedComment"+o+"."+t,Ut.TCMNT)),v="xl/comments"+o+"."+t,Vt(a,v,B9(g,e)),i.comments.push(v),Tr(d,-1,"../comments"+o+"."+t,Ut.CMNT),y=!0}f["!legacy"]&&y&&Vt(a,"xl/drawings/vmlDrawing"+o+".vml",F9(o,f["!comments"])),delete f["!comments"],delete f["!legacy"]}d["!id"].rId1&&Vt(a,qy(s),ip(d))}return e.Strings!=null&&e.Strings.length>0&&(s="xl/sharedStrings."+t,Vt(a,s,x9(e.Strings,e)),i.strs.push(s),Tr(e.wbrels,-1,"sharedStrings."+t,Ut.SST)),s="xl/workbook."+t,Vt(a,s,Z9(r,e)),i.workbooks.push(s),Tr(e.rels,1,s,Ut.WB),s="xl/theme/theme1.xml",Vt(a,s,iO(r.Themes,e)),i.themes.push(s),Tr(e.wbrels,-1,"theme/theme1.xml",Ut.THEME),s="xl/styles."+t,Vt(a,s,k9(r,e)),i.styles.push(s),Tr(e.wbrels,-1,"styles."+t,Ut.STY),r.vbaraw&&n&&(s="xl/vbaProject.bin",Vt(a,s,r.vbaraw),i.vba.push(s),Tr(e.wbrels,-1,"vbaProject.bin",Ut.VBA)),s="xl/metadata."+t,Vt(a,s,O9()),i.metadata.push(s),Tr(e.wbrels,-1,"metadata."+t,Ut.XLMETA),u.length>1&&(s="xl/persons/person.xml",Vt(a,s,qfe(u,e)),i.people.push(s),Tr(e.wbrels,-1,"persons/person.xml",Ut.PEOPLE)),Vt(a,"[Content_Types].xml",XH(i,e)),Vt(a,"_rels/.rels",ip(e.rels)),Vt(a,"xl/_rels/workbook."+t+".rels",ip(e.wbrels)),delete e.revssf,delete e.ssf,a}function mO(r,e){var t="";switch((e||{}).type||"base64"){case"buffer":return[r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7]];case"base64":t=bs(r.slice(0,12));break;case"binary":t=r;break;case"array":return[r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7]];default:throw new Error("Unrecognized type "+(e&&e.type||"undefined"))}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function Vve(r,e){return ct.find(r,"EncryptedPackage")?Fve(r,e):n$(r,e)}function Uve(r,e){var t,n=r,i=e||{};return i.type||(i.type=Kt&&Buffer.isBuffer(r)?"buffer":"base64"),t=MH(n,i),Ove(t,i)}function d$(r,e){var t=0;e:for(;t<r.length;)switch(r.charCodeAt(t)){case 10:case 13:case 32:++t;break;case 60:return ER(r.slice(t),e);default:break e}return cp.to_workbook(r,e)}function zve(r,e){var t="",n=mO(r,e);switch(e.type){case"base64":t=bs(r);break;case"binary":t=r;break;case"buffer":t=r.toString("binary");break;case"array":t=Th(r);break;default:throw new Error("Unrecognized type "+e.type)}return n[0]==239&&n[1]==187&&n[2]==191&&(t=kr(t)),e.type="binary",d$(t,e)}function jve(r,e){var t=r;return e.type=="base64"&&(t=bs(t)),t=wr.utils.decode(1200,t.slice(2),"str"),e.type="binary",d$(t,e)}function Hve(r){return r.match(/[^\x00-\x7F]/)?pl(r):r}function mR(r,e,t,n){return n?(t.type="string",cp.to_workbook(r,t)):cp.to_workbook(e,t)}function jE(r,e){AR();var t=e||{};if(typeof ArrayBuffer<"u"&&r instanceof ArrayBuffer)return jE(new Uint8Array(r),(t=qr(t),t.type="array",t));typeof Uint8Array<"u"&&r instanceof Uint8Array&&!t.type&&(t.type=typeof Deno<"u"?"buffer":"array");var n=r,i=[0,0,0,0],a=!1;if(t.cellStyles&&(t.cellNF=!0,t.sheetStubs=!0),sp={},t.dateNF&&(sp.dateNF=t.dateNF),t.type||(t.type=Kt&&Buffer.isBuffer(r)?"buffer":"base64"),t.type=="file"&&(t.type=Kt?"buffer":"binary",n=Nle(r),typeof Uint8Array<"u"&&!Kt&&(t.type="array")),t.type=="string"&&(a=!0,t.type="binary",t.codepage=65001,n=Hve(r)),t.type=="array"&&typeof Uint8Array<"u"&&r instanceof Uint8Array&&typeof ArrayBuffer<"u"){var s=new ArrayBuffer(3),o=new Uint8Array(s);if(o.foo="bar",!o.foo)return t=qr(t),t.type="array",jE(MR(n),t)}switch((i=mO(n,t))[0]){case 208:if(i[1]===207&&i[2]===17&&i[3]===224&&i[4]===161&&i[5]===177&&i[6]===26&&i[7]===225)return Vve(ct.read(n,t),t);break;case 9:if(i[1]<=8)return n$(n,t);break;case 60:return ER(n,t);case 73:if(i[1]===73&&i[2]===42&&i[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(i[1]===68)return Kde(n,t);break;case 84:if(i[1]===65&&i[2]===66&&i[3]===76)return w9.to_workbook(n,t);break;case 80:return i[1]===75&&i[2]<9&&i[3]<9?Uve(n,t):mR(r,n,t,a);case 239:return i[3]===60?ER(n,t):mR(r,n,t,a);case 255:if(i[1]===254)return jve(n,t);if(i[1]===0&&i[2]===2&&i[3]===0)return Ih.to_workbook(n,t);break;case 0:if(i[1]===0&&(i[2]>=2&&i[3]===0||i[2]===0&&(i[3]===8||i[3]===9)))return Ih.to_workbook(n,t);break;case 3:case 131:case 139:case 140:return xR.to_workbook(n,t);case 123:if(i[1]===92&&i[2]===114&&i[3]===116)return D9.to_workbook(n,t);break;case 10:case 13:case 32:return zve(n,t);case 137:if(i[1]===80&&i[2]===78&&i[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return qde.indexOf(i[0])>-1&&i[2]<=12&&i[3]<=31?xR.to_workbook(n,t):mR(r,n,t,a)}function h$(r,e){switch(e.type){case"base64":case"binary":break;case"buffer":case"array":e.type="";break;case"file":return tv(e.file,ct.write(r,{type:Kt?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");default:throw new Error("Unrecognized type "+e.type)}return ct.write(r,e)}function $ve(r,e){var t=qr(e||{}),n=Bve(r,t);return Gve(n,t)}function Gve(r,e){var t={},n=Kt?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(e.compression&&(t.compression="DEFLATE"),e.password)t.type=n;else switch(e.type){case"base64":t.type="base64";break;case"binary":t.type="string";break;case"string":throw new Error("'string' output type invalid for '"+e.bookType+"' files");case"buffer":case"file":t.type=n;break;default:throw new Error("Unrecognized type "+e.type)}var i=r.FullPaths?ct.write(r,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[t.type]||t.type,compression:!!e.compression}):r.generate(t);if(typeof Deno<"u"&&typeof i=="string"){if(e.type=="binary"||e.type=="base64")return i;i=new Uint8Array($E(i))}return e.password&&typeof encrypt_agile<"u"?h$(encrypt_agile(i,e.password),e):e.type==="file"?tv(e.file,i):e.type=="string"?kr(i):i}function Wve(r,e){var t=e||{},n=Hye(r,t);return h$(n,t)}function ml(r,e,t){t||(t="");var n=t+r;switch(e.type){case"base64":return jy(pl(n));case"binary":return pl(n);case"string":return r;case"file":return tv(e.file,n,"utf8");case"buffer":return Kt?mc(n,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(n):ml(n,{type:"binary"}
vendor: 4,930 bytes, line 238
238).split("").map(function(i){return i.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function qve(r,e){switch(e.type){case"base64":return jy(r);case"binary":return r;case"string":return r;case"file":return tv(e.file,r,"binary");case"buffer":return Kt?mc(r,"binary"):r.split("").map(function(t){return t.charCodeAt(0)})}throw new Error("Unrecognized type "+e.type)}function ME(r,e){switch(e.type){case"string":case"base64":case"binary":for(var t="",n=0;n<r.length;++n)t+=String.fromCharCode(r[n]);return e.type=="base64"?jy(t):e.type=="string"?kr(t):t;case"file":return tv(e.file,r);case"buffer":return r;default:throw new Error("Unrecognized type "+e.type)}}function f$(r,e){AR(),V0e(r);var t=qr(e||{});if(t.cellStyles&&(t.cellNF=!0,t.sheetStubs=!0),t.type=="array"){t.type="binary";var n=f$(r,t);return t.type="array",$E(n)}var i=0;if(t.sheet&&(typeof t.sheet=="number"?i=t.sheet:i=r.SheetNames.indexOf(t.sheet),!r.SheetNames[i]))throw new Error("Sheet not found: "+t.sheet+" : "+typeof t.sheet);switch(t.bookType||"xlsb"){case"xml":case"xlml":return ml(Bye(r,t),t);case"slk":case"sylk":return ml(b9.from_sheet(r.Sheets[r.SheetNames[i]],t),t);case"htm":case"html":return ml(a$(r.Sheets[r.SheetNames[i]],t),t);case"txt":return qve(m$(r.Sheets[r.SheetNames[i]],t),t);case"csv":return ml(pO(r.Sheets[r.SheetNames[i]],t),t,"\uFEFF");case"dif":return ml(w9.from_sheet(r.Sheets[r.SheetNames[i]],t),t);case"dbf":return ME(xR.from_sheet(r.Sheets[r.SheetNames[i]],t),t);case"prn":return ml(cp.from_sheet(r.Sheets[r.SheetNames[i]],t),t);case"rtf":return ml(D9.from_sheet(r.Sheets[r.SheetNames[i]],t),t);case"eth":return ml(I9.from_sheet(r.Sheets[r.SheetNames[i]],t),t);case"fods":return ml(c$(r,t),t);case"wk1":return ME(Ih.sheet_to_wk1(r.Sheets[r.SheetNames[i]],t),t);case"wk3":return ME(Ih.book_to_wk3(r,t),t);case"biff2":t.biff||(t.biff=2);case"biff3":t.biff||(t.biff=3);case"biff4":return t.biff||(t.biff=4),ME(i$(r,t),t);case"biff5":t.biff||(t.biff=5);case"biff8":case"xla":case"xls":return t.biff||(t.biff=8),Wve(r,t);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return $ve(r,t);default:throw new Error("Unrecognized bookType |"+t.bookType+"|")}}function Kve(r){if(!r.bookType){var e={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},t=r.file.slice(r.file.lastIndexOf(".")).toLowerCase();t.match(/^\.[a-z]+$/)&&(r.bookType=t.slice(1)),r.bookType=e[r.bookType]||r.bookType}}function K7e(r,e,t){var n=t||{};return n.type="file",n.file=e,Kve(n),f$(r,n)}function Yve(r,e,t,n,i,a,s,o){var l=Mn(t),c=o.defval,u=o.raw||!Object.prototype.hasOwnProperty.call(o,"raw"),d=!0,f=i===1?[]:{};if(i!==1)if(Object.defineProperty)try{Object.defineProperty(f,"__rowNum__",{value:t,enumerable:!1})}catch{f.__rowNum__=t}else f.__rowNum__=t;if(!s||r[t])for(var p=e.s.c;p<=e.e.c;++p){var g=s?r[t][p]:r[n[p]+l];if(g===void 0||g.t===void 0){if(c===void 0)continue;a[p]!=null&&(f[a[p]]=c);continue}var y=g.v;switch(g.t){case"z":if(y==null)break;continue;case"e":y=y==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+g.t)}if(a[p]!=null){if(y==null)if(g.t=="e"&&y===null)f[a[p]]=null;else if(c!==void 0)f[a[p]]=c;else if(u&&y===null)f[a[p]]=null;else continue;else f[a[p]]=u&&(g.t!=="n"||g.t==="n"&&o.rawNumbers!==!1)?y:fc(g,y,o);y!=null&&(d=!1)}}return{row:f,isempty:d}}function HE(r,e){if(r==null||r["!ref"]==null)return[];var t={t:"n",v:0},n=0,i=1,a=[],s=0,o="",l={s:{r:0,c:0},e:{r:0,c:0}},c=e||{},u=c.range!=null?c.range:r["!ref"];switch(c.header===1?n=1:c.header==="A"?n=2:Array.isArray(c.header)?n=3:c.header==null&&(n=0),typeof u){case"string":l=hr(u);break;case"number":l=hr(r["!ref"]),l.s.r=u;break;default:l=u}n>0&&(i=0);var d=Mn(l.s.r),f=[],p=[],g=0,y=0,v=Array.isArray(r),T=l.s.r,C=0,x={};v&&!r[T]&&(r[T]=[]);var B=c.skipHidden&&r["!cols"]||[],q=c.skipHidden&&r["!rows"]||[];for(C=l.s.c;C<=l.e.c;++C)if(!(B[C]||{}).hidden)switch(f[C]=on(C),t=v?r[T][C]:r[f[C]+d],n){case 1:a[C]=C-l.s.c;break;case 2:a[C]=f[C];break;case 3:a[C]=c.header[C-l.s.c];break;default:if(t==null&&(t={w:"__EMPTY",t:"s"}),o=s=fc(t,null,c),y=x[s]||0,!y)x[s]=1;else{do o=s+"_"+y++;while(x[o]);x[s]=y,x[o]=1}a[C]=o}for(T=l.s.r+i;T<=l.e.r;++T)if(!(q[T]||{}).hidden){var V=Yve(r,l,T,f,n,a,v,c);(V.isempty===!1||(n===1?c.blankrows!==!1:c.blankrows))&&(p[g++]=V.row)}return p.length=g,p}var hH=/"/g;function Xve(r,e,t,n,i,a,s,o){for(var l=!0,c=[],u="",d=Mn(t),f=e.s.c;f<=e.e.c;++f)if(n[f]){var p=o.dense?(r[t]||[])[f]:r[n[f]+d];if(p==null)u="";else if(p.v!=null){l=!1,u=""+(o.rawNumbers&&p.t=="n"?p.v:fc(p,null,o));for(var g=0,y=0;g!==u.length;++g)if((y=u.charCodeAt(g))===i||y===a||y===34||o.forceQuotes){u='"'+u.replace(hH,'""')+'"';break}u=="ID"&&(u='"ID"')}else p.f!=null&&!p.F?(l=!1,u="="+p.f,u.indexOf(",")>=0&&(u='"'+u.replace(hH,'""')+'"')):u="";c.push(u)}return o.blankrows===!1&&l?null:c.join(s)}function pO(r,e){var t=[],n=e??{};if(r==null||r["!ref"]==null)return"";
238var i=hr(r["!ref"]),a=n.FS!==void 0?n.FS:",",s=a.charCodeAt(0),o=n.RS!==void 0?n.RS:` 239`,l=o.charCodeAt(0),c=new RegExp((a=="|"?"\\|":a)+"+$"),u="",d=[];n.dense=Array.isArray(r);for(var f=n.skipHidden&&r["!cols"]||[],p=n.skipHidden&&r["!rows"]||[],g=i.s.c;g<=i.e.c;++g)(f[g]||{}).hidden||(d[g]=on(g));for(var y=0,v=i.s.r;v<=i.e.r;++v)(p[v]||{}).hidden||(u=Xve(r,i,v,d,s,l,a,n),u!=null&&(n.strip&&(u=u.replace(c,"")),(u||n.blankrows!==!1)&&t.push((y++?o:"")+u)));return delete n.dense,t.join("")}function m$(r,e){e||(e={}),e.FS=" ",e.RS=` 240`;var t=pO(r,e);if(typeof wr>"u"||e.type=="string")return t;var n=wr.utils.encode(1200,t,"str");return"\xFF\xFE"+n}function Qve(r){var e="",t,n="";if(r==null||r["!ref"]==null)return[];var i=hr(r["!ref"]),a="",s=[],o,l=[],c=Array.isArray(r);for(o=i.s.c;o<=i.e.c;++o)s[o]=on(o);for(var u=i.s.r;u<=i.e.r;++u)for(a=Mn(u),o=i.s.c;o<=i.e.c;++o)if(e=s[o]+a,t=c?(r[u]||[])[o]:r[e],n="",t!==void 0){if(t.F!=null){if(e=t.F,!t.f)continue;n=t.f,e.indexOf(":")==-1&&(e=e+":"+e)}if(t.f!=null)n=t.f;else{if(t.t=="z")continue;if(t.t=="n"&&t.v!=null)n=""+t.v;else if(t.t=="b")n=t.v?"TRUE":"FALSE";else if(t.w!==void 0)n="'"+t.w;else{if(t.v===void 0)continue;t.t=="s"?n="'"+t.v:n=""+t.v}}l[l.length]=e+"="+n}return l}function p$(r,e,t){var n=t||{},i=+!n.skipHeader,a=r||{},s=0,o=0;if(a&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var l=typeof n.origin=="string"?ln(n.origin):n.origin;s=l.r,o=l.c}var c,u={s:{c:0,r:0},e:{c:o,r:s+e.length-1+i}};if(a["!ref"]){var d=hr(a["!ref"]);u.e.c=Math.max(u.e.c,d.e.c),u.e.r=Math.max(u.e.r,d.e.r),s==-1&&(s=d.e.r+1,u.e.r=s+e.length-1+i)}else s==-1&&(s=0,u.e.r=e.length-1+i);var f=n.header||[],p=0;e.forEach(function(y,v){In(y).forEach(function(T){(p=f.indexOf(T))==-1&&(f[p=f.length]=T);var C=y[T],x="z",B="",q=xt({c:o+p,r:s+v+i});c=ev(a,q),C&&typeof C=="object"&&!(C instanceof Date)?a[q]=C:(typeof C=="number"?x="n":typeof C=="boolean"?x="b":typeof C=="string"?x="s":C instanceof Date?(x="d",n.cellDates||(x="n",C=ni(C)),B=n.dateNF||yt[14]):C===null&&n.nullError&&(x="e",C=0),c?(c.t=x,c.v=C,delete c.w,delete c.R,B&&(c.z=B)):a[q]=c={t:x,v:C},B&&(c.z=B))})}),u.e.c=Math.max(u.e.c,o+f.length-1);var g=Mn(s);if(i)for(p=0;p<f.length;++p)a[on(p+o)+g]={t:"s",v:f[p]};return a["!ref"]=Bt(u),a}function Jve(r,e){return p$(null,r,e)}function ev(r,e,t){if(typeof e=="string"){if(Array.isArray(r)){var n=ln(e);return r[n.r]||(r[n.r]=[]),r[n.r][n.c]||(r[n.r][n.c]={t:"z"})}return r[e]||(r[e]={t:"z"})}return typeof e!="number"?ev(r,xt(e)):ev(r,xt({r:e,c:t||0}))}function Zve(r,e){if(typeof e=="number"){if(e>=0&&r.SheetNames.length>e)return e;throw new Error("Cannot find sheet # "+e)}else if(typeof e=="string"){var t=r.SheetNames.indexOf(e);if(t>-1)return t;throw new Error("Cannot find sheet name |"+e+"|")}else throw new Error("Cannot find sheet |"+e+"|")}function gO(){return{SheetNames:[],Sheets:{}}}function yO(r,e,t,n){var i=1;if(!t)for(;i<=65535&&r.SheetNames.indexOf(t="Sheet"+i)!=-1;++i,t=void 0);if(!t||r.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&r.SheetNames.indexOf(t)>=0){var a=t.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var s=a&&a[1]||t;for(++i;i<=65535&&r.SheetNames.indexOf(t=s+i)!=-1;++i);}if(J9(t),r.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");return r.SheetNames.push(t),r.Sheets[t]=e,t}function e_e(r,e,t){r.Workbook||(r.Workbook={}),r.Workbook.Sheets||(r.Workbook.Sheets=[]);var n=Zve(r,e);switch(r.Workbook.Sheets[n]||(r.Workbook.Sheets[n]={}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}r.Workbook.Sheets[n].Hidden=t}function t_e(r,e){return r.z=e,r}function g$(r,e,t){return e?(r.l={Target:e},t&&(r.l.Tooltip=t)):delete r.l,r}function r_e(r,e,t){return g$(r,"#"+e,t)}function n_e(r,e,t){r.c||(r.c=[]),r.c.push({t:e,a:t||"SheetJS"})}function i_e(r,e,t,n){for(var i=typeof e!="string"?e:hr(e),a=typeof e=="string"?e:Bt(e),s=i.s.r;s<=i.e.r;++s)for(var o=i.s.c;o<=i.e.c;++o){var l=ev(r,s,o);l.t="n",l.F=a,delete l.v,s==i.s.r&&o==i.s.c&&(l.f=t,n&&(l.D=!0))}return r}var y$={encode_col:on,encode_row:Mn,encode_cell:xt,encode_range:Bt,decode_col:WR,decode_row:GR,split_cell:pce,decode_cell:ln,decode_range:Ya,format_cell:fc,sheet_add_aoa:HH,sheet_add_json:p$,sheet_add_dom:s$,aoa_to_sheet:mp,json_to_sheet:Jve,table_to_sheet:o$,table_to_book:dve,sheet_to_csv:pO,sheet_to_txt:m$,sheet_to_json:HE,sheet_to_html:a$,sheet_to_formulae:Qve,sheet_to_row_object_array:HE,sheet_get_cell:ev,book_new:gO,book_append_sheet:yO,book_set_sheet_visibility:e_e,cell_set_number_format:t_e,cell_set_hyperlink:g$,cell_set_internal_link:r_e,cell_add_comment:n_e,sheet_set_array_formula:i_e,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};var Y7e=zy.version;
240var eT=class r{constructor(e){this.injector=e;this.functions=e.get(mn),this.originImpl=e.get(Xt)}functions;originImpl;getGeneralRequest(e){return Le(this.injector,()=>new Promise((t,n)=>{var i="getGeneralRequestCallV2";Ht(this.functions,i)({config:e}).then(s=>m(this,null,function*(){let o=s.data;if(o.success){let l=JSON.parse(o.data);t([l,void 0])}else t([void 0,o.message])})).catch(s=>{pe.checkFunctionCorsError(s,this.injector,"getGeneralRequestCallV2"),console.error("getGeneralRequestCall error",s),n(s)})}))}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var lv=class r{multimedia;headers=[];body=[];constructor(e){e&&this.setData(e)}setData(e){if(e){this.multimedia=Ee.setDataInner(e?.multimedia),this.headers=e.headers??[];try{this.body=e.body?JSON.parse(e.body):[]}catch{}}}getDocumentData(){var e={};return e=Ee.getDocumentDataInner(e,this.multimedia,"multimedia"),e.headers=this.headers?this.headers:null,e.body=this.body?JSON.stringify(this.body):null,e}static setDataInner(e){return new r(e)}static getDocumentDataInner(e,t,n="item"){return t&&(e[n]=t.getDocumentData()),e}static setItems(e,t){var n=[];return e[t]?(n=e[t],n.forEach((i,a)=>{n[a]=r.setDataInner(i)})):n=[],n}static getItems(e,t,n){if(t){var i=[];t.forEach((a,s)=>{var o=a.getDocumentData();i[s]=o}),e[n]=i}else e[n]=null;return e}readExcel(e){return m(this,null,function*(){try{var[t,n]=yield this.downalodFile(e,this);if(n)return console.error("readExcel error",n),n;var i=jE(t.data,{type:"buffer",cellDates:!0,cellNF:!0,cellText:!0});if(i.SheetNames.length==0)return console.error("Attenzione! Il file non contiene fogli"),"Attenzione! Il file non contiene fogli";var a=y$.sheet_to_json(i.Sheets[i.SheetNames[0]],{defval:""}),s=0;this.body=[],yield Promise.all(a.map(o=>m(this,null,function*(){s==0&&(this.headers=Object.keys(o));var l=Object.values(o);l=l.map(c=>{if(xa(ti(c,"d-M-yyyy"))){var u=pt(c);return u.getHours()==0&&u.getMinutes()==0&&u.getSeconds()==0?ti(u,"dd-MM-yyyy",{locale:Io}):ti(u,"dd-MM-yyyy HH:mm",{locale:Io})}return c}),this.body.push(l),s++})));return}catch(o){return console.log("readExcel error ",o),o}})}downalodFile(e,t){return m(this,null,function*(){var n=t?.multimedia?.url;if(!n)return[void 0,"no base url"];let i={method:"GET",url:n,responseType:"arraybuffer",responseEncoding:"binary"};var[a,s]=yield e.get(eT).getGeneralRequest(i);return s?[void 0,s]:[a,s]})}duplicate(e,t,n,i,a,s,o){return m(this,null,function*(){this.multimedia=yield this.multimedia?.duplicateByReplaceId(e,t,n,i,void 0,void 0,a,s,o)})}preDeleteModel(e){return m(this,null,function*(){yield this.multimedia?.deleteFile(e)})}};var gp=class r{excelItem;paragraph;generalButton;generalButtonSecondary;multimedia;constructor(e){e?this.setData(e):this.excelItem=new lv}setData(e){e&&(this.excelItem=new lv(e.excelItem),e?.paragraph?this.paragraph=new $t(e.paragraph):this.paragraph=new $t,e?.generalButton?this.generalButton=new Ke(e.generalButton):this.generalButton=new Ke,e?.generalButtonSecondary?this.generalButtonSecondary=new Ke(e.generalButtonSecondary):this.generalButtonSecondary=new Ke,this.multimedia=Ee.setDataInner(e?.multimedia))}getDocumentData(){var e={};this.excelItem&&(e.excelItem=this.excelItem.getDocumentData()),this.paragraph&&(e.paragraph=this.paragraph.getDocumentData()),this.generalButton&&(e.generalButton=this.generalButton.getDocumentData()),this.generalButtonSecondary&&(e.generalButtonSecondary=this.generalButtonSecondary.getDocumentData()),e=Ee.getDocumentDataInner(e,this.multimedia,"multimedia");let t=[];return e}getName(){return"Excel personalizzato"}static getIcon(){return"fa-table"}getIcon(){return r.getIcon()}fillOtherModels(e,t){return m(this,null,function*(){yield this.generalButton?.fillOtherModels(e,t),yield this.generalButtonSecondary?.fillOtherModels(e,t)})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){yield this.generalButton?.fillOtherModelsInDetail(e,t),yield this.generalButtonSecondary?.fillOtherModelsInDetail(e,t)})}preDeleteModel(e){return m(this,null,function*(){yield this.multimedia?.deleteFile(e),yield this.generalButton?.preDeleteModel(e),yield this.generalButtonSecondary?.preDeleteModel(e),yield this.excelItem?.preDeleteModel(e)})}getTranslatableChildren(){return[Re.one("paragraph","Paragrafo",this.paragraph),Re.one("generalButton","Bottone",this.generalButton),Re.one("generalButtonSecondary","Bottone secondario",this.generalButtonSecondary)]}duplicateSectionBase(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){let u=[];this.multimedia&&u.push(this.multimedia.duplicateByReplaceId(e,t,n,i,a,s,o,l,c).then(d=>this.multimedia=d)),this.generalButton&&u.push(this.generalButton.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.generalButtonSecondary&&u.push(this.generalButtonSecondary.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.paragraph&&u.push(this.paragraph.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.excelItem&&u.push(this.excelItem.duplicate(e,t,n,i,o,l,c)),yield Promise.all(u)})}getTextToSpeech(e){return m(this,null,function*(){return yield this.paragraph?.getTextToSpeech(e)})}};var Bh=class{_title;_subtitle;_description;paragraph;multimedias=[];layoutRepeaterId;generalButton;generalButtonSecondary;configList;constructor(e){e&&this.setData(e)}setData(e){e&&(this._title=e.title,this._subtitle=e.subtitle,this._description=e.description,e?.paragraph?this.paragraph=new $t(e.paragraph):(this.paragraph=new $t,this.paragraph.title=this._title,this.paragraph.subtitle=this._subtitle,this.paragraph.description=this._description),this.layoutRepeaterId=e.layoutRepeaterId,this.multimedias=hi.setDataInner(e?.multimedias),e?.generalButton?this.generalButton=new Ke(e.generalButton):this.generalButton=new Ke,e?.generalButtonSecondary?this.generalButtonSecondary=new Ke(e.generalButtonSecondary):this.generalButtonSecondary=new Ke,e.configList&&(this.configList=new yn(e.configList)))}getDocumentData(){var e={};return this.paragraph&&(e.paragraph=this.paragraph.getDocumentData()),this.layoutRepeaterId!=null&&this.layoutRepeaterId.toString().length>0?e.layoutRepeaterId=this.layoutRepeaterId:e.layoutRepeaterId=0,e=hi.getDocumentDataInner(e,this.multimedias,"multimedias"),this.generalButton&&(e.generalButton=this.generalButton.getDocumentData()),this.generalButtonSecondary&&(e.generalButtonSecondary=this.generalButtonSecondary.getDocumentData()),this.configList&&(e.configList=this.configList.getDocumentData()),e}preDeleteModel(e){return m(this,null,function*(){yield Qt.deleteMultimedias(e,this.multimedias),yield this.generalButton?.preDeleteModel(e),yield this.generalButtonSecondary?.preDeleteModel(e),yield this.configList?.preDeleteModel(e)})}fillOtherModels(e,t){return m(this,null,function*(){yield this.generalButton?.fillOtherModels(e,t),yield this.generalButtonSecondary?.fillOtherModels(e,t)})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){yield this.generalButton?.fillOtherModelsInDetail(e,t),yield this.generalButtonSecondary?.fillOtherModelsInDetail(e,t)})}getTranslatableChildren(){return[Re.one("paragraph","Paragrafo",this.paragraph),Re.one("generalButton","Bottone",this.generalButton),Re.one("generalButtonSecondary","Bottone secondario",this.generalButtonSecondary),Re.many("multimedias","Immagini della galleria",this.multimedias)]}duplicateSectionBase(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){let u=[];this.multimedias&&u.push(Ea.duplicateMultimediasByReplaceId(e,this.multimedias,t,n,i,a,s,o,l,c).then(d=>this.multimedias=d)),this.generalButton&&u.push(this.generalButton.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.generalButtonSecondary&&u.push(this.generalButtonSecondary.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.paragraph&&u.push(this.paragraph.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),yield Promise.all(u)})}getTextToSpeech(e){return m(this,null,function*(){return yield this.paragraph?.getTextToSpeech(e)})}};var Ru=class r{items=[];paragraph;generalButton;generalButtonSecondary;multimedia;layoutRepeaterId;layoutId;layoutDirectionId;configList;constructor(e){e?this.setData(e):this.items=[]}setData(e){e&&(e?.paragraph?this.paragraph=new $t(e.paragraph):this.paragraph=new $t),this.layoutRepeaterId=e.layoutRepeaterId,this.layoutId=e.layoutId,this.layoutDirectionId=e.layoutDirectionId,this.items=r.setItems(e),e?.generalButton?this.generalButton=new Ke(e.generalButton):this.generalButton=new Ke,e?.generalButtonSecondary?this.generalButtonSecondary=new Ke(e.generalButtonSecondary):this.generalButtonSecondary=new Ke,this.multimedia=Ee.setDataInner(e?.multimedia),e.configList&&(this.configList=new yn(e.configList))}getDocumentData(){var e={};return e=r.getItems(e,this.items,"items"),this.paragraph&&(e.paragraph=this.paragraph.getDocumentData()),this.layoutRepeaterId!=null&&this.layoutRepeaterId.toString().length>0?e.layoutRepeaterId=this.layoutRepeaterId:e.layoutRepeaterId=0,this.layoutId!=null&&this.layoutId.toString().length>0?e.layoutId=this.layoutId:e.layoutId=0,this.layoutDirectionId!=null&&this.layoutDirectionId.toString().length>0?e.layoutDirectionId=this.layoutDirectionId:e.layoutDirectionId=0,this.generalButton&&(e.generalButton=this.generalButton.getDocumentData()),this.generalButtonSecondary&&(e.generalButtonSecondary=this.generalButtonSecondary.getDocumentData()),e=Ee.getDocumentDataInner(e,this.multimedia,"multimedia"),this.configList&&(e.configList=this.configList.getDocumentData()),e}hasItems(){return this.items&&this.items.length>0}static setItems(e){var t=[];return e.items?(t=e.items,t.forEach((n,i)=>{t[i]=Bm.setDataInner(n)})):t=[],t}static getItems(e,t,n="item"){if(t){var i=[];t.forEach((a,s)=>{var o=a.getDocumentData();i[s]=o}),e[n]=i}else e[n]=null;return e}fillOtherModels(e,t){return m(this,null,function*(){yield this.generalButton?.fillOtherModels(e,t),yield this.generalButtonSecondary?.fillOtherModels(e,t),this.items&&(yield Promise.all(this.items.map(n=>m(this,null,function*(){yield n.fillOtherModels(e,t)}))))})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){yield this.generalButton?.fillOtherModelsInDetail(e,t),yield this.generalButtonSecondary?.fillOtherModelsInDetail(e,t),this.items&&(yield Promise.all(this.items.map(n=>m(this,null,function*(){yield n.fillOtherModelsInDetail(e,t)}))))})}preDeleteModel(e){return m(this,null,function*(){yield this.multimedia?.deleteFile(e);var t=this.items?.map(n=>n.multimedia);yield Qt.deleteMultimedias(e,t),yield this.generalButton?.preDeleteModel(e),yield this.generalButtonSecondary?.preDeleteModel(e),yield this.configList?.preDeleteModel(e),this.items&&(yield Promise.all(this.items.map(n=>m(this,null,function*(){yield n.preDeleteModel(e)}))))})}getTranslatableChildren(){return[Re.one("paragraph","Paragrafo",this.paragraph),Re.many("items","Elementi",this.items),Re.one("generalButton","Bottone",this.generalButton),Re.one("generalButtonSecondary","Bottone secondario",this.generalButtonSecondary)]}duplicateSectionBase(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){let u=[];this.multimedia&&u.push(this.multimedia.duplicateByReplaceId(e,t,n,i,a,s,o,l,c).then(d=>this.multimedia=d)),this.generalButton&&u.push(this.generalButton.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.generalButtonSecondary&&u.push(this.generalButtonSecondary.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.paragraph&&u.push(this.paragraph.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.items&&this.items.forEac
240h(d=>{u.push(d.duplicateSectionBase(e,t,n,i,a,s,o,l,c))}),yield Promise.all(u)})}getTextToSpeech(e){return m(this,null,function*(){var t="",n=yield this.paragraph?.getTextToSpeech(e);if(n&&(t+=n),this.items)for(let a of this.items){var i=yield a.getTextToSpeech(e);i&&(t+=` 241 242`+i)}return $t.stripHtml(t)})}};var cv=(n=>(n[n.Link_Esterno=0]="Link_Esterno",n[n.Link_Modello=1]="Link_Modello",n[n.Pdf=2]="Pdf",n))(cv||{}),uv=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(cv)}getNameByEnum(e){let t=Object.values(cv);switch(e){case t[2]:case 2:return"Allegato";default:return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error CommentTypology name"}}getInstanceAll(){return this.getInstance(void 0,ue.getAllId(),"Nessuno")}visible(e){let t=Object.values(cv);return!0}getIconByEnum(e){switch(e){case 1:return"link";case 0:return"open_in_new";case 2:return"attach_file";default:return"block"}}};var tT=class r{typologyId;dynamicModelId;dynamicModelCollectionName;linkExternal;multimedia;previewMultimedia;linkText;linkTitle;linkDescription;dynamicModel;constructor(e){e&&this.setData(e)}setData(e){e&&(this.typologyId=e.typologyId,this.linkText=e.linkText,this.linkTitle=e.linkTitle,this.linkDescription=e.linkDescription,this.linkExternal=e.linkExternal,this.dynamicModelId=e.dynamicModelId,this.dynamicModelCollectionName=e.dynamicModelCollectionName,this.multimedia=Ee.setDataInner(e?.multimedia),this.previewMultimedia=Ee.setDataInner(e?.previewMultimedia))}getDocumentData(){var e={};return e.typologyId=this.typologyId!=null?this.typologyId:null,e.linkText=this.linkText?this.linkText:null,e.linkTitle=this.linkTitle?this.linkTitle:null,e.linkDescription=this.linkDescription?this.linkDescription:null,e.linkExternal=this.linkExternal?this.linkExternal:null,e.dynamicModelId=this.dynamicModelId?this.dynamicModelId:null,e.dynamicModelCollectionName=this.dynamicModelCollectionName?this.dynamicModelCollectionName:null,e=Ee.getDocumentDataInner(e,this.multimedia,"multimedia"),e=Ee.getDocumentDataInner(e,this.previewMultimedia,"previewMultimedia"),e}static setDataInner(e){return new r(e)}static getDocumentDataInner(e,t,n="item"){return t&&(e[n]=t.getDocumentData()),e}preDeleteModel(e){return m(this,null,function*(){yield this.multimedia?.deleteFile(e),yield this.previewMultimedia?.deleteFile(e)})}getSectionTypeEnum(){return new uv(this.typologyId).getEnum()}getNameSectionType(){return new uv(this.typologyId).getName()}getName(){var e;switch(this.typologyId){case 2:e=this.multimedia?.getName();break;case 0:e=this.linkExternal;break;case 1:e=this.dynamicModel?.getName();break;default:return this.getNameSectionType()}return`${this.getNameSectionType()}${e?" - "+e:""}`}isLinkEsterno(){return this.typologyId==0}clearOtherLinks(){switch(this.typologyId){case 2:this.linkExternal=void 0,this.dynamicModelId=void 0,this.dynamicModelCollectionName=void 0;break;case 0:this.multimedia=void 0,this.dynamicModelId=void 0,this.dynamicModelCollectionName=void 0;break;case 1:this.multimedia=void 0,this.linkExternal=void 0;break;default:this.linkText=void 0,this.multimedia=void 0,this.previewMultimedia=void 0,this.linkExternal=void 0,this.dynamicModelId=void 0,this.dynamicModelCollectionName=void 0}}fillDynamicModel(e){return m(this,null,function*(){var[t,n]=yield Us.fillDynamicModel(e,this.dynamicModelId,this.dynamicModelCollectionName,this.dynamicModel);this.dynamicModel=t})}hasCompleteFinalLink(){return!!this.getCompleteFinalLink()}getCompleteFinalLink(){switch(this.typologyId){case 2:return this.multimedia?.getUrl();case 1:return this.dynamicModel?.fullSlug;case 0:return this.linkExternal;default:return}}getButtonText(){switch(this.typologyId){case 2:return this.linkText;case 1:return this.linkText;case 0:return this.linkText;default:return}}getLinkTitle(){switch(this.typologyId){case 2:return this.linkTitle;case 1:return this.linkTitle;case 0:return this.linkTitle;default:return}}getLinkDescription(){switch(this.typologyId){case 2:return this.linkDescription;case 1:return this.linkDescription;case 0:return this.linkDescription;default:return}}getTranslatableFields(){return[qe.text("linkText","Testo del pulsante"),qe.text("linkTitle","Titolo"),qe.html("linkDescription","Descrizione")]}duplicateSectionBase(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){let u=[];this.multimedia&&u.push(this.multimedia.duplicateByReplaceId(e,t,n,i,a,s,o,l,c).then(d=>this.multimedia=d)),this.previewMultimedia&&u.push(this.previewMultimedia.duplicateByReplaceId(e,t,n,i,a,s,o,l,c).then(d=>
242this.previewMultimedia=d)),l&&o&&(u.push(e.get(Ge).getTranslationGeminiText(this.linkText,o,!0,!1).then(d=>this.linkText=d)),u.push(e.get(Ge).getTranslationGeminiText(this.linkTitle,o,!0,!1).then(d=>this.linkTitle=d)),u.push(e.get(Ge).getTranslationGeminiText(this.linkDescription,o,!0,!0).then(d=>this.linkDescription=d))),yield Promise.all(u),o&&(this.dynamicModelId=yield e.get(ke).getTranslatedModelId(e,o,this.dynamicModelCollectionName,this.dynamicModelId),this.dynamicModelId||(this.dynamicModelCollectionName=void 0))})}getTextToSpeech(e){return m(this,null,function*(){var t="";return this.linkText&&(t+=this.linkText),this.linkTitle&&(t+=` 243 244`+this.linkTitle),this.linkDescription&&(t+=` 245 246`+this.linkDescription),$t.stripHtml(t)})}};var yp=class r{links=[];paragraph;generalButton;generalButtonSecondary;multimedia;layoutRepeaterId;layoutId;imageModel;tagPreviewTitleId;configList;constructor(e){e?this.setData(e):this.links=[]}setData(e){e&&(e?.paragraph?this.paragraph=new $t(e.paragraph):this.paragraph=new $t),this.layoutRepeaterId=e.layoutRepeaterId,this.layoutId=e.layoutId,this.links=r.setLinks(e),e?.generalButton?this.generalButton=new Ke(e.generalButton):this.generalButton=new Ke,e?.generalButtonSecondary?this.generalButtonSecondary=new Ke(e.generalButtonSecondary):this.generalButtonSecondary=new Ke,this.multimedia=Ee.setDataInner(e?.multimedia),e.tagPreviewTitleId?this.tagPreviewTitleId=e.tagPreviewTitleId:this.tagPreviewTitleId=2 .valueOf(),e.configList&&(this.configList=new yn(e.configList)),e?.imageModel?this.imageModel=new zs(e.imageModel):this.imageModel=new zs}getDocumentData(){var e={};return e=r.getLinks(e,this.links,"links"),this.paragraph&&(e.paragraph=this.paragraph.getDocumentData()),this.layoutRepeaterId!=null&&this.layoutRepeaterId.toString().length>0?e.layoutRepeaterId=this.layoutRepeaterId:e.layoutRepeaterId=0,this.layoutId!=null&&this.layoutId.toString().length>0?e.layoutId=this.layoutId:e.layoutId=0,this.generalButton&&(e.generalButton=this.generalButton.getDocumentData()),this.generalButtonSecondary&&(e.generalButtonSecondary=this.generalButtonSecondary.getDocumentData()),e=Ee.getDocumentDataInner(e,this.multimedia,"multimedia"),this.tagPreviewTitleId!=null&&(e.tagPreviewTitleId=this.tagPreviewTitleId),this.configList&&(e.configList=this.configList.getDocumentData()),this.imageModel&&(e.imageModel=this.imageModel.getDocumentData()),e}hasLinks(){return this.links&&this.links.length>0}static setLinks(e){var t=[];return e.links?(t=e.links,t.forEach((n,i)=>{t[i]=tT.setDataInner(n)})):t=[],t}static getLinks(e,t,n="item"){if(t){var i=[];t.forEach((a,s)=>{var o=a.getDocumentData();i[s]=o}),e[n]=i}else e[n]=null;return e}fillOtherModels(e,t){return m(this,null,function*(){yield this.fillButtonLinkOrigin(e,t),yield this.fillDynamicModels(e)})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){yield this.fillButtonLinkOrigin(e,t),yield this.fillDynamicModels(e)})}fillButtonLinkOrigin(e,t){return m(this,null,function*(){return yield this.generalButtonSecondary?.fillButtonLinkOrigin(e,t),yield this.generalButton?.fillButtonLinkOrigin(e,t)})}preDeleteModel(e){return m(this,null,function*(){yield this.multimedia?.deleteFile(e);var t=this.links?.map(n=>n.multimedia);yield Qt.deleteMultimedias(e,t),yield this.generalButton?.preDeleteModel(e),yield this.generalButtonSecondary?.preDeleteModel(e),yield this.configList?.preDeleteModel(e),yield this.imageModel?.preDeleteModel(e)})}getTranslatableChildren(){return[Re.one("paragraph","Paragrafo",this.paragraph),Re.one("generalButton","Bottone",this.generalButton),Re.one("generalButtonSecondary","Bottone secondario",this.generalButtonSecondary),Re.many("links","Collegamenti",this.links)]}duplicateSectionBase(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){let u=[];this.multimedia&&u.push(this.multimedia.duplicateByReplaceId(e,t,n,i,a,s,o,l,c).then(d=>this.multimedia=d)),this.generalButton&&u.push(this.generalButton.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.generalButtonSecondary&&u.push(this.generalButtonSecondary.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.paragraph&&u.push(this.paragraph.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.imageModel&&u.push(this.imageModel.duplicate(e,t,n,i,a,s,o,l,c)),this.links&&this.links.forEach(d=>{u.push(d.duplicateSectionBase(e,t,n,i,a,s,o,l,c))}),yield Promise.all(u)})}fillDynamicModels(e){return m(this,null,function*(){yield Promise.all(this.links.map(t=>m(this,null,function*(){yield t.fillDynamicModel(e)})))})}getTextToSpeech(e){return m(this,null,function*(){var t="",n=yield this.paragraph?.getTextToSpeech(e);if(n&&(t+=n),this.links)for(let a of this.links){var i=yield a.getTextToSpeech(e);i&&(t+=` 247 248`+i)}return $t.stripHtml(t)})}};var dv=class r{tagFieldName;tagSelectedIds;multiple;constructor(e){e&&this.setData(e)}setData(e){e&&(this.tagFieldName=e.tagFieldName,this.tagSelectedIds=e.tagSelectedIds,this.multiple=e.multiple)}getDocumentData(){var e={};return e.tagFieldName=this.tagFieldName?this.tagFieldName:null,e.tagSelectedIds=this.tagSelectedIds!=null?this.tagSelectedIds:null,e.multiple=this.multiple!=null?this.multiple:null,e}static setDataInner(e){return new r(e)}static getDocumentDataInner(e,t,n="item"){return t&&(e[n]=t.getDocumentData()),e}static setModels(e,t){var n=[];
248return e[t]?(n=e[t],n.forEach((i,a)=>{n[a]=r.setDataInner(i)})):n=[],n}static getModels(e,t,n){if(t){var i=[];t.forEach((a,s)=>{var o=a.getDocumentData();i[s]=o}),e[n]=i}else e[n]=null;return e}getName(){return this.tagFieldName?`${this.tagFieldName}`:""}duplicate(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){})}};var vp=class{paragraph;generalButton;generalButtonSecondary;multimedia;layoutRepeaterId;layoutId;layoutDirectionId;maxElements;dynamicModelCollectionName;dynamicModelCollectionShowSearch;dynamicModelCollectionFilterYears;dynamicModelCollectionShowCategories;dynamicModelCollectionShowCategoriesInCard;dynamicModelCollectionShowMap;_categorySelectedId;categorySelectedIds;tagModels;listOrderBy;listOptionsBy;textButton;textLoadMoreButton;textNoResults;tagPreviewTitleId;modal;noDetail;hideLoadMore;hideCategoryAll;configList;constructor(e){e&&this.setData(e)}setData(e){e&&(e?.paragraph?this.paragraph=new $t(e.paragraph):this.paragraph=new $t),this.layoutRepeaterId=e.layoutRepeaterId,this.layoutId=e.layoutId,this.layoutDirectionId=e.layoutDirectionId,e?.generalButton?this.generalButton=new Ke(e.generalButton):this.generalButton=new Ke,e?.generalButtonSecondary?this.generalButtonSecondary=new Ke(e.generalButtonSecondary):this.generalButtonSecondary=new Ke,this.multimedia=Ee.setDataInner(e?.multimedia),this.dynamicModelCollectionName=e.dynamicModelCollectionName,this.dynamicModelCollectionShowSearch=e.dynamicModelCollectionShowSearch,this.dynamicModelCollectionFilterYears=e.dynamicModelCollectionFilterYears,this.dynamicModelCollectionShowCategories=e.dynamicModelCollectionShowCategories,this.dynamicModelCollectionShowCategoriesInCard=e.dynamicModelCollectionShowCategoriesInCard,this.dynamicModelCollectionShowMap=e.dynamicModelCollectionShowMap,this.listOrderBy=e.listOrderBy??0,this.listOptionsBy=e.listOptionsBy??0,this.textButton=e.textButton,this.textLoadMoreButton=e.textLoadMoreButton,this.textNoResults=e.textNoResults,this.modal=e.modal,this.hideLoadMore=e.hideLoadMore,this.hideCategoryAll=e.hideCategoryAll,this.noDetail=e.noDetail,this.maxElements=e.maxElements,this._categorySelectedId=e.categorySelectedId,e.categorySelectedIds?this.categorySelectedIds=e.categorySelectedIds:this._categorySelectedId&&(this.categorySelectedIds=[this._categorySelectedId]),this.tagModels=dv.setModels(e,"tagModels"),e.tagPreviewTitleId?this.tagPreviewTitleId=e.tagPreviewTitleId:this.tagPreviewTitleId=6 .valueOf(),e.configList&&(this.configList=new yn(e.configList))}getDocumentData(){var e={};return this.paragraph&&(e.paragraph=this.paragraph.getDocumentData()),this.layoutRepeaterId!=null&&this.layoutRepeaterId.toString().length>0?e.layoutRepeaterId=this.layoutRepeaterId:e.layoutRepeaterId=0,this.layoutId!=null&&this.layoutId.toString().length>0?e.layoutId=this.layoutId:e.layoutId=0,this.dynamicModelCollectionShowSearch!=null&&(e.dynamicModelCollectionShowSearch=this.dynamicModelCollectionShowSearch),this.dynamicModelCollectionFilterYears!=null&&(e.dynamicModelCollectionFilterYears=this.dynamicModelCollectionFilterYears),this.dynamicModelCollectionShowCategories!=null&&(e.dynamicModelCollectionShowCategories=this.dynamicModelCollectionShowCategories),this.dynamicModelCollectionShowCategoriesInCard!=null&&(e.dynamicModelCollectionShowCategoriesInCard=this.dynamicModelCollectionShowCategoriesInCard),this.dynamicModelCollectionShowMap!=null&&(e.dynamicModelCollectionShowMap=this.dynamicModelCollectionShowMap),this.listOrderBy!=null&&(e.listOrderBy=this.listOrderBy),this.listOptionsBy!=null&&(e.listOptionsBy=this.listOptionsBy),this.categorySelectedIds!=null&&(e.categorySelectedIds=this.categorySelectedIds),e=dv.getModels(e,this.tagModels??[],"tagModels"),this.textButton!=null&&(e.textButton=this.textButton),this.textLoadMoreButton!=null&&(e.textLoadMoreButton=this.textLoadMoreButton),this.textNoResults!=null&&(e.textNoResults=this.textNoResults),this.modal!=null&&(e.modal=this.modal),this.hideLoadMore!=null&&(e.hideLoadMore=this.hideLoadMore),this.hideCategoryAll!=null&&(e.hideCategoryAll=this.hideCategoryAll),this.noDetail!=null&&(e.noDetail=this.noDetail),this.layoutDirectionId!=null&&this.layoutDirectionId.toString().length>0?e.layoutDirectionId=this.layoutDirectionId:e.layoutDirectionId=0,this.generalButton&&(e.generalButton=this.generalButton.getDocumentData()),this.generalButtonSecondary&&(e.generalButtonSecondary=this.generalButtonSecondary.getDocumentData()),this.maxElements?e.maxElements=this.maxElements:e.maxElements=0,e=Ee.getDocumentDataInner(e,this.multimedia,"multimedia"),e.dynamicModelCollectionName=this.dynamicModelCollectionName?this.dynamicModelCollectionName:null,this.tagPreviewTitleId!=null&&(e.tagPreviewTitleId=this.tagPreviewTitleId),this.configList&&(e.configList=this.configList.getDocumentData()),e}fillOtherModels(e,t){return m(this,null,function*(){yield this.generalButton?.fillOtherModels(e,t),yield this.generalButtonSecondary?.fillOtherModels(e,t)})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){yield this.generalButton?.fillOtherModelsInDetail(e,t),yield this.generalButtonSecondary?.fillOtherModelsInDetail(e,t)})}preDeleteModel(e){return m(this,null,function*(){yield this.multimedia?.deleteFile(e),yield this.generalButton?.preDeleteModel(e),yield this.generalButtonSecondary?.preDeleteModel(e),yield this.configList?.preDeleteModel(e)})}getTranslatableFields(){return[qe.text("textButton","Testo del pulsante della card"),qe.text("textLoadMoreButton","Testo del pulsante Carica altre"),qe.text("textNoResults","Testo quando non ci sono risultati")]}getTranslatableChildren(){return[Re.one("paragraph","Paragrafo",this.paragraph),Re.one("generalButton","Bottone",this.generalButton),Re.one("generalButtonSecondary","Bottone secondario",this.generalButtonSecondary)]}duplicateSectionBase(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){let u=[];
248if(this.multimedia&&u.push(this.multimedia.duplicateByReplaceId(e,t,n,i,a,s,o,l,c).then(v=>this.multimedia=v)),this.generalButton&&u.push(this.generalButton.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.generalButtonSecondary&&u.push(this.generalButtonSecondary.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.paragraph&&u.push(this.paragraph.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),o){var d=e.get(en).getDynamicModels(),f=d.find(v=>v.nameCollection==this.dynamicModelCollectionName),p=f?.getInstanceCallback();if(p&&typeof p.getCategoryModel=="function"){var g=p.getCategoryModel();this.categorySelectedIds=yield e.get(ke).getTranslatedModelIds(e,o,g.GetNameCollection(),this.categorySelectedIds)}if(this.tagModels)for(let v of this.tagModels){var y=yield this.findNameCollection(e,d,v.tagSelectedIds);y&&(v.tagSelectedIds=yield e.get(ke).getTranslatedModelIds(e,o,y,v.tagSelectedIds))}}l&&o&&(u.push(e.get(Ge).getTranslationGeminiText(this.textButton,o,!0,!1).then(v=>this.textButton=v)),u.push(e.get(Ge).getTranslationGeminiText(this.textLoadMoreButton,o,!0,!1).then(v=>this.textLoadMoreButton=v)),u.push(e.get(Ge).getTranslationGeminiText(this.textNoResults,o,!0,!1).then(v=>this.textNoResults=v))),yield Promise.all(u)})}findNameCollection(e,t,n){return m(this,null,function*(){var i=void 0;if(n&&n.length>0)for(let o of t){var a=o.getInstanceCallback(),s=yield e.get(ke).getDetail(n[0],a);if(s)return o.nameCollection}return i})}haveTextButton(){return!!(this.textButton&&this.textButton.length>0)}isModal(){return this.modal==null?!1:this.modal}hasTextNoResults(){return(this.textNoResults?.trim().length??0)>0}hideLoadMoreOnFront(){return this.hideLoadMore==null?!1:this.hideLoadMore}haveDetail(){return this.noDetail==null?!0:!this.noDetail}getDynamicModelCollectionShowCategoriesInCard(){return this.dynamicModelCollectionShowCategoriesInCard??!1}getTextToSpeech(e){return m(this,null,function*(){return yield this.paragraph?.getTextToSpeech(e)})}};var rT=class r{positionBaseModel;description;title;color="#ea4335";constructor(e){e&&this.setData(e)}setData(e){e&&(this.positionBaseModel=new ah(e.positionBaseModel),this.title=e.title??null,this.description=e.description??null,this.color=e.color??"#ea4335")}getDocumentData(){var e={};return this.positionBaseModel&&(e.positionBaseModel=this.positionBaseModel.getDocumentData()),e.title=this.title?this.title:null,e.description=this.description?this.description:null,e.color=this.color?this.color:"#ea4335",e}static setDataInner(e){return new r(e)}static getDocumentDataInner(e,t,n="item"){return t&&(e[n]=t.getDocumentData()),e}preDeleteModel(e){return m(this,null,function*(){})}getTranslatableFields(){return[qe.text("title","Titolo"),qe.html("description","Descrizione")]}duplicateSectionBase(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){if(l&&o){let u=[];u.push(e.get(Ge).getTranslationGeminiText(this.title,o,!0,!1).then(d=>this.title=d)),u.push(e.get(Ge).getTranslationGeminiText(this.description,o,!0,!0).then(d=>this.description=d)),yield Promise.all(u)}})}getName(){return this.title?this.title:this.positionBaseModel?.getCity()}};var _p=class r{maps=[];paragraph;generalButton;generalButtonSecondary;multimedia;constructor(e){e?this.setData(e):this.maps=[]}setData(e){e&&(e?.paragraph?this.paragraph=new $t(e.paragraph):this.paragraph=new $t),e?.generalButton?this.generalButton=new Ke(e.generalButton):this.generalButton=new Ke,e?.generalButtonSecondary?this.generalButtonSecondary=new Ke(e.generalButtonSecondary):this.generalButtonSecondary=new Ke,this.multimedia=Ee.setDataInner(e?.multimedia),this.maps=r.setLinks(e)}getDocumentData(){var e={};return this.paragraph&&(e.paragraph=this.paragraph.getDocumentData()),this.generalButton&&(e.generalButton=this.generalButton.getDocumentData()),this.generalButtonSecondary&&(e.generalButtonSecondary=this.generalButtonSecondary.getDocumentData()),e=Ee.getDocumentDataInner(e,this.multimedia,"multimedia"),e=r.getLinks(e,this.maps,"maps"),e}fillOtherModels(e,t){return m(this,null,function*(){yield this.generalButton?.fillOtherModels(e,t),yield this.generalButtonSecondary?.fillOtherModels(e,t)})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){yield this.generalButton?.fillOtherModelsInDetail(e,t),yield this.generalButtonSecondary?.fillOtherModelsInDetail(e,t)})}preDeleteModel(e){return m(this,null,function*(){yield this.multimedia?.deleteFile(e),yield this.generalButton?.preDeleteModel(e),yield this.generalButtonSecondary?.preDeleteModel(e)})}getTranslatableChildren(){return[Re.one("paragraph","Paragrafo",this.paragraph),Re.one("generalButton","Bottone",this.generalButton),Re.one("generalButtonSecondary","Bottone secondario",this.generalButtonSecondary),Re.many("maps","Mappe",this.maps)]}duplicateSectionBase(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){let u=[];this.multimedia&&u.push(this.multimedia.duplicateByReplaceId(e,t,n,i,a,s,o,l,c).then(d=>this.multimedia=d)),this.generalButton&&u.push(this.generalButton.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.generalButtonSecondary&&u.push(this.generalButtonSecondary.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.paragraph&&u.push(this.paragraph.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.maps&&this.maps.forEach(d=>{u.push(d.duplicateSectionBase(e,t,n,i,a,s,o,l,c))}),yield Promise.all(u)})}hasLinks(){return this.maps&&this.maps.length>0}static setLinks(e){var t=[];return e.maps?(t=e.maps,t.forEach((n,i)=>{t[i]=rT.setDataInner(n)})):t=[],t}static getLinks(e,t,n="item"){if(t){var i=[];t.forEach((a,s)=>{var o=a.getDocumentData();i[s]=o}),e[n]=i}else e[n]=null;return e}getTextToSpeech(e){return m(this,null,function*(){return yield this.paragraph?.getTextToSpeech(e)})}};var bp=class{_title;_subtitle;_description;_description2;_eyelet;_signature;_iconBase64;_h1;paragraph;_items=[];_evidence;_buttonText;_buttonAnchor;_buttonLink;_buttonTypologyId;_buttonLinkOriginId;generalButton;generalButtonSecondary;_multimedia;_sizeId;imageModel;constructor(e){e&&this.setData(e)}setData(e){e&&(this._title=e.title,this._subtitle=e.subtitle,this._eyelet=e.eyelet,this._signature=e.signature,this._description=e.description??null,this._description2=e.description2??null,this._iconBase64=e.iconBase64,this._h1=e.h1,e?.paragraph?this.paragraph=new $t(e.paragraph):(this.paragraph=new $t,this.paragraph.title=this._title,this.paragraph.subtitle=this._subtitle,this.paragraph.eyelet=this._eyelet,this.paragraph.signature=this._signature,this.paragraph.description=this._description,this.paragraph.description2=this._description2,this.paragraph.setIconBase64(this._iconBase64),this.paragraph.h1=this._h1),this._evidence=e.evidence,this._multimedia=Ee.setDataInner(e?.multimedia),this._buttonText=e.buttonText,this._buttonTypologyId=e.buttonTypologyId,this._buttonAnchor=e.buttonAnchor,this._buttonLink=e.buttonLink,this._buttonLinkOriginId=e.buttonLinkOriginId,e?.generalButton?this.generalButton=new Ke(e.generalButton):(this.generalButton=new Ke,this.generalButton.buttonText=this._buttonText,this.generalButton.buttonAnchor=this._buttonAnchor,this.generalButton.buttonLink=this._buttonLink,this.generalButton.buttonTypologyId=this._buttonTypologyId??this._buttonAnchor?2:void 0,this.generalButton.buttonLinkOriginId=this._buttonLinkOriginId),e?.generalButtonSecondary?this.generalButtonSecondary=new Ke(e.generalButtonSecondary):this.generalButtonSecondary=new Ke,this._sizeId=e.sizeId??0,e?.imageModel?this.imageModel=new zs(e.imageModel):(this.imageModel=new zs,this.imageModel.multimedia=this._multimedia,this.imageModel.sizeId=this._sizeId)),this._items=Ru.setItems(e)}isH1(){return this.paragraph?.isH1()}getDocumentData(){var e={};return this.paragraph&&(e.paragraph=this.paragraph.getDocumentData()),this.imageModel&&(e.imageModel=this.imageModel.getDocumentData()),this.generalButton&&(e.generalButton=this.generalButton.getDocumentData()),this.generalButtonSecondary&&(e.generalButtonSecondary=this.generalButtonSecondary.getDocumentData()),e}getImage(){return this.imageModel?.getImage()?this.imageModel?.getImage():new Qt({url:this.paragraph?.getIconBase64()})}setImage(e){this.imageModel&&(this.imageModel.multimedia=e)}getOldItems(){return this._items}hasOldItems(){return this._items&&this._items.length>0}getOldEvidence(){return this._evidence??!1}hasLink(){return this.getButtonAnchor()||this.getButtonLink()}hasCompleteFinalLink(){return!!this.getButtonLink()}hasDescription(){return this.paragraph?.hasDescription()}hasButtonLink(){return this.getButtonLink()}getButtonText(){return this.generalButton?.buttonText}getButtonLink(){return this.generalButton?.getCompleteFinalLink()}getButtonAnchor(){return this.generalButton?.buttonAnchor}getButtonTypologyId(){return this.generalButton?.buttonTypologyId}getButtonLinkOriginId(){return this.generalButton?.buttonLinkOriginId}fillOtherModels(e,t){return m(this,null,function*(){yield this.fillButtonLinkOrigin(e,t),yield this.generalButtonSecondary?.fillButtonLinkOrigin(e,t)})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){yield this.fillButtonLinkOrigin(e,t),yield this.generalButtonSecondary?.fillButtonLinkOrigin(e,t)})}fillButtonLinkOrigin(e,t){return m(this,null,function*(){return this.generalButton?yield this.generalButton?.fillButtonLinkOrigin(e,t):new Promise(((n,i)=>m(this,null,function*(){var a=new Ke;a.buttonText=this.getButtonText(),a.buttonAnchor=this.getButtonAnchor(),a.buttonLink=this.getButtonLink(),a.buttonLinkOriginId=this.getButtonLinkOriginId(),a.buttonTypologyId=this.getButtonTypologyId();var s=yield a.fillButtonLinkOrigin(e,t);n(s)})))})}preDeleteModel(e){return m(this,null,function*(){yield this.generalButton?.preDeleteModel(e),yield this.generalButtonSecondary?.preDeleteModel(e),yield this.imageModel?.preDeleteModel(e)})}getTranslatableChildren(){return[Re.one("paragraph","Paragrafo",this.paragraph),Re.one("generalButton","Bottone",this.generalButton),Re.one("generalButtonSecondary","Bottone secondario",this.generalButtonSecondary)]}duplicateSectionBase(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){let u=[];this.imageModel&&u.push(this.imageModel.duplicate(e,t,n,i,a,s,o,l,c)),this.generalButton&&u.push(this.generalButton.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.generalButtonSecondary&&u.push(this.generalButtonSecondary.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.paragraph&&u.push(this.paragraph.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),yield Promise.all(u)})}getTextToSpeech(e){return m(this,null,function*(){return yield this.paragraph?.getTextToSpeech(e)})}};var wp=class{spaceId;constructor(e){e&&this.setData(e)}setData(e){this.spaceId=e.spaceId}getDocumentData(){var e={};return this.spaceId!=null&&this.spaceId.toString().length>0?e.spaceId=this.spaceId:e.spaceId=0,e}fillOtherModels(e,t){return m(this,null,function*(){})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){})}preDeleteModel(e){return m(this,null,function*(){})}duplicateSectionBase(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){})}getTextToSpeech(e){return m(this,null,function*(){})}};var hv=class r{headers;body;constructor(e){e&&this.setData(e)}setData(e){e&&(this.headers=e.headers,this.body=e.body)}getDocumentData(){var e={};return e.headers=this.headers?this.headers:null,e.body=this.body?this.body:null,e}static setDataInner(e){return new r(e)}static getDocumentDataInner(e,t,n="customTable"){return t&&(e[n]=t.getDocumentData()),e}preDeleteModel(e){return m(this,null,function*(){})}getTranslatableFields(){return[qe.list("headers","Intestazioni"),qe.list("body","Celle",!0)]}duplicateSectionBase(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){if(l&&o){let u=[];
248this.headers&&this.headers.forEach((d,f)=>{u.push(e.get(Ge).getTranslationGeminiText(d,o,!0,!1).then(p=>this.headers[f]=p))}),this.body&&this.body.forEach((d,f)=>{u.push(e.get(Ge).getTranslationGeminiText(d,o,!0,!0).then(p=>this.body[f]=p))}),yield Promise.all(u)}})}getNColumns(){return this.headers?this.headers.length:0}getX(e){return Math.trunc(e%this.getNColumns())}getY(e){return Math.trunc(e/this.getNColumns())}getTableBody(){var e=[],t=[];return this.body?.forEach((n,i)=>{t.push(n),((i+1)%this.getNColumns()==0&&i!=0||i==this.body.length-1)&&(e.push(t),t=[])}),e}};var Ip=class{customTable;paragraph;generalButton;generalButtonSecondary;multimedia;layoutRepeaterId;layoutId;layoutDirectionId;constructor(e){e&&this.setData(e)}setData(e){e&&(e?.paragraph?this.paragraph=new $t(e.paragraph):this.paragraph=new $t,this.layoutRepeaterId=e.layoutRepeaterId,this.layoutId=e.layoutId,this.layoutDirectionId=e.layoutDirectionId,this.customTable=hv.setDataInner(e.customTable),e?.generalButton?this.generalButton=new Ke(e.generalButton):this.generalButton=new Ke,e?.generalButtonSecondary?this.generalButtonSecondary=new Ke(e.generalButtonSecondary):this.generalButtonSecondary=new Ke,this.multimedia=Ee.setDataInner(e?.multimedia))}getDocumentData(){var e={};return e=hv.getDocumentDataInner(e,this.customTable,"customTable"),this.paragraph&&(e.paragraph=this.paragraph.getDocumentData()),this.layoutRepeaterId!=null&&this.layoutRepeaterId.toString().length>0?e.layoutRepeaterId=this.layoutRepeaterId:e.layoutRepeaterId=0,this.layoutId!=null&&this.layoutId.toString().length>0?e.layoutId=this.layoutId:e.layoutId=0,this.layoutDirectionId!=null&&this.layoutDirectionId.toString().length>0?e.layoutDirectionId=this.layoutDirectionId:e.layoutDirectionId=0,this.generalButton&&(e.generalButton=this.generalButton.getDocumentData()),this.generalButtonSecondary&&(e.generalButtonSecondary=this.generalButtonSecondary.getDocumentData()),e=Ee.getDocumentDataInner(e,this.multimedia,"multimedia"),e}fillOtherModels(e,t){return m(this,null,function*(){yield this.generalButton?.fillOtherModels(e,t),yield this.generalButtonSecondary?.fillOtherModels(e,t)})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){yield this.generalButton?.fillOtherModelsInDetail(e,t),yield this.generalButtonSecondary?.fillOtherModelsInDetail(e,t)})}preDeleteModel(e){return m(this,null,function*(){yield this.multimedia?.deleteFile(e),yield this.generalButton?.preDeleteModel(e),yield this.generalButtonSecondary?.preDeleteModel(e)})}getTranslatableChildren(){return[Re.one("paragraph","Paragrafo",this.paragraph),Re.one("generalButton","Bottone",this.generalButton),Re.one("generalButtonSecondary","Bottone secondario",this.generalButtonSecondary),Re.one("customTable","Tabella",this.customTable)]}duplicateSectionBase(e,t,n,i,a,s,o,l,c){return m(this,null,function*(){let u=[];this.multimedia&&u.push(this.multimedia.duplicateByReplaceId(e,t,n,i,a,s,o,l,c).then(d=>this.multimedia=d)),this.generalButton&&u.push(this.generalButton.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.generalButtonSecondary&&u.push(this.generalButtonSecondary.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.paragraph&&u.push(this.paragraph.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),this.customTable&&u.push(this.customTable.duplicateSectionBase(e,t,n,i,a,s,o,l,c)),yield Promise.all(u)})}getTextToSpeech(e){return m(this,null,function*(){return yield this.paragraph?.getTextToSpeech(e)})}};var Ou=(g=>(g[g.Paragrafo=0]="Paragrafo",g[g.Gallery=1]="Gallery",g[g.Sezione=2]="Sezione",g[g.Wall=3]="Wall",g[g.Video=4]="Video",g[g.Items=5]="Items",g[g.Links=6]="Links",g[g.List=7]="List",g[g.Space=8]="Space",g[g.Table=9]="Table",g[g.Map=10]="Map",g[g.Table_From_Excel=11]="Table_From_Excel",g[g.Template=12]="Template",g[g.Form=13]="Form",g))(Ou||{}),yc=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(Ou)}getNameByEnum(e){let t=Object.values(Ou);switch(e){case t[6]:case 6:return"Collegamenti";case t[5]:case 5:return"Elementi";case t[7]:case 7:return"Lista";case t[8]:case 8:return"Spazio vuoto";case t[9]:case 9:return"Tabella";case t[10]:case 10:return"Mappa";case t[11]:case 11:return"Tabella da Excel";
248case t[13]:case 13:return"Form";default:return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error section type name"}}visible(e){let t=Object.values(Ou);switch(e){case t[3]:case 3:return!1;default:return!0}}getColorByEnum(e){return"#19b817"}getListCustom(e,t){let n=this.getEnumValues().filter(o=>!isNaN(Number(o))),i=[],a=0,s=0;return n.forEach(o=>{let l=this.getInstance(o);typeof o=="string"?(this.visible(o)&&(l.id=s,i[a]=l,a++),s++):typeof o=="number"&&(this.visible(o)&&(l.id=s,i[a]=l,a++),s++)}),t||i.splice(2 .valueOf(),1),i.sort((o,l)=>{if(o.order!==void 0&&l.order!==void 0&&o.order!==-1&&l.order!==-1){if(o.order>l.order)return 1}else if(o.getName()>l.getName())return 1;return-1}),(e==null||e)&&i.unshift(this.getInstanceAll()),i}getIconByEnum(e){return r.getIcon(e)}static getIcon(e){switch(e){case 2:return"article";case 0:return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960" fill="#1f1f1f"><path d="M360-160v-240q-83 0-141.5-58.5T160-600q0-83 58.5-141.5T360-800h360v80h-80v560h-80v-560H440v560h-80Z"/></svg>';case 1:return"photo_library";case 4:return"ondemand_video";case 5:return"workspaces";case 6:return"link";case 7:return"view_list";case 9:return"table_chart";case 10:return"map";case 8:return"density_large";case 11:return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 30 30"> <path d="M 15 3 A 2 2 0 0 0 14.599609 3.0429688 L 14.597656 3.0410156 L 4.6289062 5.0351562 L 4.6269531 5.0371094 A 2 2 0 0 0 3 7 L 3 23 A 2 2 0 0 0 4.6289062 24.964844 L 14.597656 26.958984 A 2 2 0 0 0 15 27 A 2 2 0 0 0 17 25 L 17 5 A 2 2 0 0 0 15 3 z M 19 5 L 19 8 L 21 8 L 21 10 L 19 10 L 19 12 L 21 12 L 21 14 L 19 14 L 19 16 L 21 16 L 21 18 L 19 18 L 19 20 L 21 20 L 21 22 L 19 22 L 19 25 L 25 25 C 26.105 25 27 24.105 27 23 L 27 7 C 27 5.895 26.105 5 25 5 L 19 5 z M 23 8 L 24 8 C 24.552 8 25 8.448 25 9 C 25 9.552 24.552 10 24 10 L 23 10 L 23 8 z M 6.1855469 10 L 8.5878906 10 L 9.8320312 12.990234 C 9.9330313 13.234234 10.013797 13.516891 10.091797 13.837891 L 10.125 13.837891 C 10.17 13.644891 10.258531 13.351797 10.394531 12.966797 L 11.785156 10 L 13.972656 10 L 11.359375 14.955078 L 14.050781 19.998047 L 11.716797 19.998047 L 10.212891 16.740234 C 10.
248155891 16.625234 10.089203 16.393266 10.033203 16.072266 L 10.011719 16.072266 C 9.9777187 16.226266 9.9105937 16.458578 9.8085938 16.767578 L 8.2949219 20 L 5.9492188 20 L 8.7324219 14.994141 L 6.1855469 10 z M 23 12 L 24 12 C 24.552 12 25 12.448 25 13 C 25 13.552 24.552 14 24 14 L 23 14 L 23 12 z M 23 16 L 24 16 C 24.552 16 25 16.448 25 17 C 25 17.552 24.552 18 24 18 L 23 18 L 23 16 z M 23 20 L 24 20 C 24.552 20 25 20.448 25 21 C 25 21.552 24.552 22 24 22 L 23 22 L 23 20 z"/></svg>';case 13:return"edit_square";case 12:return"article";default:return""}}};var js=class r extends gs{getNewInstance(e){return new r(e)}GetNameCollection(){return"sections"}_typologyId;parentId;nameAnchor;showInAnchorMenu;_sectionType;sectionTagId;evidence;buttonDisplayEnd;isTemplate;templateId;sectionStyle;layoutPreconfiguratedId;layoutPreconfiguratedIdCustom;sectionBaseParagrafo;sectionBaseGallery;sectionBaseVideo;sectionBaseItems;sectionBaseLinks;sectionBaseList;sectionBaseSpace;sectionBaseTable;sectionBaseMap;sectionBaseCustomExcel;originRoot;sections;template;sectionTemplatesLinked;paragraphTemplatesLinked;constructor(e){super(e),e?this.setData(e):(this.sectionStyle=new Km,this.sectionBaseParagrafo=new bp,this.sectionBaseGallery=new Bh,this.sectionBaseVideo=new dl,this.sectionBaseItems=new Ru,this.sectionBaseLinks=new yp,this.sectionBaseList=new vp,this.sectionBaseSpace=new wp,this.sectionBaseTable=new Ip,this.sectionBaseMap=new _p,this.sectionBaseCustomExcel=new gp)}setData(e){super.setData(e);var t=this.getJson(e);return r.setDataSectionBase(t,this),this}static setDataSectionBase(e,t){return t||(t=new r),e&&(t.isTemplate=e.isTemplate,t.templateId=e.templateId,t._typologyId=e.typologyId,t.parentId=e.parentId,t.name=e.name,t.nameAnchor=e.nameAnchor,t.showInAnchorMenu=e.showInAnchorMenu!==!1,t._sectionType=e.sectionType,t.sectionTagId=e.sectionTagId,t.layoutPreconfiguratedId=e.layoutPreconfiguratedId,t.layoutPreconfiguratedIdCustom=e.layoutPreconfiguratedIdCustom,e?.sectionStyle?t.sectionStyle=new Km(e.sectionStyle):t.sectionStyle=new Km,e?.sectionBaseParagrafo?t.sectionBaseParagrafo=new bp(e.sectionBaseParagrafo):t.sectionBaseParagrafo=new bp,e?.sectionBaseGallery?t.sectionBaseGallery=new Bh(e.sectionBaseGallery):t.sectionBaseGallery=new Bh,e?.sectionBaseWall&&t._sectionType==3&&(t.sectionBaseGallery=new Bh(e.sectionBaseWall),t.sectionBaseGallery.layoutRepeaterId=1 .valueOf()),e?.sectionBaseVideo?t.sectionBaseVideo=new dl(e.sectionBaseVideo):t.sectionBaseVideo=new dl,e?.evidence!=null?t.evidence=e.evidence:t.evidence=t.sectionBaseParagrafo.getOldEvidence(),e?.buttonDisplayEnd!=null&&(t.buttonDisplayEnd=e.buttonDisplayEnd),e?.sectionBaseItems?t.sectionBaseItems=new Ru(e.sectionBaseItems):(t.sectionBaseItems=new Ru,t.sectionBaseItems.items=t.sectionBaseParagrafo.getOldItems(),t.sectionBaseItems.paragraph=t.sectionBaseParagrafo.paragraph,t.sectionBaseItems.generalButton=t.sectionBaseParagrafo.generalButton,t.sectionBaseItems.multimedia=t.sectionBaseParagrafo.getImage()),e?.sectionBaseLinks?t.sectionBaseLinks=new yp(e.sectionBaseLinks):t.sectionBaseLinks=new yp,e?.sectionBaseList?t.sectionBaseList=new vp(e.sectionBaseList):t.sectionBaseList=new vp,e?.sectionBaseSpace?t.sectionBaseSpace=new wp(e.sectionBaseSpace):t.sectionBaseSpace=new wp,e?.sectionBaseTable?t.sectionBaseTable=new Ip(e.sectionBaseTable):t.sectionBaseTable=new Ip,e?.sectionBaseMap?t.sectionBaseMap=new _p(e.sectionBaseMap):t.sectionBaseMap=new _p,e?.sectionBaseCustomExcel?t.sectionBaseCustomExcel=new gp(e.sectionBaseCustomExcel):t.sectionBaseCustomExcel=new gp),t}getDocumentData(e){var t=super.getDocumentData(e);return t=r.getDocumentDataSectionBase(t,this),t}static getDocumentDataSectionBase(e,t,n){var i={};if(n||(i=e),t){t._typologyId!=null&&(i.typologyId=t._typologyId),t.parentId&&(i.parentId=t.parentId),t.name&&(i.name=t.name),t.nameAnchor!==void 0&&(i.nameAnchor=t.nameAnchor),i.showInAnchorMenu=t.showInAnchorMenu!==!1,t.sectionStyle&&(i.sectionStyle=t.sectionStyle.getDocumentData()),t._sectionType!==void 0&&(i.sectionType=t._sectionType),t.sectionTagId!==void 0?i.sectionTagId=t.sectionTagId:i.sectionTagId=null,t.layoutPreconfiguratedId!==void 0?i.layoutPreconfiguratedId=t.layoutPreconfiguratedId:i.layoutPreconfiguratedId=null,t.layoutPreconfiguratedIdCustom!==void 0?i.layoutPreconfiguratedIdCustom=t.layoutPreconfiguratedIdCustom:i.layoutPreconfiguratedIdCustom=null,t.evidence!==void 0&&(i.evidence=t.evidence),t.buttonDisplayEnd!==void 0&&(i.buttonDisplayEnd=t.buttonDisplayEnd),t.isTemplate!==void 0&&(i.isTemplate=t.isTemplate),t.templateId!==void 0&&(i.templateId=t.templateId),t.sectionBaseParagrafo&&(i.sectionBaseParagrafo=t.sectionBaseParagrafo.getDocumentData()),t.sectionBaseGallery&&(i.sectionBaseGallery=t.sectionBaseGallery.getDocumentData()),t.sectionBaseVideo&&(i.sectionBaseVideo=t.sectionBaseVideo.getDocumentData()),t.sectionBaseItems&&(i.sectionBaseItems=t.sectionBaseItems.getDocumentData()),t.sectionBaseLinks&&(i.sectionBaseLinks=t.sectionBaseLinks.getDocumentData()),t.sectionBaseList&&(i.sectionBaseList=t.sectionBaseList.getDocumentData()),t.sectionBaseSpace&&(i.sectionBaseSpace=t.sectionBaseSpace.getDocumentData()),t.sectionBaseTable&&(i.sectionBaseTable=t.sectionBaseTable.getDocumentData()),t.sectionBaseMap&&(i.sectionBaseMap=t.sectionBaseMap.getDocumentData()),t.sectionBaseCustomExcel&&(i.sectionBaseCustomExcel=t.sectionBaseCustomExcel.getDocumentData());let a=[];t.name!=null&&(a=a.concat(pe.setSearchParamByWords(t.name))),t.setQuerySearch(i,a)}return n?e[n]=i:e=i,e}getName(){return this.name?this.name:""}static getIcon(){return"article"}isLayoutCustom(){return this.layoutPreconfiguratedIdCustom!=null}getLayoutPreconfiguratedId(){return this.layoutPreconfiguratedIdCustom??this.layoutPreconfiguratedId}isEvidence(){return this.evidence??!1}isTemplateModel(){return this.isTemplate??!1}setSectionTypeId(e){this._sectionType=e}
248getSectionTypeId(){return this.getSectionTypeIdByValue(this._sectionType)}getTranslatableFields(){return[...super.getTranslatableFields(),qe.anchor("nameAnchor","Ancora della sezione")]}getTranslatableChildren(){let e=[...super.getTranslatableChildren()];switch(this.getSectionTypeId()){case 0 .valueOf():e.push(Re.one("sectionBaseParagrafo","Paragrafo",this.sectionBaseParagrafo));break;case 1 .valueOf():e.push(Re.one("sectionBaseGallery","Galleria",this.sectionBaseGallery));break;case 4 .valueOf():e.push(Re.one("sectionBaseVideo","Video",this.sectionBaseVideo));break;case 5 .valueOf():e.push(Re.one("sectionBaseItems","Elementi",this.sectionBaseItems));break;case 6 .valueOf():e.push(Re.one("sectionBaseLinks","Collegamenti",this.sectionBaseLinks));break;case 7 .valueOf():e.push(Re.one("sectionBaseList","Lista",this.sectionBaseList));break;case 9 .valueOf():e.push(Re.one("sectionBaseTable","Tabella",this.sectionBaseTable));break;case 10 .valueOf():e.push(Re.one("sectionBaseMap","Mappa",this.sectionBaseMap));break;case 11 .valueOf():e.push(Re.one("sectionBaseCustomExcel","Tabella da Excel",this.sectionBaseCustomExcel));break}return e}setSectionTypologyId(e){this._typologyId=e}getSectionTypologyId(){return this._typologyId}getSectionTypeIdByValue(e){switch(e){case 3:return 1 .valueOf();case 0:if(this.sectionBaseParagrafo?.hasOldItems())return 5 .valueOf();break;default:return e}return e}haveToFillOtherModels(){return!1}fillOtherModels(e,t){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModels").call(this,e),yield this.fillSections(e,!1),yield this.sectionBaseParagrafo?.fillOtherModels(e,this.language),yield this.sectionBaseGallery?.fillOtherModels(e,this.language),yield this.sectionBaseVideo?.fillOtherModels(e,this.language),yield this.sectionBaseItems?.fillOtherModels(e,this.language),yield this.sectionBaseLinks?.fillOtherModels(e,this.language),yield this.sectionBaseList?.fillOtherModels(e,this.language),yield this.sectionBaseSpace?.fillOtherModels(e,this.language),yield this.sectionBaseTable?.fillOtherModels(e,this.language),yield this.sectionBaseMap?.fillOtherModels(e,this.language),yield this.sectionBaseCustomExcel?.fillOtherModels(e,this.language),t?.forceFillOriginRoot&&(yield this.fillOriginRoot(e)),yield this.fillTemplate(e),this})}haveToFillOtherModelsInDetail(){return!1}fillOtherModelsInDetail(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModelsInDetail").call(this,e),yield this.sectionBaseParagrafo?.fillOtherModelsInDetail(e,this.language),yield this.sectionBaseGallery?.fillOtherModelsInDetail(e,this.language),yield this.sectionBaseItems?.fillOtherModelsInDetail(e,this.language),yield this.sectionBaseLinks?.fillOtherModelsInDetail(e,this.language),yield this.sectionBaseList?.fillOtherModelsInDetail(e,this.language),yield this.sectionBaseSpace?.fillOtherModelsInDetail(e,this.language),yield this.sectionBaseTable?.fillOtherModelsInDetail(e,this.language),yield this.sectionBaseMap?.fillOtherModelsInDetail(e,this.language),yield this.sectionBaseCustomExcel?.fillOtherModelsInDetail(e,this.language),yield this.fillTemplate(e),this})}fillTemplate(e){return m(this,null,function*(){this.templateId&&(this.template=yield e.get(vn).getDetail(this.templateId,void 0,!0))})}fillSectionTemplatesLinked(e){return m(this,null,function*(){if(this.isTemplate){var t=new ic(void 0,void 0,"name",ke.orderAscKey);this.sectionTemplatesLinked=yield e.get(vn).getListPromise(new Ym(t,void 0,void 0,void 0,void 0,void 0,void 0,!0,void 0,void 0,void 0,void 0,this.id),!0);var n=new ic(void 0,void 0,"title",ke.orderAscKey);this.paragraphTemplatesLinked=yield e.get(Sy).getListPromise(new _E(n,void 0,void 0,void 0,void 0,this.id),!0),yield Promise.all(this.paragraphTemplatesLinked.map(i=>m(this,null,function*(){yield i?.fillOriginRoot(e)}))),console.log("paragraphTemplatesLinked",this.paragraphTemplatesLinked)}})}isActive(){switch(this.getSectionTypeId()){case 12:return this.template?.active;default:return this.active}}getSectionTypeEnum(){return new yc(this.getSectionTypeId()).getEnum()}getNameSectionType(){return new yc(this.getSectionTypeId()).getName()}getNameSystemSectionType(){return new yc(this.getSectionTypeId()).getNameSystem()}getSectionTypeStyle(){return new yc(this.getSectionTypeId()).getStyle()}fillOriginRoot(e){return m(this,null,function*(){[this.originRoot,this.parentDynamicModelInfo]=yield this.getOriginRoot(e),this.parentDynamicModel=this.originRoot})}getOriginRoot(e){return m(this,null,function*(){return r.getOriginRoot(e,this.parentId)})}static getOriginRoot(e,t){return m(this,null,function*(){return t?yield this.getOriginRootGeneral(e,t,void 0):[void 0,void 0]})}static getOriginRootGeneral(e,t,n){return m(this,null,function*(){return n?yield this.getOriginRootInner(e,t,n):new Promise((i,a)=>m(this,null,function*(){yield this.getOriginRootInner(e,t,i)}))})}static getOriginRootInner(e,t,n){return m(this,null,function*(){var i=yield gs.getDetailOrigin(e,t,void 0,!0);if(i)return n([i,void 0]);var a=yield e.get(vn).getDetail(t,void 0,void 0,void 0,!0);if(a)return this.getOriginRootInner(e,a.parentId,n);var s=!1,o=e.get(en).getDynamicModels();for(let d=0;d<o.length;d++){var l=o[d],c=l?.getInstanceCallback(),u=yield e.get(ke).getDetail(t,c,void 0,void 0,!0);if(u){s=!0,n([u,l]);break}}return s||console.warn("getOriginRootInner parentDynamicModel not found. All dynamicModels inserted?",t,o),n([void 0,void 0])})}preDeleteModel(e){return m(this,null,function*(){if(yield Fe(r.prototype,this,"preDeleteModel").call(this,e),yield this.sectionBaseParagrafo?.preDeleteModel(e),yield this.sectionBaseGallery?.preDeleteModel(e),yield this.sectionBaseVideo?.preDeleteModel(e),yield this.sectionBaseItems?.preDeleteModel(e),yield this.sectionBaseLinks?.preDeleteModel(e),yield this.sectionBaseList?.preDeleteModel(e),yield this.sectionBaseSpace?.preDeleteModel(e),yield this.sectionBaseTable?.preDeleteModel(e),yield this.sectionBaseMap?.preDeleteModel(e),yield this.sectionBaseCustomExcel?.preDeleteModel(e),yield this.sectionStyle?.preDeleteModel(e),this.isTemplate){yield this.fillSectionTemplatesLinked(e),console.log("delete sectionTemplatesLinked",this.sectionTemplatesLinked);var t=e.get(vn);yield Promise.all(this.sectionTemplatesLinked.map(i=>m(this,null,function*(){yield t.delete(i)}))),console.log("delete sectionTemplatesLinked",this.paragraphTemplatesLinked);var n=e.get(Sy);yield Promise.all(this.paragraphTemplatesLinked.map(i=>m(this,null,function*(){n.delete(i)})))}})}duplicateSection(e,t,n,i,a,s){return m(this,null,function*(){yield this.fillSections(e);let o=this.id,l=this.parentId,c=this.idTranslate;this.parentId=i;var u=yield Fe(r.prototype,this,"duplicate").call(this,e,t,n,a,s),d=u.id;this.language?u.name=`${this.name}-${this.language}
248`:u.name=`${this.name}`,n&&(u.idTranslate=c);try{let f=[];a&&n&&f.push(Vx(e,this.nameAnchor,n).then(p=>{p&&(u.nameAnchor=p)})),t&&t("Componenti sezione..."),u.sectionBaseParagrafo&&f.push(u.sectionBaseParagrafo.duplicateSectionBase(e,o,d,t,l,this.parentId,n,a,s)),u.sectionBaseVideo&&f.push(u.sectionBaseVideo.duplicateSectionBase(e,o,d,t,l,this.parentId,n,a,s)),u.sectionBaseItems&&f.push(u.sectionBaseItems.duplicateSectionBase(e,o,d,t,l,this.parentId,n,a,s)),u.sectionBaseLinks&&f.push(u.sectionBaseLinks.duplicateSectionBase(e,o,d,t,l,this.parentId,n,a,s)),u.sectionBaseList&&f.push(u.sectionBaseList.duplicateSectionBase(e,o,d,t,l,this.parentId,n,a,s)),u.sectionBaseGallery&&f.push(u.sectionBaseGallery.duplicateSectionBase(e,o,d,t,l,this.parentId,n,a,s)),u.sectionBaseSpace&&f.push(u.sectionBaseSpace.duplicateSectionBase(e,o,d,t,l,this.parentId,n,a,s)),u.sectionBaseTable&&f.push(u.sectionBaseTable.duplicateSectionBase(e,o,d,t,l,this.parentId,n,a,s)),u.sectionBaseMap&&f.push(u.sectionBaseMap.duplicateSectionBase(e,o,d,t,l,this.parentId,n,a,s)),u.sectionBaseCustomExcel&&f.push(u.sectionBaseCustomExcel.duplicateSectionBase(e,o,d,t,l,this.parentId,n,a,s)),u.sectionStyle&&f.push(u.sectionStyle.duplicateSectionBase(e,o,d,t,l,this.parentId,n,a,s)),this.sections&&this.sections.length>0&&f.push(r.duplicateSections(e,d,this.sections,t,this.language)),yield rh(f),yield e.get(vn).update(u)}catch(f){console.error("error",f);try{yield e.get(vn).update(u)}catch(p){if(console.error("update nel catch",p),!wo.failFast)throw p}if(wo.failFast)throw f}return u})}fillSections(e,t){return m(this,null,function*(){this.sections=yield rn.fillSections(e,this.id,void 0,t)})}getSectionsWithoutTagEnum(){return rn.getSectionsWithoutTagEnum(this.sections)}getSectionByTagEnum(e,t=!1){return rn.getSectionByTagEnum(this.sections,e,t)}getOneSectionByType(e,t=!1){return rn.getOneSectionByType(this.sections,e,t)}getSectionTag(e){return e?.find(t=>t.id==this.sectionTagId)}getTextToSpeech(e){return m(this,null,function*(){switch(this.getSectionTypeId()){case 0:return yield this.sectionBaseParagrafo?.getTextToSpeech(e);case 1:return yield this.sectionBaseGallery?.getTextToSpeech(e);case 4:return yield this.sectionBaseVideo?.getTextToSpeech(e);case 5:return yield this.sectionBaseItems?.getTextToSpeech(e);case 6:return yield this.sectionBaseLinks?.getTextToSpeech(e);case 7:return yield this.sectionBaseList?.getTextToSpeech(e);case 8:return yield this.sectionBaseSpace?.getTextToSpeech(e);case 9:return yield this.sectionBaseTable?.getTextToSpeech(e);case 10:return yield this.sectionBaseMap?.getTextToSpeech(e);case 11:return yield this.sectionBaseCustomExcel?.getTextToSpeech(e);case 12:return yield this.fillTemplate(e),yield this.template?.getTextToSpeech(e);default:return}})}getGeneralButton(){switch(this.getSectionTypeId()){case 0:return this.sectionBaseParagrafo?.generalButton;case 1:return this.sectionBaseGallery?.generalButton;case 4:return this.sectionBaseVideo?.generalButton;case 5:return this.sectionBaseItems?.generalButton;case 6:return this.sectionBaseLinks?.generalButton;case 7:return this.sectionBaseList?.generalButton;case 8:case 9:return this.sectionBaseTable?.generalButton;case 10:return this.sectionBaseMap?.generalButton;case 11:return this.sectionBaseCustomExcel?.generalButton;case 12:return this.template?.getGeneralButton();default:return}}};var rn=class r extends gs{nameCollection=this.GetNameCollection();sections;quizs;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return this}getDocumentData(e){var t=super.getDocumentData(e);return t}haveToFillOtherModels(){return!0}fillOtherModels(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModels").call(this,e),this})}haveToFillOtherModelsInDetail(){return!0}fillOtherModelsInDetail(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModelsInDetail").call(this,e),this})}fillQuiz(e,t,n){return m(this,null,function*(){this.quizs=yield r.fillQuiz(e,this.id,t,n)})}static fillQuiz(e,t,n,i){return m(this,null,function*(){var a=new ny(void 0).getList(!0),s=a.filter(c=>c.id===0)[0],o=new ic(void 0,void 0,"order",ke.orderAscKey),l=yield e.get(ph).getListPromise(new gE(o,void 0,void 0,n?void 0:s,void 0,void 0,t),i);return l})}fillSections(e,t,n){return m(this,null,function*(){this.sections=yield r.fillSections(e,this.id,t,n)})}preDeleteModel(e){return m(this,null,function*(){yield Fe(r.prototype,this,"preDeleteModel").call(this,e),yield this.fillSections(e,!0),yield this.fillQuiz(e,!0),yield r.deleteSections(e,this.sections),yield Promise.all(this.quizs.map(t=>m(this,null,function*(){yield e.get(ph).delete(t)})))})}duplicate(e,t,n,i,a){return m(this,null,function*(){yield this.fillSections(e,!0),yield this.fillQuiz(e,!0);let s=this.id;var o=yield Fe(r.prototype,this,"duplicate").call(this,e,t,n,i,a),l=o.id;try{let c=[];t&&t("Sezioni..."),console.log("duplicate sezioni...",this.getName(),s,l,this.sections),c.push(js.duplicateSections(e,l,this.sections,t,n,i,a)),console.log("duplicate quiz...",this.getName(),s,l,this.quizs),c.push(r.duplicateQuizs(e,l,this.quizs,t,n,i,a)),yield rh(c),yield e.get(ke).update(o)}catch(c){console.error("error",c);try{yield e.get(ke).update(o)}catch(u){if(console.error("update nel catch",u),!wo.failFast)throw u}if(wo.failFast)throw c}return o}
248)}static fillSections(e,t,n,i){return m(this,null,function*(){if(!t)return console.warn("fillSections no parentId",this),[];var a=new ny(void 0).getList(!0),s=a.filter(c=>c.id===0)[0],o=new ic(void 0,void 0,"order",ke.orderAscKey),l=yield e.get(vn).getListPromise(new Ym(o,void 0,n?void 0:s,t),i);return l})}static getSectionsWithoutTagEnum(e){if(!e||e.length==0)return[];var t=e.filter(n=>n.sectionTagId==null||n.sectionTagId==null);return t.length==0?[]:t}getSectionsWithoutTagEnum(){return r.getSectionsWithoutTagEnum(this.sections)}static getSectionByTagEnum(e,t,n=!1){if(!e||e.length==0)return null;var i=e.filter(a=>a.sectionTagId==t.valueOf());if(i.length!=0)return n?i[0]:i[i.length-1]}getSectionByTagEnum(e,t=!1){return r.getSectionByTagEnum(this.sections,e,t)}getGlobalSectionByTagEnum(e,t){return m(this,null,function*(){return yield e.get(vn).getDetailBySectionTagEnum(t)})}getOneSectionByType(e,t=!1){return r.getOneSectionByType(this.sections,e,t)}static getOneSectionByType(e,t,n=!1){if(!(!e||e.length==0)){var i=e.filter(a=>a.getSectionTypeId()==t.valueOf());if(i.length!=0)return n?i[0]:i[i.length-1]}}getLastSection(){if(!(!this.sections||this.sections.length==0))return this.sections[this.sections.length-1]}static deleteSections(e,t){return m(this,null,function*(){if(t){var n=e.get(vn);yield Promise.all(t.map(i=>m(null,null,function*(){yield n.delete(i)})))}})}static getSectionsWithAnchor(e){if(!(!e||e.length==0)){var t=e.filter(n=>n.nameAnchor&&n.showInAnchorMenu!==!1);if(t.length!=0)return t}}getSectionsWithAnchor(){return r.getSectionsWithAnchor(this.sections)}static duplicateQuizs(e,t,n,i,a,s,o){return m(this,null,function*(){n&&(yield rh(n.map(l=>m(null,null,function*(){try{yield l.duplicateQuiz(e,i,a,t,s,o)}catch(c){if(console.error("error",c),wo.failFast)throw c}}))))})}};var vc=class r extends rn{getNewInstance(e){return new r(e)}GetNameCollection(){return"origincategories"}constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return this}getDocumentData(e){var t=super.getDocumentData(e);return this.getName()!=null&&(this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(this.getName()))),t}haveNameFront(){return!0}static getIcon(){return"category"}getIcon(){return r.getIcon()}haveToFillOtherModels(){return!1}fillOtherModels(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModels").call(this,e),this})}haveToFillOtherModelsInDetail(){return!1}fillOtherModelsInDetail(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModelsInDetail").call(this,e),this})}preDeleteModel(e){return m(this,null,function*(){yield Fe(r.prototype,this,"preDeleteModel").call(this,e)})}duplicate(e,t,n,i,a){return m(this,null,function*(){let s=this.id;var o=yield Fe(r.prototype,this,"duplicate").call(this,e,t,n,i,a),l=o.id;try{t&&t("Aggiornamento..."),yield e.get(ke).update(o)}catch(c){console.error("error",c),yield e.get(ke).update(o)}return o})}};var nT=class r extends rn{getCategoryFieldName(){return"categoryId"}categoryId;categoryIds;category;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return t&&(this.categoryId=t.categoryId??null,this.categoryIds=t.categoryIds??null),this}getDocumentData(e){var t=super.getDocumentData(e);return t.categoryId=this.categoryId?this.categoryId:null,t.categoryIds=this.categoryIds?this.categoryIds:null,t}getName(){return this.name?this.name:""}haveToFillOtherModels(){return!0}fillOtherModels(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModels").call(this,e),yield this.fillCategory(e),this})}haveToFillOtherModelsInDetail(){return!0}fillOtherModelsInDetail(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModelsInDetail").call(this,e),yield this.fillCategory(e),this})}duplicate(e,t,n,i,a){return m(this,null,function*(){let s=this.id;var o=yield Fe(r.prototype,this,"duplicate").call(this,e,t,n,i,a),l=o.id;try{n&&(o.categoryId=yield e.get(ke).getTranslatedModelId(e,n,this.getCategoryModel().GetNameCollection(),this.categoryId),o.categoryIds=yield e.get(ke).getTranslatedModelIds(e,n,this.getCategoryModel().GetNameCollection(),this.categoryIds)),t&&t("Aggiornamento..."),yield e.get(ke).update(o)}catch(c){console.error("error",c),yield e.get(ke).update(o)}return o}
248)}};var fv=(n=>(n[n.Link_Esterno=0]="Link_Esterno",n[n.Ancora=1]="Ancora",n[n.Link_Interno=2]="Link_Interno",n))(fv||{}),v$=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(fv)}getNameByEnum(e){let t=Object.values(fv);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error CommentTypology name"}getInstanceAll(){return this.getInstance(void 0,ue.getAllId(),"Nessuno")}visible(e){let t=Object.values(fv);return!0}};var xp=class r{label;linkTypeId;href;dynamicModelId;dynamicModelCollectionName;anchor;isButton;buttonColorId;dynamicModel;constructor(e){e&&this.setData(e)}setData(e){e&&(this.label=e.label,this.linkTypeId=e.linkTypeId,this.href=e.href,this.anchor=e.anchor,this.dynamicModelId=e.dynamicModelId,this.dynamicModelCollectionName=e.dynamicModelCollectionName,this.isButton=e.isButton,this.buttonColorId=e.buttonColorId)}getDocumentData(){var e={};return e.label=this.label?this.label:null,this.linkTypeId!=null&&(e.linkTypeId=this.linkTypeId),e.href=this.href?this.href:null,e.anchor=this.anchor?this.anchor:null,e.dynamicModelId=this.dynamicModelId?this.dynamicModelId:null,e.dynamicModelCollectionName=this.dynamicModelCollectionName?this.dynamicModelCollectionName:null,e.isButton=this.isButton?this.isButton:null,this.buttonColorId!=null&&(e.buttonColorId=this.buttonColorId),e}static setDataInner(e){return new r(e)}static getDocumentDataInner(e,t,n="menuBuilderItems"){return t&&(e[n]=t.getDocumentData()),e}static setMenuBuilderItems(e){var t=[];return e.menuBuilderItems?(t=e.menuBuilderItems,t.forEach((n,i)=>{t[i]=r.setDataInner(n)})):t=[],t}static getMenuBuilderItems(e,t,n="menuBuilderItems"){if(t){var i=[];t.forEach((a,s)=>{var o=a.getDocumentData();i[s]=o}),e[n]=i}else e[n]=null;return e}clearOtherItems(){switch(this.linkTypeId){case 2:this.href=void 0,this.anchor=void 0;break;case 0:this.dynamicModelId=void 0,this.dynamicModelCollectionName=void 0,this.anchor=void 0;break;case 1:this.dynamicModelId=void 0,this.dynamicModelCollectionName=void 0,this.href=void 0;break;default:this.label=void 0,this.href=void 0,this.anchor=void 0,this.dynamicModelId=void 0,this.dynamicModelCollectionName=void 0;break}}fillDynamicModel(e){return m(this,null,function*(){var[t,n]=yield Us.fillDynamicModel(e,this.dynamicModelId,this.dynamicModelCollectionName,this.dynamicModel);this.dynamicModel=t})}hasLink(){return this.linkTypeId==0||this.linkTypeId==2}hasAnchor(){return this.linkTypeId==1}getCompleteFinalLink(){switch(this.linkTypeId){case 2:return this.dynamicModel?.fullSlug;case 0:return this.href;case 1:return this.anchor;default:return}}getButtonColor(){switch(this.buttonColorId){case 0:return"primary";case 1:return"accent";case 3:return"tertiary";case 2:return"white";default:return"accent"}}duplicate(e,t,n,i,a,s,o){return m(this,null,function*(){s&&a&&(this.label=yield e.get(Ge).getTranslationGeminiText(this.label,a,!0,!1)),a&&(this.dynamicModelId=yield e.get(ke).getTranslatedModelId(e,a,this.dynamicModelCollectionName,this.dynamicModelId),this.dynamicModelId||(this.dynamicModelCollectionName=void 0))})}};var Nh=class{menuBuilderItems;title;constructor(e){e&&this.setData(e)}setData(e){e&&(this.menuBuilderItems=xp.setMenuBuilderItems(e),this.title=e?.title)}getDocumentData(){var e={};return e=xp.getMenuBuilderItems(e,this.menuBuilderItems,"menuBuilderItems"),e.title=this.title??null,e}fillDynamicModels(e){return m(this,null,function*(){this.menuBuilderItems&&(yield Promise.all(this.menuBuilderItems.map(t=>m(this,null,function*(){t.dynamicModelId&&(yield t.fillDynamicModel(e))}))))})}duplicate(e,t,n,i,a,s,o){return m(this,null,function*(){s&&a&&(this.title=yield e.get(Ge).getTranslationGeminiText(this.title,a,!0,!1)),this.menuBuilderItems&&(yield Promise.all(this.menuBuilderItems.map(l=>m(this,null,function*(){yield l.duplicate(e,t,n,i,a,s,o)}))))})}};var _l=class{topMenu;siteMenu;secondaryMenu;constructor(e){e&&this.setData(e)}setData(e){e&&(e?.siteMenu&&(this.siteMenu=new Nh(e.siteMenu)),e?.secondaryMenu&&(this.secondaryMenu=new Nh(e.secondaryMenu)),e?.topMenu&&(this.topMenu=new Nh(e.topMenu)))}getDocumentData(){var e={};return this.siteMenu&&(e.siteMenu=this.siteMenu.getDocumentData()),this.secondaryMenu&&(e.secondaryMenu=this.secondaryMenu.getDocumentData()),this.topMenu&&(e.topMenu=this.topMenu.getDocumentData()),e}fillOtherModels(e,t){return m(this,null,function*(){yield this.fillDynamicModelsInMenu(e)})}fillOtherModelsInDetail(e,t){return m(this,null,function*(){yield this.fillDynamicModelsInMenu(e)})}preDeleteModel(e){return m(this,null,function*(){})}duplicate(e,t,n,i,a,s,o){return m(this,null,function*(){let l=[];this.topMenu&&l.push(this.topMenu.duplicate(e,t,n,i,a,s,o)),this.siteMenu&&l.push(this.siteMenu.duplicate(e,t,n,i,a,s,o)),this.secondaryMenu&&l.push(this.secondaryMenu.duplicate(e,t,n,i,a,s,o)),yield Promise.all(l)})}fillDynamicModelsInMenu(e){return m(this,null,function*(){yield this.topMenu?.fillDynamicModels(e),yield this.siteMenu?.fillDynamicModels(e),yield this.secondaryMenu?.fillDynamicModels(e)})}haveMenu(){return this.haveSiteMenu()||this.haveTopMenu()||this.haveSecondaryMenu()}haveSiteMenu(){return!!(this.siteMenu?.menuBuilderItems&&this.siteMenu?.menuBuilderItems?.length>0)}haveSecondaryMenu(){return!!(this.secondaryMenu?.menuBuilderItems&&this.secondaryMenu?.menuBuilderItems?.length>0)}haveTopMenu(){return!!(this.topMenu?.menuBuilderItems&&this.topMenu?.menuBuilderItems?.length>0)}};var _$=class extends fi{constructor(e,t,n,i,a,s){super(e,t,n,i,a,s)}},iT=class r extends Gn{getInstanceModel(){return new vc}getNewModel(e){return new vc(e)}constructor(e){super(e)}getFilters(e,t){return super.getFilters(e)}getBigQuerySelectSource(e){return super.getBigQuerySelectSource(e)+` 249 --JSON_EXTRACT(data, "$.previewModel.description") AS previewModel_description, 250 `}getBigQueryWhere(e){return super.getBigQueryWhere(e)}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var ws=class r extends nT{fillCategory(e){return m(this,null,function*(){this.categoryId&&(this.category=yield e.get(iT).getDetail(this.categoryId))})}getCategoryModel(){return new vc}getNewInstance(e){return new r(e)}GetNameCollection(){return"origins"}isSitemap;isLanding;isMenu;overrideMenuConfig;menuName;customUrl;dynamicModelCollectionName;superAdmin;menuConfig;showSearch;dynamicModelCollectionInfo;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return t&&(this.name=t.name,this.isSitemap=t.isSitemap,this.showSearch=t.showSearch,this.isMenu=t.isMenu,this.overrideMenuConfig=t.overrideMenuConfig,this.isLanding=t.isLanding,this.menuName=t.menuName,this.customUrl=t.customUrl,t.active==null&&(this.active=!0),t?.menuConfig&&(this.menuConfig=new _l(t.menuConfig)),this.dynamicModelCollectionName=t.dynamicModelCollectionName,this.superAdmin=t.superAdmin??
250!1),this}getDocumentData(e){var t=super.getDocumentData(e);return this.id?this.name!==void 0&&(t.name=this.name):t.name=this.name,this.isSitemap!==void 0&&(t.isSitemap=this.isSitemap),this.superAdmin!==void 0&&(t.superAdmin=this.superAdmin),this.showSearch!==void 0&&(t.showSearch=this.showSearch),this.isMenu!==void 0&&(t.isMenu=this.isMenu),this.overrideMenuConfig!==void 0&&(t.overrideMenuConfig=this.overrideMenuConfig),this.menuConfig&&(t.menuConfig=this.menuConfig.getDocumentData()),this.isLanding!==void 0&&(t.isLanding=this.isLanding),this.customUrl!==void 0&&(t.customUrl=this.customUrl),this.menuName!==void 0?t.menuName=this.menuName:this.isNew()&&(t.menuName=this.getName()),t.dynamicModelCollectionName=this.dynamicModelCollectionName??null,this.getName()!=null&&(this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(this.getName()))),this.slug!=null&&(this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(this.slug))),this.fullSlug!=null&&(this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(this.fullSlug))),this.setQuerySearch(t,this.querySearch),t}haveNameFront(){return!0}getMenuName(){return this.menuName?this.menuName:this.getName()}haveCustomUrl(){return!!(this.customUrl&&this.customUrl.length>0)}static getIcon(){return"trip_origin"}getIcon(){return r.getIcon()}
250getSuperAdmin(){return this.superAdmin??!1}fillDynamicModelCollectionName(e){if(!(!this.dynamicModelCollectionName||this.dynamicModelCollectionInfo)){var t=e.get(en).getDynamicModels().filter(n=>!n.isOriginModel());this.dynamicModelCollectionInfo=t.find(n=>n.nameCollection==this.dynamicModelCollectionName)}}haveToFillOtherModels(){return!0}fillOtherModels(e){return m(this,null,function*(){return yield this.fillOtherTranslate(e),yield this.fillParentOrigin(e),yield this.fillCategory(e),yield this.fillDynamicModelCollectionName(e),this})}haveToFillOtherModelsInDetail(){return!1}fillOtherModelsInDetail(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModelsInDetail").call(this,e),this})}getMultimediaPublished(){return this.multimedias}getIsMenu(){return this.isMenu??!1}getOverrideMenuConfig(){return this.overrideMenuConfig??!1}getIsLanding(){return this.isLanding??!1}getIsSitemap(){return this.isSitemap??!1}preDeleteModel(e){return m(this,null,function*(){yield Fe(r.prototype,this,"preDeleteModel").call(this,e)})}duplicate(e,t,n,i,a){return m(this,null,function*(){let s=this.id;var o=yield Fe(r.prototype,this,"duplicate").call(this,e,t,n,i,a),l=o.id;o.active=!1,this.language&&(o.name=`${this.name}-${this.language}`),o.isSitemap=!1;try{t&&t("Aggiornamento..."),console.log("duplicate Aggiornamento...",this.getName(),s,l,this.sections),yield e.get(ke).update(o)}catch(c){console.error("error",c),yield e.get(ke).update(o)}return o})}};var Ep=class{nameCollection;nameModello;isOrigin;nameModelli;routeParamId;showInMenu;parentMenuLabel;sectionListOption;menuRoles;haveDetail;customCard;customCardComponent;getInstanceCallback;constructor(e,t,n,i,a,s=!0,o,l,c,u,d){this.nameModello=t,this.nameModelli=i,this.routeParamId=a,this.getInstanceCallback=e,this.nameCollection=this.getInstanceCallback(void 0).GetNameCollection(),this.isOrigin=n,this.showInMenu=s,this.parentMenuLabel=o,this.sectionListOption=l,this.menuRoles=c,this.haveDetail=u??!0,this.customCard=d??!1}withCustomCard(e){return this.customCardComponent=e,this.customCard=!0,this}isOriginModel(){return this.isOrigin??!1}getName(){return this.nameModello}};var mv=(i=>(i[i.Primary=0]="Primary",i[i.Secondary=1]="Secondary",i[i.Black=2]="Black",i[i.White=3]="White",i))(mv||{}),aT=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(mv)}getNameByEnum(e){let t=Object.values(mv);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error CommentTypology name"}getInstanceAll(){return this.getInstance(void 0,ue.getAllId(),"Nessuno")}visible(e){let t=Object.values(mv);return!0}getOrderByEnum(e){let t=this.getEnumValues();switch(e){case t[0]:case 0:return 0;case t[1]:case 1:return 1;case t[2]:case 2:return 2;case t[3]:case 3:return 3;default:return-1}}getIconByEnum(e){return"circle"}getColorByEnum(e){switch(e){case 0:return"var(--primary-color)";case 1:return"var(--accent-color)";case 3:return"#ffffff";case 2:return"#000000";default:return"#000000"}}getClassColors(e){let t=Object.values(mv);switch(e){case 0:return"sectionStyle--primary";case 1:return"sectionStyle--secondary";case 2:return"sectionStyle--black";case 3:return"sectionStyle--white";default:return""}}};var sT=(t=>(t[t.Ultimo_Pubblicato=0]="Ultimo_Pubblicato",t[t.Ordine_Crescente=1]="Ordine_Crescente",t))(sT||{}),oT=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(sT)}getNameByEnum(e){let t=Object.values(sT);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error origin name"}visible(e){let t=Object.values(sT);return!0}getColorByEnum(e){return"#005e83"}};var lT=(n=>(n[n.Landscape=0]="Landscape",n[n.Portrait=1]="Portrait",n[n.Square=2]="Square",n))(lT||{}),cT=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(lT)}getNameByEnum(e){let t=Object.values(lT);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error CommentTypology name"}getInstanceAll(){return this.getInstance(void 0,ue.getAllId(),"Nessuno")}visible(e){let t=Object.values(lT);return!0}getColor(){return"var(--black-color)"}getOrderByEnum(e){let t=this.getEnumValues();switch(e){case t[0]:case 0:return 0;case t[1]:case 1:return 1;case t[2]:case 2:return 2;default:return-1}}getIconByEnum(e){switch(e){case 0:return"crop_16_9";case 1:return"crop_portrait";case 2:return"crop_square";default:return"circle"}}};var pv=(t=>(t[t.Diagonale=0]="Diagonale",t[t.DiagonaleInvertita=1]="DiagonaleInvertita",t))(pv||{}),Tp=class r extends ue{DIVIDER_HEIGHT=100;getDividerHeight(){return this.DIVIDER_HEIGHT}getDividerPaddingTop(e){return this.isValidDividerId(e)?`${this.DIVIDER_HEIGHT}px`:null}getDividerPaddingBottom(e){return this.isValidDividerId(e)?`${this.DIVIDER_HEIGHT}px`:null}isValidDividerId(e){return e!=null&&e>=0&&e<Object.keys(pv).length}getDividerClipPath(e,t){let n=this.isValidDividerId(e),i=this.isValidDividerId(t);if(!n&&!i)return null;let a=this.getDividerHeight(),s;if(n)switch(e){case 0:s=`0 ${a}px, 100% 0`;break;case 1:s=`0 0, 100% ${a}px`;break;default:s="0 0, 100% 0"}else s="0 0, 100% 0";let o;if(i)switch(t){case 0:o=`100% 100%, 0 calc(100% - ${a}px)`;break;case 1:o=`100% calc(100% - ${a}px), 0 100%`;break;default:o="100% 100%, 0 100%"}else o="100% 100%, 0 100%";return`polygon(${s}, ${o})`}getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(pv)}getNameByEnum(e){let t=Object.values(pv);switch(e){case t[0]:case 0:return"Diagonale";case t[1]:case 1:return"Diagonale Invertita";default:return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error SectionStyleClass name"}}
vendor: 19,419 bytes, lines 250-251
250getInstanceAll(){return this.getInstance(void 0,ue.getAllId(),"Nessuno")}visible(e){let t=Object.values(pv);return!0}};function s_e(r,e){}var Fu=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var yv=(()=>{class r extends ru{_elementRef=A(mt);_focusTrapFactory=A(mw);_config;_interactivityChecker=A(fw);_ngZone=A(Qe);_focusMonitor=A(Zc);_renderer=A(Rr);_changeDetectorRef=A(Ci);_injector=A(X);_platform=A(tr);_document=A(Je);_portalOutlet;_focusTrapped=new Ye;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=A(Fu,{optional:!0})||new Fu,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(t){this._ariaLabelledByQueue.push(t),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(t){let n=this._ariaLabelledByQueue.indexOf(t);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),n}attachTemplatePortal(t){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),n}attachDomPortal=t=>{this._portalOutlet.hasAttached();let n=this._portalOutlet.attachDomPortal(t);return this._contentAttached(),n};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,n){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let i=()=>{a(),s(),t.removeAttribute("tabindex")},a=this._renderer.listen(t,"blur",i),s=this._renderer.listen(t,"mousedown",i)})),t.focus(n)}_focusByCssSelector(t,n){let i=this._elementRef.nativeElement.querySelector(t);i&&this._forceFocus(i,n)}_trapFocus(t){this._isDestroyed||Yn(()=>{let n=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||n.focus(t);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(t)||this._focusDialogContainer(t);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',t);break;default:this._focusByCssSelector(this._config.autoFocus,t);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let t=this._config.restoreFocus,n=null;if(typeof t=="string"?n=this._document.querySelector(t):typeof t=="boolean"?n=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(n=t),this._config.restoreFocus&&n&&typeof n.focus=="function"){let i=Vd(),a=this._elementRef.nativeElement;(!i||i===this._document.body||i===a||a.contains(i))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(t){this._elementRef.nativeElement.focus?.(t)}_containsFocus(){let t=this._elementRef.nativeElement,n=Vd();return t===n||t.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Vd()))}static \u0275fac=function(n){return new(n||r)};static \u0275cmp=dt({type:r,selectors:[["cdk-dialog-container"]],viewQuery:function(n,i){if(n&1&&Fr(qo,7),n&2){let a;Mt(a=kt())&&(i._portalOutlet=a.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,i){n&2&&Or("id",i._config.id||null)("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledByQueue[0])("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null)},features:[Lt],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,i){n&1&&St(0,s_e,0,0,"ng-template",0)},dependencies:[qo],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit} 251`],encapsulation:2})}return r})(),gv=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new Ye;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(e,t){this.overlayRef=e,this.config=t,this.disableClose=t.disableClose,this.backdropClick=e.backdropClick(),this.keydownEvents=e.keydownEvents(),this.outsidePointerEvents=e.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!Ms(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=e.detachments().subscribe(()=>{t.closeOnOverlayDetachments!==!1&&this.close()})}close(e,t){if(this._canClose(e)){let n=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(e),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(e="",t=""){return this.overlayRef.updateSize({width:e,height:t}),this}addPanelClass(e){return this.overlayRef.addPanelClass(e),this}removePanelClass(e){return this.overlayRef.removePanelClass(e),this}_canClose(e){let t=this.config;return!!this.containerInstance&&(!t.closePredicate||t.closePredicate(e,t,this.componentInstance))}},o_e=new me("DialogScrollStrategy",{providedIn:"root",factory:()=>{let r=A(X);return()=>nu(r)}}),l_e=new me("DialogData"),c_e=new me("DefaultDialogConfig");function u_e(r){let e=Vr(r),t=new Rt;return{valueSignal:e,get value(){return e()},change:t,ngOnDestroy(){t.complete()}}}var vv=(()=>{class r{_injector=A(X);_defaultOptions=A(c_e,{optional:!0});_parentDialog=A(r,{optional:!0,skipSelf:!0});_overlayContainer=A(Aw);_idGenerator=A(qi);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Ye;_afterOpenedAtThisLevel=new Ye;_ariaHiddenElements=new Map;_scrollStrategy=A(o_e);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=xc(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(to(void 0)));constructor(){}open(t,n){let i=this._defaultOptions||new Fu;n=de(de({},i),n),n.id=n.id||this._idGenerator.getId("cdk-dialog-"),n.id&&this.getDialogById(n.id);let a=this._getOverlayConfig(n),s=Ql(this._injector,a),o=new gv(s,n),l=this._attachContainer(s,o,n);if(o.containerInstance=l,!this.openDialogs.length){let c=this._overlayContainer.getContainerElement();l._focusTrapped?l._focusTrapped.pipe(Hr(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(c)}):this._hideNonDialogContentFromAssistiveTechnology(c)}return this._attachDialogContent(t,o,l,n),this.openDialogs.push(o),o.closed.subscribe(()=>this._removeOpenDialog(o,!0)),this.afterOpened.next(o),o}closeAll(){vO(this.openDialogs,t=>t.close())}getDialogById(t){return this.openDialogs.find(n=>n.id===t)}ngOnDestroy(){vO(this._openDialogsAtThisLevel,t=>{t.config.closeOnDestroy===!1&&this._removeOpenDialog(t,!1)}),vO(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){let n=new Xl({positionStrategy:t.positionStrategy||Ko().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation,disableAnimations:t.disableAnimations});return t.backdropClass&&(n.backdropClass=t.backdropClass),n}_attachContainer(t,n,i){let a=i.injector||i.viewContainerRef?.injector,s=[{provide:Fu,useValue:i},{provide:gv,useValue:n},{provide:Gf,useValue:t}],o;i.container?typeof i.container=="function"?o=i.container:(o=i.container.type,s.push(...i.container.providers(i))):o=yv;let l=new yo(o,i.viewContainerRef,X.create({parent:a||this._injector,providers:s}));return t.attach(l).instance}_attachDialogContent(t,n,i,a){if(t instanceof Aa){let s=this._createInjector(a,n,i,void 0),o={$implicit:a.data,dialogRef:n};a.templateContext&&(o=de(de({},o),typeof a.templateContext=="function"?a.templateContext():a.templateContext)),i.attachTemplatePortal(new Wo(t,null,o,s))}else{let s=this._createInjector(a,n,i,this._injector),o=i.attachComponentPortal(new yo(t,a.viewContainerRef,s));n.componentRef=o,n.componentInstance=o.instance}}_createInjector(t,n,i,a){let s=t.injector||t.viewContainerRef?.injector,o=[{provide:l_e,useValue:t.data},{provide:gv,useValue:n}];return t.providers&&(typeof t.providers=="function"?o.push(...t.providers(n,t,i)):o.push(...t.providers)),t.direction&&(!s||!s.get($a,null,{optional:!0}))&&o.push({provide:$a,useValue:u_e(t.direction)}),X.create({parent:s||a,providers:o})}_removeOpenDialog(t,n){let i=this.openDialogs.indexOf(t);i>-1&&(this.openDialogs.splice(i,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,s)=>{a?s.setAttribute("aria-hidden",a):s.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(t){if(t.parentElement){let n=t.parentElement.children;for(let i=n.length-1;i>-1;i--){let a=n[i];a!==t&&a.nodeName!=="SCRIPT"&&a.nodeName!=="STYLE"&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();function vO(r,e){let t=r.length;for(;t--;)e(r[t])}var uT=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({providers:[vv],imports:[Jl,vo,d0,vo]})}return r})();function d_e(r,e){}var bv=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},_O="mdc-dialog--open",b$="mdc-dialog--opening",w$="mdc-dialog--closing",h_e=150,f_e=75,E$=(()=>{class r extends yv{_animationStateChanged=new Rt;_animationsEnabled=!$n();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?x$(this._config.enterAnimationDuration)??h_e:0;_exitAnimationDuration=this._animationsEnabled?x$(this._config.exitAnimationDuration)??f_e:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(I$,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(b$,_O)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(_O),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(_O),this._animationsEnabled?(this._hostElement.style.setProperty(I$,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(w$)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(t){this._actionSectionCount+=t,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(b$,w$)}_waitForAnimationToComplete(t,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,t)}_requestAnimationFrame(t){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(t):t()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(t){let n=super.attachComponentPortal(t);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Pn(r)))(i||r)}})();static \u0275cmp=dt({type:r,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,i){n&2&&(Mc("id",i._config.id),Or("aria-modal",i._config.ariaModal)("role",i._config.role)("aria-labelledby",i._config.ariaLabel?null:i._ariaLabelledByQueue[0])("aria-label",i._config.ariaLabel)("aria-describedby",i._config.ariaDescribedBy||null),Zt("_mat-animation-noopable",!i._animationsEnabled)("mat-mdc-dialog-container-with-actions",i._actionSectionCount>0))},features:[Lt],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(n,i){n&1&&(Se(0,"div",0)(1,"div",1),St(2,d_e,0,0,"ng-template",2),Ae()())},dependencies:[qo],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}
251.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents} 252`],encapsulation:2})}return r})(),I$="--mat-dialog-transition-duration";function x$(r){return r==null?null:typeof r=="number"?r:r.endsWith("ms")?hs(r.substring(0,r.length-2)):r.endsWith("s")?hs(r.substring(0,r.length-1))*1e3:r==="0"?0:null}var _v=(function(r){return r[r.OPEN=0]="OPEN",r[r.CLOSING=1]="CLOSING",r[r.CLOSED=2]="CLOSED",r})(_v||{}),Bu=class{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new Ye;_beforeClosed=new Ye;_result;_closeFallbackTimeout;_state=_v.OPEN;_closeInteractionType;constructor(e,t,n){this._ref=e,this._config=t,this._containerInstance=n,this.disableClose=t.disableClose,this.id=e.id,e.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(Yt(i=>i.state==="opened"),Hr(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(Yt(i=>i.state==="closed"),Hr(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),e.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),tf(this.backdropClick(),this.keydownEvents().pipe(Yt(i=>i.keyCode===27&&!this.disableClose&&!Ms(i)))).subscribe(i=>{this.disableClose||(i.preventDefault(),bO(this,i.type==="keydown"?"keyboard":"mouse"))})}close(e){let t=this._config.closePredicate;t&&!t(e,this._config,this.componentInstance)||(this._result=e,this._containerInstance._animationStateChanged.pipe(Yt(n=>n.state==="closing"),Hr(1)).subscribe(n=>{this._beforeClosed.next(e),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=_v.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(e){let t=this._ref.config.positionStrategy;return e&&(e.left||e.right)?e.left?t.left(e.left):t.right(e.right):t.centerHorizontally(),e&&(e.top||e.bottom)?e.top?t.top(e.top):t.bottom(e.bottom):t.centerVertically(),this._ref.updatePosition(),this}updateSize(e="",t=""){return this._ref.updateSize(e,t),this}addPanelClass(e){return this._ref.addPanelClass(e),this}removePanelClass(e){return this._ref.removePanelClass(e),this}getState(){return this._state}_finishDialogClose(){this._state=_v.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function bO(r,e,t){return r._closeInteractionType=e,r.close(t)}var dT=new me("MatMdcDialogData"),T$=new me("mat-mdc-dialog-default-options"),C$=new me("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let r=A(X);return()=>nu(r)}}),Nu=(()=>{class r{_defaultOptions=A(T$,{optional:!0});_scrollStrategy=A(C$);_parentDialog=A(r,{optional:!0,skipSelf:!0});_idGenerator=A(qi);_injector=A(X);_dialog=A(vv);_animationsDisabled=$n();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new Ye;_afterOpenedAtThisLevel=new Ye;dialogConfigClass=bv;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=xc(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(to(void 0)));constructor(){this._dialogRefConstructor=Bu,this._dialogContainerType=E$,this._dialogDataToken=dT}open(t,n){let i;n=de(de({},this._defaultOptions||new bv),n),n.id=n.id||this._idGenerator.getId("mat-mdc-dialog-"),n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let a=this._dialog.open(t,rr(de({},n),{positionStrategy:Ko(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||n.enterAnimationDuration?.toLocaleStr
252ing()==="0"||n.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:Fu,useValue:n}]},templateContext:()=>({dialogRef:i}),providers:(s,o,l)=>(i=new this._dialogRefConstructor(s,n,l),i.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:l},{provide:this._dialogDataToken,useValue:o.data},{provide:this._dialogRefConstructor,useValue:i}])}));return i.componentRef=a.componentRef,i.componentInstance=a.componentInstance,this.openDialogs.push(i),this.afterOpened.next(i),i.afterClosed().subscribe(()=>{let s=this.openDialogs.indexOf(i);s>-1&&(this.openDialogs.splice(s,1),this.openDialogs.length||this._getAfterAllClosed().next())}),i}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(n=>n.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let n=t.length;for(;n--;)t[n].close()}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),m_e=(()=>{class r{dialogRef=A(Bu,{optional:!0});_elementRef=A(mt);_dialog=A(Nu);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=D$(this._elementRef,this._dialog.openDialogs))}ngOnChanges(t){let n=t._matDialogClose||t._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(t){bO(this.dialogRef,t.screenX===0&&t.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,i){n&1&&Gt("click",function(s){return i._onButtonClick(s)}),n&2&&Or("aria-label",i.ariaLabel||null)("type",i.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[En]})}return r})(),S$=(()=>{class r{_dialogRef=A(Bu,{optional:!0});_elementRef=A(mt);_dialog=A(Nu);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=D$(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r})}return r})(),p_e=(()=>{class r extends S${id=A(qi).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Pn(r)))(i||r)}})();static \u0275dir=He({type:r,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,i){n&2&&Mc("id",i.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[Lt]})}return r})(),g_e=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275dir=He({type:r,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[OF([ak])]})}return r})(),y_e=(()=>{class r extends S${align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let t;return function(i){return(t||(t=Pn(r)))(i||r)}})();static \u0275dir=He({type:r,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(n,i){n&2&&Zt("mat-mdc-dialog-actions-align-start",i.align==="start")("mat-mdc-dialog-actions-align-center",i.align==="center")("mat-mdc-dialog-actions-align-end",i.align==="end")},inputs:{align:"align"},features:[Lt]})}return r})();function D$(r,e){let t=r.nativeElement.parentElement;for(;t&&!t.classList.contains("mat-mdc-dialog-container");)t=t.parentElement;return t?e.find(n=>n.id===t.id):null}var v_e=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({providers:[Nu],imports:[uT,Jl,vo,Nr,Nr]})}return r})();var L$=hG(A$());var Lu=(e=>(e[e.Home=0]="Home",e))(Lu||{}),M$=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(Lu)}getNameByEnum(e){let t=Object.values(Lu);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error origin name"}visible(e){let t=Object.values(Lu);return!0}getColorByEnum(e){return"#19b817"}};var hT=class extends fi{categoryId;categoryIds;tagModels;constructor(e,t,n,i,a,s,o,l,c,u,d,f,p){super(e,t,n,i,a,s,l,c,u,d),this.categoryId=o,this.categoryIds=f,this.tagModels=p}},fT=class r extends Gn{constructor(e){super(e)}getFilters(e,t,n){let i=super.getFilters(e,t);var a="categoryId";try{var a=n?.getCategoryFieldName()??"categoryId"}catch{try{var a=this.getInstanceModel()?.getCategoryFieldName()??"categoryId"}catch{}}return e?.categoryId?e?.categoryId==ue.getAllId().toString()?i.push(xe(a,"==",null)):i.push(xe(a,"==",e?.categoryId)):e?.categoryIds&&i.push(xe(a,"in",e?.categoryIds)),e?.tagModels&&e?.tagModels.forEac
252h(s=>{s.tagSelectedIds&&i.push(xe(s.tagFieldName,s.multiple?"array-contains-any":"in",s.tagSelectedIds))}),i}getBigQuerySelectSource(e){return super.getBigQuerySelectSource(e)+` 253 --JSON_EXTRACT(data, "$.previewModel.description") AS previewModel_description, 254 `}getBigQueryWhere(e){let t=super.getBigQueryWhere(e);var n="categoryId";try{n=this.getInstanceModel()?.getCategoryFieldName()??"categoryId"}catch{}if(e?.categoryId)t+=` AND JSON_EXTRACT_SCALAR(DATA, "$.${n}") = '${e.categoryId}'`;else if(e?.categoryIds?.length){let i=e.categoryIds.map(a=>`'${a}'`).join(", ");t+=` AND JSON_EXTRACT_SCALAR(DATA, "$.${n}") IN (${i})`}return t}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var k$=class extends hT{isMenu;isSitemap;parentOriginId;parentDynamicModelId;withoutDynamicParent;superAdmin;dynamicModelCollectionName;constructor(e,t,n,i,a,s,o,l,c,u,d){super(e,t,void 0,void 0,n,void 0,d),this.isMenu=i,this.isSitemap=a,this.parentOriginId=s,this.parentDynamicModelId=o,this.withoutDynamicParent=l,this.superAdmin=c,this.dynamicModelCollectionName=u}},bl=class r extends fT{getInstanceModel(){return new ws}getNewModel(e){return new ws(e)}originManagerImpl;emailBaseManager;constructor(e){super(e),this.originManagerImpl=e.get(Xt),this.emailBaseManager=e.get(hu)}getDetailByOriginEnum(e,t,n,i){return Le(this.injector,()=>new Promise((a,s)=>m(this,null,function*(){var o=[];o.push(xe("originId","==",e)),t&&o.push(xe("language","==",t)),o.push(ui(1));let l=gn(Jr(this.getDb(),this.getInstanceModel().GetNameCollection()),...o);var u=(yield Jn(l)).docs.map(f=>this.getNewModel(f));if(u.length==0){s(`getDetailByOriginEnum. Documento ${this.getInstanceModel().GetNameCollection()} non trovato. languageSigla: ${t}, originId: ${e}`);return}let d=u[0];!i&&(d.haveToFillOtherModelsInDetail()||n!==void 0&&n)&&(yield d.fillOtherModelsInDetail(this.injector)),a(d)})))}getDetailByOriginEnums(e,t,n){return Le(this.injector,()=>new Promise((i,a)=>m(this,null,function*(){var s=[];s.push(xe("originId","in",e)),t&&s.push(xe("language","==",t));let o=gn(Jr(this.getDb(),this.getInstanceModel().GetNameCollection()),...s);var c=(yield Jn(o)).docs.map(u=>this.getNewModel(u));i(c)})))}getDetailBySlug(e,t){return Le(this.injector,()=>new Promise((n,i)=>m(this,null,function*(){var a=[];a.push(xe("slug","==",e)),t&&a.push(xe("language","==",t)),a.push(ui(1));let s=gn(Jr(this.getDb(),this.getInstanceModel().GetNameCollection()),...a);var l=(yield Jn(s)).docs.map(c=>this.getNewModel(c));if(l.length==0){i(`Documento ${this.getInstanceModel().GetNameCollection()} non trovato`);return}n(l[0])})))}getFilters(e,t){let n=super.getFilters(e,t);return e?.isMenu!=null&&n.push(xe("isMenu","==",e?.isMenu)),e?.superAdmin!=null&&n.push(xe("superAdmin","==",e?.superAdmin)),e?.isSitemap!=null&&n.push(xe("isSitemap","==",e?.isSitemap)),e?.dynamicModelCollectionName&&n.push(xe("dynamicModelCollectionName","==",e?.dynamicModelCollectionName)),e?.parentOriginId!=null&&e?.parentOriginId!=ue.getAllId()&&n.push(xe("parentOriginId","==",e?.parentOriginId)),e?.parentDynamicModelId!=null&&n.push(xe("parentDynamicModelId","==",e?.parentDynamicModelId)),n}computeOriginSlugsCall(){return m(this,null,function*(){return new Promise((e,t)=>{var n=this;Ht(this.getFunctions(),"computeOriginSlugsCallV2")({}).then(s=>m(this,null,function*(){let o=s.data;o.success?e():t(o.message)})).catch(s=>{pe.checkFunctionCorsError(s,this.injector,"computeOriginSlugsCallV2"),console.error("computeOriginSlugsCall error",s),n.emailBaseManager.sendErrorEmail("computeOriginSlugsCall error",pe.describeError(s,"computeOriginSlugsCallV2")).catch(o=>console.error("sendErrorEmail non inviata",o)),t(s)})})})}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var mT=class r{constructor(e,t,n){this.injector=e;this._document=t;this.httpClient=this.injector.get(Ps),this.translateManager=this.injector.get(Yi),this.emailBaseManager=this.injector.get(hu),this.seoService=this.injector.get(br),this.originImpl=e.get(Xt),this.platformId=n,this.functions=e.get(mn)}platformId;httpClient;functions;translateManager;emailBaseManager;seoService;originImpl;getWhistleBlowingUrlPath(){return Promise.resolve("")}getCookieConsentScript(){return""}getPrivacyUrlPath(){return Promise.resolve("")}getCookieUrlPath(){return Promise.resolve("")}isPlatformBrowser(){return!!Si(this.platformId)}setUpCookieSolution(e,t,n){var i=` 255 var _iub = _iub || []; 256 _iub.csConfiguration = {"consentOnContinuedBrowsing":false,"floatingPreferencesButtonDisplay":"bottom-left","invali
256dateConsentWithoutLog":true,"perPurposeConsent":true,"siteId":${t},"whitelabel":false,"cookiePolicyId":${n},"lang":"it", "banner":{ "acceptButtonDisplay":true,"closeButtonRejects":true,"customizeButtonDisplay":true,"explicitWithdrawal":true,"listPurposes":true,"position":"float-bottom-left","rejectButtonDisplay":true }}; 257 `;this.seoService.addScriptToHead(e,void 0,i),this.seoService.addScriptToHead(e,"//cdn.iubenda.com/cs/iubenda_cs.js",void 0)}addIubenda(e,t,n){this.seoService.addScriptToHead(e,void 0,t),n!=null&&this.seoService.addScriptToHead(e,`https://cs.iubenda.com/autoblocking/${n}.js`,void 0),this.seoService.addScriptToHead(e,"//cdn.iubenda.com/cs/gpp/stub.js",void 0),this.seoService.addScriptToHead(e,"//cdn.iubenda.com/cs/iubenda_cs.js",void 0)}setUpConsentSolution(e,t){var n=` 258 var _iub = _iub || {}; 259 _iub.cons_instructions = _iub.cons_instructions || []; 260 _iub.cons_instructions.push(["init",{api_key:"${t}"},function( ){ 261 // console.log("init callBack"); 262 }]); 263 `;this.seoService.addScriptToHead(e,void 0,n),this.seoService.addScriptToHead(e,"//cdn.iubenda.com/cons/iubenda_cons.js",void 0)}getSendConsent(){return!0}sendConsent(e,t,n,i,a){return m(this,null,function*(){return new Promise(((s,o)=>m(this,null,function*(){if(!this.getSendConsent()){s();return}let l=` 264 { 265 "subject":{ 266 "first_name":"${t}", 267 "last_name":"${n}", 268 "full_name":"${t} ${n}", 269 "email":"${e}" 270 }, 271 "preferences":{ 272 "privacy": true 273 ${a==null?"":`,"newsletter": ${a?"true":"false"}`} 274 }, 275 "legal_notices":[ 276 { 277 "identifier":"privacy_policy" 278 }, 279 { 280 "identifier":"cookie_policy" 281 } 282 ], 283 "proofs":[ 284 { 285 "content":"{ first_name: ${t}, last_name: ${n}, email: ${e} }", 286 "form": "${i?i.replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\t/g,"\\t"):""}" 287 } 288 ] 289 } 290 `;yield this.sendConsentCall(l).catch(c=>{console.error("error sendConsent",c)}),s()})))})}sendConsentCall(e){return m(this,null,function*(){return new Promise((t,n)=>{if(e==null){n("No body");return}var i=this;Ht(this.functions,"sendIubendaConsentCallV2")({body:e}).then(o=>m(this,null,function*(){let l=o.data;l.success?t():n(l.message)})).catch(o=>{pe.checkFunctionCorsError(o,this.injector,"sendIubendaConsentCallV2"),console.error("sendIubendaConsentCall error",o),i.emailBaseManager.sendErrorEmail("sendIubendaConsentCall error",pe.describeError(o,"sendIubendaConsentCallV2")).catch(l=>console.error("sendErrorEmail non inviata",l)),n(o)})})})}static \u0275fac=function(t){return new(t||r)(ee(X),ee(Je),ee(hn))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var Cp=class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=G({token:r,factory:e=>mT.\u0275fac(e),providedIn:"root"})};var wl=class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=G({token:r,factory:e=>br.\u0275fac(e),providedIn:"root"})};var Sp=class r{seoService;originManager;constructor(e){this.seoService=e.get(br),this.originManager=e.get(bl)}setMetaDataByOrigin(e,t){return m(this,null,function*(){var n=yield this.originManager.getDetailByOriginEnum(e,t,void 0,!0);if(!n||!n.seo){console.warn("no seo for",e);return}yield this.seoService.setMetaDataBySeo(n.seo)})}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};function w_e(){return window}var Vu=class r{constructor(e,t,n){this.injector=e;this._document=t;this.seoService=e.get(wl),this.router=e.get($r),this.platformId=n,Si(this.platformId)&&(this.window=w_e())}platformId;window;seoService;router;isPlatformBrowser(){return!!Si(this.platformId)}pushTag(e){e&&this.isPlatformBrowser()&&(console.log("custom tag manager",e),this.window.dataLayer?.push(e))}addTagManagerBody(e,t){let n=e.createElement("noscript"),i=e.createElement("iframe");i.src=`https://www.googletagmanager.com/ns.html?id=${t}`,i.height=0,i.width=0,i.style="display:none;visibility:hidden",n.appendChild(i),e.appendChild(this._document.body,n)}customEvent(e,t){let n={event:e,data:t};this.pushTag(n)}eventConversion(e,t){this.customEvent("conversion",{url:this.seoService.getUrlComplete(),name:e?.getName(),nameCollection:e?.GetNameCollection(),language:e?.language,lead_id:t})}customClickUrl(e,t,n,i){this.customEvent("palinkClick",{url_target:e,url:i??this.router.url,link_text:t,name:n?.getName(),nameCollection:n?.GetNameCollection(),language:n?.language})}pageView(e){this.pushTag({event:"page_view",page_path:e,page_title:this.isPlatformBrowser()?document.title:""})}removeScript(e){let t=this._document.getElementById(e);t&&t.remove()}addGtmToDom(e,t){var n=` 291 window.dataLayer = window.dataLayer || []; 292 (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': 293 new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], 294 j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
295 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); 296 })(window,document,'script','dataLayer','${t}'); 297 `;this.seoService.addScriptToHead(e,void 0,n),this.addTagManagerBody(e,t)}static \u0275fac=function(t){return new(t||r)(ee(X),ee(Je),ee(hn))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var pT=class r{constructor(e){this.injector=e;this.breakpointObserver=e.get(wa),this.init()}siteObservers=[];breakpointObserver;mobile=!1;tablet=!1;laptop=!1;desktop=!1;mobileNew=!1;getMobileBreakpoint(){return"(max-width: 1023px)"}getMobileNewBreakpoint(){return"(max-width: 600px)"}getTabletBreakpoint(){return"(min-width: 600px) and (max-width: 960px)"}getLaptopBreakpoint(){return"(min-width: 960px) and (max-width: 1279px)"}getDesktopBreakpoint(){return"(min-width: 1279px)"}init(){this.breakpointObserver?.observe([this.getMobileBreakpoint(),this.getTabletBreakpoint(),this.getLaptopBreakpoint(),this.getDesktopBreakpoint()]).subscribe(e=>{this.mobile=e.breakpoints[this.getMobileBreakpoint()],this.tablet=e.breakpoints[this.getTabletBreakpoint()],this.desktop=e.breakpoints[this.getDesktopBreakpoint()],this.laptop=e.breakpoints[this.getLaptopBreakpoint()],this.mobileNew=e.breakpoints[this.getMobileNewBreakpoint()],this.changeData()}),this.changeData()}isMobile(){return this.mobile}isTablet(){return this.tablet}isLaptop(){return this.laptop}isDesktop(){return this.desktop}isMobileNew(){return this.mobileNew}getObservableChangeScreenSize(){return new Ot(t=>{this.siteObservers.push(t)})}changeData(){this.siteObservers.forEach(e=>{let t=e;t&&t.next([this.mobile,this.tablet,this.desktop,this.laptop,this.mobileNew])})}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var Uu=class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=G({token:r,factory:e=>pT.\u0275fac(e),providedIn:"root"})};
297var gT=class r{constructor(e){this.injector=e}setMaterialIcon(){}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var yT=class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=G({token:r,factory:e=>gT.\u0275fac(e),providedIn:"root"})};var P$=class{anchor;link;samePage;constructor(e,t,n){this.anchor=t,this.link=e,this.samePage=n}},zu=class r{constructor(e){this.injector=e;this.viewportScroller=this.injector.get(No),this.translateManager=e.get(Yi),this.platformLocation=this.injector.get(pa)}offsetScroll=200;linkObservers=[];viewportScroller;translateManager;platformLocation;getObservable(){return new Ot(t=>{this.linkObservers.push(t)})}setData(e){this.linkObservers.forEach(t=>{let n=t;n&&n.next(e)})}isLinkEsterno(e){return!!e?.startsWith("http")}isProtocolLink(e){return e?.startsWith("tel:")||e?.startsWith("mailto:")}goToAnchor(e,t=this.offsetScroll,n=0){e&&setTimeout(()=>{this.viewportScroller.setOffset([0,t]),this.viewportScroller.scrollToAnchor(e)},n)}getCorrectLink(e,t,n,i){var a=e;if(a||(a=this.platformLocation.pathname),t&&!i&&(a=`${a}#${t}`),this.isProtocolLink(a))return a;if(this.isLinkEsterno(e))return e??"";a=a.replace("//","/");let s=this.translateManager.getCurrentLang();if(n||!this.translateManager.isActive()||!s)return a;let o=`/${s}`;return a.startsWith(`${o}`)||(a=`${o}${a.startsWith("/")?"":"/"}${a}`),a}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};function I_e(r,e){}var R$="_mat-bottom-sheet-enter",O$="_mat-bottom-sheet-exit",x_e=(()=>{class r extends yv{_breakpointSubscription;_animationsDisabled=$n();_animationState="void";_animationStateChanged=new Rt;_destroyed;constructor(){super();let t=A(wa);this._breakpointSubscription=t.observe([Kl.Medium,Kl.Large,Kl.XLarge]).subscribe(()=>{let n=this._elementRef.nativeElement.classList;n.toggle("mat-bottom-sheet-container-medium",t.isMatched(Kl.Medium)),n.toggle("mat-bottom-sheet-container-large",t.isMatched(Kl.Large)),n.toggle("mat-bottom-sheet-container-xlarge",t.isMatched(Kl.XLarge))})}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._animationsDisabled&&this._simulateAnimation(R$))}exit(){this._destroyed||(this._elementRef.nativeElement.setAttribute("mat-exit",""),this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._animationsDisabled&&this._simulateAnimation(O$))}ngOnDestroy(){super.ngOnDestroy(),this._breakpointSubscription.unsubscribe(),this._destroyed=!0}_simulateAnimation(t){this._ngZone.run(()=>{this._handleAnimationEvent(!0,t),setTimeout(()=>this._handleAnimationEvent(!1,t))})}_trapFocus(){super._trapFocus({preventScroll:!0})}_handleAnimationEvent(t,n){let i=n===R$;(i||n===O$)&&this._animationStateChanged.emit({toState:i?"visible":"hidden",phase:t?"start":"done"})}static \u0275fac=function(n){return new(n||r)};static \u0275cmp=dt({type:r,selectors:[["mat-bottom-sheet-container"]],hostAttrs:["tabindex","-1",1,"mat-bottom-sheet-container"],hostVars:9,hostBindings:function(n,i){n&1&&Gt("animationstart",function(s){return i._handleAnimationEvent(!0,s.animationName)})("animationend",function(s){return i._handleAnimationEvent(!1,s.animationName)})("animationcancel",function(s){return i._handleAnimationEvent(!1,s.animationName)}),n&2&&(Or("role",i._config.role)("aria-modal",i._config.ariaModal)("aria-label",i._config.ariaLabel),Zt("mat-bottom-sheet-container-animations-enabled",!i._animationsDisabled)("mat-bottom-sheet-container-enter",i._animationState==="visible")("mat-bottom-sheet-container-exit",i._animationState==="hidden"))},features:[Lt],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,i){n&1&&St(0,I_e,0,0,"ng-template",0)},dependencies:[qo],styles:[`@keyframes _mat-bottom-sheet-enter{from{transform:translateY(100%)}to{transform:none}}@keyframes _mat-bottom-sheet-exit{from{transform:none}to{transform:translateY(100%)}}.mat-bottom-sheet-container{box-shadow:0px 8px 10px -5px rgba(0, 0, 0, 0.2), 0px 16px 24px 2px rgba(0, 0, 0, 0.14), 0px 6px 30px 5px rgba(0, 0, 0, 0.12);padding:8px 16px;min-width:100vw;box-sizing:border-box;display:block;outline:0;max-height:80vh;overflow:auto;position:relative;background:var(--mat-bottom-sheet-container-background-color, var(--mat-sys-surface-container-low));color:var(--mat-bottom-sheet-container-text-color, var(--mat-sys-on-surface));font-family:var(--mat-bottom-sheet-container-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-bottom-sheet-container-text-size, var(--mat-sys-body-large-size));line-height:var(--mat-bottom-sheet-container-text-line-height, var(--mat-sys-body-large-line-height));font-weight:var(--mat-bottom-sheet-container-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-bottom-sheet-container-text-tracking, var(--mat-sys-body-large-tracking))}@media(forced-colors: active){.mat-bottom-sheet-container{outline:1px solid}}.mat-bottom-sheet-container-animations-enabled{transform:translateY(100%)}.mat-bottom-sheet-container-animations-enabled.mat-bottom-sheet-container-enter{animation:_mat-bottom-sheet-enter 195ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-bottom-sheet-container-animations-enabled.mat-bottom-sheet-container-exit{animation:_mat-bottom-sheet-exit 375ms cubic-bezier(0.4, 0, 1, 1) backwards}.mat-bottom-sheet-container-xlarge,.mat-bottom-sheet-container-large,.mat-bottom-sheet-container-medium{border-top-left-radius:var(--mat-bottom-sheet-container-shape, 28px);border-top-right-radius:var(--mat-bottom-sheet-container-shape, 28px)}.mat-bottom-sheet-container-medium{min-width:384px;max-width:calc(100vw - 128px)}.mat-bottom-sheet-container-large{min-width:512px;max-width:calc(100vw - 256px)}.mat-bottom-sheet-container-xlarge{min-width:576px;max-width:calc(100vw - 384px)} 298`],encapsulation:2})}return r})(),xO=new me("MatBottomSheetData"),IO=class{viewContainerRef;panelClass;direction;data=null;hasBackdrop=!0;backdropClass;disableClose=!1;ariaLabel=null;ariaModal=!1;closeOnNavigation=!0;
298autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;height="";minHeight;maxHeight},Dp=class{_ref;get instance(){return this._ref.componentInstance}get componentRef(){return this._ref.componentRef}containerInstance;disableClose;_afterOpened=new Ye;_result;_closeFallbackTimeout;constructor(e,t,n){this._ref=e,this.containerInstance=n,this.disableClose=t.disableClose,n._animationStateChanged.pipe(Yt(i=>i.phase==="done"&&i.toState==="visible"),Hr(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(Yt(i=>i.phase==="done"&&i.toState==="hidden"),Hr(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._ref.close(this._result)}),e.overlayRef.detachments().subscribe(()=>{this._ref.close(this._result)}),tf(this.backdropClick(),this.keydownEvents().pipe(Yt(i=>i.keyCode===27))).subscribe(i=>{!this.disableClose&&(i.type!=="keydown"||!Ms(i))&&(i.preventDefault(),this.dismiss())})}dismiss(e){this.containerInstance&&(this.containerInstance._animationStateChanged.pipe(Yt(t=>t.phase==="start"),Hr(1)).subscribe(()=>{this._closeFallbackTimeout=setTimeout(()=>this._ref.close(this._result),500),this._ref.overlayRef.detachBackdrop()}),this._result=e,this.containerInstance.exit(),this.containerInstance=null)}afterDismissed(){return this._ref.closed}afterOpened(){return this._afterOpened}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}},E_e=new me("mat-bottom-sheet-default-options"),EO=(()=>{class r{_injector=A(X);_parentBottomSheet=A(r,{optional:!0,skipSelf:!0});_animationsDisabled=$n();_defaultOptions=A(E_e,{optional:!0});_bottomSheetRefAtThisLevel=null;_dialog=A(vv);get _openedBottomSheetRef(){let t=this._parentBottomSheet;return t?t._openedBottomSheetRef:this._bottomSheetRefAtThisLevel}set _openedBottomSheetRef(t){this._parentBottomSheet?this._parentBottomSheet._openedBottomSheetRef=t:this._bottomSheetRefAtThisLevel=t}constructor(){}open(t,n){let i=de(de({},this._defaultOptions||new IO),n),a;return this._dialog.open(t,rr(de({},i),{disableClose:!0,closeOnOverlayDetachments:!1,maxWidth:"100%",container:x_e,scrollStrategy:i.scrollStrategy||nu(this._injector),positionStrategy:Ko(this._injector).centerHorizontally().bottom("0"),disableAnimations:this._animationsDisabled,templateContext:()=>({bottomSheetRef:a}),providers:(s,o,l)=>(a=new Dp(s,i,l),[{provide:Dp,useValue:a},{provide:xO,useValue:i.data}])})),a.afterDismissed().subscribe(()=>{this._openedBottomSheetRef===a&&(this._openedBottomSheetRef=null)}),this._openedBottomSheetRef?(this._openedBottomSheetRef.afterDismissed().subscribe(()=>a.containerInstance?.enter()),this._openedBottomSheetRef.dismiss()):a.containerInstance.enter(),this._openedBottomSheetRef=a,a}dismiss(t){this._openedBottomSheetRef&&this._openedBottomSheetRef.dismiss(t)}ngOnDestroy(){this._bottomSheetRefAtThisLevel&&this._bottomSheetRefAtThisLevel.dismiss()}static \u0275fac=function(n){return new(n||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})(),sJe=(()=>{class r{static \u0275fac=function(n){return new(n||r)};static \u0275mod=It({type:r});static \u0275inj=wt({providers:[EO],imports:[uT,Nr,vo,Nr]})}return r})();var Il=class r extends rn{getNewInstance(e){return new r(e)}GetNameCollection(){return"impostazioniSito"}menuConfig;showSearch;layoutId;footerText;socialInstagram;socialLinkedin;socialFacebook;socialX;socialYoutube;aiDisclosureModeId;aiDisclosureLabel;aiChatSiteAcListId;aiChatSiteAcTagId;aiChatSiteAcTagName;aiChatSiteCompanyIDAppVD;aiChatSiteCustomerIDAppVD;aiChatWaAcListId;aiChatWaAcTagId;aiChatWaAcTagName;aiChatWaCompanyIDAppVD;aiChatWaCustomerIDAppVD;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return t&&(this.showSearch=t.showSearch,this.layoutId=t.layoutId,this.footerText=t.footerText,this.socialInstagram=t.socialInstagram,this.socialLinkedin=t.socialLinkedin,this.socialFacebook=t.socialFacebook,this.socialX=t.socialX,this.socialYoutube=t.socialYoutube,this.aiDisclosureModeId=t.aiDisclosureModeId,this.aiDisclosureLabel=t.aiDisclosureLabel,this.aiChatSiteAcListId=t.aiChatSiteAcListId,this.aiChatSiteAcTagId=t.aiChatSiteAcTagId,this.aiChatSiteAcTagName=t.aiChatSiteAcTagName,this.aiChatSiteCompanyIDAppVD=t.aiChatSiteCompanyIDAppVD,this.aiChatSiteCustomerIDAppVD=t.aiChatSiteCustomerIDAppVD,this.aiChatWaAcListId=t.aiChatWaAcListId,this.aiChatWaAcTagId=t.aiChatWaAcTagId,this.aiChatWaAcTagName=t.aiChatWaAcTagName,this.aiChatWaCompanyIDAppVD=t.aiChatWaCompanyIDAppVD,this.aiChatWaCustomerIDAppVD=t.aiChatWaCustomerIDAppVD,t?.menuConfig?this.menuConfig=new _l(t.menuConfig):this.menuConfig=new _l),this}getDocumentData(e){var t=super.getDocumentData(e);return this.showSearch!=null&&(t.showSearch=this.showSearch),this.layoutId!=null&&(t.layoutId=this.layoutId),this.footerText!=null&&(t.footerText=this.footerText),this.socialInstagram!==void 0&&(t.socialInstagram=this.socialInstagram),this.socialLinkedin!==void 0&&(t.socialLinkedin=this.socialLinkedin),this.socialFacebook!==void 0&&(t.socialFacebook=this.socialFacebook),this.socialX!==void 0&&(t.socialX=this.socialX),this.socialYoutube!==void 0&&(t.socialYoutube=this.socialYoutube),this.aiDisclosureModeId!==void 0&&(t.aiDisclosureModeId=this.aiDisclosureModeId),this.aiDisclosureLabel!==void 0&&(t.aiDisclosureLabel=this.aiDisclosureLabel),this.aiChatSiteAcListId!==void 0&&(t.aiChatSiteAcListId=this.aiChatSiteAcListId),this.aiChatSiteAcTagId!==void 0&&(t.aiChatSiteAcTagId=this.aiChatSiteAcTagId),this.aiChatSiteAcTagName!==void 0&&(t.aiChatSiteAcTagName=this.aiChatSiteAcTagName),this.aiChatSiteCompanyIDAppVD!==void 0&&(t.aiChatSiteCompanyIDAppVD=this.aiChatSiteCompanyIDAppVD),this.aiChatSiteCustomerIDAppVD!==void 0&&(t.aiChatSiteCustomerIDAppVD=this.aiChatSiteCustomerIDAppVD),this.aiChatWaAcListId!==void 0&&(t.aiChatWaAcListId=this.aiChatWaAcListId),this.aiChatWaAcTagId!==void 0&&(t.aiChatWaAcTagId=this.aiChatWaAcTagId),this.aiChatWaAcTagName!==void 0&&(t.aiChatWaAcTagName=this.aiChatWaAcTagName),this.aiChatWaCompanyIDAppVD!==void 0&&(t.aiChatWaCompanyIDAppVD=this.aiChatWaCompanyIDAppVD),this.aiChatWaCustomerIDAppVD!==void 0&&(t.aiChatWaCustomerIDAppVD=this.aiChatWaCustomerIDAppVD),this.menuConfig&&(t.menuConfig=this.menuConfig.getDocumentData()),t}haveNameFront(){return!0}static getIcon(){return"settings"}getIcon(){return r.getIcon()}haveToFillOtherModels(){return!0}fillOtherModels(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModels").call(this,e),yield this.menuConfig?.fillOtherModels(e),this})}haveToFillOtherModelsInDetail(){return!0}fillOtherModelsInDetail(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModelsInDetail").call(this,e),yield this.menuConfig?.fillOtherModelsInDetail(e),this})}preDeleteModel(e){return m(this,null,function*(){yield Fe(r.prototype,this,"preDeleteModel").call(this,e),yield this.menuConfig?.preDeleteModel(e)})}getTranslatableFields(){return[...super.getTranslatableFields().filter(e=>e.name!=="nameFront"),qe.html("footerText","Testo del footer"),qe.text("aiDisclosureLabel","Etichetta avviso AI")]}duplicate(e,t,n,i,a){return m(this,null,function*(){let s=this.id,o=this.nameFront;var l=yield Fe(r.prototype,this,"duplicate").call(this,e,t,n,i,a),c=l.id;l.active=!0,l.nameFront=o;try{i&&n&&(this.footerText=yield e.get(Ge).getTranslationGeminiText(this.footerText,n,!0,!1),this.aiDisclosureLabel=yield e.get(Ge).getTranslationGeminiText(this.aiDisclosureLabel,n,!0,!1));let u=[];this.menuConfig&&u.push(this.menuConfig.duplicate(e,s,c,t,n,i,a)),yield Promise.all(u),t&&t("Aggiornamento..."),yield e.get(ke).update(l)}catch(u){console.error("error",u),yield e.get(ke).update(l)}return l})}};var vT=class extends fi{constructor(e,t,n,i,a,s){super(e,t,n,i,a,s)}},Ap=class r extends Gn{getInstanceModel(){return new Il}getNewModel(e){return new Il(e)}constructor(e){super(e)}getFilters(e,t){return super.getFilters(e)}getBigQuerySelectSource(e){return super.getBigQuerySelectSource(e)+` 299 --JSON_EXTRACT(data, "$.previewModel.description") AS previewModel_description, 300 `}getBigQueryWhere(e){return super.getBigQueryWhere(e)}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var Lh=class r extends Ls{getNewInstance(e){return new r(e)}GetNameCollection(){return"siteredirects"}source;regex;destination;errorDestination;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return t&&(this.name=t.name,this.source=t.source,this.regex=t.regex,this.destination=t.destination,this.errorDestination=t.errorDestination),this}getDocumentData(e){var t=super.getDocumentData(e);return this.name!=null&&(t.name=this.name),this.source!=null&&(t.source=this.source),this.regex!=null&&(t.regex=this.regex),this.destination!=null&&(t.de
300stination=this.destination),this.errorDestination!=null&&(t.errorDestination=this.errorDestination),this.name!=null&&(this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(this.name))),this.source!=null&&(this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(this.source))),this.destination!=null&&(this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(this.destination))),this.setQuerySearch(t,this.querySearch),t}getName(){return this.source?this.source:""}getSource(){return this.source}isRegex(){return this.regex??!1}getDestination(){return this.destination}static getIcon(){return"link"}haveToFillOtherModels(){return!1}fillOtherModels(e){return m(this,null,function*(){return this})}haveToFillOtherModelsInDetail(){return!1}fillOtherModelsInDetail(e){return m(this,null,function*(){return this})}};var _T=class extends ul{source;destination;regex;errorDestination;constructor(e,t,n,i,a,s,o,l,c){super(e,t,n,i,a),this.source=s,this.regex=o,this.errorDestination=l,this.destination=c}},Mp=class r extends Iu{constructor(t,n){super(t);this.tranlsateManager=n}getInstanceModel(){return new Lh}getNewModel(t){return new Lh(t)}getDetailBySource(t){return Le(this.injector,()=>new Promise((n,i)=>m(this,null,function*(){var a=[];a.push(xe("source","==",t)),a.push(ui(1));let s=gn(Jr(this.getDb(),this.getInstanceModel().GetNameCollection()),...a);var l=(yield Jn(s)).docs.map(c=>this.getNewModel(c));if(l.length==0){n(void 0);return}n(l[0])})))}getFilters(t,n){let i=super.getFilters(t,n);return t?.source!=null&&i.push(xe("source","==",t?.source)),t?.destination!=null&&i.push(xe("destination","==",t?.destination)),t?.regex!=null&&i.push(xe("regex","==",t?.regex)),t?.errorDestination!=null&&i.push(xe("errorDestination","==",t?.errorDestination)),i}getCorrectSource(t){return t=t?.startsWith("/")?t:"/"+t,t.length!=1&&(t=t?.endsWith("/")?t.substring(0,t.length-1):t),t}isValidSource(t){return t=="/"?!1:/^\/[a-z0-9èéà ùòì]+(?:-[a-z0-9èéà ùòì]+)*(?:\/[a-z0-9èéà ùòì]+(?:-[a-z0-9èéà ùòì]+)*)*(?:\.[a-z0-9èéà ùòì]+)?$/.test(t)}isValidDestination(t){return t.includes("http")||t.includes("https")?/(?:https?:\/\/)(?!$)(?:www\.)?[a-zA-Z]*(?:\.[a-zA-Z]{2,6})?(?:(?:\d{1,3}\.){3}\d{1,3})?/.test(t):/^((?:\/[a-z0-9]+(?:-[a-z0-9]+)*)+\/|\/)$/.test(t)}getCorrectDestination(t){return t?.startsWith("http")||(t=t?.startsWith("/")?t:"/"+t,t=t?.endsWith("/")?t:t+"/"),t}static \u0275fac=function(n){return new(n||r)(ee(X),ee(Yi))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var Iv=(t=>(t[t.Default=0]="Default",t[t.Hamburger_fullscreen_desktop=1]="Hamburger_fullscreen_desktop",t))(Iv||{}),bT=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(Iv)}getNameByEnum(e){let t=Object.values(Iv);switch(e){case t[0]:case 0:return"Default";case t[1]:case 1:return"Hamburger menu fullscreen (anche desktop)";default:return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error layout name"}}getList(e){var t=this.getEnumValues().filter(s=>!isNaN(Number(s))),n=[];let i=0,a=0;return t.forEach(s=>{let o=this.getInstance(s);typeof s=="string"||typeof s=="number"&&(this.visible(s)&&(o.id=a,n[i++]=o),a++)}),(e==null||e)&&n.unshift(this.getInstanceAll()),n}getTooltipText(){let e=Object.values(Iv),t=Number(this.id);switch(t){case e[0]:case 0:return"Visualizzazione attuale";case e[1]:case 1:return"Menu hamburger a tutto schermo visibile anche su desktop";default:return this.getNameByEnum(t)}}getImageByEnum(e){return r.getImage(e)}static getImage(e){var t="/app/FirebaseBackofficeLib/assets/img/layout/menuSTD/";switch(e){case 0:return t+"menu_default.webp";case 1:return t+"menu_hamburger_fullscreen.webp";default:return""}}};var wT=class r{constructor(e){this.injector=e;this.manager=e.get(xr)}manager;showImpostazioniSito(){return!1}showSocial(){return!1}showMenuConfiguration(){return this.showTopMenu()||this.showMainMenu()}showTopMenu(){return!1}showMainMenu(){return!1}showSecondaryMenu(){return!1}showSettingSearch(){return!1}showAiChatCrm(){return!1}languageUseMenu(){return!1}showFooter(){return!1}showImpostazioneSitoLayouts(){return!1}getImpostazioneSitoLayouts(){return new bT(void 0).getList(!1)}getImpostazioneSitoDefaultLayout(){return 0 .valueOf()}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var IT=class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=G({token:r,factory:e=>wT.\u0275fac(e),providedIn:"root"})};var xT=(t=>(t[t.Mostra=0]="Mostra",t[t.Nascondi=1]="Nascondi",t))(xT||{}),F$=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(xT)}getNameByEnum(e){let t=Object.values(xT);switch(e){case t[0]:case 0:return"Mostra l'avviso";case t[1]:case 1:return"Non mostrare l'avviso";default:return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error AiDisclosureMode name"}}getOrderByEnum(e){let t=this.getEnumValues();switch(e){case t[0]:case 0:return 0;case t[1]:case 1:return 1;default:return-1}}visible(e){return!0}getIconByEnum(e){switch(e){case 0:return"visibility";case 1:return"visibility_off";default:return"visibility"}}getColor(){return"var(--black-color)"}
300getTooltipText(){let e=Number(this.id);switch(e){case 0:return"Comportamento predefinito del sito: l'avviso compare sui media dichiarati AI, salvo le eccezioni impostate sulla singola immagine.";case 1:return"Comportamento predefinito del sito: nessun avviso, salvo le immagini in cui \xE8 stato richiesto esplicitamente.";default:return this.getNameByEnum(e)}}},B$="Immagine generata con AI",N$="Video generato con AI";var ET=class r{modeId=1;customLabel;originManager;constructor(e){this.originManager=e.get(Xt)}setFromImpostazione(e){e&&(e.aiDisclosureModeId!==void 0&&e.aiDisclosureModeId!==null&&(this.modeId=e.aiDisclosureModeId),e.aiDisclosureLabel&&e.aiDisclosureLabel.trim().length>0&&(this.customLabel=e.aiDisclosureLabel.trim()))}isEnabled(){return this.originManager.showAiTransparency()===!0}labelFor(e){return this.customLabel?this.customLabel:e instanceof Qt&&e.getMultimediaTypeEnum()===1?N$:B$}shouldShow(e){return!this.isEnabled()||!e||!e.url||!e.isAiGenerated()?!1:A8(e.aiDisclosureId,this.modeId!==1)}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var TT=class{model;constructor(e){this.model=e}},CT=class r{menuObservers=[];constructor(){}getObservable(){return new Ot(t=>{this.menuObservers.push(t)})}setData(e){this.menuObservers.forEach(t=>{let n=t;n&&n.next(e)})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var ST=class{menuConfig;showSearch;showMenu;showSiteMenu;logoLink;headerHide;impostazioneSito;constructor(e=new _l,t=!0,n=!0,i=!0,a=!1,s=!1){this.menuConfig=e,this.logoLink=t,this.showMenu=n,this.showSiteMenu=i,this.showSearch=a,this.headerHide=s}},DT=class r{menuObservers=[];constructor(){}getObservable(){return new Ot(t=>{this.menuObservers.push(t)})}setData(e){this.menuObservers.forEach(t=>{let n=t;n&&n.next(e)})}static \u0275fac=function(t){return new(t||r)};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var TO=class{model;originBase;showThankyou=!1;show404=!1;urlComplete;menuServiceData},AT=class{constructor(e,t,n,i,a,s,o,l){this.skipLoadSections=e;this.skipMetaDati=t;this.showLoading=n;this.notSetUrl=i;this.checkRedirect=a;this.checkMultiLanguageValid=s;this.dynamicModels=o;this.allSections=l}},MT=class r{constructor(e){this.injector=e;this.document=e.get(Je),this.seoService=e.get(wl),this.iubendaService=e.get(Cp),this.dialog=e.get(Nu),this.breakpointObserver=e.get(wa),this.viewportScroller=e.get(No),this.route=e.get(Dn),this.router=e.get($r),this.seoOriginService=e.get(Sp),this.translateManager=e.get(Yi),this.breakPointManager=e.get(Uu),this.originBaseManager=e.get(bl),this.sectionBaseManager=e.get(vn),this.managerBase=e.get(xr),this.tagManagerService=this.injector.get(Vu),this.authService=this.injector.get(pu),this.linkService=this.injector.get(zu),this._impostazioneSitoManager=e.get(Ap),this.mobile=this.breakPointManager.isMobile(),this.isTablet=this.breakPointManager.isTablet(),this.isLaptop=this.breakPointManager.isLaptop(),this.isDesktop=this.breakPointManager.isDesktop(),this.isMobileNew=this.breakPointManager.isMobileNew(),this.firestoreManagerBase=e.get(ke),this.sectionBaseManagerImpl=e.get(en),this.siteRedirectManager=e.get(Mp),this.impostazioniManager=e.get(IT),this.menuService=e.get(
300DT),this.dynamicService=e.get(CT),this.originImpl=e.get(Xt),this.auth=e.get(as),this.loadingService=e.get(Sm),this.dynamicModelsDefault=this.sectionBaseManagerImpl.getDynamicModels()}jsonModel;model;firestoreManagerBase;sectionBaseManagerImpl;siteRedirectManager;impostazioniManager;menuService;dynamicService;originImpl;set modelCustom(e){this._modelCustom=e,e&&e.id&&(this.model=e,this.onModelReady())}_modelCustom;get modelCustom(){return this._modelCustom}seoService;iubendaService;seoOriginService;breakPointManager;originBaseManager;sectionBaseManager;mobile=!1;isTablet=!1;isLaptop=!1;isDesktop=!1;isMobileNew=!1;breakpointObserver;dialog;viewportScroller;translateManager;tagManagerService;authService;timeoutAnchor=0;aosLoadDelay=0;aosOptions={disable:!1,startEvent:"DOMContentLoaded",initClassName:"aos-init",animatedClassName:"aos-animate",useClassNames:!1,delay:0};queryParams;translate;document;OriginEnum=Lu;router;route;linkService;managerBase;auth;user;loadingService;dynamicModelsDefault=[];_impostazioneSitoManager;dataObservers=[];getObservable(){return new Ot(t=>{this.dataObservers.push(t)})}setData(e){this.dataObservers.forEach(t=>{let n=t;n&&n.next(e)})}urlComplete;setUrlComplete(e,t){this.urlComplete=t.url,this.urlComplete=this.urlComplete.split("?")[0],this.urlComplete=this.urlComplete.split("#")[0],(!this.urlComplete||this.urlComplete=="/undefined"||this.urlComplete=="undefined")&&(this.urlComplete=this.translateManager.isActive()?`/${this.translateManager.getCurrentLang()}`:"/")}urlCompleteWithParams;setUrlCompleteWithParams(e,t){this.urlCompleteWithParams=t.url}onUserReady(){return new Promise((e,t)=>m(this,null,function*(){this.managerBase.onChangeUser.subscribe(n=>m(this,null,function*(){n&&(this.user=n,e(!0))}))}))}onUserReadySsr(){return m(this,null,function*(){for(let n=0;;n++){if(yield Promise.race([this.onUserReady().then(()=>!0),this.delay(1e4).then(()=>!1)]))return;if(n>=2)throw new Error(`[SSR] utente non disponibile dopo ${n+1} attese da ${1e4/1e3}s: sign-in anonimo mai completato`);console.error(`[SSR] utente non pronto dopo ${1e4/1e3}s: retry sign-in anonimo (${n+1}/2)`);try{let a=yield yd(this.auth);this.user=a.user;return}catch(a){console.error("[SSR] retry signInAnonymously fallito",a?.message??a)}}})}delay(e){return new Promise(t=>setTimeout(t,e))}loadModel(e){return m(this,null,function*(){this.seoService.isPlatformBrowser()?yield this.onUserReady():yield this.onUserReadySsr(),e.notSetUrl||(this.urlComplete=this.seoService.getUrlComplete(),this.urlCompleteWithParams=this.seoService.getUrlCompleteWithParams());var t=new TO;if(t.urlComplete=this.urlComplete,!this.urlComplete||this.urlComplete=="/undefined"||this.urlComplete=="undefined")return t;if(e.showLoading&&(this.loadingService?.setPercentual(0,!1),this.loadingService?.setVisibility(!0),this.loadingService?.setPercentual(.1,!1)),this.seoService.isPlatformBrowser()||(yield this._handleSignAnonymous()),e.checkRedirect){var n=yield this._checkRedirect();if(n)return e.showLoading&&this.loadingService?.setPercentual(1,!0),this.onDataFound(t)}e.showLoading&&this.loadingService?.setPercentual(.3,!1),this.preLoadModel();var i=this.urlComplete,a=this.checkThankyou(i);e.showLoading&&this.loadingService?.setPercentual(.5,!1);let s=!1;if(s){var p=i.split("/");p.splice(-1),i=p.join("/")}var o=!1;if(this.translateManager.isActive()){if(e.checkMultiLanguageValid){var l=!1,p=i.split("/");if(p=p.filter(v=>v),p.length>0){var c=p[0];p.length>0&&c.length==2&&this.translateManager.getLanguages().find(v=>v.sigla==c)&&(l=!0)}var u=this.translateManager.getCurrentLang();if(l)u=p[0];else if(p.length==0){if(o=!0,this.seoService.isPlatformBrowser()){console.log("** dataService default home",i,this.translateManager.getCurrentLang());let v=`${this.translateManager.getCurrentLang()?this.translateManager.getCurrentLang()+"/":""}`;this.router.navigate([v])}}else return this.onNotFound(t,i,e.showLoading),this.onDataFound(t);a?this.translateManager.setChangeLanguage(u):this.changeLanguage(u),this.setCurrentLang()}i=i.replace(this.translateManager.getCurrentLang(),""),i=i.replace("//","/")}if(a)return t.showThankyou=!0,e.showLoading&&this.loadingService?.setPercentual(1,!0),this.onData
300Found(t);if(e.showLoading&&this.loadingService?.setPercentual(.75,!1),!0)return g=yield this.checkBySlug(i,!0,e.skipLoadSections,e.dynamicModels,e.allSections),g?yield this.onModelReadyInner(t,e.skipMetaDati,o,e.showLoading,i):this.onNotFound(t,i,e.showLoading),e.showLoading&&this.loadingService?.setPercentual(1,!0),this.onDataFound(t);var f=i.split("/"),p=[];if(p.push(...f.filter((y,v,T)=>T.findIndex(C=>C===y)===v)),p.length==0||s&&p.length==1)return yield this.onModelReadyInner(t,e.skipMetaDati,o,e.showLoading,i),e.showLoading&&this.loadingService?.setPercentual(1,!0),this.onDataFound(t);var g=!1;for(let y=p.length-1;y>=0;y--){if(s&&y==p.length-1)continue;let v=p[y];if(g=yield this.checkBySlug(v,void 0,e.skipLoadSections,e.dynamicModels,e.allSections),g){yield this.onModelReadyInner(t,e.skipMetaDati,o,e.showLoading,i);break}}return g?p.length==1&&p[0]=="":this.onNotFound(t,i,e.showLoading),e.showLoading&&this.loadingService?.setPercentual(1,!0),this.onDataFound(t)})}onDataFound(e){return e}onNotFound(e,t,n){n&&this.loadingService?.setPercentual(1,!0);let i=`${this.translateManager.getCurrentLang()?this.translateManager.getCurrentLang()+"/":""}404`;this.seoService.isPlatformBrowser()&&(e.show404=!0),e.model=void 0}_handleSignAnonymous(){return m(this,null,function*(){return new Promise(((e,t)=>m(this,null,function*(){if(this.user){e(!0);return}yd(this.auth).then(n=>{this.user=n.user,e(!0)}).catch(n=>{console.error("dataService _handleSignAnonymous",n.message),t(n)})})))})}ngOnDestroy(){this.anchorSubscription?.unsubscribe()}preLoadModel(){return m(this,null,function*(){this.model=void 0})}checkThankyou(e){var t=e.split("/").pop();return t?this.translateManager.getThankYouSlugs().includes(t):!1}_checkRedirect(){return m(this,null,function*(){var e=this.urlCompleteWithParams;if(e=decodeURI(e??""),!e)return!1;try{var t=yield this.siteRedirectManager.getDetailBySource(e);if(!t){var n=yield this._checkRedirectRegex(e);n&&(t=n)}if(t)return this.seoService.isPlatformBrowser()&&console.log(`- checkRedirect ${e} -> ${t?.destination}`),this.router.navigate([t.destination]),!0}catch(i){console.warn("checkRedirect e",i)}return!1})}_checkRedirectRegex(e){return m(this,null,function*(){var t,n=yield this.siteRedirectManager.getListPromise(new _T(void 0,void 0,void 0,void 0,void 0,void 0,!0));for(var i of n){var a=new RegExp(i.source),s=a.test(e);if(s){t=i;break}}return t})}setHrefLang(e){return m(this,null,function*(){if(e){this.translateManager.destroyAllHrefLang();return}if(this.translateManager.isActive()&&this.model){if(!this.model.language){console.warn(" no language",this.model?.getName());return}this.translateManager.destroyAllHrefLang();var t=yield this.getOtherTranslated(this.model);if(t)try{this.translateManager.setHrefLangGeneral(this.model.language,this.model.fullSlug),t.forEach(a=>{this.translateManager.setHrefLangGeneral(a.language,a.fullSlug)});let n=this.translateManager.getDefaultLang(),i=this.model.language===n?this.model.fullSlug:t.find(a=>a.language===n)?.fullSlug??this.model.fullSlug;this.translateManager.setHrefLangXDefault(i)}catch(n){console.warn(" modello non pi\xF9 definito",n,this.model)}}})}getOtherTranslated(e){return m(this,null,function*(){if(this.translateManager.isActive()&&e)return yield this.firestoreManagerBase.getOtherContentTranslated(e.idTranslate,e)})}changeLanguage(e){return m(this,null,function*(){this.translateManager.getCurrentLang()!=e&&this.translateManager.setChangeLanguage(e)})}setCurrentLang(){}checkBySlug(e,t,n,i,a){return m(this,null,function*(){let s=i??this.dynamicModelsDefault,o=s.map(d=>d.nameCollection);var l=!1;for(let d=0;d<o.length;d++){let f=o[d];var c=yield this.checkUrlBySlugAndCollectionName(e,f,t);if(c){var u=s[d];this.model=u.getInstanceCallback(this.jsonModel);try{yield this.model?.fillOtherModelsInDetail(this.injector),n||(yield this.model?.fillSections(this.injector,a,!0))}catch(p){console.warn("checkBySlug e",p,this.model?.getName())}l=!0;break}}return l})}checkUrlBySlugAndCollectionName(e,t,n){return m(this,null,function*(){return new Promise((i,a)=>m(this,null,function*(){try{this.jsonModel=yield this.firestoreManagerBase.getGenericDetailBySlug(t,e,this.translateManager.getCurrentLang(),n),this.onSetJsonModel(this.jsonModel),i(!0);return}catch{this.seoService.getBaseUrl().includes("localhost")&&this.seoService.isPlatformBrowser()}i(!1)}))})}onModelReadyInner(e,t,n,i,a){return m(this,null,function*(){if(e.model=this.model,this.model instanceof ws&&(e.originBase=this.model),t){yield this.onModelReady();return}if(this.model&&(this.seoService.setMetaDataBySeo(this.model.seo,this.model.getOgImageFallbackUrl()),(!this.model?.getActive()||this.model?.seo?.isNoIndex)&&(this.seoService.isPlatformBrowser()&&console.warn("** model no active -> no index"),this.seoService.setNoIndex()),yield this.setHrefLang(n),!this.model?.getActive()&&!this.managerBase.isLoggedIn())){var s=!e?.model?.seo?.getNotRedirect404();if(s){this.seoService.isPlatformBrowser()&&console.warn("** model not active -> 404",this.model?.getName()),this.onNotFound(e,a,i);return}}if(this.model){var o=new TT;o.model=this.model,this.dynamicService.setData(o)}var l=new ST;if(this.impostazioniManager.showMenuConfiguration()||this.impostazioniManager.showImpostazioniSito()){var c=yield this.getImpostazione();l.impostazioneSito=c,this.injector.get(ET).setFromImpostazione(c),this.impostazioniManager.showMenuConfiguration()&&(l.menuConfig=c?.menuConfig,l.showSearch=c?.showSearch)}l.headerHide=this.model?.headerSite?.isHide(),this.model instanceof ws&&this.model.overrideMenuConfig&&(l.logoLink=!this.model.getIsLanding(),l.menuConfig=this.model.menuConfig,l.showSearch=this.model.showSearch),yield l?.menuConfig?.fillDynamicModelsInMenu(this.injector),e.menuServiceData=l,yield this.onModelReady()})}getImpostazione(){return m(this,null,function*(){var e=yield this._impostazioneSitoManager.getListPromise(new vT(void 0,void 0,void 0,void 0,this.translateManager.getCurrentLang()??Il.DefaultID));return e?.length==0?(console.warn("getImpostazione non trovato. Contraolla se \xE8 stato creato senza language!"),yield this._impostazioneSitoManager.getDetail(Il.DefaultID)):e[0]})}anchorSubscription;onModelReady(){return m(this,null,function*(){})}onSetJsonModel(e){}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var D_e=["form_container"],kT=class{generalButton;contactForm;multimedia;model}
300,PT=class r{constructor(e,t,n,i,a,s,o,l){this._bottomSheetRef=e;this.data=t;this.injector=n;this.renderer=i;this.originManagerImpl=a;this.route=s;this.seoService=o;this.dataService=l}close(){this._bottomSheetRef.dismiss()}ngAfterViewInit(){this.overrideForm()}componentRef;overrideView;form_container;overrideForm(){setTimeout(()=>{let e=this.originManagerImpl.overrideFormBase();if(e)this.overrideView=!0;else{this.overrideView=!1;return}let t=this.form_container;if(t?.clear(),t?.element?.nativeElement){this.renderer?.setProperty(t?.element?.nativeElement,"innerHTML",""),this.renderer.setAttribute(t?.element?.nativeElement?.parentElement,"id","site"),this.componentRef=t?.createComponent(e);var n=this.componentRef?.instance;n.isLoading=!1,n.contactForm=this.data.generalButton?.contactForm??this.data.contactForm,n.onFormSubmitted.subscribe(()=>{this._bottomSheetRef.dismiss()}),this.getModel(n)}},0)}getModel(e){return m(this,null,function*(){var t,n=!0;if(t=this.route.snapshot.data.appData,!t||t.urlComplete!=this.seoService.getUrlComplete()){n=!1;let a=new AT(!0,!0,!1,!1,!1,!1,void 0,!1);t=yield this.dataService.loadModel(a)}this.seoService.getBaseUrl().includes("localhost")&&this.seoService.isPlatformBrowser()&&console.log(`** data from ${n?"RESOLVE":"SERVICE"}`,t?.model?.GetNameCollection(),t?.model?.getName(),t?.model?.sections,this.seoService.getUrlComplete(),this);let i=t?.model??this.data.model;e.dynamicModelId=i?.id,e.dynamicModelCollectionName=i?.GetNameCollection(),e.model.multimedia=this.data.generalButton?.multimedia??this.data.multimedia,e.fromButton=!0,e.downloadAutomatico=this.data.generalButton?.downloadAutomatico})}static \u0275fac=function(t){return new(t||r)(Ce(Dp),Ce(xO),Ce(X),Ce(Rr),Ce(Xt),Ce(Dn),Ce(wl),Ce(MT))};static \u0275cmp=dt({type:r,selectors:[["app-contact-form-base-dialog"]],viewQuery:function(t,n){if(t&1&&Fr(D_e,5,Rn),t&2){let i;Mt(i=kt())&&(n.form_container=i.first)}},standalone:!1,decls:5,vars:0,consts:[["form_container",""],[1,"contact-form-dialog-wrapper"],["aria-label","Chiudi",1,"close-dialog-btn",3,"click"],[1,"fa","fa-times"]],template:function(t,n){if(t&1){let i=da();Se(0,"div",1)(1,"button",2),Gt("click",function(){return Vi(i),Ui(n.close())}),ot(2,"i",3),Ae(),ot(3,"div",null,0),Ae()}},styles:[".contact-form-dialog-wrapper[_ngcontent-%COMP%]{position:relative;padding-top:0}"]})};function A_e(r,e){if(r&1&&(Se(0,"mat-icon"),gr(1),Ae()),r&2){let t=ge(2);te(),Oa(t.paButtonConfig==null?null:t.paButtonConfig.icon)}}function M_e(r,e){if(r&1){let t=da();Se(0,"a",1),Gt("click",function(i){Vi(t);let a=ge();return Ui(a.onClick(i))}),at(1,A_e,2,1,"mat-icon"),gr(2),Ae()}if(r&2){let t=ge();zi(t.getButtonClasses()),fe("id",kl(t.paButtonConfig==null?null:t.paButtonConfig.id))("color",kl(t.paButtonConfig==null?null:t.paButtonConfig.color))("target",kl(t.paButtonConfig==null?null:t.paButtonConfig.target))("matButton",t.matButtonType)("disabled",t.disabled)("href",t.paButtonConfig==null?null:t.paButtonConfig.link,td)("ignore",t.ignoreClick)("paLinkAnchor",t.paButtonConfig==null?null:t.paButtonConfig.anchor)("title",t.isLinkEsterno()&&(t.paButtonConfig!=null&&t.paButtonConfig.title)?(t.paButtonConfig==null?null:t.paButtonConfig.title)+" - apre in una nuova finestra":t.paButtonConfig!=null&&t.paButtonConfig.title?t.paButtonConfig==null?null:t.paButtonConfig.title:null),te(),st((t.paButtonConfig==null?null:t.paButtonConfig.icon)!==void 0?1:-1),te(),rs(" ",t.paButtonConfig==null?null:t.paButtonConfig.title," ")}}var RT=class r{constructor(e,t,n,i,a){this.route=e;this.router=t;this.viewportScroller=n;this.location=i;this.injector=a;this.translateManager=this.injector.get(Yi),this.tagManagerService=this.injector.get(Vu),this.generalButtonService=this.injector.get(yT),this.linkService=this.injector.get(zu)}set generalButton(e){this._generalButton=e,this._generalButton&&this._generalButton?.showModalForm()&&(this.ignoreClick=!0)}_generalButton;get generalButton(){return this._generalButton}ignoreClick=!1;onClickEmit=new Rt;paButtonConfig;link;matButtonType="filled";disabled=!1;btnClickEmt=new Rt;forceReloadLink=!1;preventClick=!1;queryParams;translateManager;tagManagerService;generalButtonService;linkService;getUrlComplete(){return`${this.location.pathname}`}
300getButtonClasses(){let e=[],t=this.paButtonConfig?.color;return t&&e.push(`mat-${t}`),this.paButtonConfig?.className?.length&&e.push(...this.paButtonConfig.className),e.join(" ")}ngOnInit(){this.route.queryParams.subscribe(e=>m(this,null,function*(){this.queryParams=e})),this.paButtonConfig&&this.generalButtonService.setMaterialIcon()&&(this.paButtonConfig.icon=this.generalButtonService.setMaterialIcon())}setActive(e){this.paButtonConfig&&(e?(this.paButtonConfig.className=this.paButtonConfig?.className?.filter(t=>t!=="active"),this.paButtonConfig?.className?.push("active")):this.paButtonConfig.className=this.paButtonConfig?.className?.filter(t=>t!=="active"))}isLinkEsterno(){return this.linkService.isLinkEsterno(this.link)}onClick(e){this.generalButton?.showModalForm()&&e?.preventDefault(),this.onClickEmit?.emit(),this.onClickInner()}onClickInner(){this.generalButton?.showModalForm()&&this.openFormModal()}openFormModal(){var e=new kT;e.generalButton=this.generalButton,this.injector.get(EO).open(PT,{data:e,panelClass:"contact-form-bottom-sheet",scrollStrategy:new $d})}static \u0275fac=function(t){return new(t||r)(Ce(Dn),Ce($r),Ce(No),Ce(pa),Ce(X))};static \u0275cmp=dt({type:r,selectors:[["app-pa-button"]],inputs:{generalButton:"generalButton",ignoreClick:"ignoreClick",paButtonConfig:"paButtonConfig",link:"link",matButtonType:"matButtonType",disabled:"disabled",forceReloadLink:"forceReloadLink",preventClick:"preventClick"},outputs:{onClickEmit:"onClickEmit",btnClickEmt:"btnClickEmt"},standalone:!1,decls:1,vars:1,consts:[["paLink","","role","button",3,"matButton","id","disabled","color","class","href","ignore","paLinkAnchor","title","target"],["paLink","","role","button",3,"click","matButton","id","disabled","color","href","ignore","paLinkAnchor","title","target"]],template:function(t,n){t&1&&at(0,M_e,3,16,"a",0),t&2&&st(n.paButtonConfig!=null&&n.paButtonConfig.title?0:-1)},styles:[".mat-icon[_ngcontent-%COMP%]{width:48px}"]})},Vh=class{title;id;link;completeLink;anchor;color;className;target;icon;forceReload;queryParams;clearQueryParams;navigateByUrl;constructor(e,t,n,i,a="_self",s,o,l,c,u,d,f,p){this.title=e,this.link=t,this.color=n,this.className=i,this.target=a,this.icon=s,this.anchor=o,this.forceReload=l,this.queryParams=c,this.clearQueryParams=u,this.navigateByUrl=d,this.completeLink=f,this.id=p}};var k_e=["other"],P_e=[[["app-pa-header-other-up"]],[["app-pa-header-other"]],[["app-pa-header-other"]]],R_e=["app-pa-header-other-up","app-pa-header-other","app-pa-header-other"],O_e=(r,e,t,n,i)=>({"background-color":r,"background-image":e,"background-repeat":t,"background-position":n,"background-size":i}),F_e=(r,e,t)=>({height:r,"min-height":e,"max-height":t}),B_e=(r,e,t)=>({"max-width":r,"text-align":e,color:t}),N_e=(r,e,t)=>({height:r,"background-color":e,"background-image":t}),L_e=r=>({"background-size":"cover","background-position":"center",height:"100vh","background-image":r});function V_e(r,e){if(r&1&&ot(0,"h4",6),r&2){let t=ge(2);fe("innerHTML",t.eyelet,ts)}}function U_e(r,e){if(r&1&&ot(0,"h1",6),r&2){let t=ge(2);zi(t.titleH1Class),fe("innerHTML",t.titleH1,ts)}}function z_e(r,e){if(r&1&&ot(0,"h2",6),r&2){let t=ge(2);zi(t.subtitleClass),fe("innerHTML",t.subtitle,ts)}}function j_e(r,e){if(r&1&&ot(0,"p",6),r&2){let t=ge(2);zi(t.paragraphClass),fe("innerHTML",t.paragraph,ts)}}function H_e(r,e){if(r&1&&(Se(0,"div",8),ot(1,"app-pa-button",12),Ae()),r&2){let t=ge(2);te(),fe("paButtonConfig",t.paButtonConfig)}}function $_e(r,e){if(r&1&&(Se(0,"div",9),ot(1,"div",6),Ae()),r&2){let t=ge(2);te(),fe("innerHTML",t.otherHtml,ts)}}function G_e(r,e){if(r&1&&ot(0,"div",10),r&2){let t=ge(2);fe("ngStyle",Yv(1,N_e,t.paHeader.minHeight,t.paHeader.overlayColor,t.paHeader.overlayImagePath?"url("+t.paHeader.overlayImagePath+")":""))}}function W_e(r,e){if(r&1&&(Se(0,"div",11),ot(1,"app-shimmer-base-front"),Ae()),r&2){let t=ge(2);fe("@fadeOut",t.state)}}function q_e(r,e){if(r&1&&(Se(0,"section",2)(1,"div",4)(2,"div",5),_r(3),at(4,V_e,1,1,"h4",6),at(5,U_e,1,3,"h1",7),at(6,z_e,1,3,"h2",7),at(7,j_e,1,3,"p",7),at(8,H_e,2,1,"div",8),at(9,$_e,2,1,"div",9),Se(10,"div",null,0),_r(12,1),Ae()()(),at(13,G_e,1,5,"div",10),at(14,W_e,2,1,"div",11),Ae()),r&2){let t=ge();fe("ngStyle",Xv(16,O_e,t.paHeader.backgroundColor,t.paHeader.backgroundImagePath?"url("+t.paHeader.backgroundImagePath+")":t.paHeader.backgroundColor,t.paHeader.backgroundImageRepeater,t.paHeader.backgroundImagePosition,t.paHeader.backgroundImageSize)),te(),zi(Kv("container d-flex ",t.paHeader.getConvertAngularFlexLayoutAlign(t.paHeader.sectionAlignment))),fe("ngStyle",Yv(22,F_e,t.paHeader.height,t.paHeader.minHeight,t.paHeader.maxHeight)),te(),fe("ngStyle",Yv(26,B_e,t.paHeader.contentMaxWidth,t.paHeader.contentAlign,t.paHeader.contentColor)),te(2),st(t.eyelet?4:-1),te(),st(t.titleH1?5:-1),te(),st(t.subtitle?6:-1),te(),st(t.paragraph?7:-1),te(),st(t.showButton?8:-1),te(),st(t.otherHtml?9:-1),te(),DC(t.otherContentStyle),te(3),st(t.paHeader.overlay?13:-1),te(),st(t.shimmer?14:-1)}}function K_e(r,e){if(r&1&&(Se(0,"h1",21),gr(1),Ae()),r&2){let t=ge(3).$implicit;te(),Oa(t.text)}}function Y_e(r,e){if(r&1&&(Se(0,"h2",21),gr(1),Ae()),r&2){let t=ge(3).$implicit;te(),Oa(t.subtext)}}function X_e(r,e){if(r&1&&ot(0,"app-pa-button",12),r&2){let t=ge(3).$implicit;fe("paButtonConfig",t.button)}}function Q_e(r,e){if(r&1&&(Se(0,"div",18)(1,"div",19)(2,"div",20),at(3,K_e,2,1,"h1",21),at(4,Y_e,2,1,"h2",21),at(5,X_e,1,1,"app-pa-button",12),Ae()()()),r&2){let t=ge(2).$implicit,n=ge(2);te(3),st(t.text?3:-1),te(),st(t.subtext?4:-1),te(),st(t.button&&n.showButton?5:-1)}}function J_e(r,e){if(r&1&&(Se(0,"div",16)(1,"div",17),at(2,Q_e,6,3,"div",18),Ae()()),r&2){let t=ge().$implicit,n=ge(2);te(),fe("ngStyle",Ti(2,L_e,t!=null&&t.backgroundUrl?n.overlay?"linear-gradient(90deg, rgba(0,0,0,1) .4%, rgba(0,0,0,0.4) .4%), url("+(t==null?null:t.backgroundUrl)+")":"url("+(t==null?null:t.backgroundUrl)+")":n.overlay?"linear-gradient(90deg, rgba(0,0,0,1) .4%, rgba(0,0,0,0.4) .4%)":"")),te(),st(n.headerSite.haveCta()?-1:2)}}function Z_e(r,e){r&1&&St(0,J_e,3,4,"ng-template",14)}function ebe(r,e){if(r&1&&ot(0,"h4",6),r&2){let t=ge(3);fe("innerHTML",t.eyelet,ts)}}function tbe(r,e){if(r&1&&ot(0,"h1",6),r&2){let t=ge(3);zi(t.titleH1Class),fe("innerHTML",t.titleH1,ts)}}function rbe(r,e){if(r&1&&ot(0,"h2",6),r&2){let t=ge(3);
300zi(t.subtitleClass),fe("innerHTML",t.subtitle,ts)}}function nbe(r,e){if(r&1&&ot(0,"p",6),r&2){let t=ge(3);zi(t.paragraphClass),fe("innerHTML",t.paragraph,ts)}}function ibe(r,e){if(r&1&&(Se(0,"div",8),ot(1,"app-pa-button",12),Ae()),r&2){let t=ge(3);te(),fe("paButtonConfig",t.paButtonConfig)}}function abe(r,e){if(r&1&&(Se(0,"div",9),ot(1,"div",6),Ae()),r&2){let t=ge(3);te(),fe("innerHTML",t.otherHtml,ts)}}function sbe(r,e){if(r&1&&(Se(0,"div",15)(1,"div",22),at(2,ebe,1,1,"h4",6),at(3,tbe,1,3,"h1",7),at(4,rbe,1,3,"h2",7),at(5,nbe,1,3,"p",7),at(6,ibe,2,1,"div",8),at(7,abe,2,1,"div",9),Se(8,"div",null,0),_r(10,2),Ae()()()),r&2){let t=ge(2);te(2),st(t.eyelet?2:-1),te(),st(t.titleH1?3:-1),te(),st(t.subtitle?4:-1),te(),st(t.paragraph?5:-1),te(),st(t.showButton?6:-1),te(),st(t.otherHtml?7:-1),te(),DC(t.otherContentStyle)}}function obe(r,e){if(r&1&&(Se(0,"div",3)(1,"owl-carousel-o",13,1),Dc(3,Z_e,1,0,null,14,lf),Ae(),at(5,sbe,11,8,"div",15),Ae()),r&2){let t=ge();te(),fe("options",t.customOptions),te(2),Ac(t.headerSlider),te(2),st(t.headerSite.haveCta()?5:-1)}}
300var OT=class r{constructor(e){this.injector=e;this.seoService=e.get(br),this.breakPointManager=e.get(Uu),this.originManagerImpl=e.get(Xt),this.paHeader=new xv,this.mobile=this.breakPointManager.isMobile(),this.breakPointManager.getObservableChangeScreenSize().subscribe(t=>{this.mobile=t[0],this.onBreakPointChange()})}titleH1="";titleH1Class="";eyelet="";subtitle="";subtitleClass="";paragraph="";paragraphClass="";get paHeader(){return this._paHeader}set paHeader(e){Object.assign(this._paHeader,e)}_paHeader=new xv;paButtonConfig;showButton=!0;otherHtml="";otherContentStyle={};forceSlideMode;paButtonComponent;other;showOther=!1;shimmer=!1;loaded=!1;set state(e){this._state=e}get state(){return this._state}_state="notLoaded";set headerSite(e){this._headerSite=e,this.loaded=!1,this.state="notLoaded",this.setDataFromHeaderSite()}get headerSite(){return this._headerSite}_headerSite;slideMode=!1;customOptions={};overlay=!1;headerMultimedia;forceOverlay=!1;set headerSlider(e){this._headerSlider=e,this.setOptions()}get headerSlider(){return this._headerSlider}_headerSlider=[];seoService;breakPointManager;originManagerImpl;mobile=!1;ngOnInit(){}ngAfterViewInit(){setTimeout(()=>{this.refreshLayout()},200)}isOtherEmpty(){return this.other?.nativeElement.children.length===0}refreshLayout(){this.showOther=!this.isOtherEmpty()}onBreakPointChange(){this.setDataFromHeaderSite()}setDataFromHeaderSite(){let e=!!this.headerSite;switch(this.titleH1=this._headerSite?.title,this.eyelet=this._headerSite?.eyelet,this.subtitle=this._headerSite?.subtitle,this.slideMode=!1,this.headerSite||(this._headerSite=new cl),this.headerSite?.typologyId||(this._headerSite.typologyId=0),this._headerSite?.typologyId){case 1:break;case 0:let i=this._headerSite?.getImage(this.mobile);if(i&&!i.isEmpty()){if(this.titleH1=this._headerSite.haveTitle()?this._headerSite?.title:i.headerTitle,this.subtitle=this._headerSite.haveSubtitle()?this._headerSite?.subtitle:i.headerSubtitle,this.paHeader.overlay=i.getOverlay(),(this._headerSite.haveTitle()||this._headerSite.haveSubtitle())&&(this.paHeader.overlay=this._headerSite.getOverlay()),this.paHeader.backgroundImagePath=i.url,this.headerMultimedia=i,this.showButton=i.haveCta()||this.paButtonConfig!==void 0&&this.paButtonConfig.title!==void 0&&this.paButtonConfig.title!==null||this._headerSite.haveCta(),this.showButton){var n=new Vh;n.navigateByUrl=!0,n.title=this._headerSite.haveCta()?this._headerSite?.getCta():i.headerCta,n.link=this._headerSite.haveCtaLink()?this._headerSite?.getCtaLink():i.headerCtaLink,n.anchor=this._headerSite.haveCtaAnchor()?this._headerSite?.getCtaAnchor():i.headerCtaAnchor,Object.assign(n,this.paButtonConfig),this.paButtonConfig=n}var t=(i.isHeaderTitle()||i.isHeaderSubtitle()||i.haveCta())??!1;this.overlay=(this.overlay||this.titleH1!=null||this.subtitle!=null)??!1,this.overlay=this.overlay||t,this.paHeader.overlay=this.overlay,this.forceOverlay&&(this.overlay=!0,this.paHeader.overlay=!0)}else{var n=new Vh;n.navigateByUrl=!0,n.title=this._headerSite?.getCta(),n.link=this._headerSite?.getCtaLink(),n.anchor=this._headerSite?.getCtaAnchor(),Object.assign(n,this.paButtonConfig),this.paButtonConfig=n}break;case 2:this.slideMode=this.forceSlideMode!==void 0?this.forceSlideMode:!0,this.setDataSliderFromHeaderSite();var n=new Vh;n.navigateByUrl=!0,n.title=this._headerSite?.getCta(),n.link=this._headerSite?.getCtaLink(),n.anchor=this._headerSite?.getCtaAnchor(),Object.assign(n,this.paButtonConfig),this.paButtonConfig=n;break;default:this.paHeader=new xv;break}e&&(this.loaded=!0,this.state="loaded",this.onloaded())}onloaded(){}setOptions(){this.customOptions={loop:!0,mouseDrag:this.headerSlider.length>1,autoplay:this.seoService.isPlatformBrowser(),dots:!1,autoplaySpeed:1e3,autoplayTimeout:this.getSlideTimeoutMs(5e3),margin:0,navSpeed:700,items:1,center:!0,responsive:{0:{items:1}}}}getSlideTimeoutMs(e){let t=this.originManagerImpl?.getHeaderSlideDurationDefault(),n=t!=null?t*1e3:e;return this.headerSite?.getSlideTimeoutMs(n)??n}setDataSlide(e){var t=new CO;t.backgroundUrl=e.url,t.text=e.headerTitle,t.subtext=e.headerSubtitle,t.multimedia=e;var n=e.haveCta();if(n){let a=e.generalButton;t.generalButton=a?new Ke(a):void 0;var i=new Vh;i.navigateByUrl=!0,i.title=t.generalButton?.buttonText??e.headerCta??this._headerSite?.getCta(),i.link=t.generalButton?.buttonLink??e.headerCtaLink??this._headerSite?.getCtaLink(),i.anchor=t.generalButton?.buttonAnchor??e.headerCtaAnchor??this._headerSite?.getCtaAnchor(),Object.assign(i,this.paButtonConfig),t.button=i}return t}setDataSliderFromHeaderSite(){this.showButton=this.headerSite.haveCta(),this.headerSlider=[],this.mobile&&this.headerSite?.multimedias_mobile&&this.headerSite?.multimedias_mobile?.length>
3000?this.headerSite?.multimedias_mobile?.forEach(e=>{this.headerSlider.push(this.setDataSlide(e))}):this.headerSite?.multimedias?.forEach(e=>{this.headerSlider.push(this.setDataSlide(e))}),this.setOptions()}static \u0275fac=function(t){return new(t||r)(Ce(X))};static \u0275cmp=dt({type:r,selectors:[["app-pa-header"]],viewQuery:function(t,n){if(t&1&&(Fr(RT,5),Fr(k_e,5)),t&2){let i;Mt(i=kt())&&(n.paButtonComponent=i.first),Mt(i=kt())&&(n.other=i.first)}},inputs:{titleH1:"titleH1",titleH1Class:"titleH1Class",eyelet:"eyelet",subtitle:"subtitle",subtitleClass:"subtitleClass",paragraph:"paragraph",paragraphClass:"paragraphClass",paHeader:"paHeader",_paHeader:"_paHeader",paButtonConfig:"paButtonConfig",showButton:"showButton",otherHtml:"otherHtml",otherContentStyle:"otherContentStyle",forceSlideMode:"forceSlideMode",shimmer:"shimmer",state:"state",headerSite:"headerSite",overlay:"overlay",forceOverlay:"forceOverlay",headerSlider:"headerSlider"},standalone:!1,ngContentSelectors:R_e,decls:2,vars:2,consts:[["other",""],["carouselComponent",""],["id","header",3,"ngStyle"],["id","header-site",1,"position-relative"],[3,"ngStyle"],["fxLayout.lt-md","column","fxLayoutGap","25px",1,"content",3,"ngStyle"],[1,"text-white",3,"innerHTML"],[1,"text-white",3,"innerHTML","class"],[1,"mt-4","mx-auto"],[1,"mt-4"],[1,"bg-overlay",3,"ngStyle"],["id","shimmer"],[3,"paButtonConfig"],[3,"options"],["carouselSlide",""],[1,"overlayText"],[1,"header-slide-box","slide"],[1,"header-slide",3,"ngStyle"],["fxLayout","row wrap","fxLayoutAlign","center strech",1,"header-content","h-100"],["fxLayout","column","fxFlexAlign","center",1,"text-center"],[1,"container"],[1,"text-white"],["fxLayout","column","fxFlexAlign","center center","fxFlexFill",""]],template:function(t,n){t&1&&(Ra(P_e),at(0,q_e,15,30,"section",2),at(1,obe,6,2,"div",3)),t&2&&(st(n.slideMode?-1:0),te(),st(n.slideMode?1:-1))},styles:["#header[_ngcontent-%COMP%]{position:relative;min-height:630px}@media (max-width: 425px){#header[_ngcontent-%COMP%]{font-size:20px}}#header[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{z-index:1}#header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:30px}#header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]:after{display:none}@media (max-width: 425px){#header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:20px}}#header[_ngcontent-%COMP%] .mat-toolbar-row{height:100px!important;border:1px solid red}#header[_ngcontent-%COMP%] .bg-overlay[_ngcontent-%COMP%]{background-size:cover;background-position:center;background-repeat:no-repeat;inset:0;position:absolute;width:100vw;height:100vh;z-index:0}.overlayText[_ngcontent-%COMP%]{position:absolute;top:75%!important;left:75%!important;transform:translate(-50%,-50%);text-align:center;color:#fff;z-index:9}@keyframes _ngcontent-%COMP%_bounce{0%{transform:translateY(0)}to{transform:translateY(-15px)}}@-webkit-keyframes _ngcontent-%COMP%_bounce{0%{transform:translateY(0)}to{transform:translateY(-15px)}}#shimmer[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:999}"],data:{animation:[RC("fadeOut",[t_("notLoaded",e_({opacity:"1",height:"auto",width:"auto"})),t_("loaded",e_({opacity:"0",height:"0",width:"0"})),FC("* => *",[OC(500)])])]}})},CO=class{backgroundUrl;logoUrl;text;subtext;button;multimedia;generalButton;constructor(e,t,n,i,a){this.backgroundUrl=e,this.logoUrl=t,this.text=n,this.subtext=i,this.button=a}};var xv=class{height;minHeight;maxHeight;sectionAlignment;backgroundColor;backgroundImagePath;backgroundImageRepeater;backgroundImagePosition;backgroundImageSize;overlay;overlayColor;overlayImagePath;overlayOpacity;contentMaxWidth;contentAlign;contentColor;constructor(e="100vh",t="auto",n="auto",i="center center",a="var(--primary-color)",s="",o="no-repeat",l="center",c="cover",u=!1,d="#00000066",f="",p="center",g="#fff",y="auto"){this.height=e,this.minHeight=t,this.maxHeight=n,this.sectionAlignment=i,this.backgroundColor=a,this.backgroundImagePath=s,this.backgroundImageRepeater=o,this.backgroundImagePosition=l,this.backgroundImageSize=c,this.overlay=u,this.overlayColor=d,this.overlayImagePath=f,this.contentMaxWidth=y,this.contentAlign=p,this.contentColor=g}getConvertAngularFlexLayoutAlign(e){return kp.getConvertAngularFlexLayoutAlign(e)}};function lbe(r,e){if(r&1&&(Se(0,"div",1),gr(1),Se(2,"small"),gr(3),Ae()()),r&2){let t=ge();te(),rs("",t.title," "),te(2),rs("(",t.multimedias.length,")")}}function cbe(r,e){if(r&1&&(Se(0,"div",8),gr(1),Ae()),r&2){let t=ge(2).$implicit;te(),Oa(t==null?null:t.description)}}function ube(r,e){if(r&1&&(ot(0,"div",5),Se(1,"div",6),ot(2,"pa-ai-badge",7),Ae(),at(3,cbe,2,1,"div",8)),r&2){let t=ge().$implicit,n=ge();fe("ngStyle",n.getStyle(t)),te(2),fe("multimedia",t)("inline",!0),te(),st(t!=null&&t.description?3:-1)}}function dbe(r,e){r&1&&St(0,ube,4,4,"ng-template",4)}var Pp=class{actionClose;multimedias=[];startIndex=0;title="Galleria";showTitle=!1;backgroundImageSize="cover"}
300,Rp=class r{constructor(e,t,n){this.dialogRef=e;this.data=t;this.breakpointObserver=n;this.multimedias=t.multimedias,this.startIndex=t.startIndex,this.title=t.title,this.showTitle=t.showTitle,this.backgroundImageSize=t.backgroundImageSize,this.customOptions.startPosition=this.startIndex,this.customOptions.loop=this.multimedias.length>1,this.breakpointObserver.observe(["(max-width: 1024px)"]).subscribe(i=>{i.matches?this.mobile=!0:(this.mobile=!1,this.customOptions.items=1,this.customOptions.responsive={0:{items:1}})})}multimedias=[];startIndex=0;title="Galleria";showTitle=!1;backgroundImageSize="cover";open=!0;nMinItems=1;mobile=!1;customOptionsNavText=["<",">"];customOptionsNavVisible=!0;animateOut="fadeOut";animateIn=!1;customOptions={loop:!0,animateOut:this.animateOut,animateIn:this.animateIn,mouseDrag:!0,touchDrag:!0,pullDrag:!0,dots:!0,margin:50,navSpeed:700,nav:this.customOptionsNavVisible,navText:this.customOptionsNavText,responsive:{0:{items:1}},items:1};ngOnInit(){}close(){this.data.actionClose(),this.dialogRef.close()}getStyle(e){return{height:this.mobile?"50vh":"70vh","background-size":this.backgroundImageSize,"background-image":"url("+e?.getSafeUrl()+")"}}static \u0275fac=function(t){return new(t||r)(Ce(Bu),Ce(dT),Ce(wa))};static \u0275cmp=dt({type:r,selectors:[["app-gallery-dialog"]],standalone:!1,decls:8,vars:2,consts:[[1,"d-flex","justify-content-between","mt-4"],["mat-dialog-title",""],[1,"close-viewer",3,"click"],[3,"options"],["carouselSlide",""],[1,"image-gallery-dialog",3,"ngStyle"],[1,"d-flex","justify-content-center"],[3,"multimedia","inline"],[1,"description","p-2"]],template:function(t,n){t&1&&(Se(0,"div",0),at(1,lbe,4,2,"div",1),Se(2,"a",2),Gt("click",function(){return n.close()}),Se(3,"mat-icon"),gr(4,"close"),Ae()()(),Se(5,"owl-carousel-o",3),Dc(6,dbe,1,0,null,4,lf),Ae()),t&2&&(te(),st(n.showTitle?1:-1),te(4),fe("options",n.customOptions),te(),Ac(n.multimedias))},styles:[".cdk-overlay-dark-backdrop{background-color:var(--black-color)!important;opacity:.95!important} .cdk-overlay-container{z-index:9999999} .owl-nav div{background:var(--primary-color)!important;font-size:20px!important;color:#fff!important;font-weight:700!important;width:36px;height:36px;padding:2px 7px!important;border-radius:50%!important} .owl-nav div:hover{background-color:var(--accent-color)!important} .owl-dot.active span{background:var(--primary-color)!important} .owl-dot.active span:hover{background-color:var(--accent-color)!important}.close-viewer[_ngcontent-%COMP%]{position:absolute;right:5%;top:5%;font-size:18px;color:#000;cursor:pointer;background-color:#fff;padding:5px 6px;z-index:9999999;background-repeat:no-repeat;background-position:center center;background-size:32px;border-radius:50%;height:36px;width:36px}.image-gallery-dialog[_ngcontent-%COMP%]{background-repeat:no-repeat;width:100%;background-position-x:center;background-position-y:center}.description[_ngcontent-%COMP%]{color:#fff;text-align:center} .mat-dialog-container{background-color:transparent;box-shadow:none}"]})};var kp=class r{constructor(e){this.injector=e;this.document=e.get(Je),this.seoService=e.get(wl),this.iubendaService=e.get(Cp),this.dialog=e.get(Nu),this.breakpointObserver=e.get(wa),this.viewportScroller=e.get(No),this.route=e.get(Dn),this.router=e.get($r),this.seoOriginService=e.get(Sp),this.translateManager=e.get(Yi),this.breakPointManager=e.get(Uu),this.originBaseManager=e.get(bl),this.sectionBaseManager=e.get(vn),this.managerBase=e.get(xr),this.renderer=this.injector.get(Rr),this.tagManagerService=this.injector.get(Vu),this.authService=this.injector.get(pu),this.linkService=this.injector.get(zu),this.mobile=this.breakPointManager.isMobile(),this.isTablet=this.breakPointManager.isTablet(),this.isLaptop=this.breakPointManager.isLaptop(),this.isDesktop=this.breakPointManager.isDesktop(),this.isMobileNew=this.breakPointManager.isMobileNew(),this.onChangeBreakpoint(),this.breakPointManager.getObservableChangeScreenSize().subscribe(t=>{this.mobile=t[0],this.isTablet=t[1],this.isLaptop=t[2],this.isDesktop=t[3],this.isMobileNew=t[4],this.onChangeBreakpoint()}),this.translateManager.getObservableChangeLanguage().subscribe(t=>m(this,null,function*(){this.translate=t,this.onTranslateLoaded()}))}paHeaderComponent;seoService;iubendaService;seoOriginService;originBaseManager;sectionBaseManager;mobile=!1;isTablet=!1;
300isLaptop=!1;isDesktop=!1;isMobileNew=!1;breakpointObserver;breakPointManager;dialog;viewportScroller;translateManager;renderer;tagManagerService;authService;timeoutAnchor=0;aosLoadDelay=0;aosOptions={disable:!1,startEvent:"DOMContentLoaded",initClassName:"aos-init",animatedClassName:"aos-animate",useClassNames:!1,delay:0};queryParams;translate;document;OriginEnum=Lu;router;route;linkService;onTranslateLoaded(){}static mediaProtectionApplied=!1;applyMediaProtectionOnce(){if(r.mediaProtectionApplied||!this.seoService.isPlatformBrowser()||!this.injector.get(Xt).disableMediaDownload())return;r.mediaProtectionApplied=!0,this.document?.body?.classList.add("pa-no-media-save");let e=t=>{let n=t.target;n&&(n.tagName==="IMG"||n.tagName==="VIDEO"||n.closest?.("video"))&&t.preventDefault()};this.renderer.listen("document","contextmenu",e),this.renderer.listen("document","dragstart",e)}ngOnDestroy(){this.anchorSubscription?.unsubscribe()}getConvertAngularFlexLayoutAlign(e){return r.getConvertAngularFlexLayoutAlign(e)}static getConvertAngularFlexLayoutAlign(e){var t=e?.split(" ");return t&&t.length===2?`justify-content-${t[0]} align-items-${t[0]}`:t&&t.length===1?`justify-content-${t[0]}`:"justify-content-center align-items-center"}setFixScrollTopOnChangePage(){this.seoService.isPlatformBrowser()&&this.router.events.subscribe(e=>{e instanceof di&&setTimeout(()=>{this.seoService.isPlatformBrowser()&&window.scrollTo(0,0)},0)})}onChangeBreakpoint(){this.document?.body?.classList.remove("desktop"),this.document?.body?.classList.remove("mobile"),this.document?.body?.classList.add(this.mobile?"mobile":"desktop")}loadTranslateDefault(){return m(this,null,function*(){this.translateManager.isActive()&&(this.translate=yield this.translateManager.loadDataDefault(),this.onTranslateLoaded())})}getUrlComplete(){return this.seoService.getUrlComplete()}getBaseUrl(){return this.seoService.getBaseUrl()}setCheckAnchorFromUrl=!1;ngOnInit(){return m(this,null,function*(){this.applyMediaProtectionOnce(),this.setCheckAnchorFromUrl&&this.checkAnchorFromUrl(),this.route.queryParams.subscribe(n=>m(this,null,function*(){this.queryParams=n,this.onQueryParamsReady()}));let e=[];e.push(this.loadTranslateDefault()),e.push(this.getLanguages()),e.push(this.loadAos());var t=yield Promise.all(e)})}onQueryParamsReady(){}loadAos(){setTimeout(()=>{this.seoService.isPlatformBrowser()&&document.body&&L$.init(this.aosOptions)},this.aosLoadDelay)}ngAfterViewInit(){setTimeout(()=>{this.onPaHeaderComponentReady()},0)}onPaHeaderComponentReady(){}openGallery(e,t){let n=new Pp;n.actionClose=()=>m(null,null,function*(){}),n.multimedias=t,n.startIndex=e;let i=this.dialog.open(Rp,{width:"100%",maxWidth:"90vw",disableClose:!1,panelClass:"custom-modalbox",data:n})}openSingleImageContent(e){let t=new Pp;t.actionClose=()=>m(null,null,function*(){}),t.multimedias=[e],t.startIndex=0;let n=this.dialog.open(Rp,{width:"100%",disableClose:!1,data:t})}openSingleImage(e,t){let n=new Pp;n.actionClose=()=>m(null,null,function*(){});var i=new Qt;i.url=e,i.description=t,n.multimedias=[i],n.startIndex=0;let a=this.dialog.open(Rp,{width:"100%",disableClose:!1,data:n})}getOriginNameByEnum(e){return new Promise((t,n)=>m(this,null,function*(){var i=(yield this.originBaseManager.getDetailByOriginEnum(e.valueOf(),this.translateManager.getCurrentLang(),void 0,!0)).slug;t(i)}))}anchorSubscription;checkAnchorFromUrl(){return m(this,null,function*(){var e=yield this.getAnchorFromUrl();e&&(this.linkService.goToAnchor(e||void 0,void 0,this.timeoutAnchor),this.tagManagerService.customClickUrl("#"+e,e))})}getAnchorFromUrl(){return m(this,null,function*(){return new Promise((e,t)=>m(this,null,function*(){this.anchorSubscription=this.route.fragment.subscribe(n=>{e(n),setTimeout(()=>{this.anchorSubscription?.unsubscribe()},0)})}))})}mapEvent=new Map;redirect=!1;keyEventDown(e){this.mapEvent.set(e.key,!0)}keyEventUp(e){if(!this.redirect&&(this.mapEvent.has("Control")&&this.mapEvent.has("Alt")&&this.mapEvent.has("b")||this.mapEvent.has("Control")&&this.mapEvent.has("Meta")&&this.mapEvent.has("b"))){this.redirect=!0;let n=this.authService.backofficeUrl();this.router.navigate([n],{relativeTo:this.route})}else if(!this.redirect){var t=this.checkOtherShortCuts();t&&(this.redirect=!0)}this.mapEvent.delete(e.key)}checkOtherShortCuts(){return!1}set selectedPALanguage(e){this._selectedPALanguage=e,this.changeLanguage(this.selectedPALanguage.sigla)}get selectedPALanguage(){return this._selectedPALanguage}_selectedPALanguage;languageList=[];managerBase;getLanguages(){this.languageList=this.managerBase.config.languages}setCurrentLang(){this._selectedPALanguage=this.languageList.find(e=>e.sigla==this.translateManager.getCurrentLang())}changeLanguage(e){return m(this,null,function*(){this.translateManager.getCurrentLang()!=e&&this.translateManager.setChangeLanguage(e)}
300)}hexToRGB(e){let t="0",n="0",i="0";return e.length==4?(t="0x"+e[1]+e[1],n="0x"+e[2]+e[2],i="0x"+e[3]+e[3]):e.length==7&&(t="0x"+e[1]+e[2],n="0x"+e[3]+e[4],i="0x"+e[5]+e[6]),+t+","+ +n+","+ +i}static \u0275fac=function(t){return new(t||r)(Ce(X))};static \u0275cmp=dt({type:r,selectors:[["app-site-base"]],viewQuery:function(t,n){if(t&1&&Fr(OT,5),t&2){let i;Mt(i=kt())&&(n.paHeaderComponent=i.first)}},hostBindings:function(t,n){t&1&&Gt("keydown",function(a){return n.keyEventDown(a)},IC)("keyup",function(a){return n.keyEventUp(a)},IC)},inputs:{selectedPALanguage:"selectedPALanguage"},standalone:!1,decls:0,vars:0,template:function(t,n){},encapsulation:2})};var hbe=["contentParagrafo"],fbe=["contentLinks"],mbe=["contentItems"],pbe=["contentVideo"],gbe=["contentGallery"],ybe=["contentTable"],vbe=["contentSpace"],_be=["contentMap"],bbe=["contentTableFromExcel"],wbe=["contentList"],Ibe=["contentListCard"],xbe=["form_container"],xl=r=>({section:r}),Ebe=(r,e,t,n,i)=>({section:r,item:e,odd:t,index:n,collectionName:i}),Tbe=r=>({"bg-primary":r});function Cbe(r,e){if(r&1&&(ot(0,"iframe",5),YF(1,"safeUrl")),r&2){let t=ge(2);fe("src",XF(1,1,t.section==null||t.section.sectionStyle==null||t.section.sectionStyle.video==null?null:t.section.sectionStyle.video.getVideoUrl()),DF)}}function Sbe(r,e){if(r&1&&ot(0,"video",7)(1,"pa-ai-badge",8),r&2){let t=ge(2);fe("src",t.section==null||t.section.sectionStyle==null||t.section.sectionStyle.video==null?null:t.section.sectionStyle.video.getVideoUrl(),td),te(),fe("multimedia",t.section==null||t.section.sectionStyle==null||t.section.sectionStyle.video==null?null:t.section.sectionStyle.video.multimedia)}}function Dbe(r,e){r&1&&ot(0,"div",6)}function Abe(r,e){if(r&1&&(Se(0,"div",3),at(1,Cbe,2,3,"iframe",5)(2,Sbe,2,2),at(3,Dbe,1,0,"div",6),Ae()),r&2){let t=ge();te(),st(!(t.section==null||t.section.sectionStyle==null||t.section.sectionStyle.video==null)&&t.section.sectionStyle.video.isYouTube()?1:2),te(2),st(!(t.section==null||t.section.sectionStyle==null||t.section.sectionStyle.video==null)&&t.section.sectionStyle.video.overlay?3:-1)}}function Mbe(r,e){if(r&1&&ot(0,"app-shimmer-base-front",15),r&2){let t=ge(2);fe("isTitle",t.isTitle)}}function kbe(r,e){if(r&1&&ot(0,"pa-section-front-preconfigurated-base-paragrafo",18),r&2){let t=ge(3);fe("showAnimations",t.showAnimations)("section",t.section)}}function Pbe(r,e){r&1&&ua(0)}function Rbe(r,e){if(r&1&&(ka(0),St(1,Pbe,1,0,"ng-container",19),Pa()),r&2){let t=ge(3);te(),fe("ngTemplateOutlet",t.contentParagrafo)("ngTemplateOutletContext",Ti(2,xl,t.section))}}function Obe(r,e){if(r&1&&(Se(0,"div"),St(1,kbe,1,2,"pa-section-front-preconfigurated-base-paragrafo",16)(2,Rbe,2,4,"ng-container",17),Ae()),r&2){let t=ge(2);te(),fe("ngIf",!t.showCustomPreconfiguration),te(),fe("ngIf",t.showCustomPreconfiguration)}}function Fbe(r,e){if(r&1&&ot(0,"pa-section-front-preconfigurated-base-items",22),r&2){let t=ge(3);fe("section",t.section)}}function Bbe(r,e){r&1&&ua(0)}function Nbe(r,e){if(r&1&&(ka(0),St(1,Bbe,1,0,"ng-container",19),Pa()),r&2){let t=ge(3);te(),fe("ngTemplateOutlet",t.contentItems)("ngTemplateOutletContext",Ti(2,xl,t.section))}}function Lbe(r,e){if(r&1&&(Se(0,"div",20),St(1,Fbe,1,1,"pa-section-front-preconfigurated-base-items",21)(2,Nbe,2,4,"ng-container",17),Ae()),r&2){let t=ge(2);te(),fe("ngIf",!t.showCustomPreconfiguration),te(),fe("ngIf",t.showCustomPreconfiguration)}}function Vbe(r,e){if(r&1&&ot(0,"pa-section-front-preconfigurated-base-links",22),r&2){let t=ge(3);fe("section",t.section)}}function Ube(r,e){r&1&&ua(0)}function zbe(r,e){if(r&1&&(ka(0),St(1,Ube,1,0,"ng-container",19),Pa()),r&2){let t=ge(3);te(),fe("ngTemplateOutlet",t.contentLinks)("ngTemplateOutletContext",Ti(2,xl,t.section))}}function jbe(r,e){if(r&1&&(Se(0,"div",20),St(1,Vbe,1,1,"pa-section-front-preconfigurated-base-links",21)(2,zbe,2,4,"ng-container",17),Ae()),r&2){let t=ge(2);te(),fe("ngIf",!t.showCustomPreconfiguration),te(),fe("ngIf",t.showCustomPreconfiguration)}}function Hbe(r,e){if(r&1&&ot(0,"pa-section-front-preconfigurated-base-video",22),r&2){let t=ge(3);fe("section",t.section)}}function $be(r,e){r&1&&ua(0)}function Gbe(r,e){if(r&1&&(ka(0),St(1,$be,1,0,"ng-container",19),Pa()),r&2){let t=ge(3);te(),fe("ngTemplateOutlet",t.contentVideo)("ngTemplateOutletContext",Ti(2,xl,t.section))}}function Wbe(r,e){if(r&1&&(Se(0,"div",20),St(1,Hbe,1,1,"pa-section-front-preconfigurated-base-video",21)(2,Gbe,2,4,"ng-container",17),Ae()),r&2){let t=ge(2);te(),fe("ngIf",!t.showCustomPreconfiguration),te(),fe("ngIf",t.showCustomPreconfiguration)}}function qbe(r,e){if(r&1&&ot(0,"pa-section-front-preconfigurated-base-gallery",22),r&2){let t=ge(3);fe("section",t.section)}}function Kbe(r,e){r&1&&ua(0)}function Ybe(r,e){if(r&1&&(ka(0),St(1,Kbe,1,0,"ng-container",19),Pa()),r&2){let t=ge(3);te(),fe("ngTemplateOutlet",t.contentGallery)("ngTemplateOutletContext",Ti(2,xl,t.section))}}function Xbe(r,e){if(r&1&&(Se(0,"div"),St(1,qbe,1,1,"pa-section-front-preconfigurated-base-gallery",21)(2,Ybe,2,4,"ng-container",17),Ae()),r&2){let t=ge(2);te(),fe("ngIf",!t.showCustomPreconfiguration),te(),fe("ngIf",t.showCustomPreconfiguration)}}function Qbe(r,e){if(r&1&&ot(0,"pa-section-front-preconfigurated-base-table",22),r&2){let t=ge(3);fe("section",t.section)}}function Jbe(r,e){r&1&&ua(0)}function Zbe(r,e){if(r&1&&(ka(0),St(1,Jbe,1,0,"ng-container",19),Pa()),r&2){let t=ge(3);te(),fe("ngTemplateOutlet",t.contentTable)("ngTemplateOutletContext",Ti(2,xl,t.section))}}function ewe(r,e){if(r&1&&(Se(0,"div",20),St(1,Qbe,1,1,"pa-section-front-preconfigurated-base-table",21)(2,Zbe,2,4,"ng-container",17),Ae()),r&2){let t=ge(2);te(),fe("ngIf",!t.showCustomPreconfiguration),te(),fe("ngIf",t.showCustomPreconfiguration)}}function twe(r,e){r&1&&ua(0)}function rwe(r,e){if(r&1&&(Se(0,"div"),St(1,twe,1,0,"ng-container",19),Ae()),r&2){let t=ge(),n=t.item,i=t.index,a=t.collectionName,s=t.odd,o=ge(5);te(),fe("ngTemplateOutlet",o.contentListCard)("ngTemplateOutletContext",Xv(2,Ebe,o.section,n,s,i,a))}}function nwe(r,e){if(r&1&&ot(0,"app-general-preview-card",25),r&2){let t=ge().item,n=ge(5);fe("previewModel",t==null?null:t.previewModel)("selectorTitle",n.section==null||n.section.sectionBaseList==null?null:n.section.sectionBaseList.tagPreviewTitleId)("haveDetail",(t==null||t.previewModel==null?null:t.previewModel.noDetail)!=null?t==null||t.previewModel==null?null:t.previewModel.haveDetail():(n.section==null||n.section.sectionBaseList==null?null:n.section.sectionBaseList.noDetail)!=null?n.section==null||n.section.sectionBaseList==null?null:n.section.sectionBaseList.haveDetail():!0)("showCategory",n.section==null||n.section.sectionBaseList==null?null:n.section.sectionBaseList.getDynamicModelCollectionShowCategoriesInCard())("modal",n.section==null||n.section.sectionBaseList==null?null:n.section.sectionBaseList.modal)("item",t)("generalButton",t==null||t.previewModel==null?null:t.previewModel.generalButton)("linkLabel",!(t==null||t.previewModel==null)&&t.previewModel.haveTextButton()?t==null||t.previewModel==null?null:t.previewModel.textButton:!(n.section==null||n.section.sectionBaseList==null)&&n.section.sectionBaseList.haveTextButton()?n.section==null||n.section.sectionBaseList==null?null:n.section.sectionBaseList.textButton:"Scopri di pi\xF9")("link",t.fullSlug)}}function iwe(r,e){if(r&1&&St(0,rwe,2,8,"div",17)(1,nwe,1,9,"app-general-preview-card",24),r&2){let t=ge(5);fe("ngIf",t.contentListCard),te(),fe("ngIf",!t.contentListCard)}}function awe(r,e){r&1&&St(0,iwe,2,2,"ng-template",null,0,uf)}function swe(r,e){if(r&1&&(Se(0,"pa-section-front-preconfigurated-base-list",22),St(1,awe,2,0,null,17),Ae()),r&2){let t=ge(3);fe("section",t.section),te(),fe("ngIf",t.haveCustomListCard(t.section==null||t.section.sectionBaseList==null?null:t.section.sectionBaseList.dynamicModelCollectionName))}}function owe(r,e){r&1&&ua(0)}function lwe(r,e){if(r&1&&(ka(0),St(1,owe,1,0,"ng-container",19),Pa()),r&2){let t=ge(3);te(),fe("ngTemplateOutlet",t.contentList)("ngTemplateOutletContext",Ti(2,xl,t.section))}}function cwe(r,e){if(r&1&&(Se(0,"div",23),St(1,swe,2,2,"pa-section-front-preconfigurated-base-list",21)(2,lwe,2,4,"ng-container",17),Ae()),r&2){let t=ge(2);te(),fe("ngIf",!t.showCustomPreconfiguration),te(),fe("ngIf",t.showCustomPreconfiguration)}}function uwe(r,e){if(r&1&&ot(0,"pa-section-front-base-space-empty",27),r&2){let t=ge(3);fe("sectionSpace",t.section==null?null:t.section.sectionBaseSpace)("isEvidence",t.section==null?null:t.section.isEvidence())}}function dwe(r,e){r&1&&ua(0)}function hwe(r,e){if(r&1&&(ka(0),St(1,dwe,1,0,"ng-container",19),Pa()),r&2){let t=ge(3);te(),fe("ngTemplateOutlet",t.contentSpace)("ngTemplateOutletContext",Ti(2,xl,t.section))}}function fwe(r,e){if(r&1&&(Se(0,"div"),St(1,uwe,1,2,"pa-section-front-base-space-empty",26)(2,hwe,2,4,"ng-container",17),Ae()),r&2){let t=ge(2);te(),fe("ngIf",!t.showCustomPreconfiguration),te(),fe("ngIf",t.showCustomPreconfiguration)}}function mwe(r,e){if(r&1&&ot(0,"pa-section-front-preconfigurated-base-map",22),r&2){let t=ge(3);fe("section",t.section)}}function pwe(r,e){r&1&&ua(0)}function gwe(r,e){if(r&1&&(ka(0),St(1,pwe,1,0,"ng-container",19),Pa()),r&2){let t=ge(3);te(),fe("ngTemplateOutlet",t.contentMap)("ngTemplateOutletContext",Ti(2,xl,t.section))}}function ywe(r,e){if(r&1&&(Se(0,"div"),St(1,mwe,1,1,"pa-section-front-preconfigurated-base-map",21)(2,gwe,2,4,"ng-container",17),Ae()),r&2){let t=ge(2);te(),fe("ngIf",!t.showCustomPreconfiguration),te(),fe("ngIf",t.showCustomPreconfiguration)}}function vwe(r,e){if(r&1&&ot(0,"pa-section-front-preconfigurated-base-table-from-excel",22),r&2){let t=ge(3);fe("section",t.section)}}function _we(r,e){r&1&&ua(0)}function bwe(r,e){if(r&1&&(ka(0),St(1,_we,1,0,"ng-container",19),Pa()),r&2){let t=ge(3);te(),fe("ngTemplateOutlet",t.contentTableFromExcel)("ngTemplateOutletContext",Ti(2,xl,t.section))}}function wwe(r,e){if(r&1&&(Se(0,"div",2),St(1,vwe,1,1,"pa-section-front-preconfigurated-base-table-from-excel",21)(2,bwe,2,4,"ng-container",17),Ae()),r&2){let t=ge(2);fe("ngClass",Ti(3,Tbe,t.section==null?null:t.section.isEvidence())),te(),fe("ngIf",!t.showCustomPreconfiguration),te(),fe("ngIf",t.showCustomPreconfiguration)}}
300function Iwe(r,e){r&1&&(Se(0,"div"),ot(1,"div",null,1),Ae())}function xwe(r,e){if(r&1&&(ka(0,9),St(1,Mbe,1,1,"app-shimmer-base-front",10)(2,Obe,3,2,"div",11)(3,Lbe,3,2,"div",12)(4,jbe,3,2,"div",12)(5,Wbe,3,2,"div",12)(6,Xbe,3,2,"div",11)(7,ewe,3,2,"div",12)(8,cwe,3,2,"div",13)(9,fwe,3,2,"div",11)(10,ywe,3,2,"div",11)(11,wwe,3,5,"div",14)(12,Iwe,3,0,"div",11),Pa()),r&2){let t=ge();fe("ngSwitch",t.section==null?null:t.section.getSectionTypeId()),te(),fe("ngIf",!t.loaded),te(),fe("ngSwitchCase",t.sectionTypeEnum.Paragrafo),te(),fe("ngSwitchCase",t.sectionTypeEnum.Items),te(),fe("ngSwitchCase",t.sectionTypeEnum.Links),te(),fe("ngSwitchCase",t.sectionTypeEnum.Video),te(),fe("ngSwitchCase",t.sectionTypeEnum.Gallery),te(),fe("ngSwitchCase",t.sectionTypeEnum.Table),te(),fe("ngSwitchCase",t.sectionTypeEnum.List),te(),fe("ngSwitchCase",t.sectionTypeEnum.Space),te(),fe("ngSwitchCase",t.sectionTypeEnum.Map),te(),fe("ngSwitchCase",t.sectionTypeEnum.Table_From_Excel),te(),fe("ngSwitchCase",t.sectionTypeEnum.Form)}}var FT=class r extends kp{constructor(t){super(t);this.injector=t;this.sectionManagerImpl=t.get(en),this.sectionBaseManagerImpl=t.get(en),this.originManagerImpl=t.get(Xt),this.dynamicModelsWithCustomCard=this.sectionBaseManagerImpl.getDynamicModels(),this.dynamicModelsWithCustomCard=this.dynamicModelsWithCustomCard.filter(n=>n.customCard)}isTitle=!1;index=0;showAnimations=!1;loaded=!1;set section(t){this._section=t,t&&t.id&&this.init()}get section(){return this._section}_section;sectionTypeEnum=Ou;LayoutRepeaterEnum=Eo;LayoutsPreconfiguratedParagrafoBaseEnum=gu;contentParagrafo;contentLinks;contentItems;contentVideo;contentGallery;contentTable;contentSpace;contentMap;contentTableFromExcel;contentList;contentListCard;dynamicModelsWithCustomCard=[];showCustomPreconfiguration=!1;sectionManagerImpl;sectionBaseManagerImpl;originManagerImpl;init(){this.loaded=!0,this.showCustomPreconfiguration=this.section?.isLayoutCustom(),this.sectionManagerImpl.overrideDefaultLayoutPreconfigurati()&&(this.showCustomPreconfiguration=this.section?.isLayoutCustom()||this.section?.layoutPreconfiguratedId==null)}haveCustomListCard(t){return this.dynamicModelsWithCustomCard.find(n=>n.nameCollection==t)!=null}dividerHelper=new Tp;getDividerClipPath(t,n){return this.dividerHelper.getDividerClipPath(t,n)}getDividerPaddingTop(t){return this.dividerHelper.getDividerPaddingTop(t)}getDividerPaddingBottom(t){return this.dividerHelper.getDividerPaddingBottom(t)}get clipPath(){return this.getDividerClipPath(this.section?.sectionStyle?.dividerTopId,this.section?.sectionStyle?.dividerBottomId)}get dividerPaddingTop(){return this.getDividerPaddingTop(this.section?.sectionStyle?.dividerTopId)}get dividerPaddingBottom(){return this.getDividerPaddingBottom(this.section?.sectionStyle?.dividerBottomId)}get backgroundClass(){return[this.section?.sectionStyle?.getBackgroundClass()||(this.section?.isEvidence()?"evidence":""),...this.section?.sectionStyle?.classes??[]].filter(n=>!!n).join(" ")}get backgroundImage(){let t=this.section?.sectionStyle?.imageModel?.multimedia?.getUrl();return t?`url(${t})`:null}get hasBackgroundVideo(){return this.section?.sectionStyle?.hasBackgroundVideo()??!1}get backgroundSize(){return this.section?.sectionStyle?.imageModel?.getImageSize()}get containerClass(){return`${this.section?.getNameSystemSectionType()}--container`}get sectionPaddingTop(){return this.section?.sectionStyle?.getSpaceByEnum(this.section?.sectionStyle?.paddingTopId??-1,this.mobile)}get sectionPaddingBottom(){return this.section?.sectionStyle?.getSpaceByEnum(this.section?.sectionStyle?.paddingBottomId??-1,this.mobile)}get sectionMarginTop(){return this.section?.sectionStyle?.getSpaceByEnum(this.section?.sectionStyle?.marginTopId??-1,this.mobile)}get sectionMarginBottom(){return this.section?.sectionStyle?.getSpaceByEnum(this.section?.sectionStyle?.marginBottomId??-1,this.mobile)}ngAfterViewInit(){super.ngAfterViewInit(),this.overrideForm()}componentRef;overrideView;form_container;overrideForm(){setTimeout(()=>{let t=this.originManagerImpl.overrideFormBase();if(t)this.overrideView=!0;else{this.overrideView=!1;return}let n=this.form_container;if(n?.clear(),n?.element?.nativeElement){this.renderer?.setProperty(n?.element?.nativeElement,"innerHTML",""),this.componentRef=n?.createComponent(t);var i=this.componentRef?.instance;i.isLoading=!1,i.contactForm=this.section?.contactForm}},0)}static \u0275fac=function(n){return new(n||r)(Ce(X))};static \u0275cmp=dt({type:r,selectors:[["pa-section-front-base"]],contentQueries:function(n,i,a){if(n&1&&(Qn(a,hbe,5),Qn(a,fbe,5),Qn(a,mbe,5),Qn(a,pbe,5),Qn(a,gbe,5),Qn(a,ybe,5),Qn(a,vbe,5),Qn(a,_be,5),Qn(a,bbe,5),Qn(a,wbe,5),Qn(a,Ibe,5)),n&2){let s;Mt(s=kt())&&(i.contentParagrafo=s.first),Mt(s=kt())&&(i.contentLinks=s.first),Mt(s=kt())&&(i.contentItems=s.first),Mt(s=kt())&&(i.contentVideo=s.first),Mt(s=kt())&&(i.contentGallery=s.first),Mt(s=kt())&&(i.contentTable=s.first),Mt(s=kt())&&(i.contentSpace
300=s.first),Mt(s=kt())&&(i.contentMap=s.first),Mt(s=kt())&&(i.contentTableFromExcel=s.first),Mt(s=kt())&&(i.contentList=s.first),Mt(s=kt())&&(i.contentListCard=s.first)}},viewQuery:function(n,i){if(n&1&&Fr(xbe,5,Rn),n&2){let a;Mt(a=kt())&&(i.form_container=a.first)}},inputs:{isTitle:"isTitle",index:"index",showAnimations:"showAnimations",section:"section"},standalone:!1,features:[Lt],decls:5,vars:27,consts:[["customCard",""],["form_container",""],[3,"ngClass"],[1,"section-bg-video"],["class","my-section",3,"ngSwitch",4,"ngIf"],["autoplayInView","","frameborder","0","allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture","allowfullscreen","",3,"src"],[1,"section-bg-video__overlay"],["autoplayInView","","muted","","loop","","playsinline","",3,"src"],[3,"multimedia"],[1,"my-section",3,"ngSwitch"],[3,"isTitle",4,"ngIf"],[4,"ngSwitchCase"],["class","container",4,"ngSwitchCase"],["class","position-relative",4,"ngSwitchCase"],[3,"ngClass",4,"ngSwitchCase"],[3,"isTitle"],[3,"showAnimations","section",4,"ngIf"],[4,"ngIf"],[3,"showAnimations","section"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"container"],[3,"section",4,"ngIf"],[3,"section"],[1,"position-relative"],[3,"previewModel","selectorTitle","haveDetail","showCategory","modal","item","generalButton","linkLabel","link",4,"ngIf"],[3,"previewModel","selectorTitle","haveDetail","showCategory","modal","item","generalButton","linkLabel","link"],[3,"sectionSpace","isEvidence",4,"ngIf"],[3,"sectionSpace","isEvidence"]],template:function(n,i){n&1&&(Se(0,"div",2),at(1,Abe,4,2,"div",3),Se(2,"div")(3,"div"),St(4,xwe,13,13,"ng-container",4),Ae()()()),n&2&&(rg("clip-path",i.clipPath)("background",i.backgroundImage)("background-size",i.backgroundSize)("background-position","center")("background-repeat","no-repeat"),Zt("section-has-bg-video",i.hasBackgroundVideo),fe("ngClass",i.backgroundClass),te(),st(i.hasBackgroundVideo?1:-1),te(),rg("padding-top",!(i.section==null||i.section.sectionStyle==null)&&i.section.sectionStyle.dividerAdditionalSpace&&(i.section==null||i.section.sectionStyle==null?null:i.section.sectionStyle.dividerTopId)!=-1?i.dividerPaddingTop:"")("padding-bottom",!(i.section==null||i.section.sectionStyle==null)&&i.section.sectionStyle.dividerAdditionalSpace&&(i.section==null||i.section.sectionStyle==null?null:i.section.sectionStyle.dividerBottomId)!=-1?i.dividerPaddingBottom:""),te(),rg("padding-top",i.sectionPaddingTop)("padding-bottom",i.sectionPaddingBottom)("margin-top",i.sectionMarginTop)("margin-bottom",i.sectionMarginBottom),te(),fe("ngIf",(i.section==null?null:i.section.getSectionTypeId())!=i.sectionTypeEnum.Sezione))},styles:[".section-has-bg-video[_ngcontent-%COMP%]{position:relative;overflow:hidden}.section-has-bg-video[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.section-bg-video){position:relative;z-index:1}.section-bg-video[_ngcontent-%COMP%]{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}.section-bg-video__overlay[_ngcontent-%COMP%]{position:absolute;inset:0;background:#00000073;z-index:1}.section-bg-video[_ngcontent-%COMP%] video[_ngcontent-%COMP%], .section-bg-video[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;height:100%;min-width:100%;min-height:100%;object-fit:cover;border:0}.section-bg-video[_ngcontent-%COMP%] iframe[_ngcontent-%COMP%]{aspect-ratio:16/9;min-width:177.78vh;min-height:56.25vw}"]})};var BT=class r{constructor(e){this.injector=e;this.manager=e.get(xr),this.originManager=e.get(Xt),this.translationBackofficeManager=e.get(mu)}manager;originManager;translationBackofficeManager;showParagraphIcon(){return!1}showSectionTag(){return this.manager?.myCustomer.isSuperAdmin()??!1}showSignature(){return!1}showDescription2(){return!1}showDescriptionCollassable(){return!1}showEyelet(){return!0}showSubTitle(){return!0}showButton(){return!0}showButtonSecondary(){return!1}showButtonLink(){return!0}showElements(){return!1}showImage(){return!0}showEvidence(){return!1}showPreview(){return!0}showInlinePreview(){return!1}
300getNameSectionTag(e){return this.getSectionTagClass().find(t=>t.id==e)?.getName()??""}getSectionTagStyle(e){return this.getSectionTagClass().find(t=>t.id==e)?.getStyle()??""}getSectionTagClass(e,t){return[]}getSectionTypes(e,t){return new yc(void 0).getListCustom(e,t).filter(n=>n.id==0 .valueOf())}getParagraphTypes(e,t){return new Xm(void 0).getList(e,t).filter(n=>n.id==0 .valueOf())}showSectionStyle(){return!1}showSectionStyleAdditionalClasses(){return!1}showSectionStyleBackground(){return!1}showSectionStyleBackgroundForceWhiteText(){return!1}showSectionStyleSpaziature(){return!1}showSectionStyleSpaziatureMargin(){return!1}showSectionStyleDivider(){return!1}getSectionStyleBackgroundTypologyClass(e){var t=new yh(void 0).getList(e).filter(n=>n.id==0 .valueOf());return e&&t.unshift(new yh(void 0).getInstanceAll()),t}getSectionStyleBackgroundTypeColorsClass(e){return new Gm(void 0).getList(e)}showButtonColor(){return!1}showButtonDisplayEnd(){return!1}getButtonColorsClass(){return new oc(void 0).getList(!1).filter(e=>e.id==2 .valueOf()||e.id==0 .valueOf()||e.id==1 .valueOf())}getButtonColorDefaultClass(){return new oc(0 .valueOf())}showButtonId(){return!1}showButtonClasses(){return!1}getLayoutRepeaterClass(e){return[]}getLayoutCardClass(e,t){return[]}getLayoutDirectionClass(e,t,n){return[]}showLayoutPreconfigurati(){return!1}overrideDefaultLayoutPreconfigurati(){return!1}getLayoutPreconfigurationClass(e){switch(e){case 0:return new Fx(void 0).getList(!1);case 4:return new Bx(void 0).getList(!1);case 9:return new ry(void 0).getList(!1);case 1:return new Mx(void 0).getList(!1);case 5:return new kx(void 0).getList(!1);case 6:return new Px(void 0).getList(!1);case 7:return new Rx(void 0).getList(!1);case 10:return new Ox(void 0).getList(!1);case 11:return new ry(void 0).getList(!1);default:return[]}}getLayoutPreconfigurationCustomClass(e){return[]}getLayoutPreconfigurationImage(e){return"/assets/img/image-placeholder.webp"}getListOrderByClass(){return new oT().getList(!1)}getListDefaultPaginationSize(){return 8}getDefaultTextLoadMoreButton(){return"Carica altre"}showImageInLinks(){return!1}showMultimediaInLinksSection(){return!1}getLinkAllegatoMultimediaTypes(){return[2]}showButtonInItems(){return!1}showImageInItems(){return!1}showItemIcon(){return!1}showItemOcchiello(){return!1}showItemVideo(){return!1}showItemIconColor(){return!1}showPopupIconColor(){return!1}showPreviewIconColor(){return!1}showParagraphIconColor(){return!1}getIconTypeColorsClass(e){return new aT(void 0).getList(e)}showVideoSize(){return!1}getVideoSizeClass(e){return new cT(void 0).getList(e)}showImageSize(){return!1}getImageSizeClass(e){return new yE(void 0).getList(e,void 0,void 0,this.translationBackofficeManager)}showImageLightboxControl(){return!1}showSectionNameAnchor(){return!1}showAnchorMenuToggle(){return!1}getDynamicModels(e){var t=[];return this.originManager?.showOriginCategories()?(t.push(new Ep(n=>new vc(n),"Categoria Pagina",!1,"Categorie Pagina","originBaseCategoryId",!0,"Pagine",void 0,e,this.originManager.originCategoriesHaveDetail())),t.push(new Ep(n=>new ws(n),"Pagina",!0,"Pagine","originId",!0,"Pagine",void 0,e))):t.push(new Ep(n=>new ws(n),"Pagina",!0,"Pagine","originId",!0,void 0,void 0,e)),t}getSpacesClass(e=!1){return new qm(void 0).getList(e)}getDividerClass(e=!1){return new Tp(void 0).getList(e)}getPreviewComponent(){return FT}showVideoPlaceholder(){return!1}showGenerativeContentText(){return!1}showTagParagraphSelector(){return!1}getCustomMarkerIcon(){}showCreaSezioniIA(){return!1}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var en=class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=G({token:r,factory:e=>BT.\u0275fac(e),providedIn:"root"})};var Us=class r extends gs{nameCollection="";dynamicModel;dynamicModelInfo;constructor(e,t){super(t),this.nameCollection=e,t&&this.setData(t)}GetNameCollection(){return this.nameCollection}getNewInstance(e,t){let n=new r(this.nameCollection,e);return n.nameCollection=this.nameCollection,n}fillDynamicModelInfo(e){return m(this,null,function*(){if(this.id
300){var t=e.get(en).getDynamicModels(),n=t.find(i=>i.nameCollection==this.nameCollection);this.dynamicModelInfo=n}})}fillDynamicModel(e){return m(this,null,function*(){[this.dynamicModel,this.dynamicModelInfo]=yield r.fillDynamicModel(e,this.id,this.nameCollection,this.dynamicModel,this.dynamicModelInfo)})}static fillDynamicModel(e,t,n,i,a){return m(this,null,function*(){try{if(!t)return[void 0,void 0];var s=e.get(en).getDynamicModels(),o=s.find(c=>c.nameCollection==n);if(a=o,!o)return[void 0,void 0];var l=o?.getInstanceCallback();return i=yield e.get(ke).getDetail(t,l,void 0,!0),i&&(i.nameModello=o.nameModello),[i,a]}catch(c){return console.error("fillDynamicModel error",c),[void 0,void 0]}})}},V$=class extends ul{filterValues;constructor(e,t,n,i,a,s,o){super(e,t,n,i,a,s),this.filterValues=o}},NT=class extends ke{getInstanceModel(){return new Us(this.nameCollection)}getNewModel(e){return new Us(this.nameCollection,e)}nameCollection;constructor(e,t){super(e),this.nameCollection=t}getFilters(e,t){let n=super.getFilters(e,t);if(e?.filterValues!=null)for(let[i,a]of e?.filterValues)n.push(xe(i,"==",a));return n}};var Uh=class r extends hi{nameCollection=this.GetNameCollection();getNewInstance(e){return new r(e)}GetNameCollection(){return"contacts"}surname;phone;city;companyName;message;privacy;privacy2;originId;targetEmail;multimedia;originAnalytics;formTypeRequestId;urlRequest;formHtml;managedDate;dynamicModelId;dynamicModelCollectionName;fromButton;downloadAutomatico;fromChatbot;fromWhatsappChatbot;waNotified;waContactRequestNotified;aiChatMessages;waPreviousContactId;waChatCount;queryParamsCustom;dynamicModel;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return t&&(this.name=t.name,this.surname=t.surname,this.email=t.email,this.companyName=t.companyName,this.phone=t.phone,this.message=t.message,this.privacy=t.privacy,this.privacy2=t.privacy2,this.city=t.city,this.originId=t.originId,this.targetEmail=t.targetEmail,this.originAnalytics=t.originAnalytics,this.formTypeRequestId=t.formTypeRequestId,this.urlRequest=t.urlRequest,this.formHtml=t.formHtml,this.fromButton=t.fromButton,this.downloadAutomatico=t.downloadAutomatico,this.fromChatbot=t.fromChatbot,this.fromWhatsappChatbot=t.fromWhatsappChatbot,this.waNotified=t.waNotified,this.waContactRequestNotified=t.waContactRequestNotified,this.aiChatMessages=t.aiChatMessages??t.waMessages,this.waPreviousContactId=t.waPreviousContactId,this.waChatCount=t.waChatCount,this.managedDate=this.setDateFromDocumentData(t,"managedDate"),this.multimedia=Ee.setDataInner(t?.multimedia),this.dynamicModelId=t.dynamicModelId,this.dynamicModelCollectionName=t.dynamicModelCollectionName,this.queryParamsCustom=t.queryParamsCustom),this}getDocumentData(e){var t=super.getDocumentData(e);return this.originId!==void 0&&(t.originId=this.originId),this.name&&(t.name=this.name),this.surname&&(t.surname=this.surname),this.companyName&&(t.companyName=this.companyName),this.email&&(t.email=this.email),this.phone&&(t.phone=this.phone),this.message&&(t.message=this.message),this.privacy!==void 0&&(t.privacy=this.privacy),this.privacy2!==void 0&&(t.privacy2=this.privacy2),this.formTypeRequestId!=null&&(t.formTypeRequestId=this.formTypeRequestId),this.targetEmail!==void 0&&(t.targetEmail=this.targetEmail),this.formHtml!==void 0&&(t.formHtml=this.formHtml),this.city&&(t.city=this.city),this.urlRequest&&(t.urlRequest=this.urlRequest),t.managedDate=this.managedDate!=null?this.managedDate:null,t.fromButton=this.fromButton!=null?this.fromButton:null,t.downloadAutomatico=this.downloadAutomatico!=null?this.downloadAutomatico:null,t.fromChatbot=this.fromChatbot!=null?this.fromChatbot:null,t.fromWhatsappChatbot=this.fromWhatsappChatbot!=null?this.fromWhatsappChatbot:null,this.originAnalytics&&(t.originAnalytics=this.originAnalytics),t=Ee.getDocumentDataInner(t,this.multimedia,"multimedia"),t.dynamicModelId=this.dynamicModelId?this.dynamicModelId:null,t.dynamicModelCollectionName=this.dynamicModelCollectionName?this.dynamicModelCollectionName:null,t.queryParamsCustom=this.queryParamsCustom?this.queryParamsCustom:null,this.name!=null&&(this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(this.name))),this.surname!=null&&(this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(this.surname))),this.name!=null&&this.surname!=null&&(this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(`${this.name} ${this.surname}`))),this.email!=null&&(this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(this.email))),this.setQuerySearch(t,this.querySearch),t}getName(){return this.name!=null&&this.surname!=null?`${this.name} ${this.surname}`:this.name?this.name:""}static getIcon(){return"contact_page"}getIcon(){return r.getIcon()}haveToFillOtherModels(){return!0}fillOtherModels(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModels").call(this,e),yield this.fillDynamicModel(e),this})}haveToFillOtherModelsInDetail(){return!0}fillOtherModelsInDetail(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModelsInDetail").call(this,e),yield this.fillDynamicModel(e),this})}haveTargetEmail(){return!!(this.targetEmail&&this.targetEmail.length>0)}getNameTypeRequestType(){return"Informazioni"}isManaged(){return!!this.managedDate}managedDateFormat(){return this.managedDate?ti(this.managedDate,"dd/MM/yyyy HH:mm"):""}preDeleteModel(e){return m(this,null,function*(){yield Fe(r.prototype,this,"preDeleteModel").call(this,e),yield this.multimedia?.deleteFile(e)})}fillDynamicModel(e){return m(this,null,function*(){var[t,n]=yield Us.fillDynamicModel(e,this.dynamicModelId,this.dynamicModelCollectionName,this.dynamicModel);this.dynamicModel=t})}getNameDynamicOrigin(){return this.dynamicModel?`${this.dynamicModel?.nameModello} - ${this.dynamicModel?.getName()}`:""}getNamePagina(e,t){if(this.dynamicModel)return this.getNameDynamicOrigin();if(!t){var n=e.get(Xt);t=n.getOriginClass(!1,!1,!0)}var i=t.find(a=>a.id==this.originId)?.getName();return i||"Not def"}getValueFromQueryParamsCustom(e){if(this.queryParamsCustom){var t=JSON.parse(this.queryParamsCustom);return t[e]}}getPopupIdFromQueryParamsCustom(){return this.getValueFromQueryParamsCustom("popupId")}};var U$=class extends Ki{originId;managed;formTypeRequestId;dynamicModelId;dynamicModelCollectionName;startDate;endDate;constructor(e,t,n,i,a,s,o,l,c,u){super(e,t,n),this.languageSigla=n,this.originId=i,this.formTypeRequestId=u,this.dynamicModelId=a,this.dynamicModelCollectionName=s,this.startDate=o,this.endDate=l,this.managed=c}},LT=class r extends ke{getInstanceModel(){return new Uh}getNewModel(e){return new Uh(e)}constructor(e){super(e)}getFilters(e,t){let n=super.getFilters(e,t);return e?.managed!=null&&(n.push(xe("managedDate",e?.managed?"!=":"==",null)),n.push(Go("managedDate","desc"))),e?.formTypeRequestId!=null&&e?.formTypeRequestId!==ue.getAllId()&&n.push(xe("formTypeRequestId","==",e?.formTypeRequestId)),e?.originId!=null&&e?.originId!==ue.getAllId()&&n.push(xe("originId","==",e?.originId)),e?.dynamicModelId!=null&&n.push(xe("dynamicModelId","==",e?.dynamicModelId)),e?.dynamicModelCollectionName!=null&&n.push(xe("dynamicModelCollectionName","==",e?.dynamicModelCollectionName)),e?.startDate!=null&&n.push(xe("insertDate",">=",e?.startDate)),e?.endDate!=null&&n.push(xe("insertDate","<=",e?.endDate)),n}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var Ev=class r extends Ls{getNewInstance(e){return new r(e)}GetNameCollection(){return"iconsCatalogues"}constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);var t=this.getJson(e);return this}getDocumentData(e){var t=super.getDocumentData(e);return this.name!=null&&(this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(this.name))),this.setQuerySearch(t,this.querySearch),t}static getIcon(){return"mms"}haveToFillOtherModels(){return!0}fillOtherModels(e){return m(this,null,function*(){return this})}preDeleteModel(e){return m(this,null,function*(){yield Fe(r.prototype,this,"preDeleteModel").call(this,e)})}};var z$=class extends Ki{selectedLibraryId;constructor(e,t,n){super(e,t),this.selectedLibraryId=n}},VT=class r extends ke{getInstanceModel(){return new Ev}getNewModel(e){return new Ev(e)}constructor(e){super(e)}getFilters(e,t){var n=[];return n=this.setBaseFilters(n,e,!0),e?.selectedLibraryId!=null&&n.push(xe("selectedLibraryId","==",e?.selectedLibraryId)),n}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var ju=class r extends Ls{getNewInstance(e){return new r(e)}GetNameCollection(){return"medias"}constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return t&&(this.name=t.name),this}getDocumentData(e){var t=super.getDocumentData(e);return this.name!=null&&(t.name=this.name),this.name!=null&&(this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(this.name))),this.setQuerySearch(t,this.querySearch),t}getName(){return this.name?this.name:""}static getIcon(){return"attach_file"}haveToFillOtherModels(){return!1}fillOtherModels(e){return m(this,null,function*(){return this})}haveToFillOtherModelsInDetail(){return!1}fillOtherModelsInDetail(e){return m(this,null,function*(){return this})}};var j$=class extends ul{constructor(e,t,n,i,a){super(e,t,n,i,a)}},UT=class r extends Iu{getInstanceModel(){return new ju}getNewModel(e){return new ju(e)}constructor(e){super(e)}getFilters(e,t){return super.getFilters(e,t)}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var Op=(s=>(s[s.Alert_Top=0]="Alert_Top",s[s.Alert_Bottom=1]="Alert_Bottom",s[s.Popup=2]="Popup",s[s.Widget=3]="Widget",s[s.Whatsapp=4]="Whatsapp",s[s.Form=5]="Form",s))(Op||{}),zh=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(Op)}getNameByEnum(e){let t=Object.values(Op);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error PopupBaseTypologyEnum name"}getInstanceAll(){return this.getInstance(void 0,ue.getAllId(),"Nessuno")}visible(e){let t=Object.values(Op);return!0}getIconByEnum(e){switch(e){case 0:return"campaign";case 1:return"campaign";case 2:return"image";case 3:return"widgets";case 4:return"phone";case 5:return"edit";default:return"block"}}getColor(){return"var(--black-color)"}};var jh=class r extends rn{getNewInstance(e){return new r(e)}GetNameCollection(){return"popups"}backgroundTypeColorsId;typologyId;typologyIdCustom;image;dynamicModelCollectionNames;dynamicModelIdsAdd;dynamicModelIdsRemove;delaySeconds;widgetText;showFrom;showTo;whatsappText;whatsappPhone;whatsappMessage;generalButton;paragraph;iconsCataloguesSelector;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return t&&(this.delaySeconds=t.delaySeconds,this.widgetText=t.widgetText,this.show
300From=this.setDateFromDocumentData(t,"showFrom"),this.showTo=this.setDateFromDocumentData(t,"showTo"),this.whatsappText=t.whatsappText,this.whatsappPhone=t.whatsappPhone,this.whatsappMessage=t.whatsappMessage,this.backgroundTypeColorsId=t.backgroundTypeColorsId,this.typologyId=t.typologyId,this.typologyIdCustom=t.typologyIdCustom,this.dynamicModelCollectionNames=t.dynamicModelCollectionNames??[],this.dynamicModelIdsAdd=t.dynamicModelIdsAdd??[],this.dynamicModelIdsRemove=t.dynamicModelIdsRemove??[],this.image=Ee.setDataInner(t?.image),t?.generalButton?this.generalButton=new Ke(t.generalButton):this.generalButton=new Ke,t?.paragraph?this.paragraph=new $t(t.paragraph):this.paragraph=new $t,t?.iconsCataloguesSelector?this.iconsCataloguesSelector=new Xi(t.iconsCataloguesSelector):this.iconsCataloguesSelector=new Xi),this}getDocumentData(e){var t=super.getDocumentData(e);return t.delaySeconds=this.delaySeconds!=null?this.delaySeconds:null,t.showFrom=this.showFrom!=null?this.showFrom:null,t.showTo=this.showTo!=null?this.showTo:null,this.widgetText!=null&&(t.widgetText=this.widgetText),this.whatsappText!=null&&(t.whatsappText=this.whatsappText),this.whatsappPhone!=null&&(t.whatsappPhone=this.whatsappPhone),this.whatsappMessage!=null&&(t.whatsappMessage=this.whatsappMessage),t.backgroundTypeColorsId=this.backgroundTypeColorsId!=null?this.backgroundTypeColorsId:null,t.typologyId=this.typologyId!=null?this.typologyId:null,t.typologyIdCustom=this.typologyIdCustom!=null?this.typologyIdCustom:null,t.dynamicModelCollectionNames=this.dynamicModelCollectionNames!=null?this.dynamicModelCollectionNames:null,t.dynamicModelIdsAdd=this.dynamicModelIdsAdd!=null?this.dynamicModelIdsAdd:null,t.dynamicModelIdsRemove=this.dynamicModelIdsRemove!=null?this.dynamicModelIdsRemove:null,t=Ee.getDocumentDataInner(t,this.image,"image"),this.generalButton&&(t.generalButton=this.generalButton.getDocumentData()),this.paragraph&&(t.paragraph=this.paragraph.getDocumentData()),this.iconsCataloguesSelector&&(t.iconsCataloguesSelector=this.iconsCataloguesSelector.getDocumentData()),this.getName()!=null&&(this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(this.getName()))),t}isTypologyCustom(){return this.typologyIdCustom!=null}getTypologyId(){return this.typologyIdCustom??this.typologyId}isInShowPeriod(e){return pe.isDateIntoPeriod(e??new Date,this.showFrom??void 0,this.showTo??void 0)}
300getShowPeriodLabel(){return pe.getPeriodLabel(this.showFrom??void 0,this.showTo??void 0)}getShowPeriodState(){return pe.getPeriodState(this.showFrom??void 0,this.showTo??void 0)}hasShowPeriod(){return this.showFrom!=null||this.showTo!=null}haveNameFront(){return!0}static getIcon(){return"campaign"}getIcon(){return r.getIcon()}getTipologiaName(){return new zh(this.typologyId).getName()}getTipologiaEnum(){return new zh(this.typologyId).getEnum()}haveToFillOtherModels(){return!0}fillOtherModels(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModels").call(this,e),yield this.fillButtonLinkOrigin(e),yield this.setFilterScss(e),this})}haveToFillOtherModelsInDetail(){return!0}fillOtherModelsInDetail(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModelsInDetail").call(this,e),yield this.fillButtonLinkOrigin(e),yield this.setFilterScss(e),this})}fillButtonLinkOrigin(e,t){return this.generalButton?.fillButtonLinkOrigin(e,t)}preDeleteModel(e){return m(this,null,function*(){yield Fe(r.prototype,this,"preDeleteModel").call(this,e),yield this.image?.deleteFile(e)})}duplicate(e,t,n,i,a){return m(this,null,function*(){let s=this.id;var o=yield Fe(r.prototype,this,"duplicate").call(this,e,t,n,i,a),l=o.id;try{if(i&&n){let c=[];c.push(e.get(Ge).getTranslationGeminiText(this.whatsappText,n,!0,!1).then(u=>this.whatsappText=u)),c.push(e.get(Ge).getTranslationGeminiText(this.whatsappMessage,n,!0,!1).then(u=>this.whatsappMessage=u)),c.push(e.get(Ge).getTranslationGeminiText(this.widgetText,n,!0,!1).then(u=>this.widgetText=u)),c.push(e.get(Ge).getTranslationGeminiText(this.nameFront,n,!0,!1).then(u=>this.nameFront=u)),yield Promise.all(c)}if(n){let c=e.get(ke);o.dynamicModelIdsAdd=yield c.getTranslatedModelIdsAnyCollection(e,n,this.dynamicModelIdsAdd),o.dynamicModelIdsRemove=yield c.getTranslatedModelIdsAnyCollection(e,n,this.dynamicModelIdsRemove)}yield this.iconsCataloguesSelector?.duplicateSectionBase(e,s,l,t,void 0,void 0,n,i,a),yield this.generalButton?.duplicateSectionBase(e,s,l,t,void 0,void 0,n,i,a),yield this.paragraph?.duplicateSectionBase(e,s,l,t,void 0,void 0,n,i,a),t&&t("Immagine mobile..."),o.image=yield this.image?.duplicateByReplaceId(e,s,l,t,void 0,void 0,n,i,a),t&&t("Aggiornamento..."),yield e.get(ke).update(o)}catch(c){console.error("error",c),yield e.get(ke).update(o)}return o})}setFilterScss(e){switch(this.typologyId){case 3:case 2:case 5:return this.iconsCataloguesSelector?.setFilterScss(e)}}getFilterScss(e){switch(this.typologyId){case 3:case 2:case 5:return this.iconsCataloguesSelector?.getFilterScss(e)}}getWhatsAppCompleteLink(){return`https://api.whatsapp.com/send?phone=${this.cleanWhatsappPhone()}&text=${this.cleanWhatsappMessage()}`}cleanWhatsappPhone(){return this.whatsappPhone?.split(" ").join("")}cleanWhatsappMessage(){if(this.whatsappMessage)return encodeURIComponent(this.whatsappMessage)}isTypologyForm(){return this?.typologyId==5}isTypologyAlertTopBottom(){return this?.typologyId==1||this?.typologyId==0}getQueryParams(){var e={};return e.popupId=this.id,e}getBackgroundColor(){switch(this.backgroundTypeColorsId){case 0:return"bg-primary";case 1:return"bg-secondary";case 3:return"bg-light";case 2:return"bg-dark";default:return"bg-white"}}};var H$=class extends fi{nameCollection;modelId;typologyId;targetUrl;constructor(e,t,n,i,a,s,o,l,c,u){super(e,t,n,i,a,s),this.nameCollection=o,this.modelId=l,this.typologyId=c,this.targetUrl=u}},zT=class r extends Gn{getInstanceModel(){return new jh}getNewModel(e){return new jh(e)}constructor(e){super(e)}getFilters(e,t){return super.getFilters(e,t)}getBigQuerySelectSource(e){return super.getBigQuerySelectSource(e)+` 301 --JSON_EXTRACT(data, "$.previewModel.description") AS previewModel_description, 302 JSON_EXTRACT_STRING_ARRAY(data, "$.dynamicModelCollectionNames") AS dynamicModelCollectionNames, 303 JSON_EXTRACT_STRING_ARRAY(data, "$.dynamicModelIdsAdd") AS dynamicModelIdsAdd, 304 JSON_EXTRACT_STRING_ARRAY(data, "$.dynamicModelIdsRemove") AS dynamicModelIdsRemove, 305 JSON_EXTRACT(data, "$.typologyId") AS typologyId, 306 JSON_EXTRACT(data, "$.targetUrl") AS targetUrl, 307 `}getBigQueryWhere(e){let t=super.getBigQueryWhere(e);return e?.nameCollection!=null&&e?.modelId!=null&&(t+=" AND (",t+=` "${e?.nameCollection}" IN UNNEST(dynamicModelCollectionNames)`,t+=` OR "${e?.modelId}" IN UNNEST(dynamicModelIdsAdd)`,t+=" )",t+=` AND "${e?.modelId}" NOT IN UNNEST(dynamicModelIdsRemove)`),e?.typologyId!=null&&(t+=` AND typologyId = "${e?.typologyId}"`),e?.targetUrl!=null&&(t+=` AND targetUrl = '"${e?.targetUrl}"'`),t}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var Hh=class r extends rn{getNewInstance(e){return new r(e)}GetNameCollection(){return"searchModelContacts"}n_count;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return this}getDocumentData(e){var t=super.getDocumentData(e);return this.name!=null&&(this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(this.name))),this.setQuerySearch(t,this.querySearch),t}getName(){return this.name?this.name:""}static getIcon(){return"search"}haveToFillOtherModels(){return!1}fillOtherModels(e){return m(this,null,function*(){return Fe(r.prototype,this,"fillOtherModels").call(this,e),this})}haveToFillOtherModelsInDetail(){return!1}fillOtherModelsInDetail(e){return m(this,null,function*(){return Fe(r.prototype,this,"fillOtherModelsInDetail").call(this,e),this})}duplicate(e,t,n,i,a){return m(this,null,function*(){let s=this.id;var o=yield Fe(r.prototype,this,"duplicate").call(this,e,t,n,i,a),l=o.id;try{t&&t("Aggiornamento..."),yield e.get(ke).update(o)}catch(c){console.error("error",c),yield e.get(ke).update(o)}return o}
307)}preDeleteModel(e){return m(this,null,function*(){})}};var $$=class extends fi{constructor(e,t,n,i,a,s,o,l){super(e,t,n,i,a,s,void 0,o,l)}},jT=class r extends Gn{getInstanceModel(){return new Hh}getNewModel(e){return new Hh(e)}constructor(e){super(e)}getFilters(e,t){return super.getFilters(e)}getBigQuerySelectSource(e){return super.getBigQuerySelectSource(e)+` 308 --JSON_EXTRACT(data, "$.previewModel.description") AS previewModel_description, 309 `}getBigQuerySelectDest(e){return super.getBigQuerySelectDest(e)+` 310 table_count.n_count as n_count, 311 `}setBigQuerySelectParamsOrder(){return!1}getBigQueryLeftJoinDest(e){return` 312 LEFT JOIN ( 313 SELECT 314 COUNT(JSON_EXTRACT(data, "$.name")) as n_count, 315 -- JSON_EXTRACT_SCALAR(data, "$.id") AS count_id, 316 JSON_EXTRACT(data, "$.name") AS count_name, 317 --* 318 FROM \`${th.firebaseConfig.projectId}.firestore_export.searchModelContacts_raw_latest\` 319 group by count_name 320 ) table_count ON input_table.name = table_count.count_name 321 `}getBigQueryWhere(e){return super.getBigQueryWhere(e)}parseBigQItems(e){return m(this,null,function*(){var t=[];return e.forEach(n=>{var i=this.getNewModel(JSON.parse(n.data));i.n_count=n.n_count,t.push(i)}),t})}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var $h=class r extends rn{getNewInstance(e){return new r(e)}GetNameCollection(){return"searchModels"}originModelId;originNameCollection;originNameModel;originNameModels;categoryId;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return t&&(this.originModelId=t.originModelId,this.originNameCollection=t.originNameCollection,this.originNameModel=t.originNameModel,this.originNameModels=t.originNameModels,this.categoryId=t.categoryId),this}getDocumentData(e){var t=super.getDocumentData(e);return this.originModelId!==void 0&&(t.originModelId=this.originModelId),this.originNameCollection!==void 0&&(t.originNameCollection=this.originNameCollection),this.originNameModel!==void 0&&(t.originNameModel=this.originNameModel),this.originNameModels!==void 0&&(t.originNameModels=this.originNameModels),this.categoryId!==void 0&&(t.categoryId=this.categoryId),t}getName(){return this.name?this.name:""}static getIcon(){return"search"}haveToFillOtherModels(){return!1}fillOtherModels(e){return m(this,null,function*(){return this})}haveToFillOtherModelsInDetail(){return!1}fillOtherModelsInDetail(e){return m(this,null,function*(){return this})}fillSections(e){return m(this,null,function*(){this.sections=yield rn.fillSections(e,this.originModelId)})}preDeleteModel(e){return m(this,null,function*(){})}};var G$=class extends fi{constructor(e,t,n,i,a,s){super(e,t,n,i,a,s)}},HT=class r extends Gn{getInstanceModel(){return new $h}getNewModel(e){return new $h(e)}constructor(e){super(e)}getFilters(e,t){return super.getFilters(e)}getBigQuerySelectSource(e){return super.getBigQuerySelectSource(e)+` 322 -- JSON_EXTRACT(data, "$.previewModel.description") AS previewModel_description, 323 `}getBigQueryWhere(e){return super.getBigQueryWhere(e)}fixAllSearchModels(){return new Promise((e,t)=>{let n="fixAllSearchModelsCallV2";Ht(this.getFunctions(),n)({}).then(a=>m(this,null,function*(){let s=a.data;if(s.success){var o=s.data;e(o)}else t(s.message)})).catch(a=>{pe.checkFunctionCorsError(a,this.injector,"fixAllSearchModelsCallV2"),console.error(`${n} error`,a),e(a)})})}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var Gh=class r extends rn{getNewInstance(e){return new r(e)}GetNameCollection(){return"surveysCompiled"}generalId;generalNameCollection;generalModel;constructor(e){super(e),e&&this.setData(e)}setData(e){super.setData(e);let t=this.getJson(e);return t&&(this.generalId=t.generalId,this.generalNameCollection=t.generalNameCollection),this}getDocumentData(e){this.name=this.survey?.title;var t=super.getDocumentData(e);return t.generalId=this.generalId?this.generalId:null,t.generalNameCollection=this.generalNameCollection?this.generalNameCollection:null,this.name!=null&&(this.querySearch=this.querySearch.concat(pe.setSearchParamByWords(this.name))),t}getName(){return this.name?this.name:""}static getIcon(){return"sentiment_very_satisfied"}getIcon(){return r.getIcon()}haveToFillOtherModels(){return!0}fillOtherModels(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModels").call(this,e),yield this.fillGeneralModel(e),this})}haveToFillOtherModelsInDetail(){return!0}fillOtherModelsInDetail(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModelsInDetail").call(this,e),yield this.fillGeneralModel(e),this})}fillGeneralModel(e){return m(this,null,function*(){this.generalId&&(this.generalModel=yield new NT(e,this.generalNameCollection).getDetail(this.generalId),yield this.generalModel?.fillDynamicModelInfo(e))})}duplicate(e,t,n,i,a){return m(this,null,function*(){let s=this.id;var o=yield Fe(r.prototype,this,"duplicate").call(this,e,t,n,i,a),l=o.id;try{t&&t("Aggiornamento..."),yield e.get(ke).update(o)}catch(c){console.error("error",c),yield e.get(ke).update(o)}return o}
323)}};var $T=class r extends Gn{getInstanceModel(){return new Gh}getNewModel(e){return new Gh(e)}constructor(e){super(e)}getFilters(e,t){return super.getFilters(e,t)}getBigQuerySelectSource(e){return super.getBigQuerySelectSource(e)+` 324 --JSON_EXTRACT(data, "$.previewModel.description") AS previewModel_description, 325 `}getBigQueryWhere(e){return super.getBigQueryWhere(e)}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var Wh=class r extends rn{getNewInstance(e){return new r(e)}GetNameCollection(){return"chats"}parentId;read;message;destinatarioUtenteId;utenteId;utente;otherUtente;constructor(e){super(e),e&&this.setData(e)}getUtenteId(){return this.utenteId?this.utenteId:""}getMessage(){return this.message?this.message:""}getMessageRead(){return this.read??!1}setData(e){super.setData(e);let t=this.getJson(e);return t&&(this.utenteId=t.utenteId,this.parentId=t.parentId,this.read=t.read,this.message=t.message,this.destinatarioUtenteId=t.destinatarioUtenteId),this}getDocumentData(e){var t=super.getDocumentData(e);return this.utenteId!=null&&(t.utenteId=this.utenteId),this.parentId!=null&&(t.parentId=this.parentId),this.read!==void 0&&(t.read=this.read),this.message!=null&&(t.message=this.message),t.destinatarioUtenteId=this.destinatarioUtenteId??null,t}static getIcon(){return"chat"}getName(){return this.message?pe.cleanHtml(pe.truncateString(this.message,30)):""}haveToFillOtherModels(){return!0}fillOtherModels(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModels").call(this,e),yield this.fillUtente(e),this})}haveToFillOtherModelsInDetail(){return!0}fillOtherModelsInDetail(e){return m(this,null,function*(){return yield Fe(r.prototype,this,"fillOtherModelsInDetail").call(this,e),yield this.fillUtente(e),this})}isRead(){return this.read??!1}fillUtente(e){return m(this,null,function*(){this.utenteId&&(this.utente=yield e.get(Vs).getDetail(this.utenteId))})}};var GT=class r extends Gn{getInstanceModel(){return new Wh}getNewModel(e){return new Wh(e)}constructor(e){super(e)}getFilters(e,t){let n=super.getFilters(e,t);return e?.utenteId&&n.push(xe("utenteId","==",e?.utenteId)),e?.parentId&&n.push(xe("parentId","==",e?.parentId)),e?.read!=null&&n.push(xe("read","==",e?.read)),e?.notMyUserId!=null&&n.push(xe("utenteId","!=",e?.notMyUserId)),n}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};function Ewe(r,e){if(r&1&&(Se(0,"mat-icon"),gr(1),Ae()),r&2){let t=ge().$implicit;te(),Oa(t==null?null:t.icon)}}function Twe(r,e){r&1&&ua(0)}function Cwe(r,e){if(r&1){let t=da();Se(0,"span",3),Gt("click",function(){Vi(t);let i=ge(),a=i.$implicit,s=i.$index,o=ge();return Ui(o.onClick(a,s,!0,a.disableClickParent))}),gr(1),Ae(),St(2,Twe,1,0,"ng-container",4)}if(r&2){let t=ge().$implicit;ge();let n=cf(5);te(),Oa(t==null?null:t.parent),te(),fe("ngTemplateOutlet",n)}}function Swe(r,e){r&1&&ua(0)}function Dwe(r,e){if(r&1&&St(0,Swe,1,0,"ng-container",4),r&2){ge(2);let t=cf(5);fe("ngTemplateOutlet",t)}}function Awe(r,e){if(r&1){let t=da();at(0,Ewe,2,1,"mat-icon"),at(1,Cwe,3,2),Se(2,"span",2),Gt("click",function(){let i=Vi(t),a=i.$implicit,s=i.$index,o=ge();return Ui(o.onClick(a,s,!1,a.disableClick))}),gr(3),Ae(),at(4,Dwe,1,1,"ng-container")}if(r&2){let t=e.$implicit,n=e.$index,i=e.$count,a=ge();st(t.icon?0:-1),te(),st(t.parent?1:-1),te(),fe("matTooltip",kl(t==null?null:t.tooltip)),te(),rs(" ",a.getTruncate((t==null?null:t.label)??"")),te(),st(n!==i-1?4:-1)}}function Mwe(r,e){if(r&1&&ot(0,"span",5),r&2){ge();let t=WF(0);fe("innerHtml",t,ts)}}
325var kwe="breadcrumbNoReload",WT=class r{constructor(e){this.injector=e;this.managerBase=e.get(xr),this.route=e.get(Dn),this.router=e.get($r),this.customerBaseManager=e.get(Vs),this.sectionBaseManagerImpl=e.get(en),this.firestoreManagerBase=e.get(ke),this.originManagerImpl=e.get(Xt)}models=[];baseUrl="backoffice";route;router;customerBaseManager;sectionBaseManagerImpl;firestoreManagerBase;managerBase;originManagerImpl;queryParams;getTruncate(e){return e?pe.truncateString(e,30):""}ngOnInit(){this.route.queryParams.subscribe(e=>m(this,null,function*(){this.queryParams=e})),this.route.params.subscribe(e=>m(this,null,function*(){(!this.queryParams||!this.queryParams[kwe]||this.models?.length==0)&&(yield this.onUrlParamsReady(e))}))}checkExistParam(e,t,n){if(e[t]&&n==null&&e[t]!=="0"||n)return e[t]}onUrlParamsReady(e){return m(this,null,function*(){})}baseRouting(e,t){return m(this,null,function*(){var n="customers",s="customerId";this.checkExistParam(e,s)!=null&&this.models?.push(new vi(yield this.customerBaseManager.getDetail(e[s]),n,"Utente",sh.getIcon(),"Utenti")),n="origins",s="originId",this.checkExistParam(e,s)!=null&&this.models?.push(new vi(yield this.injector.get(bl).getDetail(e[s]),n,"Pagina",ws.getIcon(),"Pagine")),n="contacts",s="contactId",this.checkExistParam(e,s)!=null&&this.models?.push(new vi(yield this.injector.get(LT).getDetail(e[s]),n,"Contatto",Uh.getIcon(),"Contatti")),n="medias";var s="mediaId";this.checkExistParam(e,s)!=null&&this.models?.push(new vi(yield this.injector.get(UT).getDetail(e[s]),n,"Media",ju.getIcon(),"Media")),n="iconsCatalogues";var s="iconsCatalogId";this.checkExistParam(e,s)!=null&&this.models?.push(new vi(yield this.injector.get(VT).getDetail(e[s]),n,"Cataloghi icone",ju.getIcon(),"Cataloghi icone")),n="siteredirects",s="siteRedirectId",this.checkExistParam(e,s)!=null&&this.models?.push(new vi(yield this.injector.get(Mp).getDetail(e[s]),n,"Redirect",Lh.getIcon(),"Redirects")),n="impostazioni-sito";var s="impostazioneId";if(this.checkExistParam(e,s)!=null&&this.models?.push(new vi(yield this.injector.get(Ap).getDetail(e[s]),n,"Impostazione sito",Il.getIcon(),"Impostazioni sito",void 0,!0,!0)),!t){var i=this.sectionBaseManagerImpl.getDynamicModels(),a=i.filter(o=>!o.isOriginModel());yield Promise.all(a.map(o=>m(this,null,function*(){var l=o.nameModelli,c=o.routeParamId,u=o.getInstanceCallback();if(this.checkExistParam(e,c)!=null){var d=yield this.firestoreManagerBase.getDetail(e[c],u);this.models?.push(new vi(d,u.GetNameCollection(),o.nameModello,u.getIcon(),o.nameModelli))}})))}if(this.originManagerImpl.showSearchModels()){n="searchModels";var s="searchModelId";this.checkExistParam(e,s)!=null&&this.models?.push(new vi(yield this.injector.get(HT).getDetail(e[s]),n,"Ricerca Modello",$h.getIcon(),"Ricerche Modelli")),n="searchModelContacts";var s="searchModelContactId";this.checkExistParam(e,s)!=null&&this.models?.push(new vi(yield this.injector.get(jT).getDetail(e[s]),n,"Ricerca Utente",Hh.getIcon(),"Ricerche Utenti"))}if(this.originManagerImpl.showPopup()){n="popups";var s="popupId";this.checkExistParam(e,s)!=null&&this.models?.push(new vi(yield this.injector.get(zT).getDetail(e[s]),n,"Popup",jh.getIcon(),"Popups"))}n="surveyscompiled";var s="surveyCompiledId";this.checkExistParam(e,s)!=null&&this.models?.push(new vi(yield this.injector.get($T).getDetail(e[s]),n,"Questionario",Gh.getIcon(),"Questionari")),n="quiz";var s="quizId";this.checkExistParam(e,s)!=null&&this.models?.push(new vi(yield this.injector.get(ph).getDetail(e[s]),n,"Quiz",mh.getIcon(),"Quiz",void 0,!0)),n="chat";var s="chatId";this.checkExistParam(e,s)!=null&&this.models?.push(new vi(yield this.injector.get(GT).getDetail(e[s]),n,"Chat",Wh.getIcon(),"Chats",void 0,!0,!0)),yield this.sectionRouting(e)})}sectionRouting(e){return m(this,null,function*(){var t="sections",n="sectionId";this.checkExistParam(e,n)!=null&&this.models?.push(new vi(yield this.injector.get(vn).getDetail(e[n]),t,"Sezione",js.getIcon(),"Sezioni",void 0,!0)),t="sections",n="sectionInnerId",this.checkExistParam(e,n)!=null&&this.models?.push(new vi(yield this.injector.get(vn).getDetail(e[n]),t,"Sezione",js.getIcon(),"Sezioni",void 0,!0))})}addModel(e){this.models?.findIndex(t=>t.model?.id===e.model?.id)===-1&&this.models?.push(e)}onClick(e,t,n,i){if(!i&&this.models){for(var a=`../${this.baseUrl}/`,s=n&&t!=0?t-e.levelBackParent+1:t,o=0;o<=s;o++){var l=this.models[o];l.model?.id&&(!n||n&&t!=0&&o<s+e.levelBackParent-1)?a+=`${l.urlParam}/${l.model?.id}/`:a+=`${l.urlParam}/`}this.router?.navigate([a])}}static \u0275fac=function(t){return new(t||r)(Ce(X))};static \u0275cmp=dt({type:r,selectors:[["app-breadcrumb"]],inputs:{models:"models",baseUrl:"baseUrl"},standalone:!1,decls:6,vars:1,consts:[["divider",""],[1,"d-flex","align-items-center","gap-2"],[3,"click","matTooltip"],[3,"click"],[4,"ngTemplateOutlet"],[3,"innerHtml"]],template:function(t,n){t&1&&($F(0),Se(1,"div",1),Dc(2,Awe,5,6,null,null,LF),Ae(),St(4,Mwe,1,1,"ng-template",null,0,uf)),t&2&&(GF("\u25B8"),te(2),Ac(n.models))},dependencies:[mg,dE,Iy],styles:["[_nghost-%COMP%] span[_ngcontent-%COMP%]{font-size:14px}[_nghost-%COMP%] span[_ngcontent-%COMP%], [_nghost-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#616161}"]})},vi=class{model;label;urlParam;tooltip;icon;parent;levelBackParent;disableClickParent;disableClick;constructor(e,t,n,i,a,s,o,l){this.model=e,this.label=e?.getNameBackoffice(),this.urlParam=t,this.tooltip=n||this.urlParam,this.icon=i,this.parent=a,this.levelBackParent=s===void 0?1:s,this.disableClickParent=o,this.disableClick=l}};var Pwe=(r,e)=>({width:r,height:e}),Rwe=()=>[],W$=r=>
325({height:r});function Owe(r,e){if(r&1&&(Se(0,"div",0),gr(1),Ae()),r&2){let t=ge(2);te(),rs(" ",t.text," ")}}function Fwe(r,e){if(r&1&&ot(0,"img",1),r&2){let t=ge(2);fe("src",t.logoPath,td)("ngStyle",Ti(2,W$,t.size/2+"px"))}}function Bwe(r,e){r&1&&ot(0,"div")}function Nwe(r,e){if(r&1&&(at(0,Owe,2,1,"div",0),at(1,Fwe,1,4,"img",1),Se(2,"div",2),Dc(3,Bwe,1,0,"div",null,lf),Ae()),r&2){let t=ge();st(t.text!==void 0&&t.text.length>0?0:-1),te(),st(t.withLogo?1:-1),te(),fe("ngStyle",KF(3,Pwe,t.size+"px",t.size+"px")),te(),Ac(qF(6,Rwe).constructor(8))}}function Lwe(r,e){if(r&1&&(Se(0,"div",13),gr(1),Ae()),r&2){let t=ge(2);te(),rs(" ",t.text," ")}}function Vwe(r,e){if(r&1&&(Se(0,"div",13),ot(1,"img",1),Ae()),r&2){let t=ge(2);te(),fe("src",t.logoPath,td)("ngStyle",Ti(2,W$,t.size/2+"px"))}}function Uwe(r,e){if(r&1&&(Se(0,"div"),yF(),Se(1,"svg",3)(2,"rect",4),ot(3,"animate",5),Ae(),Se(4,"rect",6),ot(5,"animate",7),Ae(),Se(6,"rect",8),ot(7,"animate",9),Ae(),Se(8,"rect",10),ot(9,"animate",11),Ae(),Se(10,"rect",12),ot(11,"animate",7),Ae()(),at(12,Lwe,2,1,"div",13),at(13,Vwe,2,4,"div",13),Ae()),r&2){let t=ge();te(12),st(t.text!==void 0&&t.text.length>0?12:-1),te(),st(t.withLogo?13:-1)}}var qT=class r{text="";size=80;withLogo=!1;logoPath="/assets/img/loading.webp";classesBackground="";constructor(){}hexToRGB(e){let t="0",n="0",i="0";return e.length==4?(t="0x"+e[1]+e[1],n="0x"+e[2]+e[2],i="0x"+e[3]+e[3]):e.length==7&&(t="0x"+e[1]+e[2],n="0x"+e[3]+e[4],i="0x"+e[5]+e[6]),+t+","+ +n+","+ +i}ngOnInit(){}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=dt({type:r,selectors:[["app-loading"]],inputs:{text:"text",withLogo:"withLogo",logoPath:"logoPath",classesBackground:"classesBackground"},standalone:!1,decls:3,vars:4,consts:[[1,"text-center","text-white","d-flex","justify-content-center","align-items-center"],["alt","loading",3,"src","ngStyle"],[1,"lds-roller",3,"ngStyle"],["version","1.1","id","Layer_1","xmlns","http://www.w3.org/2000/svg",0,"xmlns","xlink","http://www.w3.org/1999/xlink","x","0px","y","0px","viewBox","0 0 80 100","enable-background","new 0 0 80 100",0,"xml","space","preserve"],["fill","#fff","width","3","height","100","transform","translate(0) rotate(180 3 50)"],["attributeName","height","attributeType","XML","dur","1s","values","30; 100; 30","repeatCount","indefinite"],["x","17","fill","#fff","width","3","height","100","transform","translate(0) rotate(180 20 50)"],["attributeName","height","attributeType","XML","dur","1s","values","30; 100; 30","repeatCount","indefinite","begin","0.1s"],["x","40","fill","#fff","width","3","height","100","transform","translate(0) rotate(180 40 50)"],["attributeName","height","attributeType","XML","dur","1s","values","30; 100; 30","repeatCount","indefinite","begin","0.3s"],["x","60","fill","#fff","width","3","height","100","transform","translate(0) rotate(180 58 50)"],["attributeName","height","attributeType","XML","dur","1s","values","30; 100; 30","repeatCount","indefinite","begin","0.5s"],["x","80","fill","#fff","width","3","height","100","transform","translate(0) rotate(180 76 50)"],[1,"mt-3","text-center","text-white","d-flex","justify-content-center","align-items-center"]],template:function(t,n){t&1&&(Se(0,"div"),at(1,Nwe,5,7)(2,Uwe,14,2,"div"),Ae()),t&2&&(zi(Kv("bg-overlay-dark ",n.classesBackground," loadingViewContainer")),te(),st(1))},dependencies:[h1],styles:['[_nghost-%COMP%] .loadingViewContainer[_ngcontent-%COMP%]{min-height:250px}[_nghost-%COMP%] .bg-overlay-dark[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;inset:0;background-color:var(--primary-color);z-index:2;cursor:pointer;align-items:center;justify-content:center;display:flex}[_nghost-%COMP%] .bg-overlay-dark[_ngcontent-%COMP%] .lds-roller[_ngcontent-%COMP%]{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}[_nghost-%COMP%] .bg-overlay-dark[_ngcontent-%COMP%] .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_lds-roller 1.2s cubic-bezier(.5,0,.5,1) infinite;
325transform-origin:40px 40px}[_nghost-%COMP%] .bg-overlay-dark[_ngcontent-%COMP%] .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:after{content:" ";display:block;position:absolute;width:7px;height:7px;border-radius:50%;background:#fff;margin:-4px 0 0 -4px}[_nghost-%COMP%] .bg-overlay-dark[_ngcontent-%COMP%] .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1){animation-delay:-36ms}[_nghost-%COMP%] .bg-overlay-dark[_ngcontent-%COMP%] .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(1):after{top:63px;left:63px}[_nghost-%COMP%] .bg-overlay-dark[_ngcontent-%COMP%] .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2){animation-delay:-72ms}[_nghost-%COMP%] .bg-overlay-dark[_ngcontent-%COMP%] .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(2):after{top:68px;left:56px}[_nghost-%COMP%] .bg-overlay-dark[_ngcontent-%COMP%] .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3){animation-delay:-.108s}[_nghost-%COMP%] .bg-overlay-dark[_ngcontent-%COMP%] .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(3):after{top:71px;left:48px}[_nghost-%COMP%] .bg-overlay-dark[_ngcontent-%COMP%] .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4){animation-delay:-.144s}[_nghost-%COMP%] .bg-overlay-dark[_ngcontent-%COMP%] .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(4):after{top:72px;left:40px}[_nghost-%COMP%] .bg-overlay-dark[_ngcontent-%COMP%] .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5){animation-delay:-.18s}[_nghost-%COMP%] .bg-overlay-dark[_ngcontent-%COMP%] .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(5):after{top:71px;left:32px}[_nghost-%COMP%] .bg-overlay-dark[_ngcontent-%COMP%] .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6){animation-delay:-.216s}[_nghost-%COMP%] .bg-overlay-dark[_ngcontent-%COMP%] .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(6):after{top:68px;left:24px}[_nghost-%COMP%] .bg-overlay-dark[_ngcontent-%COMP%] .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7){animation-delay:-.252s}[_nghost-%COMP%] .bg-overlay-dark[_ngcontent-%COMP%] .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(7):after{top:63px;left:17px}[_nghost-%COMP%] .bg-overlay-dark[_ngcontent-%COMP%] .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8){animation-delay:-.288s}[_nghost-%COMP%] .bg-overlay-dark[_ngcontent-%COMP%] .lds-roller[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:nth-child(8):after{top:56px;left:12px}@keyframes _ngcontent-%COMP%_lds-roller{0%{transform:rotate(0)}to{transform:rotate(360deg)}}[_nghost-%COMP%] svg[_ngcontent-%COMP%]{width:100px;height:100px}']})};var KT=class{production;firebaseConfig;manager;anonimous;nameBackoffice;region;loading;breadcrumb;languages;domainUrl;showDemo;showWeather;persistence;showLastAccess;logoutAfterMinutesLastAccess;disabledUserAfterForceLogout;showUserDisabled;forceChangePasswordAfterMinutes;firestoreDatabaseId;useFunctionsEmulator;constructor(e,t,n,i,a,s,o,l,c,u,d,f,p,g,y,v,T,C,x,B){this.production=e,this.firebaseConfig=t,this.manager=n,this.anonimous=i??!1,this.nameBackoffice=a??"Backoffice",this.region=s??"europe-west1",this.loading=o??qT,this.breadcrumb=l??WT,this.languages=c??[],this.domainUrl=u??"",this.showDemo=d??!1,this.showWeather=f??!1,this.persistence=p??K_,this.showLastAccess=g??!1,this.logoutAfterMinutesLastAccess=y,this.disabledUserAfterForceLogout=v??!1,this.showUserDisabled=T??!1,this.forceChangePasswordAfterMinutes=C,this.firestoreDatabaseId=x??"(default)",this.useFunctionsEmulator=B??!1}};function q$(r,e){return!r||r.isAnonymous||r.uid===e?"keep":"reconcile"}var YT=class r{constructor(e,t){this.injector=e;this._config=t;this.config=t,this.userSubject=new Ii(null),this.userObservable=this.userSubject.asObservable(),this.customerSubject=new Ii(null),this.customerObservable=this.customerSubject.asObservable(),this.production=this.config.production,this.projectId=th.firebaseConfig.projectId,this.myCustomer=this.getNewModel()}userSubject;userObservable;customerSubject;customerObservable;router;myCustomer;otpVerified=!1;production;projectId;auth;db;config;seoService;authManager;authService;roleManagerImpl;appCheckImpl;snackBar;loadingService;translationBackofficeManager;subscriptions=[];_initialized=!1;get initialized(){return this._initialized}set initialized(e){this._initialized=e,e&&this.loadingService?.setPercentual(1)}getFilterAdminList(){}getFilterAdminListEnum(e){if(this.getFilterAdminList()){var t=this.roleManagerImpl?.getRoleClass(e);if(t){var n=void 0;return e&&(n=t[0]),t=t.filter(i=>this.getFilterAdminList().includes(i.id)).map(i=>i),n&&t.unshift(n),t}}}get onChangeUser(){return this.userObservable}set user(e){this.userSubject.next(e)}get user(){return this.userSubject.getValue()}get onChangeMyCustomer(){return this.customerObservable}userCredential;isLoggedIn(){return this.config.anonimous?!!this.user&&!!this.myCustomer&&this.myCustomer.id!==void 0:!!this.user&&!!this.myCustomer}ngOnDestroy(){this.unsubscribe()}
325unsubscribe(){this.subscriptions.forEach(e=>{e.unsubscribe()}),this.subscriptions=[]}checkValidationUser(){!this.user||!this.isLoggedIn()||setTimeout(()=>m(this,null,function*(){if(this.myCustomer.isSuperAdmin())return;if(this.myCustomer.isDisabled()){console.log("utente disabilitato"),setTimeout(()=>{this.authManager?.logout(),this.snackBar?.open("Utente disabilitato",this.translate_general?.ok,{duration:5*1e3})},1e3);return}if(!this.config.logoutAfterMinutesLastAccess)return;var e;if(this.user?.metadata.lastSignInTime&&(e=pt(this.user?.metadata.lastSignInTime)),!xa(e))return;var n=pt(new Date);if(iP(n,e)>=this.config.logoutAfterMinutesLastAccess){this.config.disabledUserAfterForceLogout&&(yield this.myCustomer.setUserEnabled(this.injector,!1)),this.authManager?.logout();let a=this.snackBar?.open("Sessione scaduta. Aspettare 1 minuto prima di rientrare.",this.translate_general?.ok,{duration:5*1e3});a?.afterDismissed().subscribe(()=>{}),a?.onAction().subscribe(()=>{})}}),500)}checkChangePswUser(e){return m(this,null,function*(){return new Promise(((t,n)=>m(this,null,function*(){if(!this.isLoggedIn()){t(!1);return}setTimeout(()=>m(this,null,function*(){if(this.myCustomer.isSuperAdmin()||!this.config.forceChangePasswordAfterMinutes){t(!1);return}var i=-1,a;if(this.myCustomer.getLastPswChanged()&&(a=pt(this.myCustomer.getLastPswChanged())),xa(a)){var s=pt(new Date);i=iP(s,a)}if(!this.myCustomer.getLastPswChanged()||i>=this.config.forceChangePasswordAfterMinutes){if(console.log("Password scaduta"),this.authService.goToChangePsw(),e){let o=this.snackBar?.open("Password scaduta. Impostare nuova password.",this.translate_general?.ok,{duration:5e3});o?.afterDismissed().subscribe(()=>{}),o?.onAction().subscribe(()=>{})}t(!0)}}),500)})))})}checkMfaEnrollment(){if(!this.seoService?.isPlatformBrowser()||!this.isLoggedIn()||!this.user||this.user.isAnonymous)return;let e=this.authManager?.getMfaMode();!e||!M5(e)||setTimeout(()=>{try{let t=IS(this.user).enrolledFactors;(!t||t.length===0)&&(console.log("MFA da configurare: nessun secondo fattore iscritto"),this.authService.goToEnrollment())}catch(t){console.error("checkMfaEnrollment error",t)}},500)}updateOtpVerified(){return m(this,null,function*(){try{let e=this.authManager?.getMfaMode()??"off";if(!this.user||this.user.isAnonymous||!ux(e)){this.otpVerified=!1;return}let t=yield this.user.getIdTokenResult();this.otpVerified=t.claims.otp===!0}catch(e){console.error("updateOtpVerified",e),this.otpVerified=!1}})}changePswUser(e){return m(this,null,function*(){return new Promise(((t,n)=>m(this,null,function*(){if(!this.isLoggedIn()){n("Not authenticated");return}try{yield vN(this.user,e),yield this.myCustomer.setLastPswChanged(this.injector),t()}catch(a){console.error(a);var i=a;switch(a.code){case"auth/weak-password":i="Password non sicura";break;case"auth/requires-recent-login":i="Rifare il login",yield this.authManager?.logout();break}n([a.code,i])}})))})}translate_general;translation;setTranslation(){return m(this,null,function*(){yield this.translationBackofficeManager?.loadDataDefault(),this.translation=this.translationBackofficeManager?.translate?.global,this.translate_general=this.translation?.general})}init(){if(this.seoService=A(br),this.authManager=A(ll),this.authService=A(pu),this.snackBar=A(qd),this.router=A($r),this.roleManagerImpl=A(vm),this.appCheckImpl=A(ym),this.loadingService=A(Sm),this.translationBackofficeManager=A(mu),this.loadingService?.setPercentual(.1),this.setTranslation(),this.auth=A(as),this.db=A(mo),this.seoService.isPlatformBrowser()){let e=C3(PB())}return new Promise((e,t)=>{if(this.loadingService?.setPercentual(.25),this.isLoggedIn()){this.initialized=!0,e(!0);return}try{dN(this.auth,n=>m(this,null,function*(){if(this.initialized&&this.isLoggedIn()&&(!n||n.isAnonymous)&&console.warn("[AUTH] onAuthStateChanged evento",n?`ANONIMO uid=${n.uid}`:"NULL","mentre loggato come uid=",this.user?.uid),!this.initialized)this.loadingService?.setPercentual(.35),yield this.onUserChanged(n,e,t);else if(this.isLoggedIn()){if(q$(n,this.user?.uid)==="reconcile"){yield this.onUserChanged(n,void 0,void 0);return}this.customerSubject.next(this.myCustomer)}else yield this.onUserChanged(n,e,t)}))}catch(n){console.error("init error",n),this.router,this.initialized=!0,e(!1)}})}setUserCredential(e){return m(this,null,function*(){this.userCredential=e})}onUserChanged(e,t,n){return new Promise((i,a)=>m(this,null,function*(){var s=t??i,o=n??a;if(this.loadingService?.setPercentual(.5),this.user=e,this.user?.isAnonymous){this.customerSubject.next(null),this.initialized=!0,s(!0);return}if(this.user==null)if(this.config.anonimous){this._handleSignAnonymous(s,o);return}else{console.warn("anonimous no"),this.customerSubject.next(null),this.initialized=!0,s(!0);return}var l;if(this.user?.uid==this.myCustomer?.id)l=this.myCustomer;else try{l=yield this.getMyCustomer(this.user?.uid)}catch(c){console.error("onUserChanged: caricamento cliente fallito, mantengo la sessione",c),this.myCustomer&&this.myCustomer.id==this.user?.uid&&this.customerSubject.next(this.myCustomer),this.initialized=!0,s(this.isLoggedIn());return}if(!l){if(this.user&&!this.user.isAnonymous){console.warn("onUserChanged: utente reale senza documento cliente, nessun downgrade ad anonimo"),this.customerSubject.next(null),this.initialized=!0,s(!1);return}this._handleSignAnonymous(s,o);return}if(this.loadingService?.setPercentual(.75),this.myCustomer=l,yield this.updateOtpVerified(),this.checkValidationUser(),this.checkChangePswUser(!0),this.checkMfaEnrollment(),this.customerSubject.next(this.myCustomer),this.isLoggedIn()){this.initialized=!0,s(!0);return}else{console.warn("init navigate login"),this.router,this.initialized=!0,s(!1);return}}))}_handleSignAnonymous(e,t){yd(this.auth).then(n=>{this.user=n.user,this.initialized=!0,this.customerSubject.next(null),e(!0)}).catch(n=>{console.error("_handleSignAnonymous",n.message),e(!1)})}getMyCustomer(e,t=2){return Le(this.injector,()=>new Promise((n,i)=>m(this,null,function*(){if(this.user==null){n(null);return}try{if(!e){console.error("error getMyCustomer no uid"),n(null);return}let a=ci(this.db,this.getNewModel().GetNameCollection(),e),s=yield Xc(a);if(!s.exists()){console.warn(`getDetail No such document! '${this.getNewModel().GetNameCollection()}'`,e),n(null);return}let o=this.getNewModel(s.data());o.haveToFillOtherModels()&&(yield o.fillOtherModels(this.injector)),console.log(`\x1B[32m\u{1F680} logged with ${o.getName()} \x1B[0m`),n(o)}catch(a){if(console.error("error getMyCustomer",a,"retriesLeft",t),t>0){setTimeout(()=>{this.getMyCustomer(e,t-1).then(n).catch(i)},1500);return}i(a)}})))}static \u0275fac=function(t){return new(t||r)(ee(X),ee(KT))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var xr=class r{router;auth;production;projectId;static \u0275fac=function(t){return new(t||r)};static \u0275prov=G({token:r,factory:e=>YT.\u0275fac(e),providedIn:"root"})};var SO=(i=>(i[i.Primary=0]="Primary",i[i.White=1]="White",i[i.Black=2]="Black",i[i.Grey=3]="Grey",i))(SO||{}),XT=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(SO)}
325getNameByEnum(e){let t=Object.values(SO);switch(e){case t[0]:case 0:return"Primario";case t[1]:case 1:return"Bianco";case t[2]:case 2:return"Black";default:return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error CommentTypology name"}}getOrderByEnum(e){let t=this.getEnumValues();switch(e){case t[0]:case 0:return 0;case t[1]:case 1:return 1;default:return-1}}getInstanceAll(){return this.getInstance(void 0,ue.getAllId(),"Nessuno")}visible(e){return!0}getIconByEnum(e){switch(e){case 0:return"image";case 1:return"play_circle_filled";default:return"block"}}getColorByEnum(e){switch(e){case 0:return"var(--primary-color-site)";case 1:return"#ffffff";case 2:return"#000000";case 3:return"#f4f4f4";default:return"#000000"}}};var DO=(n=>(n[n.Italiano=0]="Italiano",n[n.Inglese=1]="Inglese",n[n.Tedesco=2]="Tedesco",n))(DO||{}),QT=class r extends ue{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(DO)}getNameByEnum(e){let t=Object.values(DO);return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):""}visible(e){return!0}getColorByEnum(e){return"#cf5942"}};var Fp=(i=>(i[i.Default=0]="Default",i[i.Left_middle=1]="Left_middle",i[i.Center_bottom=2]="Center_bottom",i[i.Left_bottom=3]="Left_bottom",i))(Fp||{}),JT=class r extends Wa{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(Fp)}getNameByEnum(e){let t=Object.values(Fp);switch(e){case t[0]:case 0:return"Default";case t[1]:case 1:return"Allineato a sinistra e centrato";case t[2]:case 2:return"Centrato in basso";case t[3]:case 3:return"Allineato in basso a sinistra";default:return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error origin name"}}getColorByEnum(e){return"#582F4D"}getListByOriginEnum(e,t){var n=this.getEnumValues().filter(o=>!isNaN(Number(o))),i=[];let a=0,s=0;return n.forEach(o=>{let l=this.getInstance(o);typeof o=="string"||typeof o=="number"&&(this.visible(o)&&(l.id=s,i[a]=l,a++),s++)}),n=this.getEnumValues(),i.sort((o,l)=>{if(o.order!==void 0&&l.order!==void 0&&o.order!==-1&&l.order!==-1){if(o.order>l.order)return 1}else if(o.getName()>l.getName())return 1;return-1}),(e==null||e)&&i.unshift(this.getInstanceAll()),i}getTooltipText(){let e=Object.values(Fp),t=Number(this.id);switch(t){case e[0]:case 0:return"Visualizzazione layout standard/preconfigurato";case e[1]:case 1:return"Contenuto centrato verticalmente e allineato a sinistra orizzontalmente";case e[2]:case 2:return"Contenuto centrato al centro dello schermo e posizionato in basso";case e[3]:case 3:return"Contenuto allineato a sinistra e posizionato in basso";default:return"MY DEFAULT: "+this.getNameByEnum(t)}}getOrderByEnum(e){let t=Object.values(Fp);switch(e){case t[0]:case 0:return 0;case t[1]:case 1:return 1;case t[2]:case 2:return 2;case t[3]:case 3:return 3;default:return 0}}getDescription(){let e=Number(this.id);return this.getNameByEnum(e)}getImageByEnum(e){return r.getImage(e)}static getImage(e){var t="/app/FirebaseBackofficeLib/assets/img/layout/headerSTD/";switch(e){case 0:return t+"header_default.webp";case 1:return t+"header_left_aligned.webp";case 2:return t+"header_center_bottom.webp";case 3:return t+"header_left_bottom.webp";default:return""}}getConfigList(){let e=Number(this.id);var t=new yn;switch(t.layoutRepeaterId=e,e){case 0:break;default:return t}return t}};var Bp=(a=>(a[a.Default=0]="Default",a[a.Image_fullscreen_text_bottom=1]="Image_fullscreen_text_bottom",a[a.Image_fullscreen_text_top=2]="Image_fullscreen_text_top",a[a.Image_top_text_bottom=3]="Image_top_text_bottom",a[a.Image_bottom_text_top=4]="Image_bottom_text_top",a))(Bp||{}),ZT=class r extends Wa{getInstance(e,t,n,i){return new r(e,t,n,i)}getEnumValues(){return Object.values(Bp)}getNameByEnum(e){let t=Object.values(Bp);switch(e){case t[0]:case 0:return"Default (Immagine fullscreen e testo al centro)";case t[1]:case 1:return"Immagine fullscreen con testo in basso";case t[2]:case 2:return"Immagine fullscreen con testo in alto";case t[3]:case 3:return"Immagine sopra e testo sotto";case t[4]:case 4:return"Testo sopra e immagine sotto";default:return e.constructor.name==="Number"?t[e].toString().split("_").join(" "):e.constructor.name==="String"?e.toString().split("_").join(" "):"error origin name"}}
325getColorByEnum(e){return"#582F4D"}getListByOriginEnum(e,t){var n=this.getEnumValues().filter(o=>!isNaN(Number(o))),i=[];let a=0,s=0;return n.forEach(o=>{let l=this.getInstance(o);typeof o=="string"||typeof o=="number"&&(this.visible(o)&&(l.id=s,i[a]=l,a++),s++)}),n=this.getEnumValues(),i.sort((o,l)=>{if(o.order!==void 0&&l.order!==void 0&&o.order!==-1&&l.order!==-1){if(o.order>l.order)return 1}else if(o.getName()>l.getName())return 1;return-1}),(e==null||e)&&i.unshift(this.getInstanceAll()),i}getTooltipText(){let e=Object.values(Bp),t=Number(this.id);switch(t){case e[0]:case 0:return"Visualizzazione layout standard/preconfigurato su Mobile";case e[1]:case 1:return"Contenuto posizionato in basso e immagine in full screen";case e[2]:case 2:return"Immagine fullscreen con testo in alto";case e[3]:case 3:return"L'immagine occupa la parte superiore, il testo quella inferiore";case e[4]:case 4:return"Il testo occupa la parte superiore, l'immagine quella inferiore";default:return"MY DEFAULT: "+this.getNameByEnum(t)}}getOrderByEnum(e){let t=Object.values(Bp);switch(e){case t[0]:case 0:return 0;case t[1]:case 1:return 1;case t[2]:case 2:return 2;case t[3]:case 3:return 3;case t[4]:case 4:return 4;default:return 0}}getDescription(){let e=Number(this.id);return this.getNameByEnum(e)}getImageByEnum(e){return r.getImage(e)}static getImage(e){var t="/app/FirebaseBackofficeLib/assets/img/layout/headerSTD/";switch(e){case 0:return t+"header_default_mobile.webp";case 1:return t+"header_center_bottom_mobile.webp";case 2:return t+"header_center_top_mobile.webp";case 3:return t+"header_image_top_text_bottom_mobile.webp";case 4:return t+"header_image_bottom_text_top_mobile.webp";default:return""}}getConfigList(){let e=Number(this.id);var t=new yn;switch(t.layoutRepeaterId=e,e){case 0:break;default:return t}return t}};var eC=class r{constructor(e){this.injector=e;this.manager=e.get(xr)}manager;headerSiteTitleWysiwyg(){return!1}headerSiteEyletWysiwyg(){return!1}showHeaderSiteItems(){return!1}getNameOrigin(e){return""}getOriginStyle(e){}getOriginClass(e){return[]}createOrigin(e){return this.manager?.myCustomer.isSuperAdmin()??!1}editOrigin(e){return this.manager?.myCustomer.isSuperAdmin()??!1}showAC(e){return this.manager?.myCustomer.isSuperAdmin()??!1}showSEO(e){return this.manager?.myCustomer.isSuperAdmin()??!1}readonlySlug(e){return!this.manager.myCustomer.isSuperAdmin()}showVD(e){return!1}showIsMenu(e){return!0}showIsLanding(e){return!0}showIsSitemap(){return!0}showDuplica(){return!1}showNameFront(e){return!1}getFotoVideoMultimediaTypeEnum(){return[0,1]}overrideMenuWithImpostazioneSito(e){return!1}showHeaderSite(e){return this.manager?.myCustomer.isGeneralAdmin()??!1}hideConfigurationHeaderSite(e){return!1}showHeaderSiteDescription(e){return!1}showHeaderSiteSubtitle(e){return!0}showTextExtraHeader(e){return!1}getTextExtraLabelHeader(e){return"Testo Extra"}showHeaderSiteTitle(e){return!0}showHeaderSiteEylet(e){return!1}showHeaderSiteGeneralButton(e){return!0}showHeaderSiteGeneralButtonSecondary(e){return!1}showHeaderSiteImageMobile(){return!1}showHeaderSiteOverlay(e){return!1}getHeaderSiteMultimediaTypeEnum(){return[0]}getHeaderSiteBaseTypology(e){return new uh(void 0).getList(e).filter(t=>t.id!=3 .valueOf())}showHeaderSiteLayoutsBaseTypology(e){return!1}getHeaderSiteLayoutsBaseTypology(e){return new JT(void 0).getList(e).filter(t=>t.id!=0 .valueOf())}getHeaderSiteDefaultLayout(){return 0 .valueOf()}showHeaderSiteLayoutsMobileBaseTypology(e){return!1}getHeaderSiteLayoutsMobileBaseTypology(e){return new ZT(void 0).getList(e).filter(t=>t.id!=0 .valueOf())}getHeaderSiteDefaultMobileLayout(){return 0 .valueOf()}getHeaderSiteLayoutsBaseTypologyIsContainer(e){return!1}getHeaderSiteBaseColors(e){return new XT(void 0).getList(e)}getHeaderSiteDefaultColor(){return 0}overrideHeadersite(e){}overrideFormBase(){}getHeaderSlideDurationDefault(){return 5}showHeaderGalleryControls(e){return!0}showHeaderGalleryMobile(e){return!1}showHeaderHide(e){return!1}showContactForm(e){return!1}showContactFormImage(e){return!1}showContactFormItems(e){return!1}showContactFormItemsImage(e){return!1}showContactFormItemsButton(e){return!1}showContactFormItemsIcon(e){return!1}showContactFormSendEmailToUser(e){return!1}getJobLanguages(){return new QT(void 0).getList(!1)}showContactFormTargetEmail(e){return!0}showContactFormButtonText(e){return!1}showContactFormEyelet(e){return!1}hideDefaultContactForm(){return!1}showThankyouPage(e){return!1}showThankyouPageImage(){return!1}showPhoneWA(e){return!1}showPhoneWAPhone(e){return!0}showPhoneWAWhatsapp(e){return!0}showSchemaOrg(e){return!1}showPreviewModel(e){return!1}showPreviewModelIcon(e){return!1}showPreviewModelTextButton(e){return!1}showPreviewModelVideo(e){return!1}showPreviewModelGeneralButton(e){return!1}showPreviewModelEyelet(e){return!1}showSearchTag(e){return!1}showSections(e){return!1}showWall(e){return!1}showLanguages(){return!1}forceConvertToWebp(){}getSectionTypologies(){return[]}getMaxUploadClass(){return[]}dynamicPage(){return!1}showOriginEnum(){return!0}getButtonTypology(e){return this.overrideFormBase()?new Q0(void 0).getList(e):new Q0(void 0).getList(e).filter(t=>t.id!=4 .valueOf())}getFormTypology(e,t){return[]}showModelStyleTab(){return!1}selectModelStyleClassesMultiple(){return!1}getModelStyleClasses(e,t){return[]}showSectionStyle(){return!1}showSectionTextToSpeech(){return!1}getIconsCataloguesTypology(e){return new Nx(void 0).getList(e)}
325duplicateExtension(e,t,n,i,a,s,o){return m(this,null,function*(){return new Promise((l,c)=>{l()})})}preDeleteModelExtension(e,t){return m(this,null,function*(){return new Promise((n,i)=>{n()})})}fillOtherModelInDetailExtension(e,t){return m(this,null,function*(){})}showQuiz(e){return!1}showDidascaliaFromImageUrl(){return!1}showGenerateKeywordsFromUrl(){return!1}showGenerateKeywordsFromContents(){return!1}showGenerateKeywordsFromText(){return!1}showGenerateImageFromText(){return!1}showAiTransparency(){return!1}showOptimizeMedia(){return!1}getMapsApiKey(){}createDidascaliaOnUpload(){return!0}showDescriptionPageFromUrl(){return!1}showSearchModels(){return!1}showPopup(){return!1}showPopupBackgroundColor(){return!1}getPopupTypologyClass(){return new zh().getList(!1).filter(e=>e.id!=4 .valueOf()||e.id!=5 .valueOf())}getPopupTypologyCustomClass(){return[]}showOriginCategories(){return!1}originCategoriesHaveDetail(){return!1}showRedirectsImport(){return!1}showRedirectsDeleteAll(){return!1}showRedirectsConvalida(){return!1}showOverrideDestinationFromDynamicModel(){return!1}showSeoIsNoSitemap(e){return!1}showSeoIsNoIndex(e){return!1}showSeoNotRedirect404(){return!1}originSearchEnumId(){}backofficeLogoOnDarkBackground(){return!1}getDomainSite(){}getCompanyIDAppVD(){}getDataFromResolve(){return!1}sendIubendaConsetByFunction(){return!1}disableMediaDownload(){return!1}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};var Xt=class r{static \u0275fac=function(t){return new(t||r)};static \u0275prov=G({token:r,factory:e=>eC.\u0275fac(e),providedIn:"root"})};
325var Ge=class r{constructor(e){this.injector=e;this.functions=e.get(mn),this.originImpl=e.get(Xt)}functions;originImpl;batchQueue=[];batchTimer=null;batchDelay=200;static untranslated=[];translateDeclared(e,t,n){return m(this,null,function*(){if(!e||!t)return 0;let i=bx(e,n).filter(s=>s.value),a=0;return yield Promise.all(i.map(s=>m(this,null,function*(){try{let o=yield this.getTranslationGeminiText(s.value,t,!0,s.isHtml);o&&(s.set(o),a++)}catch(o){console.warn("translateDeclared: campo non tradotto",s.path,o)}}))),a})}static resetUntranslated(){r.untranslated=[]}static recordFallback(e,t){e.forEach(n=>r.untranslated.push({text:n.text,targetLanguageCode:n.targetLanguageCode,reason:t})),console.warn(`[Batch] ${e.length} testi NON tradotti (${t}): resta la lingua di partenza`)}getTranslationText(e,t){return new Promise((n,i)=>{Ht(this.functions,"getTranslationTextCallV2")({text:e,targetLanguageCode:t}).then(o=>m(this,null,function*(){let l=o.data;console.log("data",l),l.success?n(l.data):i(l.message)})).catch(o=>{pe.checkFunctionCorsError(o,this.injector,"getTranslationTextCallV2"),console.error("getTranslationTextCall error",o),i(o)})})}getTranslationGeminiText(e,t,n,i){return new Promise((a,s)=>{if(!e||!t){a(void 0);return}n=n??!0,i=i??!1,this.batchQueue.push({text:e,targetLanguageCode:t,isWebSite:n,isHtml:i,resolve:a,reject:s}),this.batchTimer||(this.batchTimer=setTimeout(()=>{this.processBatch()},this.batchDelay))})}processBatch(){return m(this,null,function*(){if(this.batchTimer=null,this.batchQueue.length===0)return;let e=[...this.batchQueue];this.batchQueue=[];let t={};for(let n of e){let i=`${n.targetLanguageCode}_${n.isWebSite}_${n.isHtml}`;t[i]||(t[i]=[]),t[i].push(n)}for(let n in t){let i=t[n],a=i[0];try{yield Le(this.injector,()=>m(this,null,function*(){console.log(`[Batch] Translating ${i.length} items for ${a.targetLanguageCode}...`,i);let c=(yield Ht(this.functions,"getTranslationTextsGeminiCallV2",{timeout:54e4})({texts:i.map(u=>u.text),targetLanguageCode:a.targetLanguageCode,isWebSite:a.isWebSite,isHtml:a.isHtml})).data;if(c.success&&Array.isArray(c.data))c.data.length!==i.length?(r.recordFallback(i,`risposta disallineata: ${i.length} testi inviati, ${c.data.length} ricevuti`),i.forEach(u=>u.resolve(u.text))):i.forEach((u,d)=>{let f=c.data[d];typeof f=="string"&&f.trim().length>0?u.resolve(f):(r.recordFallback([u],"traduzione vuota"),u.resolve(u.text))});else{let u=c.message||"Unknown error in batch translation";console.error("[Batch] Error processing translation batch",u),r.recordFallback(i,u),i.forEach(d=>d.resolve(d.text))}}))}catch(s){pe.checkFunctionCorsError(s,this.injector,"getTranslationTextsGeminiCallV2"),s?.message?.includes("429")||s?.message?.includes("RESOURCE_EXHAUSTED")||s?.code===429?(console.warn("[Batch] 429 Resource exhausted \u2014 ritorno testi originali come fallback"),r.recordFallback(i,"quota Gemini esaurita (429)"),i.forEach(l=>l.resolve(l.text))):(console.error("[Batch] Error processing translation batch",s),i.forEach(l=>l.reject(s)))}}})}static \u0275fac=function(t){return new(t||r)(ee(X))};static \u0275prov=G({token:r,factory:r.\u0275fac,providedIn:"root"})};export{pa as a,Bo as b,XB as c,u1 as d,ZB as e,W7 as f,d1 as g,q7 as h,K7 as i,h1 as j,mg as k,Q7 as l,Z7 as m,tW as n,nW as o,m1 as p,Kxe as q,Si as r,Yxe as s,No as t,_k as u,bte as v,xte as w,Ps as x,$te as y,Gte as z,Ck as A,th as B,Pt as C,di as D,Dn as E,Wk as F,$r as G,H6 as H,$6 as I,Sne as J,o0 as K,l0 as L,BM as M,Vd as N,va as O,tr as P,hs as Q,A3 as R,_a as S,Zc as T,XZ as U,ba as V,cw as W,Vf as X,wa as Y,mSe as Z,dw as _,fw as $,mw as aa,uee as ba,UM as ca,d0 as da,qi as ea,Ms as fa,jM as ga,HM as ha,$M as ia,uDe as ja,mee as ka,pee as la,Y3 as ma,Kl as na,vee as oa,$n as pa,Yl as qa,LDe as ra,f0 as sa,JM as ta,JDe as ua,nU as va,iU as wa,See as xa,$a as ya,AAe as za,tu as Aa,Nr as Ba,sU as Ca,lU as Da,qAe as Ea,dU as Fa,hU as Ga,yo as Ha,Wo as Ia,ZAe as Ja,qo as Ka,vo as La,fU as Ma,rMe as Na,Nee as Oa,aMe as Pa,jd as Qa,ak as Ra,$f as Sa,g0 as Ta,sk as Ua,nu as Va,$d as Wa,Wd as Xa,Xl as Ya,y0 as Za,Sw as _a,Ko as $a,Ql as ab,ck as bb,$ee as cb,Jl as db,Bu as eb,dT as fb,Nu as gb,m_e as hb,p_e as ib,g_e as jb,y_e as kb,v_e as lb,ue as mb,Lu as nb,M$ as ob,pB as pb,ld as qb,a_ as rb,_B as sb,Tn as tb,ha as ub,no as vb,AG as wb,At as xb,Xr as yb,Wt as zb,Ts as Ab,On as Bb,fa as Cb,Fo as Db,Fa as Eb,jt as Fb,yIe as Gb,Ba as Hb,io as Ib,Cs as Jb,Na as Kb,ht as Lb,ma as Mb,is as Nb,BIe as Ob,PB as Pb,NIe as Qb,IS as Rb,K_ as Sb,K1 as Tb,rK as Ub,lN as Vb,jK as Wb,HK as Xb,as as Yb,nTe as Zb,iTe as _b,aTe as $b,sTe as ac,mo as bc,jCe as cc,Jr as dc,ci as ec,Jn as fc,HCe as gc,ui as hc,Go as ic,gn as jc,xe as kc,mn as lc,TTe as mc,SN as nc,CTe as oc,Ht as pc,g1e as qc,C3 as rc,MU as sc,rte as tc,qd as uc,Rke as vc,ur as wc,pt as xc,bI as yc,xa as zc,l5 as Ac,c5 as Bc,ti as Cc,uu as Dc,nc as Ec,M5 as Fc,ux as Gc,OLe as Hc,FLe as Ic,vm as Jc,br as Kc,k5 as Lc,d4e as Mc,pe as Nc,Io as Oc,ic as Pc,Ki as Qc,Wa as Rc,Eo as Sc,or as Tc,Dm as Uc,Mx as Vc,Am as Wc,kx as Xc,Mm as Yc,Px as Zc,km as _c,Rx as $c,Pm as ad,gu as bd,Rm as cd,Om as dd,ny as ed,zVe as fd,jVe as gd,D8 as hd,fu as id,Q0 as jd,J0 as kd,M8 as ld,Ge as md,Qt as nd,ol as od,xo as pd,sl as qd,Yi as rd,Ea as
325sd,Ee as td,oh as ud,Lx as vd,Ke as wd,Xi as xd,vu as yd,O8 as zd,$t as Ad,Fm as Bd,F8 as Cd,tn as Dd,Bm as Ed,B8 as Fd,lh as Gd,ch as Hd,uh as Id,iy as Jd,N8 as Kd,cl as Ld,ay as Md,sy as Nd,L8 as Od,oy as Pd,V8 as Qd,U8 as Rd,z8 as Sd,j8 as Td,jx as Ud,H8 as Vd,dy as Wd,bu as Xd,xse as Yd,nE as Zd,Co as _d,qx as $d,Ta as ae,To as be,dz as ce,Vje as de,dh as ee,Uje as fe,zP as ge,zm as he,jje as ie,jP as je,Hje as ke,Kse as le,Xse as me,oE as ne,yz as oe,vz as pe,toe as qe,noe as re,aoe as se,ooe as te,coe as ue,$je as ve,Gje as we,Wje as xe,dE as ye,dHe as ze,CHe as Ae,Pz as Be,Rz as Ce,Oz as De,by as Ee,WP as Fe,GP as Ge,qP as He,KP as Ie,YP as Je,XP as Ke,Goe as Le,wy as Me,Yz as Ne,fE as Oe,QP as Pe,Xz as Qe,D9e as Re,Iy as Se,rle as Te,fh as Ue,gs as Ve,xy as We,mE as Xe,Ey as Ye,ij as Ze,pE as _e,mh as $e,ul as af,Iu as bf,fi as cf,Gn as df,gE as ef,ph as ff,$m as gf,zs as hf,Wm as if,vE as jf,qm as kf,Km as lf,Ym as mf,vn as nf,dl as of,Ty as pf,Cy as qf,_E as rf,Sy as sf,jE as tf,f$ as uf,K7e as vf,y$ as wf,eT as xf,cv as yf,uv as zf,tT as Af,dv as Bf,rT as Cf,hv as Df,Ou as Ef,yc as Ff,js as Gf,rn as Hf,vc as If,nT as Jf,fv as Kf,v$ as Lf,xp as Mf,Nh as Nf,_l as Of,_$ as Pf,iT as Qf,ws as Rf,Ep as Sf,lT as Tf,mu as Uf,pv as Vf,FT as Wf,BT as Xf,en as Yf,Us as Zf,V$ as _f,NT as $f,ke as ag,Ls as bg,sn as cg,xx as dg,ah as eg,sh as fg,k8 as gg,Vs as hg,u6e as ig,ll as jg,Dx as kg,pu as lg,Uh as mg,U$ as ng,LT as og,Ev as pg,z$ as qg,VT as rg,Il as sg,Ap as tg,ju as ug,j$ as vg,UT as wg,Op as xg,zh as yg,jh as zg,H$ as Ag,zT as Bg,Hh as Cg,$$ as Dg,jT as Eg,$h as Fg,G$ as Gg,HT as Hg,Lh as Ig,_T as Jg,Mp as Kg,kwe as Lg,WT as Mg,qT as Ng,KT as Og,YT as Pg,xr as Qg,Fp as Rg,Bp as Sg,eC as Tg,Xt as Ug,hT as Vg,fT as Wg,k$ as Xg,bl as Yg,mT as Zg,Cp as _g,wl as $g,Vu as ah,Uu as bh,yT as ch,P$ as dh,zu as eh,xO as fh,Dp as gh,EO as hh,sJe as ih,IT as jh,F$ as kh,B$ as lh,N$ as mh,ET as nh,CT as oh,ST as ph,DT as qh,AT as rh,MT as sh,kT as th,PT as uh,RT as vh,Vh as wh,OT as xh,CO as yh,Pp as zh,Rp as Ah,kp as Bh};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.